-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
603 lines (603 loc) · 16.4 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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
{
"name": "vscode-luogu",
"displayName": "vscode-luogu",
"description": "Solve Luogu Problems in VSCode",
"icon": "resources/img/luogu-normal.png",
"version": "4.11.1",
"license": "MIT",
"publisher": "yltx",
"engines": {
"vscode": "^1.25.0"
},
"homepage": "https://github.com/yltx/vscode-luogu-developer/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/yltx/vscode-luogu-developer.git"
},
"bugs": {
"url": "https://github.com/yltx/vscode-luogu-developer/issues",
"email": "mvp.bxbl@gmail.com"
},
"categories": [
"Other",
"Snippets"
],
"keywords": [
"luogu",
"algorithm",
"interview",
"OI",
"洛谷"
],
"preview": true,
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"extensionKind": [
"workspace"
],
"contributes": {
"commands": [
{
"command": "luogu.signin",
"title": "登录洛谷账号(Signin)",
"category": "Luogu"
},
{
"command": "luogu.sumbitCode",
"title": "提交代码(Submit this code)",
"category": "Luogu",
"icon": "$(luogu-paper-plane)"
},
{
"command": "luogu.searchProblem",
"title": "查看题目(Search for problem)",
"category": "Luogu"
},
{
"command": "luogu.solution",
"title": "查看题解(Search for solution)",
"category": "Luogu"
},
{
"command": "luogu.fate",
"title": "打卡(Fate)",
"category": "Luogu"
},
{
"command": "luogu.benben",
"title": "犇犇(Benben)",
"category": "Luogu"
},
{
"command": "luogu.userInfo",
"title": "账户信息(Userinfo)",
"category": "Luogu"
},
{
"command": "luogu.about",
"title": "关于(About)",
"category": "Luogu"
},
{
"command": "luogu.selectLanguage",
"title": "设置默认语言(Select default language)",
"category": "Luogu"
},
{
"command": "luogu.lastRecord",
"title": "查看最近一次评测(Show last record)",
"category": "Luogu"
},
{
"command": "luogu.contest",
"title": "查看比赛(Show contest)",
"category": "Luogu"
},
{
"command": "luogu.random",
"title": "根据题目难度和来源随机跳题(Show random problem)",
"category": "Luogu"
},
{
"command": "luogu.paintboard",
"title": "查看冬日绘板(Show paintboard)",
"category": "Luogu"
},
{
"command": "luogu.traininglist",
"title": "查看题单广场(Show training list)",
"category": "Luogu"
},
{
"command": "luogu.traindetails",
"title": "查看题单详情(Show training details)",
"category": "Luogu"
},
{
"command": "luogu.myarticle.refresh",
"title": "刷新文章列表",
"icon": "$(refresh)"
},
{
"command": "luogu.myarticle.setShowMode",
"title": "显示/隐藏文章"
},
{
"command": "luogu.myarticle.rename",
"title": "修改标题"
},
{
"command": "luogu.myarticle.setCategory",
"title": "修改文章分类"
},
{
"command": "luogu.myarticle.delete",
"title": "删除文章"
},
{
"command": "luogu.myarticle.setPromoteStatus",
"title": "申请/撤回全站推荐"
},
{
"command": "luogu.myarticle.setSolutionFor",
"title": "修改关联的题目"
},
{
"command": "luogu.myarticle.new",
"title": "创建文章",
"icon": "$(add)"
},
{
"command": "luogu.myarticle.copyLink",
"title": "复制链接"
},
{
"command": "luogu.myarticle.openInBrowser",
"title": "在浏览器中打开"
},
{
"command": "luogu.record",
"title": "评测记录"
},
{
"command": "luogu.openUntitledTextDocument",
"title": "打开新文档"
}
],
"keybindings": [
{
"command": "luogu.signin",
"key": "Ctrl+Alt+G L"
},
{
"command": "luogu.searchProblem",
"key": "Ctrl+Alt+G P"
},
{
"command": "luogu.sumbitCode",
"key": "Ctrl+Alt+G S"
},
{
"command": "luogu.fate",
"key": "Ctrl+Alt+G F"
},
{
"command": "luogu.benben",
"key": "Ctrl+Alt+G B"
},
{
"command": "luogu.userInfo",
"key": "Ctrl+Alt+G U"
},
{
"command": "luogu.about",
"key": "Ctrl+Alt+G A"
},
{
"command": "luogu.selectLanguage",
"key": "Ctrl+Alt+G Ctrl+Alt+S"
},
{
"command": "luogu.contest",
"key": "Ctrl+Alt+G C"
},
{
"command": "luogu.random",
"key": "Ctrl+Alt+G R"
},
{
"command": "luogu.traininglist",
"key": "Ctrl+Alt+G T"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "luogu",
"title": "洛谷",
"icon": "resources/img/luogu-very-small.png"
}
]
},
"views": {
"luogu": [
{
"id": "luogu.unloginSidebar",
"name": "未登录",
"when": "!luoguLoginStatus"
},
{
"id": "luogu.history",
"name": "最近浏览",
"when": "luoguLoginStatus"
},
{
"id": "luogu.myarticle",
"name": "我的专栏",
"when": "luoguLoginStatus"
}
]
},
"viewsWelcome": [
{
"view": "luogu.unloginSidebar",
"contents": "你需要登录你的洛谷账号。\n[登录](command:luogu.signin)"
}
],
"menus": {
"view/title": [
{
"command": "luogu.myarticle.refresh",
"when": "view == luogu.myarticle",
"group": "navigation@4"
},
{
"command": "luogu.myarticle.new",
"when": "view == luogu.myarticle",
"group": "navigation@6"
}
],
"view/item/context": [
{
"command": "luogu.myarticle.rename",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@3"
},
{
"command": "luogu.myarticle.setShowMode",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@5"
},
{
"command": "luogu.myarticle.setCategory",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@4"
},
{
"command": "luogu.myarticle.delete",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@7"
},
{
"command": "luogu.myarticle.setPromoteStatus",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@6"
},
{
"command": "luogu.myarticle.setSolutionFor",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@5"
},
{
"command": "luogu.myarticle.copyLink",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@8"
},
{
"command": "luogu.myarticle.openInBrowser",
"when": "view == luogu.myarticle && viewItem == luogu.article.articleitem",
"group": "navigation@9"
},
{
"command": "luogu.sumbitCode",
"when": "view == luogu.history && viewItem == luogu.history.problemItem",
"group": "inline"
}
],
"commandPalette": [
{
"command": "luogu.myarticle.refresh",
"when": "false"
},
{
"command": "luogu.myarticle.rename",
"when": "false"
},
{
"command": "luogu.myarticle.setShowMode",
"when": "false"
},
{
"command": "luogu.myarticle.setCategory",
"when": "false"
},
{
"command": "luogu.myarticle.delete",
"when": "false"
},
{
"command": "luogu.myarticle.setPromoteStatus",
"when": "false"
},
{
"command": "luogu.myarticle.new",
"when": "false"
},
{
"command": "luogu.myarticle.setSolutionFor",
"when": "false"
},
{
"command": "luogu.myarticle.copyLink",
"when": "false"
},
{
"command": "luogu.myarticle.openInBrowser",
"when": "false"
},
{
"command": "luogu.record",
"when": "false"
},
{
"command": "luogu.openUntitledTextDocument",
"when": "false"
}
]
},
"configuration": {
"title": "Luogu",
"properties": {
"luogu.defaultLanguageVersion": {
"type": "object",
"properties": {
"C++": {
"type": "string",
"enum": [
"C++14 (GCC 9)",
"C++14 (GCC 9) with O2",
"C++98",
"C++98 with O2",
"C++11",
"C++11 with O2",
"C++14",
"C++14 with O2",
"C++17",
"C++17 with O2",
"C++20",
"C++20 with O2"
],
"description": "C++ 语言版本"
},
"C": {
"type": "string",
"enum": [
"C",
"C with O2"
],
"description": "C 语言版本"
},
"Pascal": {
"type": "string",
"enum": [
"Pascal",
"Pascal with O2"
],
"description": "Pascal 语言版本"
},
"Python": {
"type": "string",
"enum": [
"Python 3",
"PyPy 3"
],
"description": "Python 语言版本"
},
"Java": {
"type": "string",
"enum": [
"Java 8",
"Java 21"
],
"description": "Java 语言版本"
},
"Rust": {
"type": "string",
"enum": [
"Rust",
"Rust with O2"
],
"description": "Rust 语言版本"
},
"Haskell": {
"type": "string",
"enum": [
"Haskell",
"Haskell with O2"
],
"description": "Haskell 语言版本"
},
"OCaml": {
"type": "string",
"enum": [
"OCaml",
"OCaml with O2"
],
"description": "OCaml 语言版本"
}
},
"description": "提交时使用的默认语言版本。\n编辑时支持 vscode 智能提示。"
},
"luogu.guessProblemID": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "尝试通过 CPH 配置或文件名猜测 PID,不再提示输入。"
},
"luogu.alwaysUseDefaultLanguageVersion": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "提交时总是使用默认语言版本,不再提示选择。"
},
"luogu.defaultProblemSet": {
"type": "string",
"enum": [
"洛谷题库",
"入门与面试",
"Codeforces",
"APOJ",
"AtCoder",
"UVA"
],
"scope": "window",
"description": "Default problemset for random choose problem."
},
"luogu.defaultDifficulty": {
"type": "string",
"enum": [
"暂无评定",
"入门",
"普及-",
"普及/提高-",
"普及+/提高",
"提高+/省选-",
"省选/NOI-",
"NOI/NOI+/CTSC"
],
"scope": "window",
"description": "Default difficulty for random choose problem."
},
"luogu.showSelectProblemsetHint": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Show select problemset hint when randomize."
},
"luogu.showSelectDifficultyHint": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Show select difficulty hint when randomize."
},
"luogu.userIconCacheTime": {
"type": "integer",
"default": 21600000,
"scope": "window",
"description": "The time of cache user icon, in seconds."
},
"luogu.showRecordPanel": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Show record Webview panel when opening a record."
},
"luogu.maxHistoryLength": {
"type": "integer",
"default": 256,
"description": "最近浏览记录的最大长度,过长的将自动删除。不应过大,否则会影响性能。"
},
"luogu.cphStyle": {
"type": "string",
"enum": [
"ProblemID",
"ProblemName",
"ProblemIDwithProblemName"
],
"default": "ProblemID",
"description": "传送至 CPH 时,CPH 创建文件时的文件名形式。"
}
}
},
"icons": {
"luogu-paper-plane": {
"description": "paper plane",
"default": {
"fontPath": "dist/icon.woff",
"fontCharacter": "\\E000"
}
}
}
},
"scripts": {
"pack": "vsce package --allow-star-activation -o vscode-luogu.vsix",
"vscode:prepublish": "npm run package",
"compile": "webpack --mode development",
"prepackage": "del dist/",
"watch": "webpack --mode development --watch",
"package": "webpack --mode production",
"lint": "eslint .",
"fix": "eslint . --fix",
"prettier": "npx prettier . -w"
},
"devDependencies": {
"@types/copy-paste": "^1.1.33",
"@types/dateformat": "^5.0.2",
"@types/jquery": "^3.5.25",
"@types/katex": "^0.16.5",
"@types/markdown-it": "^13.0.4",
"@types/node": "^20.8.9",
"@types/parse-path": "^7.0.3",
"@types/picomatch": "^2.3.4",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/vscode": "^1.25.0",
"@types/ws": "^8.5.8",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vscode/vsce": "^2.32.0",
"@vscode/webview-ui-toolkit": "^1.2.2",
"css-loader": "^6.11.0",
"css-minimizer-webpack-plugin": "^7.0.0",
"del-cli": "^5.1.0",
"eslint": "^8.50.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.35.0",
"prettier": "^3.2.5",
"style-loader": "^3.3.4",
"ts-loader": "^9.5.1",
"typescript": "^5.2.2",
"webfont": "^11.2.26",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@vscode/markdown-it-katex": "^1.0.3",
"axios": "^1.6.0",
"bufferutil": "^4.0.8",
"copy-paste": "^1.5.3",
"dateformat": "^5.0.3",
"hast-util-from-html": "^2.0.2",
"jquery": "^3.7.1",
"lg-markdown-processor": "github:Mr-Python-in-China/lg-markdown-processor",
"markdown-it": "^13.0.2",
"markdown-it-highlightjs": "^4.0.1",
"parse-path": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-highlight": "^7.0.0",
"rehype-react": "^8.0.0",
"unist-util-visit": "^5.0.0",
"utf-8-validate": "^5.0.10",
"ws": "^8.18.0"
},
"author": "",
"packageManager": "npm@*"
}