From f0fd24f00684f101398552e34188f02c47998ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=A3=E7=B6=BA=E5=87=9B?= Date: Tue, 16 Apr 2024 13:32:20 +0800 Subject: [PATCH] feat: use CDN --- .eslintrc.cjs | 1 + package.json | 26 ++- src/app/SettingsDialog.vue | 19 +++ src/components/ConfirmPopup.vue | 1 + src/components/LanguageFilter.vue | 1 + src/main.ts | 1 + src/utils/hacks/jquery.ts | 4 +- src/vite-env.d.ts | 1 - vite.config.ts | 23 ++- yarn.lock | 275 ++++++++++++++++-------------- 10 files changed, 201 insertions(+), 151 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e4be244..1a16ea0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -73,6 +73,7 @@ module.exports = { '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/prefer-promise-reject-errors': 'off', + '@typescript-eslint/ban-ts-comment': 'off', }, settings: { 'import/resolver': { diff --git a/package.json b/package.json index ca58117..f806d5b 100644 --- a/package.json +++ b/package.json @@ -17,32 +17,23 @@ "@intlify/unplugin-vue-i18n": "^4.0.0", "@vitejs/plugin-vue": "^5.0.4", "@vueuse/core": "^10.9.0", - "clean-css": "^5.3.3", "comlink": "^4.4.1", "detect-browser": "^5.3.0", "element-plus": "^2.7.0", - "eslint-config-love": "^47.0.0", "eventemitter3": "^5.0.1", "file-saver": "^2.0.5", "jquery": "^3.7.1", "jquery-pjax": "^2.0.1", "jszip": "^3.10.1", - "less": "^4.2.0", "localforage": "^1.10.0", "localforage-setitems": "^1.4.0", "lodash-es": "^4.17.21", "md5": "^2.3.0", "noty": "3.1.4", - "rollup-plugin-copy": "^3.5.0", "streamsaver": "^2.0.6", - "typescript": "^5.4.5", - "unplugin-vue-components": "^0.26.0", "uuid": "^9.0.1", - "vite": "^5.2.8", - "vite-plugin-monkey": "^3.5.2", - "vue": "^3.4.21", - "vue-i18n": "^9.12.1", - "vue-tsc": "^2.0.13" + "vue": "^3.4.22", + "vue-i18n": "^9.12.1" }, "devDependencies": { "@commitlint/cli": "^19.2.2", @@ -57,17 +48,24 @@ "@types/node": "^20.12.7", "@types/streamsaver": "^2.0.4", "@types/uuid": "^9.0.8", - "@typescript-eslint/eslint-plugin": "^7.6.0", - "@typescript-eslint/parser": "^7.6.0", + "@typescript-eslint/eslint-plugin": "^7.7.0", + "@typescript-eslint/parser": "^7.7.0", "eslint": "^8.57.0", + "eslint-config-love": "^47.0.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.2.0", + "eslint-plugin-n": "^17.2.1", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-vue": "^9.25.0", + "less": "^4.2.0", "lint-staged": "^15.2.2", "prettier": "^3.2.5", + "rollup-plugin-copy": "^3.5.0", + "typescript": "^5.4.5", + "vite": "^5.2.8", + "vite-plugin-monkey": "^3.5.2", + "vue-tsc": "^2.0.13", "yorkie": "^2.0.0" }, "gitHooks": { diff --git a/src/app/SettingsDialog.vue b/src/app/SettingsDialog.vue index 879b385..1dc2fbd 100644 --- a/src/app/SettingsDialog.vue +++ b/src/app/SettingsDialog.vue @@ -239,6 +239,25 @@