@mytools-all/mytools-demo 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/icon.svg +3 -3
- package/package.json +40 -37
- package/plugin.json +32 -29
package/README.md
CHANGED
|
@@ -27,3 +27,7 @@ MyTools 统一示例:复制和读取剪贴板、打开链接、读取系统路
|
|
|
27
27
|
## 作为开发案例
|
|
28
28
|
|
|
29
29
|
完整入门见 [插件开发指南](https://github.com/mytools-all/mytools/blob/main/docs/plugin-development/README.md) 与 [Demo 逐步说明](https://github.com/mytools-all/mytools/blob/main/docs/plugin-development/demo-walkthrough.md)。源码中五个按钮共用 call/catch,不依赖宿主源码。浏览器预览没有桥接,不能使用系统能力;真实验证请安装到宿主。
|
|
30
|
+
|
|
31
|
+
## MyTools 兼容范围
|
|
32
|
+
|
|
33
|
+
版本 0.1.2 声明支持 MyTools >=0.2.0 <0.3.0(0.2.x 稳定版),插件 API 为 v1。主程序超出范围时应更新插件或使用受支持的主程序版本。旧版主程序可能不识别此声明,请先升级到提供兼容检查的 MyTools。
|
package/icon.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
-
<rect width="64" height="64" rx="12" fill="#4c6ef5"/>
|
|
3
|
-
<text x="32" y="42" font-size="30" text-anchor="middle" fill="#fff" font-family="sans-serif">◆</text>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#4c6ef5"/>
|
|
3
|
+
<text x="32" y="42" font-size="30" text-anchor="middle" fill="#fff" font-family="sans-serif">◆</text>
|
|
4
4
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mytools-all/mytools-demo",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MyTools 统一示例:复制和读取剪贴板、打开链接、读取系统路径、列出应用。",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.html",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"author": "MyTools Contributors",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/mytools-all/mytools-demo.git"
|
|
12
|
-
},
|
|
13
|
-
"homepage": "https://github.com/mytools-all/mytools-demo#readme",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/mytools-all/mytools-demo/issues"
|
|
16
|
-
},
|
|
17
|
-
"publishConfig": {
|
|
18
|
-
"access": "public",
|
|
19
|
-
"registry": "https://registry.npmjs.org/"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"plugin.json",
|
|
23
|
-
"*.html",
|
|
24
|
-
"*.css",
|
|
25
|
-
"*.svg",
|
|
26
|
-
"*.png",
|
|
27
|
-
"vendor/",
|
|
28
|
-
"LICENSE",
|
|
29
|
-
"THIRD_PARTY.md",
|
|
30
|
-
"README.md",
|
|
31
|
-
"*.js",
|
|
32
|
-
"*.LICENSE"
|
|
33
|
-
],
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@mytools-all/mytools-demo",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "MyTools 统一示例:复制和读取剪贴板、打开链接、读取系统路径、列出应用。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.html",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "MyTools Contributors",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/mytools-all/mytools-demo.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/mytools-all/mytools-demo#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/mytools-all/mytools-demo/issues"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"plugin.json",
|
|
23
|
+
"*.html",
|
|
24
|
+
"*.css",
|
|
25
|
+
"*.svg",
|
|
26
|
+
"*.png",
|
|
27
|
+
"vendor/",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"THIRD_PARTY.md",
|
|
30
|
+
"README.md",
|
|
31
|
+
"*.js",
|
|
32
|
+
"*.LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"mytools": ">=0.2.0 <0.3.0"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"test": "node --test"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/plugin.json
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mytools-demo",
|
|
3
|
-
"pluginName": "MyTools Demo",
|
|
4
|
-
"description": "MyTools 统一示例:复制和读取剪贴板、打开链接、读取系统路径、列出应用。",
|
|
5
|
-
"author": "MyTools",
|
|
6
|
-
"version": "0.1.
|
|
7
|
-
"main": "index.html",
|
|
8
|
-
"icon": "icon.svg",
|
|
9
|
-
"pluginType": "app",
|
|
10
|
-
"features": [
|
|
11
|
-
{
|
|
12
|
-
"code": "demo",
|
|
13
|
-
"explain": "演示 MyTools bridge",
|
|
14
|
-
"cmds": [
|
|
15
|
-
"mytools-demo",
|
|
16
|
-
"demo",
|
|
17
|
-
"示例插件"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"apiVersion": 1,
|
|
22
|
-
"capabilities": [
|
|
23
|
-
"clipboard.write",
|
|
24
|
-
"clipboard.read",
|
|
25
|
-
"shell.open",
|
|
26
|
-
"system.path",
|
|
27
|
-
"app.list"
|
|
28
|
-
]
|
|
29
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "mytools-demo",
|
|
3
|
+
"pluginName": "MyTools Demo",
|
|
4
|
+
"description": "MyTools 统一示例:复制和读取剪贴板、打开链接、读取系统路径、列出应用。",
|
|
5
|
+
"author": "MyTools",
|
|
6
|
+
"version": "0.1.2",
|
|
7
|
+
"main": "index.html",
|
|
8
|
+
"icon": "icon.svg",
|
|
9
|
+
"pluginType": "app",
|
|
10
|
+
"features": [
|
|
11
|
+
{
|
|
12
|
+
"code": "demo",
|
|
13
|
+
"explain": "演示 MyTools bridge",
|
|
14
|
+
"cmds": [
|
|
15
|
+
"mytools-demo",
|
|
16
|
+
"demo",
|
|
17
|
+
"示例插件"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"apiVersion": 1,
|
|
22
|
+
"capabilities": [
|
|
23
|
+
"clipboard.write",
|
|
24
|
+
"clipboard.read",
|
|
25
|
+
"shell.open",
|
|
26
|
+
"system.path",
|
|
27
|
+
"app.list"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"mytools": ">=0.2.0 <0.3.0"
|
|
31
|
+
}
|
|
32
|
+
}
|