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",