diff --git a/plugins/today-gold-price/index.html b/plugins/today-gold-price/index.html new file mode 100644 index 00000000..eafd800a --- /dev/null +++ b/plugins/today-gold-price/index.html @@ -0,0 +1,893 @@ + + + + + + + 今日金价 + + + + + +
+
+
正在获取金价数据...
+
+ + +
+ + +
+ +
+
黄金当前价格
+
+ -- + 元/克 +
+
+ --% +
+
+
+
+
开盘
+
--
+
+
+
最高
+
--
+
+
+
最低
+
--
+
+
+
昨收
+
--
+
+
+
+ 数据每分钟自动刷新 + + + + +
+
+ + +
+ + + +
+ + +
+ +
+
+ + + + + \ No newline at end of file diff --git a/plugins/today-gold-price/logo.png b/plugins/today-gold-price/logo.png new file mode 100644 index 00000000..587fca61 Binary files /dev/null and b/plugins/today-gold-price/logo.png differ diff --git a/plugins/today-gold-price/package.json b/plugins/today-gold-price/package.json new file mode 100644 index 00000000..063b71f6 --- /dev/null +++ b/plugins/today-gold-price/package.json @@ -0,0 +1,8 @@ +{ + "name": "today-gold-price", + "version": "1.0.0", + "description": "今日金价 - 实时查看黄金价格走势", + "main": "index.html", + "author": "tao", + "license": "MIT" +} \ No newline at end of file diff --git a/plugins/today-gold-price/plugin.json b/plugins/today-gold-price/plugin.json new file mode 100644 index 00000000..3ecf4c50 --- /dev/null +++ b/plugins/today-gold-price/plugin.json @@ -0,0 +1,20 @@ +{ + "name": "today-gold-price", + "title": "今日金价", + "description": "实时查看黄金价格走势,包含当前价格、涨跌幅及走势图表", + "version": "1.0.0", + "main": "index.html", + "logo": "logo.png", + "preload": "preload.js", + "features": [ + { + "code": "gold-price", + "explain": "查看今日黄金实时价格", + "cmds": [ + "gold", + "price", + "金价" + ] + } + ] +} \ No newline at end of file diff --git a/plugins/today-gold-price/preload.js b/plugins/today-gold-price/preload.js new file mode 100644 index 00000000..ac451eff --- /dev/null +++ b/plugins/today-gold-price/preload.js @@ -0,0 +1,14 @@ +/** + * ZTools Preload Script + * 可以在此文件内调用 nodejs、 electron 提供的 api。 + */ + +// 例如:暴露基础的 fs 和 path 模块(如果需要) +// const fs = require("node:fs"); +// const path = require("node:path"); + +// window.services = { +// // 在这里添加你的自定义 API +// }; + +console.log('ZTools Gold Price Plugin Preload Loaded');