Skip to content

Commit

Permalink
chore(zhi-core): #163 move dependency definition to zhi.json
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 17, 2023
1 parent 49a3b1b commit 6afe064
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
43 changes: 0 additions & 43 deletions apps/zhi-core/public/zhi.js

This file was deleted.

3 changes: 0 additions & 3 deletions apps/zhi-core/src/theme/core/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class Lifecycle {
private readonly logger
private readonly common
private ZHI_JSON_SCHEMA = "zhi-schema.json"
private ZHI_JS = "zhi.json"
private ZHI_JSON = "zhi.json"

constructor() {
Expand Down Expand Up @@ -68,9 +67,7 @@ class Lifecycle {
// json读取
// const { default: data } = await import("/appearance/themes/zhi/zhi-schema.json", { assert: { type: "json" } });data
// const { default: data } = await import("/appearance/themes/zhi/zhi.json", { assert: { type: "json" } });data
// const { default: data } = await import("/appearance/themes/zhi/zhi.js");data
const zhiSchema = await SiyuanDevice.importZhiThemeJson(this.ZHI_JSON_SCHEMA)
// const zhiJson = await SiyuanDevice.importZhiThemeJs(this.ZHI_JSON)
const zhiJson = await SiyuanDevice.importZhiThemeJson(this.ZHI_JSON)
this.logger.debug("zhiSchema=>", zhiSchema)
this.logger.debug("zhiJson=>", zhiJson)
Expand Down

0 comments on commit 6afe064

Please sign in to comment.