add js script "Notify" (#802)
This commit is contained in:
3
repo/js/Notify/main.js
Normal file
3
repo/js/Notify/main.js
Normal file
@@ -0,0 +1,3 @@
|
||||
(async function () {
|
||||
notification.Send(settings.content);
|
||||
})();
|
||||
8
repo/js/Notify/manifest.json
Normal file
8
repo/js/Notify/manifest.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "发送通知",
|
||||
"version": "1.0",
|
||||
"description": "发送通知,可以在调度器中使用。",
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
8
repo/js/Notify/settings.json
Normal file
8
repo/js/Notify/settings.json
Normal file
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"name": "content",
|
||||
"type": "input-text",
|
||||
"label": "通知内容",
|
||||
"default": "请前往 JS脚本自定义设置 中修改内容。"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user