Skip to content

Commit

Permalink
Merge pull request #320 from ccagml/main
Browse files Browse the repository at this point in the history
3.2.1
  • Loading branch information
ccagml authored May 2, 2024
2 parents f5cb636 + 92625ca commit 0e1fe15
Show file tree
Hide file tree
Showing 18 changed files with 688 additions and 587 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# version 3.2.1

- 搬砖工地修改题目AC后在对应 1,4,7,14,28,60 天数后需要复习
- 通过配置 bricksReviewDay 可以设置需要复习的天数
- 一些按钮选项是否显示相关判断的上下文修改

# version 3.1.22

- 修改预览题目、题解的样式加载方式,原本的方式在高版本的 VS Code 会加载失败 401 错误,导致界面很乱
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
| 配置项名称<font color=red>显示红色为与官方配置有不同的地方</font> | 描述 | 默认值 |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| <font color=red>leetcode-problem-rating.hideSolved</font> | 指定是否要隐藏已解决的问题 | `false` |
| <font color=red>leetcode-problem-rating.bricksReviewDay</font> | 设置x天后复习 | [1,4,7,14,28,60 ] |
| <font color=red>leetcode-problem-rating.showLocked` </font> | 指定是否显示付费题目,只有付费账户才可以打开付费题目 | `false` |
| <font color=red>leetcode-problem-rating.defaultLanguage</font> | 指定答题时使用的默认语言,可选语言有:`bash`, `c`, `cpp`, `csharp`, `golang`, `java`, `javascript`, `kotlin`, `mysql`, `php`, `python`,`python3`,`ruby`, `rust`, `scala`, `swift`, `typescript` | `N/A` |
| <font color=red>leetcode-problem-rating.useWsl</font> | 指定是否启用 WSL | `false` |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 64 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode-problem-rating",
"displayName": "LeetCode",
"description": "%main.description%",
"version": "3.1.22",
"version": "3.2.1",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down Expand Up @@ -129,11 +129,6 @@
"title": "%main.contributes.commands.lcpr.setBricksType6.title%",
"category": "LeetCode"
},
{
"command": "lcpr.setBricksType7",
"title": "%main.contributes.commands.lcpr.setBricksType7.title%",
"category": "LeetCode"
},
{
"command": "lcpr.searchProblem",
"title": "%main.contributes.commands.lcpr.searchProblem.title%",
Expand Down Expand Up @@ -258,6 +253,16 @@
"command": "lcpr.removeBricksHave",
"title": "%main.contributes.commands.lcpr.removeBricksHave.title%",
"icon": "$(remove)"
},
{
"command": "lcpr.removeBricksNeedReviewDay",
"title": "%main.contributes.commands.lcpr.removeBricksNeedReviewDay.title%",
"icon": "$(remove)"
},
{
"command": "lcpr.removeBricksNeedReviewDayNode",
"title": "%main.contributes.commands.lcpr.removeBricksNeedReviewDayNode.title%",
"icon": "$(remove)"
}
],
"viewsContainers": {
Expand Down Expand Up @@ -399,77 +404,87 @@
"view/item/context": [
{
"command": "lcpr.previewProblem",
"when": "view == QuestionExplorer && viewItem =~ /problem*/",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/",
"group": "leetcode@1"
},
{
"command": "lcpr.showProblem",
"when": "view == QuestionExplorer && viewItem =~ /problem*/",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/",
"group": "leetcode@2"
},
{
"command": "lcpr.getHelp",
"when": "view == QuestionExplorer && viewItem =~ /problem*/",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/",
"group": "leetcode@3"
},
{
"submenu": "lcpr.setBricksType_sub",
"when": "view == QuestionExplorer && viewItem =~ /problem*/",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/",
"group": "leetcode@4"
},
{
"command": "lcpr.addQidToGroup",
"when": "view == QuestionExplorer && viewItem =~ /problem*/",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/",
"group": "leetcode@5"
},
{
"command": "lcpr.addFavorite",
"when": "view == QuestionExplorer && viewItem == problem",
"when": "view == QuestionExplorer && viewItem =~ /leaf*/ && viewItem != leaf#10511#",
"group": "inline"
},
{
"command": "lcpr.removeFavorite",
"when": "view == QuestionExplorer && viewItem == problem-favorite",
"when": "view == QuestionExplorer && viewItem == leaf#10511#",
"group": "inline"
},
{
"command": "lcpr.previewProblem",
"when": "view == BricksExplorer && viewItem =~ /nodebricks*/",
"when": "view == BricksExplorer && viewItem =~ /leaf*/",
"group": "leetcode@1"
},
{
"command": "lcpr.showProblem",
"when": "view == BricksExplorer && viewItem =~ /nodebricks*/",
"when": "view == BricksExplorer && viewItem =~ /leaf*/",
"group": "leetcode@2"
},
{
"command": "lcpr.getHelp",
"when": "view == BricksExplorer && viewItem =~ /nodebricks*/",
"when": "view == BricksExplorer && viewItem =~ /leaf*/",
"group": "leetcode@3"
},
{
"submenu": "lcpr.setBricksType_sub1",
"when": "view == BricksExplorer && viewItem =~ /nodebricks*/ ",
"when": "view == BricksExplorer && viewItem =~ /leaf*/ ",
"group": "leetcode@4"
},
{
"command": "lcpr.addQidToGroup",
"when": "view == BricksExplorer && viewItem != nodebricksdiy && viewItem != brickshave && viewItem != brickstoday && viewItem != bricksdiy",
"when": "view == BricksExplorer && viewItem =~ /leaf*/ ",
"group": "leetcode@5"
},
{
"command": "lcpr.removeBricksHave",
"when": "view == BricksExplorer && viewItem == brickshave",
"when": "view == BricksExplorer && viewItem == cc#20100#",
"group": "leetcode@5"
},
{
"command": "lcpr.removeQidFromGroup",
"when": "view == BricksExplorer && viewItem == nodebricksdiy",
"when": "view == BricksExplorer && viewItem == leaf#20401#",
"group": "leetcode@5"
},
{
"command": "lcpr.removeBrickGroup",
"when": "view == BricksExplorer && viewItem == bricksdiy",
"when": "view == BricksExplorer && viewItem == cc#20400#",
"group": "leetcode@1"
},
{
"command": "lcpr.removeBricksNeedReviewDay",
"when": "view == BricksExplorer && viewItem == cc#20110#",
"group": "leetcode@1"
},
{
"command": "lcpr.removeBricksNeedReviewDayNode",
"when": "view == BricksExplorer && viewItem == leaf#20111#",
"group": "leetcode@1"
}
],
Expand Down Expand Up @@ -514,27 +529,27 @@
"group": "leetcode@1"
},
{
"command": "lcpr.setBricksType6",
"command": "lcpr.setBricksType1",
"group": "leetcode@2"
},
{
"command": "lcpr.setBricksType5",
"command": "lcpr.setBricksType2",
"group": "leetcode@3"
},
{
"command": "lcpr.setBricksType4",
"command": "lcpr.setBricksType3",
"group": "leetcode@4"
},
{
"command": "lcpr.setBricksType3",
"command": "lcpr.setBricksType4",
"group": "leetcode@5"
},
{
"command": "lcpr.setBricksType2",
"command": "lcpr.setBricksType5",
"group": "leetcode@6"
},
{
"command": "lcpr.setBricksType1",
"command": "lcpr.setBricksType6",
"group": "leetcode@7"
}
],
Expand All @@ -544,27 +559,27 @@
"group": "leetcode@1"
},
{
"command": "lcpr.setBricksType6",
"command": "lcpr.setBricksType1",
"group": "leetcode@2"
},
{
"command": "lcpr.setBricksType5",
"command": "lcpr.setBricksType2",
"group": "leetcode@3"
},
{
"command": "lcpr.setBricksType4",
"command": "lcpr.setBricksType3",
"group": "leetcode@4"
},
{
"command": "lcpr.setBricksType3",
"command": "lcpr.setBricksType4",
"group": "leetcode@5"
},
{
"command": "lcpr.setBricksType2",
"command": "lcpr.setBricksType5",
"group": "leetcode@6"
},
{
"command": "lcpr.setBricksType1",
"command": "lcpr.setBricksType6",
"group": "leetcode@7"
}
]
Expand Down Expand Up @@ -1039,6 +1054,22 @@
"scope": "application",
"description": "%main.contributes.configuration.properties.leetcode-problem-rating.enableTimerBar.description%"
},
"leetcode-problem-rating.editor.bricksReviewDay": {
"type": "array",
"default": [
1,
4,
7,
14,
28,
60
],
"items": {
"type": "number"
},
"scope": "application",
"description": "%main.contributes.configuration.properties.leetcode-problem-rating.editor.bricksNextDay.description%"
},
"leetcode-problem-rating.editor.shortcuts": {
"type": "array",
"default": [
Expand Down
17 changes: 9 additions & 8 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
"main.contributes.commands.lcpr.deleteAllCache.title": "deleteAllCache",
"main.contributes.commands.lcpr.showProblem.title": "showProblem",
"main.contributes.commands.lcpr.previewProblem.title": "previewProblem",
"main.contributes.commands.lcpr.setBricksType0.title": "settings do not appear",
"main.contributes.commands.lcpr.setBricksType1.title": "Appears after 14 days",
"main.contributes.commands.lcpr.setBricksType2.title": "Appears after 7 days",
"main.contributes.commands.lcpr.setBricksType3.title": "Appears after 5 days",
"main.contributes.commands.lcpr.setBricksType4.title": "Appears after 3 days",
"main.contributes.commands.lcpr.setBricksType5.title": "Appears after 2 days",
"main.contributes.commands.lcpr.setBricksType6.title": "Appears after 1 days",
"main.contributes.commands.lcpr.setBricksType7.title": "Appears after 1 days",
"main.contributes.commands.lcpr.setBricksType0.title": "Appears after 1 days",
"main.contributes.commands.lcpr.setBricksType1.title": "Appears after 2 days",
"main.contributes.commands.lcpr.setBricksType2.title": "Appears after 4 days",
"main.contributes.commands.lcpr.setBricksType3.title": "Appears after 7 days",
"main.contributes.commands.lcpr.setBricksType4.title": "Appears after 14 days",
"main.contributes.commands.lcpr.setBricksType5.title": "Appears after 28 days",
"main.contributes.commands.lcpr.setBricksType6.title": "Appears after 60 days",
"main.contributes.commands.lcpr.searchProblem.title": "Search Problem",
"main.contributes.commands.lcpr.getHelp.title": "getHelp",
"main.contributes.commands.lcpr.testSolution.title": "Test in LeetCode",
Expand All @@ -37,6 +36,8 @@
"main.contributes.commands.lcpr.newBrickGroup.title": "new category",
"main.contributes.commands.lcpr.addQidToGroup.title": "add to category",
"main.contributes.commands.lcpr.removeBrickGroup.title": "delete category",
"main.contributes.commands.lcpr.removeBricksNeedReviewDay.title": "delete day",
"main.contributes.commands.lcpr.removeBricksNeedReviewDayNode.title": "delete node",
"main.contributes.commands.lcpr.removeBricksHave.title": "remove bricks have",
"main.contributes.commands.lcpr.removeQidFromGroup.title": "remove this",
"main.contributes.commands.lcpr.includeTemplates.title": "insert template",
Expand Down
Loading

0 comments on commit 0e1fe15

Please sign in to comment.