-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
134 lines (134 loc) · 3.87 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
{
"name": "tencent-cloud-cos-upload-image",
"displayName": "tencent-cloud-cos-upload-image",
"description": "VSCode插件,在 markdown 中选择或截图上传图片至腾讯云COS",
"version": "0.2.6",
"publisher": "galenye",
"author": {
"name": "galenye",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/Galen-Yip/tencent-cloud-cos-upload-image.git"
},
"homepage": "https://github.com/Galen-Yip/tencent-cloud-cos-upload-image",
"bugs": {
"url": "https://github.com/Galen-Yip/tencent-cloud-cos-upload-image/issues"
},
"engines": {
"vscode": "^1.32.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.tencentCOSUpload.paste",
"title": "上传粘贴板中的截图"
},
{
"command": "extension.tencentCOSUpload.select",
"title": "上传选择的图片"
}
],
"keybindings": [
{
"command": "extension.tencentCOSUpload.paste",
"key": "ctrl+alt+p",
"mac": "cmd+alt+p",
"linux": "ctrl+alt+p",
"win": "ctrl+alt+p",
"when": "editorTextFocus"
},
{
"command": "extension.tencentCOSUpload.select",
"key": "ctrl+alt+o",
"mac": "cmd+alt+o",
"win": "ctrl+alt+o",
"linux": "ctrl+alt+o",
"when": "editorTextFocus"
}
],
"configuration": {
"type": "object",
"title": "Tencent COS upload configuration",
"properties": {
"tencentCOSUpload.enable": {
"type": "boolean",
"default": "true",
"description": "腾讯云COS上传工具开关"
},
"tencentCOSUpload.secretId": {
"type": "string",
"default": "",
"description": "一个有效的腾讯云Secret ID"
},
"tencentCOSUpload.secretKey": {
"type": "string",
"default": "",
"description": "一个有效的腾讯云Secret Key"
},
"tencentCOSUpload.bucket": {
"type": "string",
"default": "",
"description": "存储桶名称,如a-1250000000"
},
"tencentCOSUpload.region": {
"type": "string",
"default": "",
"description": "Bucket所在区域"
},
"tencentCOSUpload.remotePath": {
"type": "string",
"default": "",
"description": "存储目录, 如 a/b, 存储根路径则无需填写,无需以 / 开头"
},
"tencentCOSUpload.isPublic": {
"type": "boolean",
"default": "true",
"description": "存储桶是否为公有可访问,如为私有,且希望上传后的url带签名,则设置为false"
},
"tencentCOSUpload.duration": {
"type": "number",
"default": "31536000",
"description": "签名有效期,单位为妙,isPublic设置为 false 时有效"
},
"tencentCOSUpload.domain": {
"type": "string",
"default": "",
"description": "自定义的域名"
},
"tencentCOSUpload.localPath": {
"type": "string",
"default": "/tmp/.tencentCOSUpload",
"description": "临时目录"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^3.3.1",
"vscode": "^1.1.28",
"tslint": "^5.12.1",
"@types/node": "^10.12.21",
"@types/mocha": "^2.2.42"
},
"dependencies": {
"cos-nodejs-sdk-v5": "^2.5.7",
"mkdirp": "^0.5.1",
"moment": "^2.18.1"
}
}