Skip to content

Commit b5d44ce

Browse files
authored
Improve the experience of switch endpoint (#92)
1 parent 424ba0c commit b5d44ce

File tree

17 files changed

+93
-61
lines changed

17 files changed

+93
-61
lines changed

package.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,40 @@
4343
"commands": [
4444
{
4545
"command": "leetcode.deleteCache",
46-
"title": "Delete cache",
46+
"title": "Delete Cache",
4747
"category": "LeetCode"
4848
},
4949
{
5050
"command": "leetcode.toogleLeetCodeCn",
51-
"title": "Switch endpoint",
51+
"title": "Switch Endpoint",
5252
"category": "LeetCode",
53-
"icon": "resources/cn.png"
53+
"icon": {
54+
"light": "resources/light/endpoint.svg",
55+
"dark": "resources/dark/endpoint.svg"
56+
}
5457
},
5558
{
5659
"command": "leetcode.signin",
57-
"title": "Sign in",
60+
"title": "Sign In",
5861
"category": "LeetCode",
5962
"icon": {
60-
"light": "resources/light/signin.png",
61-
"dark": "resources/dark/signin.png"
63+
"light": "resources/light/signin.svg",
64+
"dark": "resources/dark/signin.svg"
6265
}
6366
},
6467
{
6568
"command": "leetcode.signout",
66-
"title": "Sign out",
69+
"title": "Sign Out",
6770
"category": "LeetCode"
6871
},
6972
{
7073
"command": "leetcode.selectSessions",
71-
"title": "Select session",
74+
"title": "Select Session",
7275
"category": "LeetCode"
7376
},
7477
{
7578
"command": "leetcode.createSession",
76-
"title": "Create new session",
79+
"title": "Create New Session",
7780
"category": "LeetCode"
7881
},
7982
{
@@ -87,14 +90,17 @@
8790
},
8891
{
8992
"command": "leetcode.showProblem",
90-
"title": "Show problem",
93+
"title": "Show Problem",
9194
"category": "LeetCode"
9295
},
9396
{
9497
"command": "leetcode.searchProblem",
9598
"title": "Search Problem",
9699
"category": "LeetCode",
97-
"icon": "resources/search.png"
100+
"icon": {
101+
"light": "resources/light/search.svg",
102+
"dark": "resources/dark/search.svg"
103+
}
98104
},
99105
{
100106
"command": "leetcode.testSolution",

resources/cn.png

-4.8 KB
Binary file not shown.

resources/dark/endpoint.svg

Lines changed: 6 additions & 0 deletions
Loading

resources/dark/refresh.svg

Lines changed: 6 additions & 1 deletion
Loading

resources/dark/search.svg

Lines changed: 6 additions & 0 deletions
Loading

resources/dark/signin.png

-395 Bytes
Binary file not shown.

resources/dark/signin.svg

Lines changed: 7 additions & 0 deletions
Loading

resources/light/endpoint.svg

Lines changed: 6 additions & 0 deletions
Loading

resources/light/refresh.svg

Lines changed: 6 additions & 1 deletion
Loading

resources/light/search.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)