-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
698 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
vue: "^3.2.47", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
/* | ||
* Copyright (c) 2023, Terwer . All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Terwer designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Terwer in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com | ||
* or visit www.terwer.space if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
const schema = { | ||
type: "object", | ||
properties: { | ||
dependencies: { | ||
type: "object", | ||
properties: { | ||
core: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
libpath: { | ||
type: "string", | ||
}, | ||
baseType: { | ||
type: "string", | ||
}, | ||
format: { | ||
type: "string", | ||
}, | ||
importType: { | ||
type: "string", | ||
}, | ||
runAs: { | ||
type: "array", | ||
items: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
required: ["libpath", "baseType", "format", "importType", "runAs"], | ||
}, | ||
}, | ||
server: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
libpath: { | ||
type: "string", | ||
}, | ||
baseType: { | ||
type: "string", | ||
}, | ||
format: { | ||
type: "string", | ||
}, | ||
importType: { | ||
type: "string", | ||
}, | ||
runAs: { | ||
type: "array", | ||
items: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
required: ["libpath", "baseType", "format", "importType", "runAs"], | ||
}, | ||
}, | ||
web: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
libpath: { | ||
type: "string", | ||
}, | ||
baseType: { | ||
type: "string", | ||
}, | ||
format: { | ||
type: "string", | ||
}, | ||
importType: { | ||
type: "string", | ||
}, | ||
runAs: { | ||
type: "array", | ||
items: { | ||
type: "string", | ||
}, | ||
}, | ||
}, | ||
required: ["libpath", "baseType", "format", "importType", "runAs"], | ||
}, | ||
}, | ||
vendor: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
}, | ||
enabled: { | ||
type: "boolean", | ||
}, | ||
}, | ||
required: ["name", "enabled"], | ||
}, | ||
}, | ||
plugin: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
}, | ||
enabled: { | ||
type: "boolean", | ||
}, | ||
}, | ||
required: ["name", "enabled"], | ||
}, | ||
}, | ||
}, | ||
required: ["core", "server", "web", "vendor", "plugin"], | ||
}, | ||
}, | ||
required: ["dependencies"], | ||
} | ||
|
||
export default { | ||
$schema: "http://json-schema.org/draft-07/schema#", | ||
$id: "https://terwer.space/zhi-schema.json", | ||
...schema, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
export default { | ||
dependencies: { | ||
core: [ | ||
{ | ||
libpath: "core/plugin-system/plugin.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow", "Siyuan_Browser"], | ||
order: 1, | ||
}, | ||
{ | ||
libpath: "core/plugin-system/zhi-plugin-loader.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow", "Siyuan_Browser"], | ||
order: 2, | ||
}, | ||
], | ||
server: [ | ||
{ | ||
libpath: "server/electron/index.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 3, | ||
}, | ||
{ | ||
libpath: "server/cmd/index.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 4, | ||
}, | ||
{ | ||
libpath: "server/infra/index.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 5, | ||
}, | ||
{ | ||
libpath: "server/custom/start.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 6, | ||
}, | ||
], | ||
web: [], | ||
vendor: [], | ||
plugin: [], | ||
}, | ||
blog: { | ||
server: { | ||
post: "3333", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
export default { | ||
dependencies: { | ||
core: [ | ||
{ | ||
libpath: "server/infra/index.cjs", | ||
baseType: "ZhiTheme", | ||
format: "cjs", | ||
importType: "require", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 0, | ||
}, | ||
{ | ||
libpath: "core/plugin-system/plugin.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow", "Siyuan_Browser"], | ||
order: 1, | ||
}, | ||
{ | ||
libpath: "core/plugin-system/zhi-plugin-loader.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow", "Siyuan_Browser"], | ||
order: 2, | ||
}, | ||
], | ||
server: [ | ||
{ | ||
libpath: "server/electron/index.js", | ||
baseType: "ZhiTheme", | ||
format: "esm", | ||
importType: "import", | ||
runAs: ["Siyuan_MainWindow"], | ||
order: 3, | ||
}, | ||
], | ||
web: [], | ||
vendor: [], | ||
plugin: [], | ||
}, | ||
blog: { | ||
server: { | ||
post: "3333", | ||
}, | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
packages/zhi-core/src/core/npm/node_modules/.package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 8 additions & 6 deletions
14
packages/zhi-core/src/core/npm/node_modules/@siyuan-community/zhi-device/README.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/zhi-core/src/core/npm/node_modules/@siyuan-community/zhi-device/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.