From 3c98ee0d47d5711d0a51f82cf59366acbc6a8b36 Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Tue, 10 Feb 2026 01:28:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore(tsconfig):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=20tsconfig.node.j?= =?UTF-8?q?son=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.node.json | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 tsconfig.node.json diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index 9cc7def..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "strict": true - } -} -- 2.49.1 From 2c4951ff9b9845bd5b331a85703723527f87b16a Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Tue, 10 Feb 2026 02:03:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=92=8C=20lint=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .oxfmtrc.json | 5 ++++- .oxlintrc.json | 26 +++++++++-------------- .vscode/settings.json | 10 +++++---- app/components/SlideCreateCourseGreen.vue | 2 +- app/layouts/default.vue | 20 ++++++++--------- app/pages/generation.vue | 8 +++---- package.json | 4 ++-- 7 files changed, 37 insertions(+), 38 deletions(-) diff --git a/.oxfmtrc.json b/.oxfmtrc.json index f99bc53..ce2b6f2 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -11,6 +11,9 @@ "vueIndentScriptAndStyle": false, "bracketSameLine": false, "singleAttributePerLine": true, - "experimentalSortPackageJson": false, + "embeddedLanguageFormatting": "auto", + "experimentalSortPackageJson": true, + "experimentalSortImports": {}, + "experimentalTailwindcss": {}, "ignorePatterns": [] } diff --git a/.oxlintrc.json b/.oxlintrc.json index b99210f..ed1ef5b 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -1,23 +1,17 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": null, + "plugins": [ + "eslint", + "unicorn", + "vue", + "typescript", + "jsdoc", + "promise", + "vitest" + ], "categories": {}, "rules": {}, "settings": { - "jsx-a11y": { - "polymorphicPropName": null, - "components": {}, - "attributes": {} - }, - "next": { - "rootDir": [] - }, - "react": { - "formComponents": [], - "linkComponents": [], - "version": null, - "componentWrapperFunctions": [] - }, "jsdoc": { "ignorePrivate": false, "ignoreInternal": false, @@ -37,4 +31,4 @@ }, "globals": {}, "ignorePatterns": [] -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1659aca..f563e1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,14 @@ { - "oxc.fmt.configPath": ".oxfmtrc.json", "editor.defaultFormatter": "oxc.oxc-vscode", "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.oxc": "always" - }, + // "editor.codeActionsOnSave": { + // "source.fixAll.oxc": "always" + // }, "typescript.tsdk": "node_modules\\typescript\\lib", "[typescript]": { "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[json]": { + "editor.defaultFormatter": "oxc.oxc-vscode" } } \ No newline at end of file diff --git a/app/components/SlideCreateCourseGreen.vue b/app/components/SlideCreateCourseGreen.vue index b7f4d0c..d03dced 100644 --- a/app/components/SlideCreateCourseGreen.vue +++ b/app/components/SlideCreateCourseGreen.vue @@ -96,7 +96,7 @@ const onCreateCourseGreenSubmit = async ( BaseResponse >('App.Digital_VideoTask.Create', payload) .then((res) => { - if (!!res.data.task_id) { + if (res.data.task_id) { toast.add({ title: '创建成功', description: '视频已加入生成队列', diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 46e6fba..0806467 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -135,10 +135,10 @@ onMounted(async () => { @@ -230,7 +230,7 @@ onMounted(async () => { diff --git a/app/pages/generation.vue b/app/pages/generation.vue index eb4da28..ff03a87 100644 --- a/app/pages/generation.vue +++ b/app/pages/generation.vue @@ -58,11 +58,11 @@ onMounted(() => {