Skip to content

Commit

Permalink
fix: template
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Oct 23, 2024
1 parent 73d20e3 commit f709b77
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### 🔄 Other Changes
* 打包器由 `rollup` 更改为 `rspack`
### 🛠️ Bug Fixes
* 修复 `Surge` 模块内置`参数面板`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dualsubs/addon",
"version": "1.0.1",
"version": "1.0.2",
"organizationName": "🍿️ DualSubs",
"displayName": "🍿️ DualSubs: ➕ AddOn",
"description": "DualSubs 额外插件",
Expand Down
1 change: 1 addition & 0 deletions template/egern.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: |-
{{#each (split (@package 'description') "\n")}}
{{{this}}}
{{/each}}
切换为微软翻译并自动刷新Token
open_url: "{{@package 'openUrl'}}"
author: |-
{{#each (@package 'contributors')}}
Expand Down
2 changes: 1 addition & 1 deletion template/shadowrocket.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!name = {{@package 'displayName'}}
#!desc = {{inline (@package 'description')}}
#!desc = {{inline (@package 'description')}}\n切换为微软翻译并自动刷新Token
#!openUrl = {{@package 'openUrl'}}
#!author = {{@package 'contributors'}}
#!homepage = {{@package 'homepage'}}
Expand Down
2 changes: 1 addition & 1 deletion template/stash.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "{{@package 'displayName'}} (Microsoft Translate)"
name: "{{@package 'displayName'}} (Microsoft Translate)"
desc: |-
{{#each (split (@package 'description') "\n")}}
{{{this}}}
Expand Down
8 changes: 4 additions & 4 deletions template/surge.handlebars
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!name = {{@package 'displayName'}}
#!desc = {{inline (@package 'description')}}
#!name = {{@package 'displayName'}} (Microsoft Translate)"
#!desc = {{inline (@package 'description')}}\n切换为微软翻译并自动刷新Token
#!openUrl = {{@package 'openUrl'}}
#!author = {{@package 'contributors'}}
#!homepage = {{@package 'homepage'}}
#!icon = {{@package 'icon'}}
#!category = {{@package 'organizationName'}}
#!date = {{now "yyyy-MM-dd HH:mm:ss"}}
#!version = {{@package 'version'}}
#!arguments=cronexp:*/10 * * * *
#!arguments=cronexp:"*/10 * * * *"
#!arguments-desc=cronexp: * * * * * *\n │ │ │ │ │ └── 星期几 (0 - 6, 星期天 = 0)\n │ │ │ │ └──── 月份 (1 - 12)\n │ │ │ └────── 天数 (1 - 31)\n │ │ └──────── 小时 (0 - 23)\n │ └────────── 分钟 (0 - 59)\n └──────────── [可选] 秒 (0 - 59)

[Script]
🍿️ 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
🍿️ 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 comments on commit f709b77

Please sign in to comment.