forked from kotcmm/writecnblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
347 lines (347 loc) · 9.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
{
"name": "write-yao-blog",
"displayName": "WriteYaoblog",
"description": "write blog to Yao blogs",
"version": "0.1.0",
"publisher": "wwsheng009",
"engines": {
"vscode": "^1.31.0"
},
"license": "SEE LICENSE IN LICENSE.md",
"bugs": {
"url": "https://github.com/kotcmm/writeCnblog/issues"
},
"homepage": "https://github.com/kotcmm/writeCnblog/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/kotcmm/writeCnblog.git"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown",
"onView:blogPostExplorer"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "writeCnblog.createPost",
"title": "新建文章",
"category": "CnBlog",
"icon": {
"light": "resources/light/createPost.svg",
"dark": "resources/dark/createPost.svg"
}
},
{
"command": "writeCnblog.getRecentPosts",
"title": "拉取最近文章",
"category": "CnBlog",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "writeCnblog.seeLink",
"title": "查看预览",
"category": "CnBlog",
"icon": {
"light": "resources/light/eye.svg",
"dark": "resources/dark/eye.svg"
}
},
{
"command": "writeCnblog.setConfig",
"title": "配置设置",
"category": "CnBlog"
},
{
"command": "writeCnblog.openPost",
"title": "打开文章",
"category": "CnBlog"
},
{
"command": "writeCnblog.diffPost",
"title": "比较文章",
"category": "CnBlog"
},
{
"command": "writeCnblog.savePost",
"title": "保存草稿",
"category": "CnBlog",
"icon": {
"light": "resources/light/uploadSave.svg",
"dark": "resources/dark/uploadSave.svg"
}
},
{
"command": "writeCnblog.publishPost",
"title": "发布文章",
"category": "CnBlog"
},
{
"command": "writeCnblog.pullPost",
"title": "拉取文章",
"category": "CnBlog"
},
{
"command": "writeCnblog.renameTitle",
"title": "修改标题",
"category": "CnBlog"
},
{
"command": "writeCnblog.deletePost",
"title": "删除文章",
"category": "CnBlog"
},
{
"command": "writeCnblog.pasteImageFromClipboard",
"title": "粘贴剪贴板图片",
"category": "CnBlog"
},
{
"command": "writeCnblog.refreshCategories",
"title": "刷新分类列表",
"category": "CnBlog",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "writeCnblog.createCategory",
"title": "新建分类",
"category": "CnBlog",
"icon": {
"light": "resources/light/create.svg",
"dark": "resources/dark/create.svg"
}
},
{
"command": "writeCnblog.selectCategory",
"title": "选择分类",
"category": "CnBlog"
},
{
"command": "writeCnblog.removeCategory",
"title": "移除分类",
"category": "CnBlog",
"icon": {
"light": "resources/light/trash.svg",
"dark": "resources/dark/trash.svg"
}
}
],
"keybindings": [
{
"command": "writeCnblog.pasteImageFromClipboard",
"key": "shift+alt+v",
"mac": "shift+alt+v",
"when": "editorTextFocus && editorLangId == 'markdown'"
}
],
"configuration": {
"type": "object",
"title": "writeCnblog configuration",
"properties": {
"writeCnblog.rpcUrl": {
"type": "string",
"default": "",
"description": "博客的MetaWeblog接口地址"
},
"writeCnblog.userName": {
"type": "string",
"default": "",
"description": "博客的用户名"
},
"writeCnblog.blogId": {
"type": "string",
"default": "",
"description": "博客id"
},
"writeCnblog.blogWorkspace": {
"type": "string",
"default": "",
"description": "工作空间"
},
"writeCnblog.recentPostCount": {
"type": "number",
"default": 100,
"description": "最近文章的数量"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "write-yao-blog",
"title": "WriteYaoblog",
"icon": "resources/write-cnblog.svg"
}
]
},
"views": {
"write-yao-blog": [
{
"id": "blogPostExplorer",
"name": "文章列表"
},
{
"id": "blogCategoriesExplorer",
"name": "分类列表"
}
]
},
"menus": {
"view/title": [
{
"command": "writeCnblog.createPost",
"when": "view == blogPostExplorer",
"group": "navigation"
},
{
"command": "writeCnblog.getRecentPosts",
"when": "view == blogPostExplorer",
"group": "navigation"
},
{
"command": "writeCnblog.setConfig",
"when": "view == blogPostExplorer"
},
{
"command": "writeCnblog.refreshCategories",
"when": "view == blogCategoriesExplorer",
"group": "navigation"
},
{
"command": "writeCnblog.createCategory",
"when": "view == blogCategoriesExplorer",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "writeCnblog.publishPost",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "1@2"
},
{
"command": "writeCnblog.savePost",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "inline"
},
{
"command": "writeCnblog.seeLink",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "inline"
},
{
"command": "writeCnblog.diffPost",
"when": "view == blogPostExplorer && viewItem == BlogPostItem-diff",
"group": "1@1"
},
{
"command": "writeCnblog.pullPost",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem(?!-create)/",
"group": "1@3"
},
{
"command": "writeCnblog.renameTitle",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "1@4"
},
{
"command": "writeCnblog.deletePost",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "1@5"
},
{
"command": "writeCnblog.selectCategory",
"when": "view == blogPostExplorer && viewItem =~ /BlogPostItem*/",
"group": "1@2"
},
{
"command": "writeCnblog.removeCategory",
"when": "view == blogPostExplorer && viewItem == Category",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish2": "npm run compile",
"compile": "tsc -p ./",
"test-compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "vsce package -o write-yao-blog.vsix",
"test": "vscode-test",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node10.4",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"package2": "webpack --mode production --devtool hidden-source-map"
},
"devDependencies": {
"@types/http-proxy-agent": "^4.0.1",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^2.2.42",
"@types/node": "^10.11.3",
"@types/pump": "^1.1.3",
"@types/request": "^2.48.12",
"@types/rimraf": "^2.0.2",
"@types/tar-fs": "^2.0.4",
"@types/tmp": "0.0.33",
"@types/vscode": "^1.31.0",
"@types/xml2js": "^0.4.14",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"ts-loader": "^9.5.1",
"tslint": "^5.8.0",
"typescript": "^3.4.5",
"vsce": "^2.15.0"
},
"dependencies": {
"clipboard-data": "^0.0.3-beta.7",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.3",
"mkdirp": "^0.5.1",
"moment": "^2.29.2",
"pump": "^3.0.0",
"request": "^2.88.0",
"rimraf": "^2.6.2",
"tar-fs": "^2.0.0",
"tmp": "0.0.33",
"xml2js": "^0.4.19"
},
"runtimeDependencies": [
{
"description": "clipboard-data for Windows",
"url": "https://github.com/kotcmm/clipboard-data/releases/download/v0.0.3-beta.7/clipboard-data-v0.0.3-beta.7-electron-v69-win32-x64.tar.gz",
"installPath": "node_modules/clipboard-data",
"platforms": [
"win32"
]
},
{
"description": "clipboard-data for macOS",
"url": "https://github.com/kotcmm/clipboard-data/releases/download/v0.0.3-beta.7/clipboard-data-v0.0.3-beta.7-electron-v69-darwin-x64.tar.gz",
"installPath": "node_modules/clipboard-data",
"platforms": [
"darwin"
]
},
{
"description": "clipboard-data for Linux",
"url": "https://github.com/kotcmm/clipboard-data/releases/download/v0.0.3-beta.7/clipboard-data-v0.0.3-beta.7-electron-v69-linux-x64.tar.gz",
"installPath": "node_modules/clipboard-data",
"platforms": [
"linux"
]
}
]
}