Skip to content

Commit

Permalink
feat: Console.logLevel
Browse files Browse the repository at this point in the history
Update arguments-builder.config.ts
Update boxjs.settings.json
Update response.dev.js
Update request.dev.js
Update database.mjs
Update response.js
Update request.js
Update setENV.mjs
Update types.d.ts
  • Loading branch information
VirgilClyne committed Dec 10, 2024
1 parent b6407d9 commit 69357f7
Show file tree
Hide file tree
Showing 12 changed files with 320 additions and 446 deletions.
154 changes: 17 additions & 137 deletions arguments-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export default defineConfig({
label: "翻译歌词(翻译器)",
},
],
description:
"请选择要添加的歌词选项,如果为多选,则会自动决定提供的歌词类型。",
description: "请选择要添加的歌词选项,如果为多选,则会自动决定提供的歌词类型。",
},
{
key: "AutoCC",
Expand All @@ -87,140 +86,6 @@ export default defineConfig({
],
description: "主语言(源语言)字幕的显示位置。",
},
{
key: "Languages[0]",
name: "[翻译器] 主语言(源语言)",
defaultValue: "AUTO",
type: "string",
boxJsType: "selects",
description:
"仅当源语言识别不准确时更改此选项。",
options: [
{
"key": "AUTO",
"label": "自动 - Automatic"
},
{
"key": "ZH",
"label": "中文(自动)"
},
{
"key": "ZH-HANS",
"label": "中文(简体)"
},
{
"key": "ZH-HK",
"label": "中文(香港)"
},
{
"key": "ZH-HANT",
"label": "中文(繁体)"
},
{
"key": "EN",
"label": "English - 英语(自动)"
},
{
"key": "ES",
"label": "Español - 西班牙语(自动)"
},
{
"key": "JA",
"label": "日本語 - 日语"
},
{
"key": "KO",
"label": "한국어 - 韩语"
},
{
"key": "DE",
"label": "Deutsch - 德语"
},
{
"key": "FR",
"label": "Français - 法语"
},
{
"key": "TR",
"label": "Türkçe - 土耳其语"
},
{
"key": "KM",
"label": "ភាសាខ្មែរ - 高棉语"
}
],
},
{
key: "Languages[1]",
name: "[翻译器] 副语言(目标语言)",
defaultValue: "ZH",
type: "string",
boxJsType: "selects",
description:
"请指定翻译歌词的目标语言。",
options: [
{
"key": "ZH",
"label": "中文(自动)"
},
{
"key": "ZH-HANS",
"label": "中文(简体)"
},
{
"key": "ZH-HK",
"label": "中文(香港)"
},
{
"key": "ZH-HANT",
"label": "中文(繁体)"
},
{
"key": "EN",
"label": "English - 英语(自动)"
},
{
"key": "EN-US",
"label": "英语(美国)"
},
{
"key": "ES",
"label": "Español - 西班牙语(自动)"
},
{
"key": "ES-ES",
"label": "Español - 西班牙语"
},
{
"key": "ES-419",
"label": "西班牙语(拉丁美洲)"
},
{
"key": "JA",
"label": "日本語 - 日语"
},
{
"key": "KO",
"label": "한국어 - 韩语"
},
{
"key": "DE",
"label": "Deutsch - 德语"
},
{
"key": "FR",
"label": "Français - 法语"
},
{
"key": "TR",
"label": "Türkçe - 土耳其语"
},
{
"key": "KM",
"label": "ភាសាខ្មែរ - 高棉语"
}
],
},
{
key: "Vendor",
name: "[翻译器] 服务商API",
Expand All @@ -243,7 +108,22 @@ export default defineConfig({
name: "[翻译器] 只显示“自动翻译”字幕",
defaultValue: false,
type: "boolean",
description: "是否仅显示“自动翻译”后的字幕,不显示源语言字幕。",
description: "是否仅显示“自动翻译”字幕,不显示源语言字幕。",
},
{
key: "LogLevel",
name: "[调试] 日志等级",
type: "string",
defaultValue: "WARN",
description: "选择脚本日志的输出等级,低于所选等级的日志将全部输出。",
options: [
{ key: "OFF", label: "关闭" },
{ key: "ERROR", label: "❌ 错误" },
{ key: "WARN", label: "⚠️ 警告" },
{ key: "INFO", label: "ℹ️ 信息" },
{ key: "DEBUG", label: "🅱️ 调试" },
{ key: "ALL", label: "全部" },
],
},
],
});
Loading

0 comments on commit 69357f7

Please sign in to comment.