Skip to content

Commit e0099df

Browse files
authored
feat: new ui options (#162)
1 parent 0c84c53 commit e0099df

File tree

242 files changed

+3466
-3351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+3466
-3351
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,34 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**问题描述**
11-
简单的描述一下你遇到的问题.
10+
11+
简单的描述一下你遇到的问题
1212

1313
**复现问题**
14+
1415
复现问题的步骤:
15-
1. 在某个地方 '...'
16-
2. 进行了什么操作 '....'
16+
17+
1. 在某个地方 ...
18+
2. 进行了什么操作 ...
1719
3. ...
1820

1921
**期望的结果**
20-
你期望的结果是什么.
22+
23+
你期望的结果
2124

2225
**问题截图**
23-
如果可能的话,提供下遇到问题时的截图以便排查.
26+
27+
如果可能的话, 提供下遇到问题时的截图以便排查
2428

2529
**环境信息:**
26-
- 操作系统: [e.g. iOS]
27-
- vscode版本 [e.g. 1.63.2]
28-
- vscode-cnb版本 [e.g. 0.0.13]
30+
31+
- 操作系统: [e.g. macOS]
32+
- VSCode版本 [e.g. 1.00.0]
33+
- 博客园扩展版本 [e.g. 1.0.0]
2934

3035
**任何其他有助于排查问题的信息**
36+
3137
在这里填写任何其他有助于排查问题的信息

.github/ISSUE_TEMPLATE/feature-request.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: "新功能建议"
2-
description: 给vscode-cnb提一个新功能建议
2+
description: 给博客园扩展提一个新功能建议
33
labels:
44
- "feature"
55

66
body:
77
- type: dropdown
88
id: affected-ui-area
99
attributes:
10-
label: ui上的哪部分与此新功能有关?
10+
label: UI 上的哪个部分与此新功能有关?
1111
options:
1212
- 侧边栏控制台
1313
- 侧边栏控制台随笔列表
@@ -18,8 +18,8 @@ body:
1818
- 侧边栏控制台随笔列表右键上下文菜单
1919
- 侧边栏控制台分类列表右键上下文菜单
2020
- 设置面板
21-
- markdown编辑器右键上下文菜单
22-
- markdown编辑器工具栏
21+
- Markdown 编辑器右键上下文菜单
22+
- Markdown 编辑器工具栏
2323
- 侧边栏文件浏览右键上下文菜单
2424
- 其他
2525
multiple: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
out
22
dist
33
node_modules
4-
.vscode-test/
4+
.vscode-test
55
*.vsix
66
.DS_Store
77
.idea

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"preLaunchTask": "${defaultBuildTask}",
1515
"env": {
1616
"NODE_ENV": "Development",
17-
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
17+
"NODE_TLS_REJECT_UNAUTHORIZED": "1"
1818
}
1919
},
2020
{

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"CLIENTSECRET",
1818
"fluentui",
1919
"iconfont",
20-
"ings",
20+
"ing",
2121
"nbsp",
2222
"OAUTHCLIENTID",
2323
"OAUTHCLIENTSECRET",

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

README.md

Lines changed: 58 additions & 59 deletions
Large diffs are not rendered by default.

__mocks__/vscode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const debug = {
6565
}
6666

6767
const commands = {
68-
executeCommand: jest.fn(),
69-
registerCommand: jest.fn(),
70-
registerTextEditorCommand: jest.fn(),
68+
execCmd: jest.fn(),
69+
regCmd: jest.fn(),
70+
regTextEditorCmd: jest.fn(),
7171
}
7272

7373
// eslint-disable-next-line @typescript-eslint/no-empty-function

download-iconfont.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import fetch from 'node-fetch'
33
import fs from 'fs'
44
import AdmZip from 'adm-zip'
5+
56
const url =
67
'https://www.iconfont.cn/api/project/download.zip?spm=a313x.7781069.1998910419.d7543c303&pid=2996691&ctoken=ndNRCUzYy381Rxk59b1LjTrg'
78
const cookie =
@@ -21,14 +22,14 @@ fetch(url, { headers: { cookie: cookie } }).then(f => {
2122
zip.extractEntryTo(e, './dist/assets', false, true, undefined, outFileName)
2223
zip.extractEntryTo(e, 'src/assets', false, true, undefined, outFileName)
2324
})
24-
fs.unlink(filename, err => {
25-
if (err) {
26-
console.log(err)
25+
fs.unlink(filename, e => {
26+
if (e != null) {
27+
console.log(e)
2728
}
2829
console.log('iconfont assets downloaded')
2930
})
30-
} catch (ex) {
31-
console.warn('Failed to unzip iconfont assets! Some icons may not work correctly.', ex)
31+
} catch (e) {
32+
console.warn('Failed to unzip iconfont assets! Some icons may not work correctly.', e)
3233
}
3334
})
3435
}, undefined)

0 commit comments

Comments
 (0)