Skip to content

Commit 313248d

Browse files
committed
update docs & optimize hints
1 parent 5c1626c commit 313248d

18 files changed

+154
-121
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
"typescript.tsc.autoDetect": "off",
1111
"cSpell.words": [
1212
"qrcode"
13-
]
13+
],
14+
"files.associations": {
15+
"iostream": "cpp"
16+
}
1417
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 更新日志
22

3-
[English Docs](https://github.com/jinzcdev/vscode-pintia/blob/main/docs/CHANGELOG_en-US.md)
3+
[English Docs](./docs/CHANGELOG_en-US.md)
44

55
---
66

README.md

Lines changed: 74 additions & 61 deletions
Large diffs are not rendered by default.

docs/CHANGELOG_en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
[中文文档](https://github.com/jinzcdev/vscode-pintia/blob/main/CHANGELOG.md)
3+
[中文文档](../CHANGELOG.md)
44

55
---
66

docs/README_en-US.md

Lines changed: 54 additions & 49 deletions
Large diffs are not rendered by default.

docs/imgs/note.png

49.1 KB
Loading

docs/imgs/preview.jpg

-230 KB
Binary file not shown.

docs/imgs/preview.png

131 KB
Loading

docs/imgs/search-whole.png

-74 KB
Loading

docs/imgs/shortcuts.png

14 KB
Loading

docs/imgs/signin.png

28.9 KB
Loading

docs/imgs/snippets.jpg

-135 KB
Binary file not shown.

docs/imgs/snippets.png

124 KB
Loading

l10n/bundle.l10n.zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"Use WeChat QRCode to login": "使用微信二维码登录",
3838
"{0} Pintia Cookie": "{0} Cookie 登录",
3939
"Use Pintia cookie to login": "使用拼题A Cookie 登录",
40-
"Sign in ...": "登录中...",
40+
"Waiting for signin...": "等待登录中...",
4141
"Successfully logged in as {0}": "成功登录账户 {0}",
4242
"The PTA workspace folder is not opened in VS Code, would you like to open it? (You can configure the default opening method in the settings)": "VS Code 中未打开 PTA 工作区文件夹,您要打开它吗?(可在设置中配置默认打开方式)",
4343
"Default location": "默认位置",

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@
414414
"Test",
415415
"Preview"
416416
],
417+
"uniqueItems": true,
418+
"enumItemLabels": [
419+
"%configuration.pintia.editor.shortcuts.label.submit%",
420+
"%configuration.pintia.editor.shortcuts.label.test%",
421+
"%configuration.pintia.editor.shortcuts.label.preview%"
422+
],
417423
"enumDescriptions": [
418424
"%configuration.pintia.editor.shortcuts.submit%",
419425
"%configuration.pintia.editor.shortcuts.test%",
@@ -519,7 +525,7 @@
519525
"title": "%walkthroughs.signIn.title%",
520526
"description": "%walkthroughs.signIn.description%",
521527
"media": {
522-
"image": "docs/imgs/signin-whole.jpg",
528+
"image": "docs/imgs/signin.png",
523529
"altText": "%walkthroughs.signIn.media.altText%"
524530
},
525531
"completionEvents": [
@@ -531,7 +537,7 @@
531537
"title": "%walkthroughs.previewProblem.title%",
532538
"description": "%walkthroughs.previewProblem.description%",
533539
"media": {
534-
"image": "docs/imgs/preview.jpg",
540+
"image": "docs/imgs/preview.png",
535541
"altText": "%walkthroughs.previewProblem.media.altText%"
536542
}
537543
},
@@ -579,7 +585,7 @@
579585
"title": "%walkthroughs.addTemplates.title%",
580586
"description": "%walkthroughs.addTemplates.description%",
581587
"media": {
582-
"image": "docs/imgs/snippets.jpg",
588+
"image": "docs/imgs/snippets.png",
583589
"altText": "%walkthroughs.addTemplates.media.altText%"
584590
}
585591
},
@@ -630,4 +636,4 @@
630636
"node-fetch": "^2.6.7",
631637
"qrcode": "1.5.4"
632638
}
633-
}
639+
}

package.nls.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
"configuration.pintia.autoCheckIn": "Specify whether to automatically check in Pintia's education supermarket when the Pintia Extension is activated.",
3131
"configuration.pintia.defaultLanguage": "Default language for solving the problems.",
3232
"configuration.pintia.editor.shortcuts": "Customize the shortcuts in editors.",
33+
"configuration.pintia.editor.shortcuts.label.submit": "Submit",
34+
"configuration.pintia.editor.shortcuts.label.test": "Test",
35+
"configuration.pintia.editor.shortcuts.label.preview": "Preview",
3336
"configuration.pintia.editor.shortcuts.submit": "Submit your answer to pintia.",
3437
"configuration.pintia.editor.shortcuts.test": "Test your answer with customized test cases.",
3538
"configuration.pintia.editor.shortcuts.preview": "Preview the problem in the webview.",

package.nls.zh-cn.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
"configuration.pintia.autoCheckIn": "指定是否在激活插件时自动签到 PTA 教育商店。",
3131
"configuration.pintia.defaultLanguage": "设置答题时默认使用的编程语言。",
3232
"configuration.pintia.editor.shortcuts": "自定义编码时的编辑器快捷键。",
33+
"configuration.pintia.editor.shortcuts.label.submit": "提交",
34+
"configuration.pintia.editor.shortcuts.label.test": "测试",
35+
"configuration.pintia.editor.shortcuts.label.preview": "预览题目",
3336
"configuration.pintia.editor.shortcuts.submit": "提交你的代码到 PTA 判题器。",
3437
"configuration.pintia.editor.shortcuts.test": "使用自定义的测试样例测试你的代码。",
3538
"configuration.pintia.editor.shortcuts.preview": "在 Webview 中预览题目。",
@@ -49,7 +52,7 @@
4952
"walkthroughs.overview.description": "PTA Extension in VS Code\n[Open in GitHub](command:pintia.openExtensionRepo)",
5053
"walkthroughs.overview.media.markdown": "docs/walkthroughs/Overview.md",
5154
"walkthroughs.signIn.title": "登录 拼题A",
52-
"walkthroughs.signIn.description": "使用微信扫描二维码登录 Pintia(PTA)\n[登录](command:pintia.signIn)",
55+
"walkthroughs.signIn.description": "使用微信扫描二维码登录拼题A (Pintia)\n[登录](command:pintia.signIn)",
5356
"walkthroughs.signIn.media.altText": "登录拼题A",
5457
"walkthroughs.previewProblem.title": "预览/Code 习题",
5558
"walkthroughs.previewProblem.description": "登录您的帐户后,单击列表中的题目标题以预览其内容",
@@ -58,7 +61,7 @@
5861
"walkthroughs.submitTestSolution.description": "单击编辑器中的快捷方式 ``Submit/Test`` 提交或测试你的代码",
5962
"walkthroughs.submitTestSolution.media.altText": "提交与测试代码",
6063
"walkthroughs.searchProblem.title": "搜索习题",
61-
"walkthroughs.searchProblem.description": "您可以通过以下两种方式搜索问题:\n1. 打开 [命令面板](command:workbench.action.showCommands) 并运行命令\n``Pintia: Search for an Exercise Problem``\n[Search for an Exercise Problem](command:pintia.searchProblem)\n2. 单击 PTA 视图顶部的 ``搜索`` 图标",
64+
"walkthroughs.searchProblem.description": "您可以通过以下两种方式搜索问题:\n1. 打开 [命令面板](command:workbench.action.showCommands) 并运行命令\n``PTA: Search Problem``\n[Search Problem](command:pintia.searchProblem)\n2. 单击 PTA 视图顶部的 ``搜索`` 图标",
6265
"walkthroughs.searchProblem.media.altText": "搜索习题",
6366
"walkthroughs.testCustomSolution.title": "测试自定义的样例",
6467
"walkthroughs.testCustomSolution.description": "键入 ``ptatest`` 以快速添加自定义测试样例\n点击 ``Test custom sample N`` 以测试你的样例",

src/ptaManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class PtaManager extends EventEmitter {
5959

6060
await vscode.window.withProgress({
6161
location: vscode.ProgressLocation.Notification,
62-
title: l10n.t("Sign in ..."),
62+
title: l10n.t("Waiting for signin..."),
6363
cancellable: false
6464
}, async (p: vscode.Progress<{ message?: string; increment?: number }>) => {
6565
return new Promise<void>(async (resolve: () => void, reject: (e: Error) => void): Promise<void> => {

0 commit comments

Comments
 (0)