Skip to content

Commit

Permalink
feat: #27 使用插件系统挂载菜单-优化插件系统集成
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 4, 2023
1 parent 179a30c commit 0ceacb9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/apps/zhi/plugin-system/plugin-system-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/utils/logUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LogUtil {
},
red: (src: any): string => {
return src.toString()
}
},
}

prefix.reg(loglevel)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/otherlib/pluginSystemUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ const pluginSystemUtil = {

getPluginSystem,
getPluginSystemVersion,
initPluginSystem
initPluginSystem,
}
export default pluginSystemUtil
2 changes: 1 addition & 1 deletion src/utils/otherlib/siyuanUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const siyuanUtil = {
SIYUAN_DATA_PATH,
ZHI_CJS_PATH,

getCrossPlatformAppDataFolder
getCrossPlatformAppDataFolder,
}

export default siyuanUtil
3 changes: 1 addition & 2 deletions src/utils/sysUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
* @author terwer
* @since 1.0.0
*/
class SysUtil {
}
class SysUtil {}

const sysUtil = new SysUtil()
export default sysUtil
6 changes: 3 additions & 3 deletions vite.cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -39,7 +39,7 @@ export default defineConfig({
build: {
rollupOptions: {
input: {
theme: outputMap["theme"].file
theme: outputMap["theme"].file,
},
output: {
format: "cjs",
Expand Down

0 comments on commit 0ceacb9

Please sign in to comment.