diff --git a/client/package-lock.json b/client/package-lock.json index 2db43dc5..d2952ad0 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -11,6 +11,7 @@ "@girder/oauth-client": "^0.7.7", "@mdi/font": "^6.5.95", "@sentry/vue": "^6.17.6", + "@types/idle-js": "^1.2.1", "@types/jest": "^27.0.1", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.0.0", @@ -21,7 +22,7 @@ "direct-vuex": "^0.12.1", "django-s3-file-field": "^0.3.0", "gl-matrix": "^3.4.3", - "idle-vue": "^2.0.5", + "idle-js": "^1.2.0", "itk": "14.0.0", "lodash": "^4.17.21", "mousetrap": "github:scottwittenburg/mousetrap#fix-listener-leak", @@ -1570,6 +1571,23 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/polyfill": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", + "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", + "deprecated": "🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.", + "dependencies": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.4" + } + }, + "node_modules/@babel/polyfill/node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true + }, "node_modules/@babel/preset-env": { "version": "7.16.11", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.11.tgz", @@ -2323,6 +2341,11 @@ "@types/node": "*" } }, + "node_modules/@types/idle-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/idle-js/-/idle-js-1.2.1.tgz", + "integrity": "sha512-lOB1BK2Z96LZQCVTUS8mNdUVsFevB1rhU6ZyA9xZlX0N406nvstHyV702AoZygFuEnTa+aN8ShF1nQ/NH5xlUg==" + }, "node_modules/@types/jest": { "version": "27.4.1", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", @@ -10513,20 +10536,11 @@ } }, "node_modules/idle-js": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/idle-js/-/idle-js-0.1.3.tgz", - "integrity": "sha512-Hvd+OLMUWfVJUv/HoX7wtBgPwx2OdcEd2TzXcBQJyuINXcf7Ig2SgxRMuq2wZNkarf/+DrzV7NxwjKcexIfWBg==" - }, - "node_modules/idle-vue": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/idle-vue/-/idle-vue-2.0.5.tgz", - "integrity": "sha1-MA48zZWBcMTX76fMmuzoYHi+9XY=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/idle-js/-/idle-js-1.2.0.tgz", + "integrity": "sha512-ssRtcpcg8WMvXHOkNaq04NXftpuVR+npN0ke8d7EDSxoPyCxcpeZv1EkKft9KmB/v/Q1Q47z89d/9+5VKkvpxw==", "dependencies": { - "idle-js": "^0.1.3" - }, - "engines": { - "node": ">= 4.0.0", - "npm": ">= 3.0.0" + "@babel/polyfill": "^7.2.5" } }, "node_modules/ieee754": { @@ -20491,6 +20505,22 @@ "@babel/helper-plugin-utils": "^7.16.7" } }, + "@babel/polyfill": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", + "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", + "requires": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.4" + }, + "dependencies": { + "core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" + } + } + }, "@babel/preset-env": { "version": "7.16.11", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.11.tgz", @@ -21125,6 +21155,11 @@ "@types/node": "*" } }, + "@types/idle-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/idle-js/-/idle-js-1.2.1.tgz", + "integrity": "sha512-lOB1BK2Z96LZQCVTUS8mNdUVsFevB1rhU6ZyA9xZlX0N406nvstHyV702AoZygFuEnTa+aN8ShF1nQ/NH5xlUg==" + }, "@types/jest": { "version": "27.4.1", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", @@ -27522,16 +27557,11 @@ } }, "idle-js": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/idle-js/-/idle-js-0.1.3.tgz", - "integrity": "sha512-Hvd+OLMUWfVJUv/HoX7wtBgPwx2OdcEd2TzXcBQJyuINXcf7Ig2SgxRMuq2wZNkarf/+DrzV7NxwjKcexIfWBg==" - }, - "idle-vue": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/idle-vue/-/idle-vue-2.0.5.tgz", - "integrity": "sha1-MA48zZWBcMTX76fMmuzoYHi+9XY=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/idle-js/-/idle-js-1.2.0.tgz", + "integrity": "sha512-ssRtcpcg8WMvXHOkNaq04NXftpuVR+npN0ke8d7EDSxoPyCxcpeZv1EkKft9KmB/v/Q1Q47z89d/9+5VKkvpxw==", "requires": { - "idle-js": "^0.1.3" + "@babel/polyfill": "^7.2.5" } }, "ieee754": { diff --git a/client/package.json b/client/package.json index 1bf93da3..e91b5fb5 100644 --- a/client/package.json +++ b/client/package.json @@ -11,6 +11,7 @@ "@girder/oauth-client": "^0.7.7", "@mdi/font": "^6.5.95", "@sentry/vue": "^6.17.6", + "@types/idle-js": "^1.2.1", "@types/jest": "^27.0.1", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.0.0", @@ -21,7 +22,7 @@ "direct-vuex": "^0.12.1", "django-s3-file-field": "^0.3.0", "gl-matrix": "^3.4.3", - "idle-vue": "^2.0.5", + "idle-js": "^1.2.0", "itk": "14.0.0", "lodash": "^4.17.21", "mousetrap": "github:scottwittenburg/mousetrap#fix-listener-leak", diff --git a/client/src/components/TimeoutDialog.vue b/client/src/components/TimeoutDialog.vue index 3226727c..bbe482f3 100644 --- a/client/src/components/TimeoutDialog.vue +++ b/client/src/components/TimeoutDialog.vue @@ -1,104 +1,97 @@ -