-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (174 loc) · 4.45 KB
/
package.json
File metadata and controls
174 lines (174 loc) · 4.45 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"name": "nowcoderac",
"displayName": "NowCoderAC",
"description": "Solve nowcoder contest problems in VSCode fully",
"version": "0.3.2",
"icon": "resources/icon.png",
"publisher": "dogdie233",
"repository": {
"type": "git",
"url": "https://github.com/dogdie233/vscode-nowcoderac.git"
},
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"contributes": {
"authentication": [
{
"id": "nowcoderac",
"label": "NowCoder"
}
],
"commands": [
{
"command": "nowcoderac.createContestSpace",
"title": "创建比赛工作空间",
"category": "NowCoder"
},
{
"command": "nowcoderac.refreshProblemList",
"title": "刷新题目列表",
"icon": "$(refresh)",
"category": "NowCoder"
},
{
"command": "nowcoderac.refreshProblemContent",
"title": "刷新题目内容",
"icon": "$(refresh)",
"category": "NowCoder"
},
{
"command": "nowcoderac.openProblem",
"title": "打开题目",
"icon": "$(file)",
"category": "NowCoder"
},
{
"command": "nowcoderac.createCodeFile",
"title": "创建代码文件",
"icon": "$(file-code)",
"category": "NowCoder"
},
{
"command": "nowcoderac.submitSolution",
"title": "提交解答",
"icon": "$(debug-start)",
"category": "NowCoder"
},
{
"command": "nowcoderac.refreshSubmissionList",
"title": "刷新提交列表",
"icon": "$(refresh)",
"category": "NowCoder"
},
{
"command": "nowcoderac.refreshRealtimeRank",
"title": "刷新实时排名",
"icon": "$(refresh)",
"category": "NowCoder"
},
{
"command": "nowcoderac.login",
"title": "登录牛客网",
"category": "NowCoder"
},
{
"command": "nowcoderac.logout",
"title": "登出牛客网",
"category": "NowCoder"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "nowcoderac-explorer",
"title": "牛客竞赛",
"icon": "resources/icon.png"
}
]
},
"views": {
"nowcoderac-explorer": [
{
"id": "nowcoderac-problems",
"name": "题目列表"
},
{
"id": "nowcoderac-submissions",
"name": "我的提交"
},
{
"id": "nowcoderac-rankings",
"name": "排名"
}
]
},
"menus": {
"view/title": [
{
"command": "nowcoderac.refreshProblemList",
"when": "view == nowcoderac-problems",
"group": "navigation"
},
{
"command": "nowcoderac.refreshSubmissionList",
"when": "view == nowcoderac-submissions",
"group": "navigation"
},
{
"command": "nowcoderac.refreshRealtimeRank",
"when": "view == nowcoderac-rankings",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "nowcoderac.openProblem",
"when": "view == nowcoderac-problems",
"group": "inline@1"
},
{
"command": "nowcoderac.createCodeFile",
"when": "view == nowcoderac-problems",
"group": "inline@2"
},
{
"command": "nowcoderac.submitSolution",
"when": "view == nowcoderac-problems",
"group": "inline@3"
}
]
}
},
"scripts": {
"compile": "npm run check-types && node esbuild.js",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"vscode:prepublish": "npm run package",
"package": "npm run check-types && node esbuild.js --production"
},
"devDependencies": {
"@types/cheerio": "^0.22.35",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.3.2",
"esbuild": "^0.25.2",
"eslint": "^9.16.0",
"typescript": "^5.7.2"
},
"dependencies": {
"axios": "^1.8.4",
"cheerio": "^1.0.0-rc.12"
}
}