Skip to content

Commit 37cb0b4

Browse files
committed
chore: rename save to upload
1 parent fde9394 commit 37cb0b4

File tree

2 files changed

+35
-33
lines changed

2 files changed

+35
-33
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747

4848
若本地文件已经关联到一篇博客园博文,那么会直接更新这篇博文。
4949

50-
也通过 vscode 的 `Command Palette`(唤起 `Command Palette` 快捷键,windows:`ctrl+shift+p`,macos:`command+shift+p`)调用 `Cnblogs: 保存到博客园`命令,将当前正在编辑的 markdown 文件保存到博客园上
50+
也通过 vscode 的 `Command Palette`(唤起 `Command Palette` 快捷键,windows:`ctrl+shift+p`,macos:`command+shift+p`)调用 `Cnblogs: 上传到博客园`命令,将当前正在编辑的 markdown 文件上传到博客园上
5151

5252
<kbd><img src="https://img2022.cnblogs.com/blog/1596066/202204/1596066-20220415194545998-874211959.png" height="550"></kbd>
5353

5454
### 博客园博文列表
5555

56-
当点击列表中的博文时,会自动将博文内容下载到工作空间一个本地文件中(此时这个本地文件就关联到了这篇博文),完成编辑后可以再将本地的内容保存到博客园博文
56+
当点击列表中的博文时,会自动将博文内容下载到工作空间一个本地文件中(此时这个本地文件就关联到了这篇博文),完成编辑后可以再将本地的内容上传到博客园
5757

5858
<kbd><img src="https://img2020.cnblogs.com/blog/3/202112/3-20211227184342642-1938639868.png" height="550"></kbd>
5959

@@ -129,7 +129,7 @@
129129

130130
![image](https://img2022.cnblogs.com/blog/1596066/202209/1596066-20220917215536822-836105648.png)
131131

132-
也可以在设置中配置保存到博客园时自动提取图片
132+
也可以在设置中配置上传到博客园时自动提取图片
133133

134134
![image](https://img2022.cnblogs.com/blog/1596066/202209/1596066-20220917215650930-372126612.png)
135135

Diff for: package.json

+32-30
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-cnb",
3-
"displayName": "博客园Cnblogs客户端",
4-
"description": "A vscode extension used to write and publish blog post to cnblogs",
3+
"displayName": "博客园 VSCode 扩展",
4+
"description": "VSCode extension for CNBlogs",
55
"version": "0.0.1",
66
"license": "LICENSE.txt",
77
"preview": false,
@@ -148,8 +148,8 @@
148148
"category": "Cnblogs Posts List"
149149
},
150150
{
151-
"command": "vscode-cnb.save-post",
152-
"title": "保存博文",
151+
"command": "vscode-cnb.upload-post",
152+
"title": "上传博文",
153153
"icon": "$(cloud-upload)",
154154
"category": "Cnblogs Posts List",
155155
"enablement": "vscode-cnb.isAuthorized"
@@ -199,15 +199,15 @@
199199
"category": "Cnblogs"
200200
},
201201
{
202-
"command": "vscode-cnb.save-post-file-to-cnblogs",
203-
"title": "保存到博客园",
202+
"command": "vscode-cnb.upload-post-file-to-cnblogs",
203+
"title": "上传到博客园",
204204
"icon": "$(vscode-cnb-cloud-upload)",
205205
"enablement": "vscode-cnb.isAuthorized",
206206
"category": "Cnblogs"
207207
},
208208
{
209209
"command": "vscode-cnb.pull-post-remote-updates",
210-
"title": "拉取远程更新",
210+
"title": "拉取博文",
211211
"category": "Cnblogs",
212212
"enablement": "vscode-cnb.isAuthorized",
213213
"icon": "$(cloud-download)"
@@ -274,7 +274,7 @@
274274
},
275275
{
276276
"command": "vscode-cnb.export-post-to-pdf",
277-
"title": "导出PDF",
277+
"title": "导出 PDF",
278278
"category": "Cnblogs",
279279
"enablement": "vscode-cnb.isAuthorized"
280280
},
@@ -473,17 +473,19 @@
473473
"enum": [
474474
"disable",
475475
"local",
476+
"dataurl",
476477
"web",
477478
"any"
478479
],
479480
"enumItemLabels": [
480481
"禁用",
481482
"自动提取本地图片",
483+
"自动提取由 Base64 编码的图片",
482484
"自动提取网络图片",
483485
"自动提取全部图片"
484486
],
485487
"editPresentation": "singlelineText",
486-
"markdownDescription": "提取图片, 配置保存到博客园时要自动提取上传到博客园的图片"
488+
"markdownDescription": "提取图片, 配置上传到博客园时要自动提取上传到博客园的图片"
487489
},
488490
"cnblogsClientForVSCode.pageSize.postsList": {
489491
"order": 7,
@@ -531,7 +533,7 @@
531533
"type": "object",
532534
"additionalProperties": false,
533535
"default": {
534-
"save-post-file-to-cnblogs": true,
536+
"upload-post-file-to-cnblogs": true,
535537
"pull-post-remote-updates": true,
536538
"modify-post-settings": true,
537539
"show-post-to-local-file-info": true,
@@ -542,14 +544,14 @@
542544
"markdownDescription": "控制要在资源管理器右键菜单中显示的命令",
543545
"order": 12,
544546
"properties": {
545-
"save-post-file-to-cnblogs": {
546-
"description": "保存到博客园",
547+
"upload-post-file-to-cnblogs": {
548+
"description": "上传到博客园",
547549
"type": "boolean",
548550
"order": 0,
549551
"default": true
550552
},
551553
"pull-post-remote-updates": {
552-
"description": "拉取远程更新",
554+
"description": "拉取博文",
553555
"type": "boolean",
554556
"order": 1,
555557
"default": true
@@ -573,7 +575,7 @@
573575
"default": true
574576
},
575577
"export-post-to-pdf": {
576-
"description": "导出pdf",
578+
"description": "导出 PDF",
577579
"type": "boolean",
578580
"order": 5,
579581
"default": true
@@ -589,7 +591,7 @@
589591
"cnblogsClientForVSCode.menus.context.editor": {
590592
"type": "object",
591593
"default": {
592-
"save-post-file-to-cnblogs": true,
594+
"upload-post-file-to-cnblogs": true,
593595
"pull-post-remote-updates": true,
594596
"modify-post-settings": true,
595597
"show-post-to-local-file-info": true,
@@ -602,13 +604,13 @@
602604
"ing:publish-selection": false
603605
},
604606
"properties": {
605-
"save-post-file-to-cnblogs": {
606-
"description": "保存到博客园",
607+
"upload-post-file-to-cnblogs": {
608+
"description": "上传到博客园",
607609
"type": "boolean",
608610
"order": 0
609611
},
610612
"pull-post-remote-updates": {
611-
"description": "拉取远程更新",
613+
"description": "拉取博文",
612614
"type": "boolean",
613615
"order": 1
614616
},
@@ -629,7 +631,7 @@
629631
"order": 4
630632
},
631633
"export-post-to-pdf": {
632-
"description": "导出pdf",
634+
"description": "导出 PDF",
633635
"type": "boolean",
634636
"order": 5
635637
},
@@ -826,7 +828,7 @@
826828
"when": "false"
827829
},
828830
{
829-
"command": "vscode-cnb.save-post",
831+
"command": "vscode-cnb.upload-post",
830832
"when": "false"
831833
},
832834
{
@@ -838,7 +840,7 @@
838840
"when": "false"
839841
},
840842
{
841-
"command": "vscode-cnb.save-post-file-to-cnblogs",
843+
"command": "vscode-cnb.upload-post-file-to-cnblogs",
842844
"when": "true"
843845
},
844846
{
@@ -944,7 +946,7 @@
944946
],
945947
"view/item/context": [
946948
{
947-
"command": "vscode-cnb.save-post",
949+
"command": "vscode-cnb.upload-post",
948950
"group": "inline@1",
949951
"when": "viewItem == cnb-post-cached"
950952
},
@@ -988,7 +990,7 @@
988990
"group": "delete@2"
989991
},
990992
{
991-
"command": "vscode-cnb.save-post",
993+
"command": "vscode-cnb.upload-post",
992994
"group": "0@1",
993995
"when": "viewItem == cnb-post-cached"
994996
},
@@ -1093,8 +1095,8 @@
10931095
"group": "cnblogs@1"
10941096
},
10951097
{
1096-
"command": "vscode-cnb.save-post-file-to-cnblogs",
1097-
"when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.save-post-file-to-cnblogs",
1098+
"command": "vscode-cnb.upload-post-file-to-cnblogs",
1099+
"when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.editor.upload-post-file-to-cnblogs",
10981100
"group": "cnblogs@2"
10991101
},
11001102
{
@@ -1145,7 +1147,7 @@
11451147
"group": "navigation"
11461148
},
11471149
{
1148-
"command": "vscode-cnb.save-post-file-to-cnblogs",
1150+
"command": "vscode-cnb.upload-post-file-to-cnblogs",
11491151
"when": "resourceLangId == markdown",
11501152
"group": "navigation"
11511153
}
@@ -1157,8 +1159,8 @@
11571159
"group": "cnblogs@1"
11581160
},
11591161
{
1160-
"command": "vscode-cnb.save-post-file-to-cnblogs",
1161-
"when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.save-post-file-to-cnblogs",
1162+
"command": "vscode-cnb.upload-post-file-to-cnblogs",
1163+
"when": "resourceLangId == markdown && config.cnblogsClientForVSCode.menus.context.explorer.upload-post-file-to-cnblogs",
11621164
"group": "cnblogs@2"
11631165
},
11641166
{
@@ -1219,7 +1221,7 @@
12191221
"viewsWelcome": [
12201222
{
12211223
"view": "cnblogs-authorize",
1222-
"contents": "欢迎使用博客园vscode插件! 请先登录授权!"
1224+
"contents": "欢迎使用博客园 VSCode 插件!请先登录授权!"
12231225
},
12241226
{
12251227
"view": "cnblogs-authorize",
@@ -1231,7 +1233,7 @@
12311233
},
12321234
{
12331235
"view": "vscode-cnb-workspace",
1234-
"contents": "[在vscode中打开工作空间](command:vscode-cnb.open-workspace)",
1236+
"contents": "[在 VSCode 中打开工作空间](command:vscode-cnb.open-workspace)",
12351237
"when": "!vscode-cnb.isTargetWorkspace"
12361238
},
12371239
{

0 commit comments

Comments
 (0)