From a480a88c337267bad5985f7f878a25a15f235dd4 Mon Sep 17 00:00:00 2001 From: Jesse Read Date: Sun, 21 Apr 2024 21:00:28 -0400 Subject: [PATCH 1/3] Automatically select latest year in user stats --- src/jelu-ui/src/components/UserStats.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jelu-ui/src/components/UserStats.vue b/src/jelu-ui/src/components/UserStats.vue index e84f5c45..1ea47c36 100644 --- a/src/jelu-ui/src/components/UserStats.vue +++ b/src/jelu-ui/src/components/UserStats.vue @@ -20,6 +20,7 @@ const getYears = () => { dataService.yearsWithStats() .then(res => { years.value = res + currentYear.value = res[res.length - 1] }) .catch(e => { console.log(e) From 909cf307958b7d718166f3af3eae71eccae9cd4a Mon Sep 17 00:00:00 2001 From: Jesse Read Date: Sun, 21 Apr 2024 21:01:51 -0400 Subject: [PATCH 2/3] Automatically select latest year on History page --- src/jelu-ui/src/components/History.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jelu-ui/src/components/History.vue b/src/jelu-ui/src/components/History.vue index 1eedeff2..adba7952 100644 --- a/src/jelu-ui/src/components/History.vue +++ b/src/jelu-ui/src/components/History.vue @@ -28,6 +28,7 @@ const getYears = () => { dataService.yearsWithStats() .then(res => { years.value = res + currentYear.value = res[res.length - 1] }) .catch(e => { console.log(e) From 4ca99831dc67b4e97005d4015fc1ff5eeb042892 Mon Sep 17 00:00:00 2001 From: bayang Date: Wed, 24 Apr 2024 16:49:58 +0200 Subject: [PATCH 3/3] fix: use a better maintained barcode reader lib --- src/jelu-ui/package-lock.json | 54 ++++++++++++------------ src/jelu-ui/package.json | 2 +- src/jelu-ui/src/components/ScanModal.vue | 4 +- src/jelu-ui/src/declarations.d.ts | 2 + 4 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/jelu-ui/package-lock.json b/src/jelu-ui/package-lock.json index 4572d39e..fc73b3d0 100644 --- a/src/jelu-ui/package-lock.json +++ b/src/jelu-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "jelu-ui", - "version": "0.52.2", + "version": "0.53.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "jelu-ui", - "version": "0.52.2", + "version": "0.53.0", "dependencies": { "@formkit/i18n": "1.6.2", "@formkit/tailwindcss": "1.6.2", @@ -17,6 +17,7 @@ "@saekitominaga/isbn-verify": "2.0.1", "@splidejs/splide": "4.1.4", "@splidejs/vue-splide": "0.6.12", + "@teckel/vue-barcode-reader": "^1.1.6", "@vueuse/core": "10.9.0", "@vueuse/router": "10.9.0", "axios": "1.6.8", @@ -28,7 +29,6 @@ "theme-change": "2.5.0", "vue": "3.4.23", "vue-avatar-sdh": "1.0.3", - "vue-barcode-reader": "1.0.3", "vue-chartjs": "5.3.1", "vue-i18n": "9.13.0", "vue-router": "4.3.2", @@ -3099,6 +3099,14 @@ "tailwindcss": ">=3.0.0 || insiders" } }, + "node_modules/@teckel/vue-barcode-reader": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@teckel/vue-barcode-reader/-/vue-barcode-reader-1.1.6.tgz", + "integrity": "sha512-A8Hn4sPtktHYIviTMSw/DdIJsYgQ9fLkJbD+SS2qIi7gRXhTVZPUiX+TPKouAP7G0yfl+ES1XE4+GDgwoa9dgA==", + "dependencies": { + "@zxing/library": "^0.20.0" + } + }, "node_modules/@types/d3-scale": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", @@ -4165,11 +4173,11 @@ } }, "node_modules/@zxing/library": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.19.1.tgz", - "integrity": "sha512-rKwvl3Uuqs8yf364iU9l3HDDaIx8yPv+CH6DbtQaQr67VdKLG22G1ukEp9fOdDefE6tpLtRAdMnTrgtpiaKAZw==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.20.0.tgz", + "integrity": "sha512-6Ev6rcqVjMakZFIDvbUf0dtpPGeZMTfyxYg4HkVWioWeN7cRcnUWT3bU6sdohc82O1nPXcjq6WiGfXX2Pnit6A==", "dependencies": { - "ts-custom-error": "^3.0.0" + "ts-custom-error": "^3.2.1" }, "engines": { "node": ">= 10.4.0" @@ -11028,14 +11036,6 @@ "vue": "^3.0.5" } }, - "node_modules/vue-barcode-reader": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/vue-barcode-reader/-/vue-barcode-reader-1.0.3.tgz", - "integrity": "sha512-z4mv7+ai/8vECppBTb00tHnyFMMx6W1rAaQe+v214ihoaWK9iGrn8ZZsmgSxf3lwnrtGaibLdkonTtMrGsO+dA==", - "dependencies": { - "@zxing/library": "^0.19.1" - } - }, "node_modules/vue-chartjs": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.3.1.tgz", @@ -13840,6 +13840,14 @@ "postcss-selector-parser": "6.0.10" } }, + "@teckel/vue-barcode-reader": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@teckel/vue-barcode-reader/-/vue-barcode-reader-1.1.6.tgz", + "integrity": "sha512-A8Hn4sPtktHYIviTMSw/DdIJsYgQ9fLkJbD+SS2qIi7gRXhTVZPUiX+TPKouAP7G0yfl+ES1XE4+GDgwoa9dgA==", + "requires": { + "@zxing/library": "^0.20.0" + } + }, "@types/d3-scale": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", @@ -14650,12 +14658,12 @@ } }, "@zxing/library": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.19.1.tgz", - "integrity": "sha512-rKwvl3Uuqs8yf364iU9l3HDDaIx8yPv+CH6DbtQaQr67VdKLG22G1ukEp9fOdDefE6tpLtRAdMnTrgtpiaKAZw==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.20.0.tgz", + "integrity": "sha512-6Ev6rcqVjMakZFIDvbUf0dtpPGeZMTfyxYg4HkVWioWeN7cRcnUWT3bU6sdohc82O1nPXcjq6WiGfXX2Pnit6A==", "requires": { "@zxing/text-encoding": "~0.9.0", - "ts-custom-error": "^3.0.0" + "ts-custom-error": "^3.2.1" } }, "@zxing/text-encoding": { @@ -19518,14 +19526,6 @@ "integrity": "sha512-Ab/8FaFMLhffmWqVFrnOPsvnpmnqVNhYub0vCp3Er45lXDqWoy8JtVYaIDbXhPxS3XCZILc/K7kxvocrAHY36w==", "requires": {} }, - "vue-barcode-reader": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/vue-barcode-reader/-/vue-barcode-reader-1.0.3.tgz", - "integrity": "sha512-z4mv7+ai/8vECppBTb00tHnyFMMx6W1rAaQe+v214ihoaWK9iGrn8ZZsmgSxf3lwnrtGaibLdkonTtMrGsO+dA==", - "requires": { - "@zxing/library": "^0.19.1" - } - }, "vue-chartjs": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.3.1.tgz", diff --git a/src/jelu-ui/package.json b/src/jelu-ui/package.json index 36419f51..ddafd3ac 100644 --- a/src/jelu-ui/package.json +++ b/src/jelu-ui/package.json @@ -18,6 +18,7 @@ "@saekitominaga/isbn-verify": "2.0.1", "@splidejs/splide": "4.1.4", "@splidejs/vue-splide": "0.6.12", + "@teckel/vue-barcode-reader": "^1.1.6", "@vueuse/core": "10.9.0", "@vueuse/router": "10.9.0", "axios": "1.6.8", @@ -29,7 +30,6 @@ "theme-change": "2.5.0", "vue": "3.4.23", "vue-avatar-sdh": "1.0.3", - "vue-barcode-reader": "1.0.3", "vue-chartjs": "5.3.1", "vue-i18n": "9.13.0", "vue-router": "4.3.2", diff --git a/src/jelu-ui/src/components/ScanModal.vue b/src/jelu-ui/src/components/ScanModal.vue index 4d08b849..df2f2fe2 100644 --- a/src/jelu-ui/src/components/ScanModal.vue +++ b/src/jelu-ui/src/components/ScanModal.vue @@ -1,6 +1,6 @@