From d5f8206556c4fbb3fec7607394a5598ce2bd8a89 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Tue, 11 Jun 2024 16:37:58 +0800 Subject: [PATCH] fix: eslint --- .gitignore | 4 +- app.vue | 18 +- archive/Process.vue | 130 +- archive/SearchHistory.vue | 230 +- components/color-picker/ColorPicker.vue | 86 +- components/color-picker/ColorPickerPill.vue | 36 +- components/i/Aside.vue | 74 +- components/i/Collapse.vue | 52 +- components/i/Confirm.vue | 62 +- components/i/Create.vue | 242 +- components/i/Empty.vue | 16 +- components/i/Exception.vue | 76 +- components/i/Logo.vue | 6 +- components/i/MenuSider.vue | 56 +- components/i/Nav.vue | 62 +- components/i/SearchHistory.vue | 75 +- components/i/Sign.vue | 130 +- components/i/UserInfo.vue | 180 +- components/i/action/Collect.vue | 84 +- components/i/action/Thread.vue | 144 +- components/i/library/Collect.vue | 44 +- components/i/library/Create.vue | 216 +- components/i/library/Edit.vue | 14 +- components/i/library/Header.vue | 200 +- components/i/library/Select.vue | 156 +- components/i/library/Thread.vue | 180 +- components/i/md/mdc.vue | 22 +- components/i/search/Article.vue | 22 +- components/i/search/Ask.vue | 176 +- components/i/search/Content.vue | 118 +- components/i/search/ExtraInfo.vue | 116 +- components/i/search/Header.vue | 275 +- components/i/search/Process.vue | 112 +- components/i/search/ProcessAction.vue | 108 +- components/i/search/RecommendQuestion.vue | 47 +- components/i/search/Source.vue | 132 +- components/i/search/Title.vue | 36 +- components/md/renderer.vue | 15 +- components/prose/Chart.global.vue | 172 +- components/prose/GridTable.global.vue | 62 +- components/prose/ProseA.global.vue | 30 +- components/prose/ProsePre.global.vue | 88 +- composables/useCollectionRequest.js | 142 +- composables/useLibraryRequest.js | 24 +- composables/useRequest.js | 56 +- composables/useRequestError.js | 42 +- composables/useTime.js | 32 +- eslint.config.mjs | 15 + layouts/default.vue | 38 +- layouts/empty.vue | 2 +- nuxt.config.ts | 8 +- package-lock.json | 14498 ++++++++++++------ package.json | 7 +- pages/index.vue | 70 +- pages/library/[id].vue | 70 +- pages/library/index.vue | 98 +- pages/mdc.vue | 48 +- pages/search/[id].vue | 571 +- pages/signin/verify.vue | 37 +- server/api/fetchMarkdown.js | 12 - server/api/mock/[...slug].js | 6 +- stores/i18n.js | 24 +- stores/library.js | 84 +- stores/repos.js | 10 +- stores/search.js | 62 +- stores/user.js | 42 +- tailwind.config.ts | 1 - utils/fetchEventSource.js | 54 +- utils/getMockRepo.js | 8 +- utils/searchUtil.js | 210 +- 70 files changed, 12581 insertions(+), 7794 deletions(-) create mode 100644 eslint.config.mjs delete mode 100644 server/api/fetchMarkdown.js diff --git a/.gitignore b/.gitignore index 569981c..86433d9 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,6 @@ logs .env .env.* !.env.example -yarn.lock \ No newline at end of file +yarn.lock +.eslintcache +.vscode/ \ No newline at end of file diff --git a/app.vue b/app.vue index 64fba53..b58b7e2 100644 --- a/app.vue +++ b/app.vue @@ -1,18 +1,18 @@ diff --git a/archive/Process.vue b/archive/Process.vue index eff32b4..c25229c 100644 --- a/archive/Process.vue +++ b/archive/Process.vue @@ -1,79 +1,79 @@ diff --git a/archive/SearchHistory.vue b/archive/SearchHistory.vue index 5dca478..e120659 100644 --- a/archive/SearchHistory.vue +++ b/archive/SearchHistory.vue @@ -1,89 +1,89 @@ diff --git a/components/color-picker/ColorPicker.vue b/components/color-picker/ColorPicker.vue index 2ec8bce..3592424 100644 --- a/components/color-picker/ColorPicker.vue +++ b/components/color-picker/ColorPicker.vue @@ -1,31 +1,31 @@ \ No newline at end of file diff --git a/components/color-picker/ColorPickerPill.vue b/components/color-picker/ColorPickerPill.vue index 592ccf4..806ff56 100644 --- a/components/color-picker/ColorPickerPill.vue +++ b/components/color-picker/ColorPickerPill.vue @@ -1,22 +1,22 @@ diff --git a/components/i/Collapse.vue b/components/i/Collapse.vue index ee7dd86..7b0b94e 100644 --- a/components/i/Collapse.vue +++ b/components/i/Collapse.vue @@ -1,39 +1,39 @@ diff --git a/components/i/Confirm.vue b/components/i/Confirm.vue index d00336b..5d3d8cb 100644 --- a/components/i/Confirm.vue +++ b/components/i/Confirm.vue @@ -1,42 +1,42 @@ diff --git a/components/i/Create.vue b/components/i/Create.vue index 7c95036..bebec3d 100644 --- a/components/i/Create.vue +++ b/components/i/Create.vue @@ -1,78 +1,78 @@ diff --git a/components/i/Empty.vue b/components/i/Empty.vue index 7fd3cdb..31c3a6f 100644 --- a/components/i/Empty.vue +++ b/components/i/Empty.vue @@ -1,14 +1,14 @@ \ No newline at end of file diff --git a/components/i/Exception.vue b/components/i/Exception.vue index 7416bee..2f5fb60 100644 --- a/components/i/Exception.vue +++ b/components/i/Exception.vue @@ -1,48 +1,48 @@ \ No newline at end of file diff --git a/components/i/Logo.vue b/components/i/Logo.vue index c9e0f1c..3789848 100644 --- a/components/i/Logo.vue +++ b/components/i/Logo.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/components/i/MenuSider.vue b/components/i/MenuSider.vue index ab21bcb..929cb8b 100644 --- a/components/i/MenuSider.vue +++ b/components/i/MenuSider.vue @@ -1,37 +1,37 @@ \ No newline at end of file diff --git a/components/i/Nav.vue b/components/i/Nav.vue index b5f67d1..324be53 100644 --- a/components/i/Nav.vue +++ b/components/i/Nav.vue @@ -1,35 +1,35 @@ diff --git a/components/i/Sign.vue b/components/i/Sign.vue index cdeee85..8ea0855 100644 --- a/components/i/Sign.vue +++ b/components/i/Sign.vue @@ -1,74 +1,74 @@ diff --git a/components/i/UserInfo.vue b/components/i/UserInfo.vue index 59d6af0..72c315f 100644 --- a/components/i/UserInfo.vue +++ b/components/i/UserInfo.vue @@ -1,63 +1,63 @@ diff --git a/components/i/action/Collect.vue b/components/i/action/Collect.vue index 6aa9c7a..a4a87ff 100644 --- a/components/i/action/Collect.vue +++ b/components/i/action/Collect.vue @@ -1,58 +1,58 @@ diff --git a/components/i/action/Thread.vue b/components/i/action/Thread.vue index 764a37e..86acfff 100644 --- a/components/i/action/Thread.vue +++ b/components/i/action/Thread.vue @@ -1,13 +1,13 @@ diff --git a/components/i/library/Collect.vue b/components/i/library/Collect.vue index 454dd42..e046bb7 100644 --- a/components/i/library/Collect.vue +++ b/components/i/library/Collect.vue @@ -1,30 +1,30 @@ \ No newline at end of file diff --git a/components/i/library/Create.vue b/components/i/library/Create.vue index fcef447..0080c6d 100644 --- a/components/i/library/Create.vue +++ b/components/i/library/Create.vue @@ -1,135 +1,135 @@ diff --git a/components/i/library/Edit.vue b/components/i/library/Edit.vue index 4959541..b35741b 100644 --- a/components/i/library/Edit.vue +++ b/components/i/library/Edit.vue @@ -1,18 +1,18 @@ \ No newline at end of file diff --git a/components/i/library/Header.vue b/components/i/library/Header.vue index 8312546..71b1450 100644 --- a/components/i/library/Header.vue +++ b/components/i/library/Header.vue @@ -1,118 +1,118 @@ diff --git a/components/i/library/Select.vue b/components/i/library/Select.vue index 9fd17e0..7ee0ecf 100644 --- a/components/i/library/Select.vue +++ b/components/i/library/Select.vue @@ -1,52 +1,52 @@ diff --git a/components/i/library/Thread.vue b/components/i/library/Thread.vue index 6ec0d31..25e66fa 100644 --- a/components/i/library/Thread.vue +++ b/components/i/library/Thread.vue @@ -1,116 +1,116 @@ \ No newline at end of file diff --git a/components/i/md/mdc.vue b/components/i/md/mdc.vue index d88249c..d6659c2 100644 --- a/components/i/md/mdc.vue +++ b/components/i/md/mdc.vue @@ -1,17 +1,17 @@ \ No newline at end of file diff --git a/components/i/search/Article.vue b/components/i/search/Article.vue index 37bdfd9..96c20c1 100644 --- a/components/i/search/Article.vue +++ b/components/i/search/Article.vue @@ -1,15 +1,15 @@ diff --git a/components/i/search/Content.vue b/components/i/search/Content.vue index 4c7054e..847a39a 100644 --- a/components/i/search/Content.vue +++ b/components/i/search/Content.vue @@ -1,73 +1,73 @@ \ No newline at end of file diff --git a/components/i/search/ExtraInfo.vue b/components/i/search/ExtraInfo.vue index df06302..02daf81 100644 --- a/components/i/search/ExtraInfo.vue +++ b/components/i/search/ExtraInfo.vue @@ -1,66 +1,66 @@ diff --git a/components/i/search/Header.vue b/components/i/search/Header.vue index be5b986..95e5cb5 100644 --- a/components/i/search/Header.vue +++ b/components/i/search/Header.vue @@ -1,90 +1,90 @@ \ No newline at end of file diff --git a/components/i/search/Process.vue b/components/i/search/Process.vue index 360f758..7de0520 100644 --- a/components/i/search/Process.vue +++ b/components/i/search/Process.vue @@ -1,70 +1,70 @@ diff --git a/components/i/search/ProcessAction.vue b/components/i/search/ProcessAction.vue index af5fc47..b61197a 100644 --- a/components/i/search/ProcessAction.vue +++ b/components/i/search/ProcessAction.vue @@ -1,62 +1,62 @@ \ No newline at end of file diff --git a/components/i/search/RecommendQuestion.vue b/components/i/search/RecommendQuestion.vue index 954e005..67ca7e9 100644 --- a/components/i/search/RecommendQuestion.vue +++ b/components/i/search/RecommendQuestion.vue @@ -1,32 +1,33 @@ \ No newline at end of file diff --git a/components/i/search/Source.vue b/components/i/search/Source.vue index aaf13dc..1953674 100644 --- a/components/i/search/Source.vue +++ b/components/i/search/Source.vue @@ -1,86 +1,86 @@ diff --git a/components/i/search/Title.vue b/components/i/search/Title.vue index 201eb51..c6d906c 100644 --- a/components/i/search/Title.vue +++ b/components/i/search/Title.vue @@ -1,26 +1,26 @@ diff --git a/components/md/renderer.vue b/components/md/renderer.vue index 3efeb40..fd20533 100644 --- a/components/md/renderer.vue +++ b/components/md/renderer.vue @@ -1,14 +1,17 @@