From 5f363aba38362fade6c2f59255cf572cc1aefc37 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sun, 30 Nov 2025 16:23:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20FingerprintJS=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=EF=BC=8C=E9=9B=86=E6=88=90=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=20ID=20=E5=92=8C=E6=8C=87=E7=BA=B9=E6=95=B0=E6=8D=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 8 +++++++ src/App.vue | 36 ++++++++++++------------------- src/pages/debug.vue | 46 ++++++++++++++++++++++++++++++++++++++++ src/utils/fingerprint.js | 22 +++++++++++++++++++ 5 files changed, 91 insertions(+), 22 deletions(-) create mode 100644 src/pages/debug.vue create mode 100644 src/utils/fingerprint.js diff --git a/package.json b/package.json index fed0da0..0a8edf7 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@examaware-cs/core": "^1.0.0", "@examaware-cs/player": "^1.0.2", + "@fingerprintjs/fingerprintjs": "^5.0.1", "@mdi/font": "7.4.47", "@microsoft/clarity": "^1.0.2", "@vueuse/core": "^14.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4dd49d5..3b999c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@examaware-cs/player': specifier: ^1.0.2 version: 1.0.2(tdesign-vue-next@1.17.5(vue@3.5.25(typescript@5.9.3)))(vue@3.5.25(typescript@5.9.3)) + '@fingerprintjs/fingerprintjs': + specifier: ^5.0.1 + version: 5.0.1 '@mdi/font': specifier: 7.4.47 version: 7.4.47 @@ -871,6 +874,9 @@ packages: tdesign-vue-next: ^1.15.5 vue: ^3.0.0 + '@fingerprintjs/fingerprintjs@5.0.1': + resolution: {integrity: sha512-KbaeE/rk2WL8MfpRP6jTI4lSr42SJPjvkyrjP3QU6uUDkOMWWYC2Ts1sNSYcegHC8avzOoYTHBj+2fTqvZWQBA==} + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -4559,6 +4565,8 @@ snapshots: tdesign-vue-next: 1.17.5(vue@3.5.25(typescript@5.9.3)) vue: 3.5.25(typescript@5.9.3) + '@fingerprintjs/fingerprintjs@5.0.1': {} + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': diff --git a/src/App.vue b/src/App.vue index 5e45a18..b18ee95 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,50 +2,42 @@ - - + + - - + +