-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
106 lines (106 loc) · 2.57 KB
/
package.json
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
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "youdao",
"version": "0.1.0",
"title": "有道翻译",
"description": "基于有道智云的快速翻译工具",
"icon": "icon.png",
"author": "Wayne Wu <[email protected]> (https://wayne-wu.com)",
"keywords": [
"raycast",
"extension",
"raycast extension",
"tools",
"translation",
"translate",
"youdao",
"translation tools"
],
"categories": [
"Developer Tools",
"Other"
],
"license": "MIT",
"commands": [
{
"name": "index",
"title": "有道翻译",
"subtitle": "快速翻译工具",
"description": "基于有道智云的快速翻译工具",
"mode": "view",
"keywords": [
"yd"
]
}
],
"preferences": [
{
"name": "app_key",
"type": "textfield",
"required": true,
"title": "APP Key",
"description": "你可以从这里获取到 APP KEY https://ai.youdao.com/console/",
"placeholder": "请输入有道智云 APP Key"
},
{
"name": "app_secret",
"type": "password",
"required": true,
"title": "APP Secret",
"description": "你可以从这里获取到 APP Secret at https://ai.youdao.com/console/",
"placeholder": "请输入有道智云 APP Secret"
},
{
"name": "locale",
"type": "dropdown",
"title": "语言",
"required": false,
"data": [
{
"title": "跟随系统",
"value": "auto"
},
{
"title": "中文",
"value": "zh-CN"
},
{
"title": "English",
"value": "en"
},
{
"title": "关闭本地化/Disable localization",
"value": "disable"
}
],
"default": "auto",
"description": "请选择界面语言,更改语言后请重新运行"
}
],
"dependencies": {
"@raycast/api": "^1.31.0",
"abort-controller": "^3.0.0",
"i18n": "^0.14.2",
"node-fetch": "^3.2.3",
"os-locale": "^6.0.2",
"play-sound": "^1.1.5"
},
"devDependencies": {
"@types/i18n": "^0.13.2",
"@types/play-sound": "^1.1.0",
"@types/react": "^17.0.28",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"prettier": "^2.5.1",
"react-devtools": "^4.19.2",
"typescript": "^4.4.3"
},
"scripts": {
"build": "ray build -e dist -o dist",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint"
}
}