picgo-plugin-cloudflare-imgbed 0.0.1 → 0.0.2
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.
package/README.md
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
## picgo-plugin-
|
|
1
|
+
## picgo-plugin-cloudflare-imgbed
|
|
2
2
|
|
|
3
|
-
PicGo Uploader For MarSeventh/CloudFlare-ImgBed
|
|
4
|
-
|
|
3
|
+
Third Party PicGo Uploader For MarSeventh/CloudFlare-ImgBed
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
Rename the image in format `yyyyMMddHHmmssSSS` , then upload the image according to your configuration.
|
|
7
|
+
|
|
8
|
+
**Cli only til now.**
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
```bash
|
|
12
|
+
picgo install cloudflare-imgbed
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Configuration
|
|
16
|
+
```bash
|
|
17
|
+
picgo set uploader
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
- **Base URL**: `https://your-imgbed.com`
|
|
23
|
+
- **Auth Code**: you can set in `https://your-imgbed.com/systemConfig#security`, leave empty if not set.
|
|
24
|
+
- **Path**: relative path, leave empty for root(`/`), it's like `https://your-imgbed.com/file/${Path}/202311251618630.webp` in links.
|
|
25
|
+
- **Upload Name Type**: how the backend rename your image.
|
|
26
|
+
- origin(default): no rename, like `yyyyMMddHHmmssSSS.webp`
|
|
27
|
+
- default: add index in front, like `11110000_yyyyMMddHHmmssSSS.webp`
|
|
28
|
+
- short: encoding like short link, like `8P2yDGMl.webp`
|
|
29
|
+
- index: only index, like `11110000.webp`
|
|
30
|
+
## Update
|
|
31
|
+
```bash
|
|
32
|
+
picgo update cloudflare-imgbed
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
##
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,7 @@ module.exports = (ctx) => {
|
|
|
93
93
|
type: 'list',
|
|
94
94
|
default: (_e = savedConfig.uploadNameType) !== null && _e !== void 0 ? _e : 'origin',
|
|
95
95
|
required: false,
|
|
96
|
+
message: 'Upload Name Type',
|
|
96
97
|
choices: ['origin', 'default', 'index', 'short'],
|
|
97
98
|
alias: 'Upload Name Type'
|
|
98
99
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|