piclist 1.9.14 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.github/workflows/docker.yml +5 -5
  2. package/CHANGELOG.md +19 -0
  3. package/License +22 -22
  4. package/README.md +1 -1
  5. package/README_cn.md +1 -1
  6. package/bin/picgo +9 -7
  7. package/bin/picgo-server +180 -161
  8. package/dist/core/Lifecycle.d.ts +35 -36
  9. package/dist/core/PicGo.d.ts +52 -52
  10. package/dist/i18n/en.d.ts +2 -2
  11. package/dist/i18n/index.d.ts +19 -17
  12. package/dist/i18n/zh-CN.d.ts +293 -289
  13. package/dist/i18n/zh-TW.d.ts +2 -2
  14. package/dist/index.d.ts +10 -10
  15. package/dist/index.js +2 -0
  16. package/dist/lib/Commander.d.ts +22 -22
  17. package/dist/lib/LifecyclePlugins.d.ts +26 -26
  18. package/dist/lib/Logger.d.ts +19 -19
  19. package/dist/lib/PluginHandler.d.ts +10 -10
  20. package/dist/lib/PluginLoader.d.ts +27 -27
  21. package/dist/lib/Request.d.ts +12 -12
  22. package/dist/plugins/beforetransformer/compress.d.ts +5 -5
  23. package/dist/plugins/beforetransformer/skipProcess.d.ts +5 -5
  24. package/dist/plugins/beforetransformer/watermark.d.ts +5 -5
  25. package/dist/plugins/beforeupload/buildInRename.d.ts +5 -5
  26. package/dist/plugins/commander/config.d.ts +3 -3
  27. package/dist/plugins/commander/i18n.d.ts +3 -3
  28. package/dist/plugins/commander/index.d.ts +3 -3
  29. package/dist/plugins/commander/pluginHandler.d.ts +3 -3
  30. package/dist/plugins/commander/proxy.d.ts +3 -3
  31. package/dist/plugins/commander/setting.d.ts +5 -5
  32. package/dist/plugins/commander/upload.d.ts +3 -3
  33. package/dist/plugins/commander/use.d.ts +3 -3
  34. package/dist/plugins/commander/utils.d.ts +2 -2
  35. package/dist/plugins/transformer/base64.d.ts +5 -5
  36. package/dist/plugins/transformer/index.d.ts +5 -5
  37. package/dist/plugins/transformer/path.d.ts +5 -5
  38. package/dist/plugins/uploader/advancedplist.d.ts +2 -2
  39. package/dist/plugins/uploader/alist.d.ts +2 -2
  40. package/dist/plugins/uploader/aliyun.d.ts +2 -2
  41. package/dist/plugins/uploader/awss3plist.d.ts +2 -2
  42. package/dist/plugins/uploader/github.d.ts +2 -2
  43. package/dist/plugins/uploader/imgur.d.ts +2 -2
  44. package/dist/plugins/uploader/index.d.ts +5 -5
  45. package/dist/plugins/uploader/local.d.ts +2 -2
  46. package/dist/plugins/uploader/lsky.d.ts +20 -21
  47. package/dist/plugins/uploader/piclist.d.ts +2 -2
  48. package/dist/plugins/uploader/qiniu.d.ts +2 -2
  49. package/dist/plugins/uploader/s3/uploader.d.ts +25 -24
  50. package/dist/plugins/uploader/s3/utils.d.ts +9 -10
  51. package/dist/plugins/uploader/sftp.d.ts +2 -2
  52. package/dist/plugins/uploader/smms.d.ts +2 -2
  53. package/dist/plugins/uploader/tcyun.d.ts +8 -8
  54. package/dist/plugins/uploader/upyun.d.ts +2 -2
  55. package/dist/plugins/uploader/utils.d.ts +26 -26
  56. package/dist/plugins/uploader/webdav.d.ts +2 -2
  57. package/dist/types/index.d.ts +572 -693
  58. package/dist/types/oldRequest.d.ts +15 -15
  59. package/dist/utils/common.d.ts +42 -119
  60. package/dist/utils/createContext.d.ts +6 -6
  61. package/dist/utils/db.d.ts +17 -15
  62. package/dist/utils/enum.d.ts +27 -27
  63. package/dist/utils/eventBus.d.ts +3 -4
  64. package/dist/utils/getClipboardImage.d.ts +4 -4
  65. package/dist/utils/sshClient.d.ts +16 -16
  66. package/dist/utils/static.d.ts +1 -1
  67. package/docker-compose.yaml +11 -11
  68. package/eslint.config.js +104 -0
  69. package/package.json +61 -78
  70. package/rollup.config.js +25 -42
  71. package/.eslintignore +0 -6
  72. package/.eslintrc.js +0 -50
  73. package/.github/workflows/alpha.yml +0 -22
  74. package/.github/workflows/main.yml +0 -22
  75. package/.github/workflows/manually.yml +0 -19
  76. package/dist/index.cjs.js +0 -2
  77. package/dist/index.esm.js +0 -2
  78. package/dist/plugins/commander/init.d.ts +0 -3
  79. package/dist/utils/initUtils.d.ts +0 -26
  80. package/dist/utils/interfaces.d.ts +0 -201
@@ -1,289 +1,293 @@
1
- export declare const ZH_CN: {
2
- UPLOAD_FAILED: string;
3
- CHECK_SETTINGS: string;
4
- CHECK_SETTINGS_AND_NETWORK: string;
5
- UPLOAD_FAILED_REASON: string;
6
- SERVER_ERROR: string;
7
- AUTH_FAILED: string;
8
- PICBED_SMMS: string;
9
- PICBED_SMMS_TOKEN: string;
10
- PICBED_SMMS_MESSAGE_TOKEN: string;
11
- PICBED_SMMS_BACKUPDOMAIN: string;
12
- PICBED_SMMS_MESSAGE_BACKUP_DOMAIN: string;
13
- PICBED_ADVANCEDPLIST: string;
14
- PICBED_ADVANCEDPLIST_ENDPOINT: string;
15
- PICBED_ADVANCEDPLIST_MESSAGE_ENDPOINT: string;
16
- PICBED_ADVANCEDPLIST_METHOD: string;
17
- PICBED_ADVANCEDPLIST_MESSAGE_METHOD: string;
18
- PICBED_ADVANCEDPLIST_FORMDATAKEY: string;
19
- PICBED_ADVANCEDPLIST_MESSAGE_FORMDATAKEY: string;
20
- PICBED_ADVANCEDPLIST_HEADERS: string;
21
- PICBED_ADVANCEDPLIST_MESSAGE_HEADERS: string;
22
- PICBED_ADVANCEDPLIST_BODY: string;
23
- PICBED_ADVANCEDPLIST_MESSAGE_BODY: string;
24
- PICBED_ADVANCEDPLIST_CUSTOMPREFIX: string;
25
- PICBED_ADVANCEDPLIST_MESSAGE_CUSTOMPREFIX: string;
26
- PICBED_ADVANCEDPLIST_WEBPATH: string;
27
- PICBED_ADVANCEDPLIST_MESSAGE_WEBPATH: string;
28
- PICBED_ADVANCEDPLIST_RESDATAPATH: string;
29
- PICBED_ADVANCEDPLIST_MESSAGE_RESDATAPATH: string;
30
- PICBED_LOCAL: string;
31
- PICBED_LOCAL_PATH: string;
32
- PICBED_LOCAL_MESSAGE_PATH: string;
33
- PICBED_LOCAL_CUSTOMURL: string;
34
- PICBED_LOCAL_MESSAGE_CUSTOMURL: string;
35
- PICBED_LOCAL_WEBPATH: string;
36
- PICBED_LOCAL_MESSAGE_WEBPATH: string;
37
- PICBED_ALIST_PLIST: string;
38
- PICBED_ALIST_URL: string;
39
- PICBED_ALIST_MESSAGE_URL: string;
40
- PICBED_ALIST_TOKEN: string;
41
- PICBED_ALIST_MESSAGE_TOKEN: string;
42
- PICBED_ALIST_USERNAME: string;
43
- PICBED_ALIST_MESSAGE_USERNAME: string;
44
- PICBED_ALIST_PASSWORD: string;
45
- PICBED_ALIST_MESSAGE_PASSWORD: string;
46
- PICBED_ALIST_UPLOADPATH: string;
47
- PICBED_ALIST_MESSAGE_UPLOAD_PATH: string;
48
- PICBED_ALIST_WEBPATH: string;
49
- PICBED_ALIST_MESSAGE_WEB_PATH: string;
50
- PICBED_ALIST_CUSTOMURL: string;
51
- PICBED_ALIST_MESSAGE_CUSTOMURL: string;
52
- PICBED_ALICLOUD: string;
53
- PICBED_ALICLOUD_ACCESSKEYID: string;
54
- PICBED_ALICLOUD_ACCESSKEYSECRET: string;
55
- PICBED_ALICLOUD_BUCKET: string;
56
- PICBED_ALICLOUD_AREA: string;
57
- PICBED_ALICLOUD_PATH: string;
58
- PICBED_ALICLOUD_WEBPATH: string;
59
- PICBED_ALICLOUD_CUSTOMURL: string;
60
- PICBED_ALICLOUD_OPTIONS: string;
61
- PICBED_ALICLOUD_MESSAGE_AREA: string;
62
- PICBED_ALICLOUD_MESSAGE_PATH: string;
63
- PICBED_ALICLOUD_MESSAGE_WEBPATH: string;
64
- PICBED_ALICLOUD_MESSAGE_OPTIONS: string;
65
- PICBED_ALICLOUD_MESSAGE_CUSTOMURL: string;
66
- PICBED_TENCENTCLOUD: string;
67
- PICBED_TENCENTCLOUD_VERSION: string;
68
- PICBED_TENCENTCLOUD_SECRETID: string;
69
- PICBED_TENCENTCLOUD_SECRETKEY: string;
70
- PICBED_TENCENTCLOUD_APPID: string;
71
- PICBED_TENCENTCLOUD_BUCKET: string;
72
- PICBED_TENCENTCLOUD_AREA: string;
73
- PICBED_TENCENTCLOUD_ENDPOINT: string;
74
- PICBED_TENCENTCLOUD_PATH: string;
75
- PICBED_TENCENTCLOUD_WEBPATH: string;
76
- PICBED_TENCENTCLOUD_OPTIONS: string;
77
- PICBED_TENCENTCLOUD_CUSTOMURL: string;
78
- PICBED_TENCENTCLOUD_MESSAGE_APPID: string;
79
- PICBED_TENCENTCLOUD_MESSAGE_AREA: string;
80
- PICBED_TENCENTCLOUD_MESSAGE_PATH: string;
81
- PICBED_TENCENTCLOUD_MESSAGE_WEBPATH: string;
82
- PICBED_TENCENTCLOUD_MESSAGE_CUSTOMURL: string;
83
- PICBED_TENCENTCLOUD_MESSAGE_OPTIONS: string;
84
- PICBED_TENCENTCLOUD_MESSAGE_ENDPOINT: string;
85
- PICBED_TENCENTCLOUD_SLIM: string;
86
- PICBED_TENCENTCLOUD_SLIM_TIP: string;
87
- PICBED_TENCENTCLOUD_SLIM_CONFIRM: string;
88
- PICBED_TENCENTCLOUD_SLIM_CANCEL: string;
89
- PICBED_GITHUB: string;
90
- PICBED_GITHUB_TOKEN: string;
91
- PICBED_GITHUB_REPO: string;
92
- PICBED_GITHUB_PATH: string;
93
- PICBED_GITHUB_BRANCH: string;
94
- PICBED_GITHUB_CUSTOMURL: string;
95
- PICBED_GITHUB_MESSAGE_REPO: string;
96
- PICBED_GITHUB_MESSAGE_BRANCH: string;
97
- PICBED_GITHUB_MESSAGE_PATH: string;
98
- PICBED_GITHUB_MESSAGE_CUSTOMURL: string;
99
- PICBED_QINIU: string;
100
- PICBED_QINIU_ACCESSKEY: string;
101
- PICBED_QINIU_SECRETKEY: string;
102
- PICBED_QINIU_BUCKET: string;
103
- PICBED_QINIU_PATH: string;
104
- PICBED_QINIU_URL: string;
105
- PICBED_QINIU_OPTIONS: string;
106
- PICBED_QINIU_AREA: string;
107
- PICBED_QINIU_MESSAGE_PATH: string;
108
- PICBED_QINIU_MESSAGE_AREA: string;
109
- PICBED_QINIU_MESSAGE_OPTIONS: string;
110
- PICBED_QINIU_MESSAGE_URL: string;
111
- PICBED_IMGUR: string;
112
- PICBED_IMGUR_CLIENTID: string;
113
- PICBED_IMGUR_USERNAME: string;
114
- PICBED_IMGUR_ACCESS_TOKEN: string;
115
- PICBED_IMGUR_ALBUM: string;
116
- PICBED_IMGUR_PROXY: string;
117
- PICBED_IMGUR_MESSAGE_CLIENTID: string;
118
- PICBED_IMGUR_MESSAGE_USERNAME: string;
119
- PICBED_IMGUR_MESSAGE_ACCESS_TOKEN: string;
120
- PICBED_IMGUR_MESSAGE_ALBUM: string;
121
- PICBED_IMGUR_MESSAGE_PROXY: string;
122
- PICBED_UPYUN: string;
123
- PICBED_UPYUN_BUCKET: string;
124
- PICBED_UPYUN_OPERATOR: string;
125
- PICBED_UPYUN_PASSWORD: string;
126
- PICBED_UPYUN_PATH: string;
127
- PICBED_UPYUN_URL: string;
128
- PICBED_UPYUN_OPTIONS: string;
129
- PICBED_UPYUN_ENDPOINT: string;
130
- PICBED_UPYUN_ANTILEECHTOKEN: string;
131
- PICBED_UPYUN_EXPIRETIME: string;
132
- PICBED_UPYUN_MESSAGE_OPERATOR: string;
133
- PICBED_UPYUN_MESSAGE_PASSWORD: string;
134
- PICBED_UPYUN_MESSAGE_URL: string;
135
- PICBED_UPYUN_MESSAGE_OPTIONS: string;
136
- PICBED_UPYUN_MESSAGE_PATH: string;
137
- PICBED_UPYUN_MESSAGE_ENDPOINT: string;
138
- PICBED_WEBDAVPLIST: string;
139
- PICBED_WEBDAVPLIST_HOST: string;
140
- PICBED_WEBDAVPLIST_SSLENABLED: string;
141
- PICBED_WEBDAVPLIST_USERNAME: string;
142
- PICBED_WEBDAVPLIST_PASSWORD: string;
143
- PICBED_WEBDAVPLIST_PATH: string;
144
- PICBED_WEBDAVPLIST_WEBPATH: string;
145
- PICBED_WEBDAVPLIST_CUSTOMURL: string;
146
- PICBED_WEBDAVPLIST_AUTHTYPE: string;
147
- PICBED_WEBDAVPLIST_OPTIONS: string;
148
- PICBED_WEBDAVPLIST_MESSAGE_HOST: string;
149
- PICBED_WEBDAVPLIST_MESSAGE_SSLENABLED: string;
150
- PICBED_WEBDAVPLIST_MESSAGE_USERNAME: string;
151
- PICBED_WEBDAVPLIST_MESSAGE_PASSWORD: string;
152
- PICBED_WEBDAVPLIST_MESSAGE_PATH: string;
153
- PICBED_WEBDAVPLIST_MESSAGE_WEBSITE_PATH: string;
154
- PICBED_WEBDAVPLIST_MESSAGE_CUSTOMURL: string;
155
- PICBED_WEBDAVPLIST_MESSAGE_OPTIONS: string;
156
- PICBED_SFTPPLIST: string;
157
- PICBED_SFTPPLIST_HOST: string;
158
- PICBED_SFTPPLIST_PORT: string;
159
- PICBED_SFTPPLIST_USERNAME: string;
160
- PICBED_SFTPPLIST_PASSWORD: string;
161
- PICBED_SFTPPLIST_PRIVATEKEY: string;
162
- PICBED_SFTPPLIST_PRIVATEKEY_PASSPHRASE: string;
163
- PICBED_SFTPPLIST_UPLOADPATH: string;
164
- PICBED_SFTPPLIST_CUSTOMURL: string;
165
- PICBED_SFTPPLIST_WEBSITE_PATH: string;
166
- PICBED_SFTPPLIST_FILE_USER: string;
167
- PICBED_SFTPPLIST_FILE_MODE: string;
168
- PICBED_SFTPPLIST_DIR_MODE: string;
169
- PICBED_SFTPPLIST_MESSAGE_HOST: string;
170
- PICBED_SFTPPLIST_MESSAGE_PORT: string;
171
- PICBED_SFTPPLIST_MESSAGE_PRIVATEKEY: string;
172
- PICBED_SFTPPLIST_MESSAGE_PRIVATEKEY_PASSPHRASE: string;
173
- PICBED_SFTPPLIST_MESSAGE_UPLOADPATH: string;
174
- PICBED_SFTPPLIST_MESSAGE_CUSTOMURL: string;
175
- PICBED_SFTPPLIST_MESSAGE_WEBSITE_PATH: string;
176
- PICBED_SFTPPLIST_MESSAGE_FILE_USER: string;
177
- PICBED_SFTPPLIST_MESSAGE_FILE_MODE: string;
178
- PICBED_SFTPPLIST_MESSAGE_DIR_MODE: string;
179
- PICBED_PICLIST: string;
180
- PICBED_PICLIST_HOST: string;
181
- PICBED_PICLIST_PORT: string;
182
- PICBED_PICLIST_PICBED: string;
183
- PICBED_PICLIST_CONFIGNAME: string;
184
- PICBED_PICLIST_KEY: string;
185
- PICBED_LSKY_PLIST: string;
186
- PICBED_LSKY_VERSION: string;
187
- PICBED_LSKY_MESSAGE_VERSION: string;
188
- PICBED_LSKY_HOST: string;
189
- PICBED_LSKY_MESSAGE_HOST: string;
190
- PICBED_LSKY_TOKEN: string;
191
- PICBED_LSKY_MESSAGE_TOKEN: string;
192
- PICBED_LSKY_STRATEGY_ID: string;
193
- PICBED_LSKY_MESSAGE_STRATEGY_ID: string;
194
- PICBED_LSKY_ALBUM_ID: string;
195
- PICBED_LSKY_MESSAGE_ALBUM_ID: string;
196
- PICBED_LSKY_PERMISSION: string;
197
- PICBED_LSKY_MESSAGE_PERMISSION: string;
198
- PICBED_AWSS3PLIST: string;
199
- PICBED_AWSS3PLIST_ACCESSKEYID: string;
200
- PICBED_AWSS3PLIST_SECRET_ACCESSKEY: string;
201
- PICBED_AWSS3PLIST_BUCKET: string;
202
- PICBED_AWSS3PLIST_REGION: string;
203
- PICBED_AWSS3PLIST_UPLOADPATH: string;
204
- PICBED_AWSS3PLIST_ENDPOINT: string;
205
- PICBED_AWSS3PLIST_PROXY: string;
206
- PICBED_AWSS3PLIST_URLPREFIX: string;
207
- PICBED_AWSS3PLIST_PATHSTYLEACCESS: string;
208
- PICBED_AWSS3PLIST_REJECTUNAUTHORIZED: string;
209
- PICBED_AWSS3PLIST_ACL: string;
210
- PICBED_AWSS3PLIST_DISABLEBUCKETPREFIXTOURL: string;
211
- PICBED_AWSS3PLIST_MESSAGE_ACCESSKEYID: string;
212
- PICBED_AWSS3PLIST_MESSAGE_SECRET_ACCESSKEY: string;
213
- PICBED_AWSS3PLIST_MESSAGE_BUCKET: string;
214
- PICBED_AWSS3PLIST_MESSAGE_REGION: string;
215
- PICBED_AWSS3PLIST_MESSAGE_UPLOADPATH: string;
216
- PICBED_AWSS3PLIST_MESSAGE_ENDPOINT: string;
217
- PICBED_AWSS3PLIST_MESSAGE_PROXY: string;
218
- PICBED_AWSS3PLIST_MESSAGE_URLPREFIX: string;
219
- PICBED_AWSS3PLIST_MESSAGE_PATHSTYLEACCESS: string;
220
- PICBED_AWSS3PLIST_MESSAGE_REJECTUNAUTHORIZED: string;
221
- PICBED_AWSS3PLIST_MESSAGE_ACL: string;
222
- PICBED_AWSS3PLIST_MESSAGE_DISABLEBUCKETPREFIXTOURL: string;
223
- BUILDIN_WATERMARK: string;
224
- BUILDIN_WATERMARK_ISADDWATERMARK: string;
225
- BUILDIN_WATERMARK_MESSAGE_ISADDWATERMARK: string;
226
- BUILDIN_WATERMARK_WATERMARKTYPE: string;
227
- BUILDIN_WATERMARK_MESSAGE_WATERMARKTYPE: string;
228
- BUILDIN_WATERMARK_ISFULLSCREENWATERMARK: string;
229
- BUILDIN_WATERMARK_MESSAGE_ISFULLSCREENWATERMARK: string;
230
- BUILDIN_WATERMARK_WATERMARKDEGREE: string;
231
- BUILDIN_WATERMARK_MESSAGE_WATERMARKDEGREE: string;
232
- BUILDIN_WATERMARK_WATERMARKTEXT: string;
233
- BUILDIN_WATERMARK_MESSAGE_WATERMARKTEXT: string;
234
- BUILDIN_WATERMARK_WATERMARKFONTPATH: string;
235
- BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTPATH: string;
236
- BUILDIN_WATERMARK_WATERMARKSCALERATIO: string;
237
- BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTRATIO: string;
238
- BUILDIN_WATERMARK_WATERMARKCOLOR: string;
239
- BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTCOLOR: string;
240
- BUILDIN_WATERMARK_WATERMARKIMAGEPATH: string;
241
- BUILDIN_WATERMARK_MESSAGE_WATERMARKIMAGEPATH: string;
242
- BUILDIN_WATERMARK_WATERMARKPOSITION: string;
243
- BUILDIN_WATERMARK_MESSAGE_WATERMARKPOSITION: string;
244
- BUILDIN_SKIPPROCESS: string;
245
- BUILDIN_SKIPPROCESS_SKIPPROCESSEXTLIST: string;
246
- BUILDIN_RENAME: string;
247
- BUILDIN_RENAME_FORMAT: string;
248
- BUILDIN_RENAME_ENABLE: string;
249
- BUILDIN_COMPRESS: string;
250
- BUILDIN_COMPRESS_QUALITY: string;
251
- BUILDIN_COMPRESS_MESSAGE_QUALITY: string;
252
- BUILDIN_COMPRESS_ISCONVERT: string;
253
- BUILDIN_COMPRESS_MESSAGE_ISCONVERT: string;
254
- BUILDIN_COMPRESS_CONVERTFORMAT: string;
255
- BUILDIN_COMPRESS_MESSAGE_CONVERTFORMAT: string;
256
- BUILDIN_COMPRESS_ISRESIZE: string;
257
- BUILDIN_COMPRESS_MESSAGE_ISRESIZE: string;
258
- BUILDIN_COMPRESS_RESIZEWIDTH: string;
259
- BUILDIN_COMPRESS_MESSAGE_RESIZEWIDTH: string;
260
- BUILDIN_COMPRESS_RESIZEHEIGHT: string;
261
- BUILDIN_COMPRESS_MESSAGE_RESIZEHEIGHT: string;
262
- BUILDIN_COMPRESS_ISRESIZEBYPERCENT: string;
263
- BUILDIN_COMPRESS_MESSAGE_ISRESIZEBYPERCENT: string;
264
- BUILDIN_COMPRESS_ISFLIP: string;
265
- BUILDIN_COMPRESS_ISFLOP: string;
266
- BUILDIN_COMPRESS_RESIZEPERCENT: string;
267
- BUILDIN_COMPRESS_MESSAGE_RESIZEPERCENT: string;
268
- BUILDIN_COMPRESS_SKIPRESIZEOFSMALLIMG: string;
269
- BUILDIN_COMPRESS_ISROTATE: string;
270
- BUILDIN_COMPRESS_MESSAGE_ISROTATE: string;
271
- BUILDIN_COMPRESS_ROTATEDEGREE: string;
272
- BUILDIN_COMPRESS_MESSAGE_ROTATEDEGREE: string;
273
- BUILDIN_COMPRESS_ISREMOVEEXIF: string;
274
- BUILDIN_COMPRESS_MESSAGE_ISREMOVEEXIF: string;
275
- PLUGIN_HANDLER_PLUGIN_INSTALL_SUCCESS: string;
276
- PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED: string;
277
- PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_REASON: string;
278
- PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_PATH: string;
279
- PLUGIN_HANDLER_PLUGIN_UNINSTALL_SUCCESS: string;
280
- PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED: string;
281
- PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_REASON: string;
282
- PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_VALID: string;
283
- PLUGIN_HANDLER_PLUGIN_UPDATE_SUCCESS: string;
284
- PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED: string;
285
- PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_REASON: string;
286
- PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_VALID: string;
287
- };
288
- export type ILocalesKey = keyof typeof ZH_CN;
289
- export type ILocales = typeof ZH_CN;
1
+ export declare const ZH_CN: {
2
+ UPLOAD_FAILED: string;
3
+ CHECK_SETTINGS: string;
4
+ CHECK_SETTINGS_AND_NETWORK: string;
5
+ UPLOAD_FAILED_REASON: string;
6
+ SERVER_ERROR: string;
7
+ AUTH_FAILED: string;
8
+ PICBED_SMMS: string;
9
+ PICBED_SMMS_TOKEN: string;
10
+ PICBED_SMMS_MESSAGE_TOKEN: string;
11
+ PICBED_SMMS_BACKUPDOMAIN: string;
12
+ PICBED_SMMS_MESSAGE_BACKUP_DOMAIN: string;
13
+ PICBED_ADVANCEDPLIST: string;
14
+ PICBED_ADVANCEDPLIST_ENDPOINT: string;
15
+ PICBED_ADVANCEDPLIST_MESSAGE_ENDPOINT: string;
16
+ PICBED_ADVANCEDPLIST_METHOD: string;
17
+ PICBED_ADVANCEDPLIST_MESSAGE_METHOD: string;
18
+ PICBED_ADVANCEDPLIST_FORMDATAKEY: string;
19
+ PICBED_ADVANCEDPLIST_MESSAGE_FORMDATAKEY: string;
20
+ PICBED_ADVANCEDPLIST_HEADERS: string;
21
+ PICBED_ADVANCEDPLIST_MESSAGE_HEADERS: string;
22
+ PICBED_ADVANCEDPLIST_BODY: string;
23
+ PICBED_ADVANCEDPLIST_MESSAGE_BODY: string;
24
+ PICBED_ADVANCEDPLIST_CUSTOMPREFIX: string;
25
+ PICBED_ADVANCEDPLIST_MESSAGE_CUSTOMPREFIX: string;
26
+ PICBED_ADVANCEDPLIST_WEBPATH: string;
27
+ PICBED_ADVANCEDPLIST_MESSAGE_WEBPATH: string;
28
+ PICBED_ADVANCEDPLIST_RESDATAPATH: string;
29
+ PICBED_ADVANCEDPLIST_MESSAGE_RESDATAPATH: string;
30
+ PICBED_LOCAL: string;
31
+ PICBED_LOCAL_PATH: string;
32
+ PICBED_LOCAL_MESSAGE_PATH: string;
33
+ PICBED_LOCAL_CUSTOMURL: string;
34
+ PICBED_LOCAL_MESSAGE_CUSTOMURL: string;
35
+ PICBED_LOCAL_WEBPATH: string;
36
+ PICBED_LOCAL_MESSAGE_WEBPATH: string;
37
+ PICBED_ALIST_PLIST: string;
38
+ PICBED_ALIST_URL: string;
39
+ PICBED_ALIST_MESSAGE_URL: string;
40
+ PICBED_ALIST_TOKEN: string;
41
+ PICBED_ALIST_MESSAGE_TOKEN: string;
42
+ PICBED_ALIST_USERNAME: string;
43
+ PICBED_ALIST_MESSAGE_USERNAME: string;
44
+ PICBED_ALIST_PASSWORD: string;
45
+ PICBED_ALIST_MESSAGE_PASSWORD: string;
46
+ PICBED_ALIST_UPLOADPATH: string;
47
+ PICBED_ALIST_MESSAGE_UPLOAD_PATH: string;
48
+ PICBED_ALIST_WEBPATH: string;
49
+ PICBED_ALIST_MESSAGE_WEB_PATH: string;
50
+ PICBED_ALIST_CUSTOMURL: string;
51
+ PICBED_ALIST_MESSAGE_CUSTOMURL: string;
52
+ PICBED_ALICLOUD: string;
53
+ PICBED_ALICLOUD_ACCESSKEYID: string;
54
+ PICBED_ALICLOUD_ACCESSKEYSECRET: string;
55
+ PICBED_ALICLOUD_BUCKET: string;
56
+ PICBED_ALICLOUD_AREA: string;
57
+ PICBED_ALICLOUD_PATH: string;
58
+ PICBED_ALICLOUD_WEBPATH: string;
59
+ PICBED_ALICLOUD_CUSTOMURL: string;
60
+ PICBED_ALICLOUD_OPTIONS: string;
61
+ PICBED_ALICLOUD_MESSAGE_AREA: string;
62
+ PICBED_ALICLOUD_MESSAGE_PATH: string;
63
+ PICBED_ALICLOUD_MESSAGE_WEBPATH: string;
64
+ PICBED_ALICLOUD_MESSAGE_OPTIONS: string;
65
+ PICBED_ALICLOUD_MESSAGE_CUSTOMURL: string;
66
+ PICBED_TENCENTCLOUD: string;
67
+ PICBED_TENCENTCLOUD_VERSION: string;
68
+ PICBED_TENCENTCLOUD_SECRETID: string;
69
+ PICBED_TENCENTCLOUD_SECRETKEY: string;
70
+ PICBED_TENCENTCLOUD_APPID: string;
71
+ PICBED_TENCENTCLOUD_BUCKET: string;
72
+ PICBED_TENCENTCLOUD_AREA: string;
73
+ PICBED_TENCENTCLOUD_ENDPOINT: string;
74
+ PICBED_TENCENTCLOUD_PATH: string;
75
+ PICBED_TENCENTCLOUD_WEBPATH: string;
76
+ PICBED_TENCENTCLOUD_OPTIONS: string;
77
+ PICBED_TENCENTCLOUD_CUSTOMURL: string;
78
+ PICBED_TENCENTCLOUD_MESSAGE_APPID: string;
79
+ PICBED_TENCENTCLOUD_MESSAGE_AREA: string;
80
+ PICBED_TENCENTCLOUD_MESSAGE_PATH: string;
81
+ PICBED_TENCENTCLOUD_MESSAGE_WEBPATH: string;
82
+ PICBED_TENCENTCLOUD_MESSAGE_CUSTOMURL: string;
83
+ PICBED_TENCENTCLOUD_MESSAGE_OPTIONS: string;
84
+ PICBED_TENCENTCLOUD_MESSAGE_ENDPOINT: string;
85
+ PICBED_TENCENTCLOUD_SLIM: string;
86
+ PICBED_TENCENTCLOUD_SLIM_TIP: string;
87
+ PICBED_TENCENTCLOUD_SLIM_CONFIRM: string;
88
+ PICBED_TENCENTCLOUD_SLIM_CANCEL: string;
89
+ PICBED_GITHUB: string;
90
+ PICBED_GITHUB_TOKEN: string;
91
+ PICBED_GITHUB_REPO: string;
92
+ PICBED_GITHUB_PATH: string;
93
+ PICBED_GITHUB_BRANCH: string;
94
+ PICBED_GITHUB_CUSTOMURL: string;
95
+ PICBED_GITHUB_MESSAGE_REPO: string;
96
+ PICBED_GITHUB_MESSAGE_BRANCH: string;
97
+ PICBED_GITHUB_MESSAGE_PATH: string;
98
+ PICBED_GITHUB_MESSAGE_CUSTOMURL: string;
99
+ PICBED_QINIU: string;
100
+ PICBED_QINIU_ACCESSKEY: string;
101
+ PICBED_QINIU_SECRETKEY: string;
102
+ PICBED_QINIU_BUCKET: string;
103
+ PICBED_QINIU_PATH: string;
104
+ PICBED_QINIU_URL: string;
105
+ PICBED_QINIU_OPTIONS: string;
106
+ PICBED_QINIU_AREA: string;
107
+ PICBED_QINIU_MESSAGE_PATH: string;
108
+ PICBED_QINIU_MESSAGE_AREA: string;
109
+ PICBED_QINIU_MESSAGE_OPTIONS: string;
110
+ PICBED_QINIU_MESSAGE_URL: string;
111
+ PICBED_IMGUR: string;
112
+ PICBED_IMGUR_CLIENTID: string;
113
+ PICBED_IMGUR_USERNAME: string;
114
+ PICBED_IMGUR_ACCESS_TOKEN: string;
115
+ PICBED_IMGUR_ALBUM: string;
116
+ PICBED_IMGUR_PROXY: string;
117
+ PICBED_IMGUR_MESSAGE_CLIENTID: string;
118
+ PICBED_IMGUR_MESSAGE_USERNAME: string;
119
+ PICBED_IMGUR_MESSAGE_ACCESS_TOKEN: string;
120
+ PICBED_IMGUR_MESSAGE_ALBUM: string;
121
+ PICBED_IMGUR_MESSAGE_PROXY: string;
122
+ PICBED_UPYUN: string;
123
+ PICBED_UPYUN_BUCKET: string;
124
+ PICBED_UPYUN_OPERATOR: string;
125
+ PICBED_UPYUN_PASSWORD: string;
126
+ PICBED_UPYUN_PATH: string;
127
+ PICBED_UPYUN_URL: string;
128
+ PICBED_UPYUN_OPTIONS: string;
129
+ PICBED_UPYUN_ENDPOINT: string;
130
+ PICBED_UPYUN_ANTILEECHTOKEN: string;
131
+ PICBED_UPYUN_EXPIRETIME: string;
132
+ PICBED_UPYUN_MESSAGE_OPERATOR: string;
133
+ PICBED_UPYUN_MESSAGE_PASSWORD: string;
134
+ PICBED_UPYUN_MESSAGE_URL: string;
135
+ PICBED_UPYUN_MESSAGE_OPTIONS: string;
136
+ PICBED_UPYUN_MESSAGE_PATH: string;
137
+ PICBED_UPYUN_MESSAGE_ENDPOINT: string;
138
+ PICBED_WEBDAVPLIST: string;
139
+ PICBED_WEBDAVPLIST_HOST: string;
140
+ PICBED_WEBDAVPLIST_SSLENABLED: string;
141
+ PICBED_WEBDAVPLIST_USERNAME: string;
142
+ PICBED_WEBDAVPLIST_PASSWORD: string;
143
+ PICBED_WEBDAVPLIST_PATH: string;
144
+ PICBED_WEBDAVPLIST_WEBPATH: string;
145
+ PICBED_WEBDAVPLIST_CUSTOMURL: string;
146
+ PICBED_WEBDAVPLIST_AUTHTYPE: string;
147
+ PICBED_WEBDAVPLIST_OPTIONS: string;
148
+ PICBED_WEBDAVPLIST_MESSAGE_HOST: string;
149
+ PICBED_WEBDAVPLIST_MESSAGE_SSLENABLED: string;
150
+ PICBED_WEBDAVPLIST_MESSAGE_USERNAME: string;
151
+ PICBED_WEBDAVPLIST_MESSAGE_PASSWORD: string;
152
+ PICBED_WEBDAVPLIST_MESSAGE_PATH: string;
153
+ PICBED_WEBDAVPLIST_MESSAGE_WEBSITE_PATH: string;
154
+ PICBED_WEBDAVPLIST_MESSAGE_CUSTOMURL: string;
155
+ PICBED_WEBDAVPLIST_MESSAGE_OPTIONS: string;
156
+ PICBED_SFTPPLIST: string;
157
+ PICBED_SFTPPLIST_HOST: string;
158
+ PICBED_SFTPPLIST_PORT: string;
159
+ PICBED_SFTPPLIST_USERNAME: string;
160
+ PICBED_SFTPPLIST_PASSWORD: string;
161
+ PICBED_SFTPPLIST_PRIVATEKEY: string;
162
+ PICBED_SFTPPLIST_PRIVATEKEY_PASSPHRASE: string;
163
+ PICBED_SFTPPLIST_UPLOADPATH: string;
164
+ PICBED_SFTPPLIST_CUSTOMURL: string;
165
+ PICBED_SFTPPLIST_WEBSITE_PATH: string;
166
+ PICBED_SFTPPLIST_FILE_USER: string;
167
+ PICBED_SFTPPLIST_FILE_MODE: string;
168
+ PICBED_SFTPPLIST_DIR_MODE: string;
169
+ PICBED_SFTPPLIST_MESSAGE_HOST: string;
170
+ PICBED_SFTPPLIST_MESSAGE_PORT: string;
171
+ PICBED_SFTPPLIST_MESSAGE_PRIVATEKEY: string;
172
+ PICBED_SFTPPLIST_MESSAGE_PRIVATEKEY_PASSPHRASE: string;
173
+ PICBED_SFTPPLIST_MESSAGE_UPLOADPATH: string;
174
+ PICBED_SFTPPLIST_MESSAGE_CUSTOMURL: string;
175
+ PICBED_SFTPPLIST_MESSAGE_WEBSITE_PATH: string;
176
+ PICBED_SFTPPLIST_MESSAGE_FILE_USER: string;
177
+ PICBED_SFTPPLIST_MESSAGE_FILE_MODE: string;
178
+ PICBED_SFTPPLIST_MESSAGE_DIR_MODE: string;
179
+ PICBED_PICLIST: string;
180
+ PICBED_PICLIST_HOST: string;
181
+ PICBED_PICLIST_PORT: string;
182
+ PICBED_PICLIST_PICBED: string;
183
+ PICBED_PICLIST_CONFIGNAME: string;
184
+ PICBED_PICLIST_KEY: string;
185
+ PICBED_LSKY_PLIST: string;
186
+ PICBED_LSKY_VERSION: string;
187
+ PICBED_LSKY_MESSAGE_VERSION: string;
188
+ PICBED_LSKY_HOST: string;
189
+ PICBED_LSKY_MESSAGE_HOST: string;
190
+ PICBED_LSKY_TOKEN: string;
191
+ PICBED_LSKY_MESSAGE_TOKEN: string;
192
+ PICBED_LSKY_STRATEGY_ID: string;
193
+ PICBED_LSKY_MESSAGE_STRATEGY_ID: string;
194
+ PICBED_LSKY_ALBUM_ID: string;
195
+ PICBED_LSKY_MESSAGE_ALBUM_ID: string;
196
+ PICBED_LSKY_PERMISSION: string;
197
+ PICBED_LSKY_MESSAGE_PERMISSION: string;
198
+ PICBED_AWSS3PLIST: string;
199
+ PICBED_AWSS3PLIST_ACCESSKEYID: string;
200
+ PICBED_AWSS3PLIST_SECRET_ACCESSKEY: string;
201
+ PICBED_AWSS3PLIST_BUCKET: string;
202
+ PICBED_AWSS3PLIST_REGION: string;
203
+ PICBED_AWSS3PLIST_UPLOADPATH: string;
204
+ PICBED_AWSS3PLIST_ENDPOINT: string;
205
+ PICBED_AWSS3PLIST_PROXY: string;
206
+ PICBED_AWSS3PLIST_URLPREFIX: string;
207
+ PICBED_AWSS3PLIST_OPTIONS: string;
208
+ PICBED_AWSS3PLIST_MESSAGE_OPTIONS: string;
209
+ PICBED_AWSS3PLIST_PATHSTYLEACCESS: string;
210
+ PICBED_AWSS3PLIST_REJECTUNAUTHORIZED: string;
211
+ PICBED_AWSS3PLIST_ACL: string;
212
+ PICBED_AWSS3PLIST_DISABLEBUCKETPREFIXTOURL: string;
213
+ PICBED_AWSS3PLIST_MESSAGE_ACCESSKEYID: string;
214
+ PICBED_AWSS3PLIST_MESSAGE_SECRET_ACCESSKEY: string;
215
+ PICBED_AWSS3PLIST_MESSAGE_BUCKET: string;
216
+ PICBED_AWSS3PLIST_MESSAGE_REGION: string;
217
+ PICBED_AWSS3PLIST_MESSAGE_UPLOADPATH: string;
218
+ PICBED_AWSS3PLIST_MESSAGE_ENDPOINT: string;
219
+ PICBED_AWSS3PLIST_MESSAGE_PROXY: string;
220
+ PICBED_AWSS3PLIST_MESSAGE_URLPREFIX: string;
221
+ PICBED_AWSS3PLIST_MESSAGE_PATHSTYLEACCESS: string;
222
+ PICBED_AWSS3PLIST_MESSAGE_REJECTUNAUTHORIZED: string;
223
+ PICBED_AWSS3PLIST_MESSAGE_ACL: string;
224
+ PICBED_AWSS3PLIST_MESSAGE_DISABLEBUCKETPREFIXTOURL: string;
225
+ BUILDIN_WATERMARK: string;
226
+ BUILDIN_WATERMARK_ISADDWATERMARK: string;
227
+ BUILDIN_WATERMARK_MESSAGE_ISADDWATERMARK: string;
228
+ BUILDIN_WATERMARK_WATERMARKTYPE: string;
229
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKTYPE: string;
230
+ BUILDIN_WATERMARK_ISFULLSCREENWATERMARK: string;
231
+ BUILDIN_WATERMARK_MESSAGE_ISFULLSCREENWATERMARK: string;
232
+ BUILDIN_WATERMARK_WATERMARKDEGREE: string;
233
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKDEGREE: string;
234
+ BUILDIN_WATERMARK_WATERMARKTEXT: string;
235
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKTEXT: string;
236
+ BUILDIN_WATERMARK_WATERMARKFONTPATH: string;
237
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTPATH: string;
238
+ BUILDIN_WATERMARK_WATERMARKSCALERATIO: string;
239
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTRATIO: string;
240
+ BUILDIN_WATERMARK_WATERMARKCOLOR: string;
241
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKFONTCOLOR: string;
242
+ BUILDIN_WATERMARK_WATERMARKIMAGEPATH: string;
243
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKIMAGEPATH: string;
244
+ BUILDIN_WATERMARK_WATERMARKPOSITION: string;
245
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKPOSITION: string;
246
+ BUILDIN_WATERMARK_WATERMARKIMAGEOPACITY: string;
247
+ BUILDIN_WATERMARK_MESSAGE_WATERMARKIMAGEOPACITY: string;
248
+ BUILDIN_SKIPPROCESS: string;
249
+ BUILDIN_SKIPPROCESS_SKIPPROCESSEXTLIST: string;
250
+ BUILDIN_RENAME: string;
251
+ BUILDIN_RENAME_FORMAT: string;
252
+ BUILDIN_RENAME_ENABLE: string;
253
+ BUILDIN_COMPRESS: string;
254
+ BUILDIN_COMPRESS_QUALITY: string;
255
+ BUILDIN_COMPRESS_MESSAGE_QUALITY: string;
256
+ BUILDIN_COMPRESS_ISCONVERT: string;
257
+ BUILDIN_COMPRESS_MESSAGE_ISCONVERT: string;
258
+ BUILDIN_COMPRESS_CONVERTFORMAT: string;
259
+ BUILDIN_COMPRESS_MESSAGE_CONVERTFORMAT: string;
260
+ BUILDIN_COMPRESS_ISRESIZE: string;
261
+ BUILDIN_COMPRESS_MESSAGE_ISRESIZE: string;
262
+ BUILDIN_COMPRESS_RESIZEWIDTH: string;
263
+ BUILDIN_COMPRESS_MESSAGE_RESIZEWIDTH: string;
264
+ BUILDIN_COMPRESS_RESIZEHEIGHT: string;
265
+ BUILDIN_COMPRESS_MESSAGE_RESIZEHEIGHT: string;
266
+ BUILDIN_COMPRESS_ISRESIZEBYPERCENT: string;
267
+ BUILDIN_COMPRESS_MESSAGE_ISRESIZEBYPERCENT: string;
268
+ BUILDIN_COMPRESS_ISFLIP: string;
269
+ BUILDIN_COMPRESS_ISFLOP: string;
270
+ BUILDIN_COMPRESS_RESIZEPERCENT: string;
271
+ BUILDIN_COMPRESS_MESSAGE_RESIZEPERCENT: string;
272
+ BUILDIN_COMPRESS_SKIPRESIZEOFSMALLIMG: string;
273
+ BUILDIN_COMPRESS_ISROTATE: string;
274
+ BUILDIN_COMPRESS_MESSAGE_ISROTATE: string;
275
+ BUILDIN_COMPRESS_ROTATEDEGREE: string;
276
+ BUILDIN_COMPRESS_MESSAGE_ROTATEDEGREE: string;
277
+ BUILDIN_COMPRESS_ISREMOVEEXIF: string;
278
+ BUILDIN_COMPRESS_MESSAGE_ISREMOVEEXIF: string;
279
+ PLUGIN_HANDLER_PLUGIN_INSTALL_SUCCESS: string;
280
+ PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED: string;
281
+ PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_REASON: string;
282
+ PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_PATH: string;
283
+ PLUGIN_HANDLER_PLUGIN_UNINSTALL_SUCCESS: string;
284
+ PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED: string;
285
+ PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_REASON: string;
286
+ PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_VALID: string;
287
+ PLUGIN_HANDLER_PLUGIN_UPDATE_SUCCESS: string;
288
+ PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED: string;
289
+ PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_REASON: string;
290
+ PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_VALID: string;
291
+ };
292
+ export type ILocalesKey = keyof typeof ZH_CN;
293
+ export type ILocales = typeof ZH_CN;
@@ -1,2 +1,2 @@
1
- import { ILocales } from './zh-CN';
2
- export declare const ZH_TW: ILocales;
1
+ import { ILocales } from './zh-CN';
2
+ export declare const ZH_TW: ILocales;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { PicGo } from './core/PicGo';
2
- export { Lifecycle } from './core/Lifecycle';
3
- export { Commander } from './lib/Commander';
4
- export { LifecyclePlugins } from './lib/LifecyclePlugins';
5
- export { Logger } from './lib/Logger';
6
- export { PluginHandler } from './lib/PluginHandler';
7
- export { PluginLoader } from './lib/PluginLoader';
8
- export { Request } from './lib/Request';
9
- export * as PicGoUtils from './utils/common';
10
- export * from './types';
1
+ export { Lifecycle } from './core/Lifecycle';
2
+ export { PicGo } from './core/PicGo';
3
+ export { Commander } from './lib/Commander';
4
+ export { LifecyclePlugins } from './lib/LifecyclePlugins';
5
+ export { Logger } from './lib/Logger';
6
+ export { PluginHandler } from './lib/PluginHandler';
7
+ export { PluginLoader } from './lib/PluginLoader';
8
+ export { Request } from './lib/Request';
9
+ export * from './types';
10
+ export * as PicGoUtils from './utils/common';