-
Notifications
You must be signed in to change notification settings - Fork 1
/
arguments-builder.config.ts
64 lines (64 loc) · 1.75 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
import { defineConfig } from "@iringo/arguments-builder";
export default defineConfig({
output: {
surge: { path: "./dist/News.sgmodule" },
loon: { path: "./dist/News.plugin" },
customItems: [
{
path: "./dist/News.snippet",
template: "./template/quantumultx.handlebars",
},
{
path: "./dist/News.stoverride",
template: "./template/stash.handlebars",
},
{
path: "./dist/News.srmodule",
template: "./template/shadowrocket.handlebars",
},
],
dts: { isExported: true, path: "./src/interface.ts" },
boxjsSettings: {
path: "./template/boxjs.settings.json",
scope: "@iRingo.News.Settings",
},
},
args: [
{
key: "Switch",
name: "总功能开关",
defaultValue: true,
type: "boolean",
description: "是否启用此APP修改。",
exclude: ["surge", "loon"],
},
{
key: "CountryCode",
name: "国家或地区代码",
defaultValue: "US",
type: "string",
options: [
{ key: "AUTO", label: "🇺🇳自动(跟随地区检测结果)" },
{ key: "CN", label: "🇨🇳中国大陆" },
{ key: "HK", label: "🇭🇰香港" },
{ key: "TW", label: "🇹🇼台湾" },
{ key: "SG", label: "🇸🇬新加坡" },
{ key: "US", label: "🇺🇸美国" },
{ key: "JP", label: "🇯🇵日本" },
{ key: "AU", label: "🇦🇺澳大利亚" },
{ key: "GB", label: "🇬🇧英国" },
{ key: "KR", label: "🇰🇷韩国" },
{ key: "CA", label: "🇨🇦加拿大" },
{ key: "IE", label: "🇮🇪爱尔兰" },
],
description: "不同国家或地区提供的内容或有差别。",
},
{
key: "NewsPlusUser",
name: "[搜索]显示News+内容",
defaultValue: true,
type: "boolean",
description: "是否显示News+搜索结果。",
},
],
});