Skip to content

Commit b6a8cd5

Browse files
committed
update
1 parent ab84338 commit b6a8cd5

File tree

5 files changed

+42
-30
lines changed

5 files changed

+42
-30
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## version 2.2.1
2+
3+
- 优化登录提示
4+
- 新增工地功能
5+
16
## version 2.1.1
27

38
- 修复切换账号时竞赛分显示问题

README.md

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
- 增加一键提交全部题目测试用例功能
2222
- 尝试不需要额外安装 node 环境,使用 vscode 自带的 node 版本
2323
-[zerotrac.github.io](https://zerotrac.github.io/leetcode_problem_rating/data.json)获取数据进行缓存,数据更新时,可以尝试使用 deleteAllCache,重新获取数据
24-
- 将所有提供的测试用例单独存放到代码下方,一键提交也会收集这部分的测试用例(简单去重())
24+
- [新增区块测试用例](#区块测试用例)
25+
- [新增搬砖功能(重复练习?)](#搬砖功能的说明)
2526

2627
# 关于本项目
2728

@@ -76,32 +77,38 @@
7677
- 做题目计时
7778
- 还没出分前周赛题目显示 未评分(需要官网获取最新几期的题目编号) -->
7879

79-
<!-- ## 新增在工作目录存放数据
80+
## 搬砖功能的说明
8081

81-
### 目录说明
82+
### 功能设想
8283

83-
> workspace/ 工作目录
84-
>
85-
> > .lcpr_data/ 存数据
86-
> >
87-
> > > remake/ 备注
88-
> > >
89-
> > > > 题目内部编号.json 根据 qid 备注的信息
90-
> >
91-
> > > bricks.json
84+
- 重复做 x 天之前的题目(正确提交后 x 天再做本题)
85+
- 重复练习可以提高水平?(待定验证)
86+
- 有什么学习方法可以与我交流,这个方法我也不知道有没有用
87+
88+
### 新增在工作目录存放数据
89+
90+
- 目录说明
91+
92+
> workspace/ 工作目录
93+
>
94+
> > .lcpr_data/ 存数据
95+
> >
96+
> > > bricks.json
9297
9398
### bricks.json 存放格式
9499

95100
```
96101
{
97-
[qid] = {
98-
fid = "xxx", // 页面显示的编号可能有空格之类的
99-
submit_time = [], // 上次提交的时间
100-
type = 1, // 0:(不需要搬砖), 1:(14天搬砖simple), 2:(7天后搬砖simple_error), 3:(5天后搬砖simple_time), 4:(3天后搬砖(time_limit)), 5:(2天后搬砖(medium)), 6(1天后搬砖(hard))
101-
}
102-
}
103-
104-
``` -->
102+
version: 1,
103+
all_bricks: {
104+
[qid]: {
105+
submit_time: [], // 上次提交的时间
106+
type: 1, // 类型
107+
},
108+
},
109+
};
110+
111+
```
105112

106113
## 运行条件
107114

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-leetcode-problem-rating",
33
"displayName": "LeetCode problem rating",
44
"description": "为LeetCode题目难度进行打分。避免只有简单、中等、困难三种难度",
5-
"version": "2.1.1",
5+
"version": "2.2.1",
66
"author": "ccagml",
77
"publisher": "ccagml",
88
"license": "MIT",
@@ -100,37 +100,37 @@
100100
},
101101
{
102102
"command": "lcpr.setBricksType1",
103-
"title": "设置14天后出现在工地",
103+
"title": "最后一次提交在14天前,出现在工地",
104104
"category": "LeetCode"
105105
},
106106
{
107107
"command": "lcpr.setBricksType2",
108-
"title": "设置7天后出现在工地",
108+
"title": "最后一次提交在7天前,出现在工地",
109109
"category": "LeetCode"
110110
},
111111
{
112112
"command": "lcpr.setBricksType3",
113-
"title": "设置5天后出现在工地",
113+
"title": "最后一次提交在5天前,出现在工地",
114114
"category": "LeetCode"
115115
},
116116
{
117117
"command": "lcpr.setBricksType4",
118-
"title": "设置3天后出现在工地",
118+
"title": "最后一次提交在3天前,出现在工地",
119119
"category": "LeetCode"
120120
},
121121
{
122122
"command": "lcpr.setBricksType5",
123-
"title": "设置2天后出现在工地",
123+
"title": "最后一次提交在2天前,出现在工地",
124124
"category": "LeetCode"
125125
},
126126
{
127127
"command": "lcpr.setBricksType6",
128-
"title": "设置1天后出现在工地",
128+
"title": "最后一次提交在1天前,出现在工地",
129129
"category": "LeetCode"
130130
},
131131
{
132132
"command": "lcpr.setBricksType7",
133-
"title": "设置1天后出现在工地",
133+
"title": "最后一次提交在1天前,出现在工地",
134134
"category": "LeetCode"
135135
},
136136
{

src/dao/bricksDao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { BricksType } from "../model/Model";
1515

1616
// let bricks_json = {
1717
// version: 1,
18-
// bricks: {
18+
// all_bricks: {
1919
// [qid]: {
2020
// fid: "xxx", // 页面显示的编号可能有空格之类的
2121
// submit_time: [], // 上次提交的时间

src/service/BricksDataService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class BricksDataService implements TreeDataProvider<BricksNode> {
105105
}
106106

107107
public async setBricksType(node: BricksNode, type) {
108-
let qid: string = node.id.toString();
108+
let qid: string = node.qid.toString();
109109
bricksDao.setTypeByQid(qid, type);
110110
await bricksDataService.refresh();
111111
}

0 commit comments

Comments
 (0)