diff --git a/package.json b/package.json index eb6428c0..e3ca2398 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "file-saver": "^2.0.5", "git-last-commit": "^1.0.1", "hover.css": "^2.3.2", + "libarchive-wasm": "^1.1.0", "localforage": "^1.10.0", "lodash-es": "^4.17.21", "mitt": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0d297ee3..d46cd768 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ dependencies: hover.css: specifier: ^2.3.2 version: 2.3.2 + libarchive-wasm: + specifier: ^1.1.0 + version: 1.1.0 localforage: specifier: ^1.10.0 version: 1.10.0 @@ -3273,6 +3276,10 @@ packages: flush-write-stream: 1.1.1 dev: true + /libarchive-wasm@1.1.0: + resolution: {integrity: sha512-b1R4KK5Goybf2+kiVoM1NZnZ/3h7BxBvSCPF4scroJmIVqfD00hSFRNFt9oUcJcKjMu1vnWRnizXc2efpVY8yQ==} + dev: false + /lie@3.1.1: resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==} dependencies: diff --git a/public/dicts/en/word/common/BEC_2.min.7z b/public/dicts/en/word/common/BEC_2.min.7z new file mode 100644 index 00000000..75046bb9 Binary files /dev/null and b/public/dicts/en/word/common/BEC_2.min.7z differ diff --git a/public/libarchive.wasm b/public/libarchive.wasm new file mode 100644 index 00000000..b328946f Binary files /dev/null and b/public/libarchive.wasm differ diff --git a/src/assets/newDicts.ts b/src/assets/newDicts.ts index 22e30ee2..16b7dcc0 100644 --- a/src/assets/newDicts.ts +++ b/src/assets/newDicts.ts @@ -6,7 +6,7 @@ const internationalExam: DictResource[] = [ id: 'BEC_2', name: '商务英语词汇', description: '商务英语词汇', - url: 'BEC_2.json', + url: 'BEC_2.min.7z', length: 2753, category: '国际考试', tags: ['所有', 'BEC'], diff --git a/src/components/dialog/DictDiglog.vue b/src/components/dialog/DictDiglog.vue index 09171cf1..344e4387 100644 --- a/src/components/dialog/DictDiglog.vue +++ b/src/components/dialog/DictDiglog.vue @@ -1,12 +1,11 @@