From 2a774dd8160797465d9a4183230dfb27db8f653c Mon Sep 17 00:00:00 2001 From: Redlnn Date: Tue, 1 Oct 2024 13:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E6=B3=A2=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 6 - .eslintrc.cjs | 33 - docs/.vitepress/components/Curtain.vue | 56 +- .../.vitepress/components/FakeQQ/ChatFile.vue | 2 +- docs/.vitepress/components/FakeQQ/ChatImg.vue | 4 +- docs/.vitepress/components/FakeQQ/ChatMsg.vue | 2 +- .../components/FakeQQ/ChatVoice.vue | 4 +- .../components/FakeQQ/ForwardChat.vue | 2 +- .../{mdEnhance => }/components/Icons.ts | 2 +- .../{mdEnhance => }/components/Mermaid.ts | 115 +- .../{config.mts => config/index.mts} | 39 +- docs/.vitepress/config/nav.ts | 6 + docs/.vitepress/config/plugins.ts | 18 + docs/.vitepress/{ => config}/sidebar.ts | 6 +- .../config/vite.ts} | 20 +- docs/.vitepress/mdEnhance/container.ts | 62 - docs/.vitepress/mdEnhance/index.ts | 13 - docs/.vitepress/mdEnhance/tasklist-mod.ts | 188 - docs/.vitepress/mdEnhance/tasklist.ts | 166 - docs/.vitepress/plugins/container.ts | 22 + .../{mdEnhance => plugins}/mermaid.ts | 28 +- .../components => plugins}/utils/IconBase.ts | 0 docs/.vitepress/styles/heimu.scss | 51 + docs/.vitepress/styles/index.scss | 16 +- docs/.vitepress/styles/mermaid.scss | 2 +- docs/.vitepress/theme/Layout.vue | 2 +- docs/.vitepress/theme/index.ts | 10 +- docs/.vitepress/theme/style.css | 17 +- docs/before/introduction/project/fastapi.md | 1 - eslint.config.mjs | 86 + package.json | 66 +- pnpm-lock.yaml | 6974 +++++++++-------- tsconfig.app.json | 21 - tsconfig.json | 28 +- tsconfig.node.json | 13 - 35 files changed, 4069 insertions(+), 4012 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.cjs rename docs/.vitepress/{mdEnhance => }/components/Icons.ts (97%) rename docs/.vitepress/{mdEnhance => }/components/Mermaid.ts (84%) rename docs/.vitepress/{config.mts => config/index.mts} (70%) create mode 100644 docs/.vitepress/config/nav.ts create mode 100644 docs/.vitepress/config/plugins.ts rename docs/.vitepress/{ => config}/sidebar.ts (98%) rename docs/{vite.config.mts => .vitepress/config/vite.ts} (85%) delete mode 100644 docs/.vitepress/mdEnhance/container.ts delete mode 100644 docs/.vitepress/mdEnhance/index.ts delete mode 100644 docs/.vitepress/mdEnhance/tasklist-mod.ts delete mode 100644 docs/.vitepress/mdEnhance/tasklist.ts create mode 100644 docs/.vitepress/plugins/container.ts rename docs/.vitepress/{mdEnhance => plugins}/mermaid.ts (82%) rename docs/.vitepress/{mdEnhance/components => plugins}/utils/IconBase.ts (100%) create mode 100644 docs/.vitepress/styles/heimu.scss create mode 100644 eslint.config.mjs delete mode 100644 tsconfig.app.json delete mode 100644 tsconfig.node.json diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 67b8bc4b..00000000 --- a/.eslintignore +++ /dev/null @@ -1,6 +0,0 @@ -node_modules/ -.temp/ -.cache/ -lib/ -dist/ -!.vitepress/ diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index d60ebb84..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,33 +0,0 @@ -/* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') - -module.exports = { - root: true, - plugins: ['prettier', 'vue'], - extends: [ - 'plugin:prettier/recommended', - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/typescript/recommended', - '@vue/eslint-config-typescript', - '@vue/eslint-config-prettier', - '@vue/eslint-config-prettier/skip-formatting' - ], - parserOptions: { - ecmaVersion: 'latest' - }, - rules: { - 'prettier/prettier': 'warn', - 'linebreak-style': ['error', 'unix'], - 'quotes': ['error', 'single'], - 'no-useless-return': 'error', - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-var': 'error', - '@typescript-eslint/no-unused-vars': 'off', // disable for setup script - // '@typescript-eslint/no-non-null-assertion': 'off', // disable for const { ... } = getCurrentInstance()!.appContext.config.globalProperties - '@typescript-eslint/ban-ts-comment': 'off', - 'vue/require-default-prop': 'off', - 'vue/multi-word-component-names': 'off' - } -} diff --git a/docs/.vitepress/components/Curtain.vue b/docs/.vitepress/components/Curtain.vue index 6bcd1460..1f0c989b 100644 --- a/docs/.vitepress/components/Curtain.vue +++ b/docs/.vitepress/components/Curtain.vue @@ -14,61 +14,7 @@ withDefaults(defineProps(), { - - diff --git a/docs/.vitepress/components/FakeQQ/ChatFile.vue b/docs/.vitepress/components/FakeQQ/ChatFile.vue index fdfd946b..f6440a16 100644 --- a/docs/.vitepress/components/FakeQQ/ChatFile.vue +++ b/docs/.vitepress/components/FakeQQ/ChatFile.vue @@ -1,5 +1,5 @@