forked from njleonzhang/vscode-extension-mardown-image-paste
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
187 lines (187 loc) · 5.66 KB
/
package.json
File metadata and controls
187 lines (187 loc) · 5.66 KB
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
{
"name": "markdown-image-paste",
"displayName": "markdown image paste",
"description": "update tiny the picture, upload to github, and feedback you a link when paste a picture to markdown file ",
"version": "1.3.2",
"publisher": "njLeonZhang",
"repository": {
"type": "git",
"url": "https://github.com/njleonzhang/vscode-extension-mardown-image-paste"
},
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.markdownPasteImage"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "markdown paste image configuration",
"properties": {
"markdownPasteImage.s3AccessKeyId": {
"type": "string",
"default": "",
"description": "AWS S3 or Cloudflare R2 access key ID"
},
"markdownPasteImage.s3SecretAccessKey": {
"type": "string",
"default": "",
"description": "AWS S3 or Cloudflare R2 secret access key"
},
"markdownPasteImage.s3Region": {
"type": "string",
"default": "",
"description": "AWS S3 region or Cloudflare R2 region (e.g. auto for Cloudflare R2)"
},
"markdownPasteImage.s3Endpoint": {
"type": "string",
"default": "",
"description": "Custom endpoint for S3 API (required for Cloudflare R2, e.g. https://<account-id>.r2.cloudflarestorage.com)"
},
"markdownPasteImage.s3Bucket": {
"type": "string",
"default": "",
"description": "AWS S3 or Cloudflare R2 bucket name"
},
"markdownPasteImage.s3PreUrl": {
"type": "string",
"default": "",
"description": "Base URL prefix for accessing uploaded images"
},
"markdownPasteImage.tinyPngKey": {
"type": "string",
"default": "",
"description": "the tiny png developer key"
},
"markdownPasteImage.qiniuBucket": {
"type": "string",
"default": "",
"description": "the qiniu bucket name"
},
"markdownPasteImage.qiniuAK": {
"type": "string",
"default": "",
"description": "the qiniu AK"
},
"markdownPasteImage.qiniuSK": {
"type": "string",
"default": "",
"description": "the qiniu SK"
},
"markdownPasteImage.qiniuPreUrl": {
"type": "string",
"default": "",
"description": "the qiniu prrUrl"
},
"markdownPasteImage.githubAccessToken": {
"type": "string",
"default": "",
"description": "the github access token"
},
"markdownPasteImage.githubRepo": {
"type": "string",
"default": "",
"description": "your github repository as image bed"
},
"markdownPasteImage.githubAssetFolder": {
"type": "string",
"default": "",
"description": "asset folder of your image bed github repository"
},
"markdownPasteImage.proxy": {
"type": "string",
"default": "",
"description": "proxy for github api, for exmaple: http://127.0.0.1:8087"
},
"markdownPasteImage.githubTimeOut": {
"type": "number",
"default": 10000,
"description": "github api is slow in china, set timeout as 10s"
},
"markdownPasteImage.cloudinaryName": {
"type": "string",
"default": "",
"description": "cloud name of cloudinary"
},
"markdownPasteImage.cloudinaryApiKey": {
"type": "string",
"default": "",
"description": "api key of cloudinary"
},
"markdownPasteImage.cloudinarySecret": {
"type": "string",
"default": "",
"description": "api secret of cloudinary"
},
"markdownPasteImage.cloudinaryFolder": {
"type": "string",
"default": "",
"description": "folder of cloudinary you want to put your image in"
},
"markdownPasteImage.cdnType": {
"type": "string",
"default": "qiniu",
"enum": [
"qiniu",
"github",
"s3",
"r2",
"cloudinary"
],
"description": "the cdn type (qiniu, github, s3, r2, cloudinary)"
}
}
},
"commands": [
{
"command": "extension.markdownPasteImage",
"title": "Paste Image"
},
{
"command": "extension.markdownPasteImage.reInit",
"title": "Paste Image: Reinit"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && node ./node_modules/@vscode/test-electron/out/runTest.js",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/node": "^16.11.7",
"@types/vscode": "^1.60.0",
"@vscode/test-electron": "^2.3.8",
"@vscode/vsce": "^2.22.0",
"tslint": "^5.8.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.450.0",
"@aws-sdk/s3-request-presigner": "^3.450.0",
"axios": "^1.6.0",
"child_process": "^1.0.2",
"cloudinary": "^1.40.0",
"file-type": "^16.5.4",
"form-data": "^4.0.0",
"fs": "^0.0.1-security",
"http-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.2",
"node-ipc": "9.1.1",
"path": "^0.12.7",
"qiniu": "^7.10.1",
"sha1": "^1.1.1",
"tinify": "^1.7.1",
"tunnel": "^0.0.6",
"uuid": "^9.0.1"
}
}