Skip to content

Commit f709b77

Browse files
committed
fix: template
1 parent 73d20e3 commit f709b77

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
### 🔄 Other Changes
2-
* 打包器由 `rollup` 更改为 `rspack`
1+
### 🛠️ Bug Fixes
2+
* 修复 `Surge` 模块内置`参数面板`

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dualsubs/addon",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"organizationName": "🍿️ DualSubs",
55
"displayName": "🍿️ DualSubs: ➕ AddOn",
66
"description": "DualSubs 额外插件",

template/egern.handlebars

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: |-
33
{{#each (split (@package 'description') "\n")}}
44
{{{this}}}
55
{{/each}}
6+
切换为微软翻译并自动刷新Token
67
open_url: "{{@package 'openUrl'}}"
78
author: |-
89
{{#each (@package 'contributors')}}

template/shadowrocket.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!name = {{@package 'displayName'}}
2-
#!desc = {{inline (@package 'description')}}
2+
#!desc = {{inline (@package 'description')}}\n切换为微软翻译并自动刷新Token
33
#!openUrl = {{@package 'openUrl'}}
44
#!author = {{@package 'contributors'}}
55
#!homepage = {{@package 'homepage'}}

template/stash.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "{{@package 'displayName'}} (Microsoft Translate)"
1+
name: "{{@package 'displayName'}} (Microsoft Translate)"
22
desc: |-
33
{{#each (split (@package 'description') "\n")}}
44
{{{this}}}

template/surge.handlebars

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#!name = {{@package 'displayName'}}
2-
#!desc = {{inline (@package 'description')}}
1+
#!name = {{@package 'displayName'}} (Microsoft Translate)"
2+
#!desc = {{inline (@package 'description')}}\n切换为微软翻译并自动刷新Token
33
#!openUrl = {{@package 'openUrl'}}
44
#!author = {{@package 'contributors'}}
55
#!homepage = {{@package 'homepage'}}
66
#!icon = {{@package 'icon'}}
77
#!category = {{@package 'organizationName'}}
88
#!date = {{now "yyyy-MM-dd HH:mm:ss"}}
99
#!version = {{@package 'version'}}
10-
#!arguments=cronexp:*/10 * * * *
10+
#!arguments=cronexp:"*/10 * * * *"
1111
#!arguments-desc=cronexp: * * * * * *\n │ │ │ │ │ └── 星期几 (0 - 6, 星期天 = 0)\n │ │ │ │ └──── 月份 (1 - 12)\n │ │ │ └────── 天数 (1 - 31)\n │ │ └──────── 小时 (0 - 23)\n │ └────────── 分钟 (0 - 59)\n └──────────── [可选] 秒 (0 - 59)
1212

1313
[Script]
14-
🍿️ DualSubs.AddOn.Microsoft.Translate = type=cron, cronexp="{{{cronexp}}}", timeout=60, script-path=https://github.com/DualSubs/AddOn/releases/download/v{{@package 'version'}}/Microsoft.Translate.bundle.js
14+
🍿️ DualSubs.AddOn.Microsoft.Translate = type=cron, cronexp="\{{{cronexp}}}", timeout=60, script-path=https://github.com/DualSubs/AddOn/releases/download/v{{@package 'version'}}/Microsoft.Translate.bundle.js

0 commit comments

Comments
 (0)