From 0ceacb9761cc61edf3c1396b7938f92d1f3ecf1f Mon Sep 17 00:00:00 2001 From: terwer Date: Sun, 5 Mar 2023 03:34:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#27=20=E4=BD=BF=E7=94=A8=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=B3=BB=E7=BB=9F=E6=8C=82=E8=BD=BD=E8=8F=9C=E5=8D=95?= =?UTF-8?q?-=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/zhi/plugin-system/plugin-system-hook.ts | 4 +++- src/utils/logUtil.ts | 2 +- src/utils/otherlib/pluginSystemUtil.js | 2 +- src/utils/otherlib/siyuanUtil.js | 2 +- src/utils/sysUtil.ts | 3 +-- vite.cjs.config.ts | 6 +++--- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/apps/zhi/plugin-system/plugin-system-hook.ts b/src/apps/zhi/plugin-system/plugin-system-hook.ts index 76fb57f4..9d14b282 100644 --- a/src/apps/zhi/plugin-system/plugin-system-hook.ts +++ b/src/apps/zhi/plugin-system/plugin-system-hook.ts @@ -24,7 +24,9 @@ */ import logFactory from "~/src/utils/logUtil" -import pluginSystemUtil, { HackPluginSystem } from "~/src/utils/otherlib/pluginSystemUtil" +import pluginSystemUtil, { + HackPluginSystem, +} from "~/src/utils/otherlib/pluginSystemUtil" import siyuanUtil from "~/src/utils/otherlib/siyuanUtil" import strUtil from "~/src/utils/strUtil" diff --git a/src/utils/logUtil.ts b/src/utils/logUtil.ts index 56b8278c..e5efcf41 100644 --- a/src/utils/logUtil.ts +++ b/src/utils/logUtil.ts @@ -55,7 +55,7 @@ class LogUtil { }, red: (src: any): string => { return src.toString() - } + }, } prefix.reg(loglevel) diff --git a/src/utils/otherlib/pluginSystemUtil.js b/src/utils/otherlib/pluginSystemUtil.js index 5155d0ef..c8978802 100644 --- a/src/utils/otherlib/pluginSystemUtil.js +++ b/src/utils/otherlib/pluginSystemUtil.js @@ -166,6 +166,6 @@ const pluginSystemUtil = { getPluginSystem, getPluginSystemVersion, - initPluginSystem + initPluginSystem, } export default pluginSystemUtil diff --git a/src/utils/otherlib/siyuanUtil.js b/src/utils/otherlib/siyuanUtil.js index a722429b..e3eb0f0e 100644 --- a/src/utils/otherlib/siyuanUtil.js +++ b/src/utils/otherlib/siyuanUtil.js @@ -55,7 +55,7 @@ const siyuanUtil = { SIYUAN_DATA_PATH, ZHI_CJS_PATH, - getCrossPlatformAppDataFolder + getCrossPlatformAppDataFolder, } export default siyuanUtil diff --git a/src/utils/sysUtil.ts b/src/utils/sysUtil.ts index f0d66ca6..b0dd4d0a 100644 --- a/src/utils/sysUtil.ts +++ b/src/utils/sysUtil.ts @@ -29,8 +29,7 @@ * @author terwer * @since 1.0.0 */ -class SysUtil { -} +class SysUtil {} const sysUtil = new SysUtil() export default sysUtil diff --git a/vite.cjs.config.ts b/vite.cjs.config.ts index 20881f64..e15ad1a1 100644 --- a/vite.cjs.config.ts +++ b/vite.cjs.config.ts @@ -29,8 +29,8 @@ import { commonConfig } from "./vite.config" const outputMap: any = { theme: { file: "src/theme.ts", - folder: "theme.js" - } + folder: "theme.js", + }, } // https://vitejs.dev/config/ @@ -39,7 +39,7 @@ export default defineConfig({ build: { rollupOptions: { input: { - theme: outputMap["theme"].file + theme: outputMap["theme"].file, }, output: { format: "cjs",