-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy patharguments-builder.config.ts
129 lines (128 loc) · 2.98 KB
/
arguments-builder.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { defineConfig } from "@iringo/arguments-builder";
export default defineConfig({
output: {
surge: {
path: "./dist/DualSubs.YouTube.sgmodule",
transformEgern: {
enable: true,
path: "./dist/DualSubs.YouTube.yaml",
},
},
loon: {
path: "./dist/DualSubs.YouTube.plugin",
},
customItems: [
{
path: "./dist/DualSubs.YouTube.snippet",
template: "./template/quantumultx.handlebars",
},
{
path: "./dist/DualSubs.YouTube.stoverride",
template: "./template/stash.handlebars",
},
],
dts: {
isExported: true,
path: "./src/types.d.ts",
},
boxjsSettings: {
path: "./template/boxjs.settings.json",
scope: "@DualSubs.YouTube.Settings",
},
},
args: [
{
key: "Type",
name: "[字幕] 启用类型",
defaultValue: "Official",
type: "string",
options: [
{
key: "Official",
label: "官方字幕(合成器)",
},
{
key: "Translate",
label: "翻译字幕(翻译器)",
},
],
description: "请选择要使用的字幕,双语字幕将使用您选择类型呈现。",
},
{
key: "Types",
name: "[歌词] 启用类型",
defaultValue: ["Translate"],
type: "array",
options: [
{
key: "Translate",
label: "翻译歌词(翻译器)",
},
],
description: "请选择要添加的歌词选项,如果为多选,则会自动决定提供的歌词类型。",
},
{
key: "AutoCC",
name: "[字幕] 自动显示",
defaultValue: true,
type: "boolean",
description: "是否总是自动开启字幕显示。",
},
{
key: "Position",
name: "[字幕] 主语言(源语言)字幕位置",
defaultValue: "Forward",
type: "string",
options: [
{
key: "Forward",
label: "上面(第一行)",
},
{
key: "Reverse",
label: "下面(第二行)",
},
],
description: "主语言(源语言)字幕的显示位置。",
},
{
key: "Vendor",
name: "[翻译器] 服务商API",
defaultValue: "Google",
type: "string",
description: "请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。",
options: [
{
key: "Google",
label: "Google Translate",
},
{
key: "Microsoft",
label: "Microsoft Translator(需填写API)",
},
],
},
{
key: "ShowOnly",
name: "[翻译器] 只显示“自动翻译”字幕",
defaultValue: false,
type: "boolean",
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: "全部" },
],
},
],
});