|
1 | 1 | {
|
2 | 2 | "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", |
5 | 5 | "version": "0.0.1",
|
6 | 6 | "license": "LICENSE.txt",
|
7 | 7 | "preview": false,
|
|
148 | 148 | "category": "Cnblogs Posts List"
|
149 | 149 | },
|
150 | 150 | {
|
151 |
| - "command": "vscode-cnb.save-post", |
152 |
| - "title": "保存博文", |
| 151 | + "command": "vscode-cnb.upload-post", |
| 152 | + "title": "上传博文", |
153 | 153 | "icon": "$(cloud-upload)",
|
154 | 154 | "category": "Cnblogs Posts List",
|
155 | 155 | "enablement": "vscode-cnb.isAuthorized"
|
|
199 | 199 | "category": "Cnblogs"
|
200 | 200 | },
|
201 | 201 | {
|
202 |
| - "command": "vscode-cnb.save-post-file-to-cnblogs", |
203 |
| - "title": "保存到博客园", |
| 202 | + "command": "vscode-cnb.upload-post-file-to-cnblogs", |
| 203 | + "title": "上传到博客园", |
204 | 204 | "icon": "$(vscode-cnb-cloud-upload)",
|
205 | 205 | "enablement": "vscode-cnb.isAuthorized",
|
206 | 206 | "category": "Cnblogs"
|
207 | 207 | },
|
208 | 208 | {
|
209 | 209 | "command": "vscode-cnb.pull-post-remote-updates",
|
210 |
| - "title": "拉取远程更新", |
| 210 | + "title": "拉取博文", |
211 | 211 | "category": "Cnblogs",
|
212 | 212 | "enablement": "vscode-cnb.isAuthorized",
|
213 | 213 | "icon": "$(cloud-download)"
|
|
274 | 274 | },
|
275 | 275 | {
|
276 | 276 | "command": "vscode-cnb.export-post-to-pdf",
|
277 |
| - "title": "导出PDF", |
| 277 | + "title": "导出 PDF", |
278 | 278 | "category": "Cnblogs",
|
279 | 279 | "enablement": "vscode-cnb.isAuthorized"
|
280 | 280 | },
|
|
473 | 473 | "enum": [
|
474 | 474 | "disable",
|
475 | 475 | "local",
|
| 476 | + "dataurl", |
476 | 477 | "web",
|
477 | 478 | "any"
|
478 | 479 | ],
|
479 | 480 | "enumItemLabels": [
|
480 | 481 | "禁用",
|
481 | 482 | "自动提取本地图片",
|
| 483 | + "自动提取由 Base64 编码的图片", |
482 | 484 | "自动提取网络图片",
|
483 | 485 | "自动提取全部图片"
|
484 | 486 | ],
|
485 | 487 | "editPresentation": "singlelineText",
|
486 |
| - "markdownDescription": "提取图片, 配置保存到博客园时要自动提取上传到博客园的图片" |
| 488 | + "markdownDescription": "提取图片, 配置上传到博客园时要自动提取上传到博客园的图片" |
487 | 489 | },
|
488 | 490 | "cnblogsClientForVSCode.pageSize.postsList": {
|
489 | 491 | "order": 7,
|
|
531 | 533 | "type": "object",
|
532 | 534 | "additionalProperties": false,
|
533 | 535 | "default": {
|
534 |
| - "save-post-file-to-cnblogs": true, |
| 536 | + "upload-post-file-to-cnblogs": true, |
535 | 537 | "pull-post-remote-updates": true,
|
536 | 538 | "modify-post-settings": true,
|
537 | 539 | "show-post-to-local-file-info": true,
|
|
542 | 544 | "markdownDescription": "控制要在资源管理器右键菜单中显示的命令",
|
543 | 545 | "order": 12,
|
544 | 546 | "properties": {
|
545 |
| - "save-post-file-to-cnblogs": { |
546 |
| - "description": "保存到博客园", |
| 547 | + "upload-post-file-to-cnblogs": { |
| 548 | + "description": "上传到博客园", |
547 | 549 | "type": "boolean",
|
548 | 550 | "order": 0,
|
549 | 551 | "default": true
|
550 | 552 | },
|
551 | 553 | "pull-post-remote-updates": {
|
552 |
| - "description": "拉取远程更新", |
| 554 | + "description": "拉取博文", |
553 | 555 | "type": "boolean",
|
554 | 556 | "order": 1,
|
555 | 557 | "default": true
|
|
573 | 575 | "default": true
|
574 | 576 | },
|
575 | 577 | "export-post-to-pdf": {
|
576 |
| - "description": "导出pdf", |
| 578 | + "description": "导出 PDF", |
577 | 579 | "type": "boolean",
|
578 | 580 | "order": 5,
|
579 | 581 | "default": true
|
|
589 | 591 | "cnblogsClientForVSCode.menus.context.editor": {
|
590 | 592 | "type": "object",
|
591 | 593 | "default": {
|
592 |
| - "save-post-file-to-cnblogs": true, |
| 594 | + "upload-post-file-to-cnblogs": true, |
593 | 595 | "pull-post-remote-updates": true,
|
594 | 596 | "modify-post-settings": true,
|
595 | 597 | "show-post-to-local-file-info": true,
|
|
602 | 604 | "ing:publish-selection": false
|
603 | 605 | },
|
604 | 606 | "properties": {
|
605 |
| - "save-post-file-to-cnblogs": { |
606 |
| - "description": "保存到博客园", |
| 607 | + "upload-post-file-to-cnblogs": { |
| 608 | + "description": "上传到博客园", |
607 | 609 | "type": "boolean",
|
608 | 610 | "order": 0
|
609 | 611 | },
|
610 | 612 | "pull-post-remote-updates": {
|
611 |
| - "description": "拉取远程更新", |
| 613 | + "description": "拉取博文", |
612 | 614 | "type": "boolean",
|
613 | 615 | "order": 1
|
614 | 616 | },
|
|
629 | 631 | "order": 4
|
630 | 632 | },
|
631 | 633 | "export-post-to-pdf": {
|
632 |
| - "description": "导出pdf", |
| 634 | + "description": "导出 PDF", |
633 | 635 | "type": "boolean",
|
634 | 636 | "order": 5
|
635 | 637 | },
|
|
826 | 828 | "when": "false"
|
827 | 829 | },
|
828 | 830 | {
|
829 |
| - "command": "vscode-cnb.save-post", |
| 831 | + "command": "vscode-cnb.upload-post", |
830 | 832 | "when": "false"
|
831 | 833 | },
|
832 | 834 | {
|
|
838 | 840 | "when": "false"
|
839 | 841 | },
|
840 | 842 | {
|
841 |
| - "command": "vscode-cnb.save-post-file-to-cnblogs", |
| 843 | + "command": "vscode-cnb.upload-post-file-to-cnblogs", |
842 | 844 | "when": "true"
|
843 | 845 | },
|
844 | 846 | {
|
|
944 | 946 | ],
|
945 | 947 | "view/item/context": [
|
946 | 948 | {
|
947 |
| - "command": "vscode-cnb.save-post", |
| 949 | + "command": "vscode-cnb.upload-post", |
948 | 950 | "group": "inline@1",
|
949 | 951 | "when": "viewItem == cnb-post-cached"
|
950 | 952 | },
|
|
988 | 990 | "group": "delete@2"
|
989 | 991 | },
|
990 | 992 | {
|
991 |
| - "command": "vscode-cnb.save-post", |
| 993 | + "command": "vscode-cnb.upload-post", |
992 | 994 | "group": "0@1",
|
993 | 995 | "when": "viewItem == cnb-post-cached"
|
994 | 996 | },
|
|
1093 | 1095 | "group": "cnblogs@1"
|
1094 | 1096 | },
|
1095 | 1097 | {
|
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", |
1098 | 1100 | "group": "cnblogs@2"
|
1099 | 1101 | },
|
1100 | 1102 | {
|
|
1145 | 1147 | "group": "navigation"
|
1146 | 1148 | },
|
1147 | 1149 | {
|
1148 |
| - "command": "vscode-cnb.save-post-file-to-cnblogs", |
| 1150 | + "command": "vscode-cnb.upload-post-file-to-cnblogs", |
1149 | 1151 | "when": "resourceLangId == markdown",
|
1150 | 1152 | "group": "navigation"
|
1151 | 1153 | }
|
|
1157 | 1159 | "group": "cnblogs@1"
|
1158 | 1160 | },
|
1159 | 1161 | {
|
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", |
1162 | 1164 | "group": "cnblogs@2"
|
1163 | 1165 | },
|
1164 | 1166 | {
|
|
1219 | 1221 | "viewsWelcome": [
|
1220 | 1222 | {
|
1221 | 1223 | "view": "cnblogs-authorize",
|
1222 |
| - "contents": "欢迎使用博客园vscode插件! 请先登录授权!" |
| 1224 | + "contents": "欢迎使用博客园 VSCode 插件!请先登录授权!" |
1223 | 1225 | },
|
1224 | 1226 | {
|
1225 | 1227 | "view": "cnblogs-authorize",
|
|
1231 | 1233 | },
|
1232 | 1234 | {
|
1233 | 1235 | "view": "vscode-cnb-workspace",
|
1234 |
| - "contents": "[在vscode中打开工作空间](command:vscode-cnb.open-workspace)", |
| 1236 | + "contents": "[在 VSCode 中打开工作空间](command:vscode-cnb.open-workspace)", |
1235 | 1237 | "when": "!vscode-cnb.isTargetWorkspace"
|
1236 | 1238 | },
|
1237 | 1239 | {
|
|
0 commit comments