-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 3.62 KB
/
package.json
File metadata and controls
137 lines (137 loc) · 3.62 KB
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
130
131
132
133
134
135
136
137
{
"name": "intelitrans",
"displayName": "智译",
"description": "vscode 翻译插件",
"version": "2.0.2",
"repository": "https://github.com/wdk-docs/intelitrans",
"publisher": "wohugb",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"icon": "images/icon.png",
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "extension.intelitrans",
"title": "intelitrans"
}
],
"keybindings": [
{
"command": "extension.intelitrans",
"key": "Ctrl+'",
"mac": "Cmd+'",
"when": "editorTextFocus"
}
],
"configuration": {
"type": "object",
"title": "智译",
"properties": {
"intelitrans.api_platform": {
"type": "string",
"enum": [
"youdao",
"baidu"
],
"markdownEnumDescriptions": [
"*有道翻译平台*",
"*百度翻译开放平台*"
],
"default": "youdao",
"description": "选择翻译平台"
},
"intelitrans.baidu.domain": {
"type": "string",
"default": "it",
"enum": [
"it",
"finance",
"machinery",
"senimed",
"novel",
"academic",
"aerospace",
"wiki",
"news",
"law",
"contract"
],
"markdownEnumDescriptions": [
"**信息技术领域**",
"**金融财经领域**",
"**机械制造领域**",
"**生物医药领域**",
"**网络文学领域**",
"**学术论文领域**",
"**航空航天领域**",
"**人文社科领域**",
"**新闻资讯领域**",
"**法律法规领域**",
"**合同领域**"
],
"description": "百度翻译领域类型"
},
"intelitrans.baidu.appid": {
"type": "string",
"default": "",
"description": "百度翻译应用ID"
},
"intelitrans.baidu.appSecret": {
"type": "string",
"default": "",
"description": "百度翻译应用密钥"
},
"intelitrans.youdao.appKey": {
"type": "string",
"default": "",
"description": "有道翻译应用ID"
},
"intelitrans.youdao.appSecret": {
"type": "string",
"default": "",
"description": "有道翻译应用密钥"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/qs": "^6.9.7",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "^3.0.0",
"ts-loader": "^9.4.3",
"typescript": "^5.1.3",
"webpack": "^5.85.0",
"webpack-cli": "^5.1.1"
},
"dependencies": {
"axios": "^1.4.0",
"event-stream": "^4.0.1",
"qs": "^6.11.2"
}
}