Skip to content

Commit 5bc5d7a

Browse files
authored
feat: implement post configuration panel (#41)
* chore: add webpack config for webview * chore: update webpack to 5.70.x * refactor: use default import with allowSyntheticDefaultImports enabled * chore: add ui compile script to package.json * ui: add post configuration webview panel * ui: fix categories selector overflow * fix: notify error if post not exist * fix: fix image upload command
1 parent 86fd8c7 commit 5bc5d7a

File tree

81 files changed

+13526
-4132
lines changed

Some content is hidden

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

81 files changed

+13526
-4132
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
},
1111
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1212
"typescript.tsc.autoDetect": "off",
13-
"editor.formatOnSave": true
13+
"editor.formatOnSave": true,
14+
"cSpell.words": ["ASPNETCORE", "fluentui", "randomstring", "tailwindcss"],
15+
"json.format.enable": false
1416
}

.vscode/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// for the documentation about the tasks.json format
33
{
44
"version": "2.0.0",
5+
"options": {
6+
"env": {
7+
"NODE_ENV": "Development"
8+
}
9+
},
510
"tasks": [
611
{
712
"type": "npm",
@@ -12,6 +17,26 @@
1217
"reveal": "never",
1318
"group": "watchers"
1419
},
20+
"group": {
21+
"kind": "build"
22+
}
23+
},
24+
{
25+
"type": "npm",
26+
"script": "ui:watch",
27+
"problemMatcher": ["$ts-webpack-watch", "$tslint-webpack-watch"],
28+
"isBackground": true,
29+
"presentation": {
30+
"reveal": "never",
31+
"group": "watchers"
32+
},
33+
"group": {
34+
"kind": "build"
35+
}
36+
},
37+
{
38+
"label": "watch",
39+
"dependsOn": ["npm: watch", "npm: ui:watch"],
1540
"group": {
1641
"kind": "build",
1742
"isDefault": true

.vscodeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ vsc-extension-quickstart.md
1111
**/.eslintrc.json
1212
**/*.map
1313
**/*.ts
14+
.idea
15+
.github
16+
ui/**

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [图片上传](#图片上传)
1010
- [博文分类管理](#博文分类管理)
1111
- [导出pdf](#导出pdf)
12+
- [博文设置面板](#博文设置面板)
1213
- [vscode版本要求](#vscode版本要求)
1314
- [插件设置](#插件设置)
1415

@@ -74,6 +75,16 @@
7475

7576
![image](https://img2022.cnblogs.com/blog/1596066/202203/1596066-20220323140426961-1518402131.png)
7677

78+
### 博文设置面板
79+
80+
首次发布本地markdown文件到博客园时, 会打开博文设置面板允许编辑博文相关的设置
81+
82+
![image](https://img2022.cnblogs.com/blog/1596066/202203/1596066-20220331112748377-737262324.png)
83+
84+
同时, 也可以在博客园随笔列表视图, 文件列表视图和markdown编辑器中上下文菜单中可以通过**博文设置**命令打开博文设置面板
85+
86+
![image](https://img2022.cnblogs.com/blog/1596066/202203/1596066-20220331113211016-1457564407.png)
87+
7788
## vscode版本要求
7889

7990
\>=1.62.0

0 commit comments

Comments
 (0)