From 4158ab657777d4925b8ec23adc9b30bfb31daceb Mon Sep 17 00:00:00 2001 From: bingling-sama Date: Mon, 29 Jul 2024 18:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor(structure):=20restruct?= =?UTF-8?q?=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/{ => theme}/analyzers/mcla.api.ts | 0 .vitepress/{ => theme}/analyzers/mcla.ts | 2 +- .vitepress/{ => theme}/auth/github.ts | 0 .vitepress/theme/components/Analyzer.vue | 2 +- .vitepress/theme/components/AuthRedirect.vue | 2 +- .vitepress/theme/components/LogViewer.vue | 7 +- .../theme/components/ResponsibleEditor.vue | 6 +- .vitepress/theme/configs/vite.ts | 6 +- .vitepress/theme/layouts/Posts.vue | 2 +- .vitepress/{ => theme/utils}/cdn.ts | 0 .vitepress/{ => theme}/workers/mcla.worker.ts | 0 .vitepress/utils/progressFetch.ts | 41 ------- package.json | 4 +- tsconfig.json | 108 +++++++++--------- tsconfig.worker.json | 58 +++++----- 15 files changed, 101 insertions(+), 137 deletions(-) rename .vitepress/{ => theme}/analyzers/mcla.api.ts (100%) rename .vitepress/{ => theme}/analyzers/mcla.ts (99%) rename .vitepress/{ => theme}/auth/github.ts (100%) rename .vitepress/{ => theme/utils}/cdn.ts (100%) rename .vitepress/{ => theme}/workers/mcla.worker.ts (100%) delete mode 100644 .vitepress/utils/progressFetch.ts diff --git a/.vitepress/analyzers/mcla.api.ts b/.vitepress/theme/analyzers/mcla.api.ts similarity index 100% rename from .vitepress/analyzers/mcla.api.ts rename to .vitepress/theme/analyzers/mcla.api.ts diff --git a/.vitepress/analyzers/mcla.ts b/.vitepress/theme/analyzers/mcla.ts similarity index 99% rename from .vitepress/analyzers/mcla.ts rename to .vitepress/theme/analyzers/mcla.ts index 00e2011f..104ce932 100644 --- a/.vitepress/analyzers/mcla.ts +++ b/.vitepress/theme/analyzers/mcla.ts @@ -1,5 +1,5 @@ import type { Ref } from "vue" -import { useCDN } from "@/cdn" +import { useCDN } from "@theme/utils/cdn" export { VERSION, MCLA_GH_DB_PREFIX, loadMCLA } diff --git a/.vitepress/auth/github.ts b/.vitepress/theme/auth/github.ts similarity index 100% rename from .vitepress/auth/github.ts rename to .vitepress/theme/auth/github.ts diff --git a/.vitepress/theme/components/Analyzer.vue b/.vitepress/theme/components/Analyzer.vue index 6219beab..d23d8713 100644 --- a/.vitepress/theme/components/Analyzer.vue +++ b/.vitepress/theme/components/Analyzer.vue @@ -16,7 +16,7 @@ import { type Solution, loadMCLA, MCLA_GH_DB_PREFIX, -} from "@/analyzers/mcla" +} from "@/theme/analyzers/mcla" import type { ITarFileInfo } from "@gera2ld/tarjs" // 类型&接口定义 diff --git a/.vitepress/theme/components/AuthRedirect.vue b/.vitepress/theme/components/AuthRedirect.vue index 16e927cb..d527c804 100644 --- a/.vitepress/theme/components/AuthRedirect.vue +++ b/.vitepress/theme/components/AuthRedirect.vue @@ -1,6 +1,6 @@