-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
177 lines (177 loc) · 4.31 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
{
"name": "lsky-images",
"displayName": "Lsky 图床",
"description": "lsky 图床 markdown 插件",
"keywords": [
"vscode",
"lsky",
"markdown"
],
"version": "1.0.3",
"publisher": "LingGe",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.72.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:lsky-upload",
"onCommand:replace-imgurl"
],
"main": "./extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Lsky 图床",
"properties": {
"lsky.baseUrl": {
"type": "string",
"default": null,
"description": "lsky 图床地址"
},
"lsky.tokenPath": {
"type": "string",
"default": "/api/v1/tokens",
"description": "获取token路径"
},
"lsky.uploadPath": {
"type": "string",
"default": "/api/v1/upload",
"description": "上传接口路径"
},
"lsky.email": {
"type": "string",
"default": null,
"description": "图床用户名"
},
"lsky.password": {
"type": "string",
"default": null,
"description": "图床密码"
},
"lsky.token": {
"type": "string",
"default": null,
"description": "上传接口token, 不填则先获取token, 获取到后保存本地"
},
"lsky.tempPath": {
"type": "string",
"default": ".images",
"description": "临时图片存储路径"
},
"lsky.strategyId": {
"type": "integer",
"default": 1,
"description": "图床中储存策略id"
},
"lsky.keepLocalPict": {
"type": "boolean",
"default": false,
"description": "是否保留本地图片"
},
"lsky.domainList": {
"type": "array",
"default": [],
"description": "自定义过滤域名列表"
}
}
},
"commands": [
{
"command": "lsky-upload",
"title": "Lsky 剪辑版上传"
},
{
"command": "replace-imgurl",
"title": "Lsky 批量上传"
},
{
"command": "conversion-image-format",
"title": "Lsky 图片链接: 参考式 => 行内式"
},
{
"command": "clear-reference-link",
"title": "Lsky 清空参考式链接定义"
}
],
"keybindings": [
{
"command": "lsky-upload",
"key": "ctrl+shift+insert",
"mac": "ctrl+shift+insert",
"when": "editorTextFocus"
},
{
"command": "replace-imgurl",
"key": "ctrl+alt+k",
"mac": "ctrl+alt+k",
"when": "editorTextFocus"
},
{
"command": "conversion-image-format",
"key": "ctrl+shift+home",
"mac": "ctrl+shift+home",
"when": "editorTextFocus"
},
{
"command": "clear-reference-link",
"key": "ctrl+shift+end",
"mac": "ctrl+shift+end",
"when": "editorTextFocus"
}
],
"menus": {
"editor/context": [
{
"when": "editorFocus && resourceLangId == markdown",
"command": "lsky-upload",
"group": "lsky"
},
{
"when": "editorLangId == 'markdown'",
"command": "replace-imgurl",
"group": "lsky"
},
{
"when": "editorLangId == 'markdown'",
"command": "conversion-image-format",
"group": "lsky"
},
{
"when": "editorLangId == 'markdown'",
"command": "clear-reference-link",
"group": "lsky"
}
]
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "16.x",
"@types/vscode": "^1.72.0",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.24.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"typescript": "^4.8.4",
"vscode": "^1.1.37"
},
"dependencies": {
"axios": "^1.3.4",
"https": "^1.0.0",
"moment": "^2.18.1",
"shelljs": "^0.8.3"
},
"repository": {
"type": "git",
"url": "https://github.com/204065248/lsky-upload"
}
}