piclist 1.9.14 → 2.0.0
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/.github/workflows/docker.yml +5 -5
- package/CHANGELOG.md +13 -0
- package/License +22 -22
- package/README.md +1 -1
- package/README_cn.md +1 -1
- package/bin/picgo +9 -7
- package/bin/picgo-server +180 -161
- package/dist/core/Lifecycle.d.ts +35 -36
- package/dist/core/PicGo.d.ts +52 -52
- package/dist/i18n/en.d.ts +2 -2
- package/dist/i18n/index.d.ts +19 -17
- package/dist/i18n/zh-CN.d.ts +293 -289
- package/dist/i18n/zh-TW.d.ts +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2 -0
- package/dist/lib/Commander.d.ts +22 -22
- package/dist/lib/LifecyclePlugins.d.ts +26 -26
- package/dist/lib/Logger.d.ts +19 -19
- package/dist/lib/PluginHandler.d.ts +10 -10
- package/dist/lib/PluginLoader.d.ts +27 -27
- package/dist/lib/Request.d.ts +12 -12
- package/dist/plugins/beforetransformer/compress.d.ts +5 -5
- package/dist/plugins/beforetransformer/skipProcess.d.ts +5 -5
- package/dist/plugins/beforetransformer/watermark.d.ts +5 -5
- package/dist/plugins/beforeupload/buildInRename.d.ts +5 -5
- package/dist/plugins/commander/config.d.ts +3 -3
- package/dist/plugins/commander/i18n.d.ts +3 -3
- package/dist/plugins/commander/index.d.ts +3 -3
- package/dist/plugins/commander/pluginHandler.d.ts +3 -3
- package/dist/plugins/commander/proxy.d.ts +3 -3
- package/dist/plugins/commander/setting.d.ts +5 -5
- package/dist/plugins/commander/upload.d.ts +3 -3
- package/dist/plugins/commander/use.d.ts +3 -3
- package/dist/plugins/commander/utils.d.ts +2 -2
- package/dist/plugins/transformer/base64.d.ts +5 -5
- package/dist/plugins/transformer/index.d.ts +5 -5
- package/dist/plugins/transformer/path.d.ts +5 -5
- package/dist/plugins/uploader/advancedplist.d.ts +2 -2
- package/dist/plugins/uploader/alist.d.ts +2 -2
- package/dist/plugins/uploader/aliyun.d.ts +2 -2
- package/dist/plugins/uploader/awss3plist.d.ts +2 -2
- package/dist/plugins/uploader/github.d.ts +2 -2
- package/dist/plugins/uploader/imgur.d.ts +2 -2
- package/dist/plugins/uploader/index.d.ts +5 -5
- package/dist/plugins/uploader/local.d.ts +2 -2
- package/dist/plugins/uploader/lsky.d.ts +20 -21
- package/dist/plugins/uploader/piclist.d.ts +2 -2
- package/dist/plugins/uploader/qiniu.d.ts +2 -2
- package/dist/plugins/uploader/s3/uploader.d.ts +25 -24
- package/dist/plugins/uploader/s3/utils.d.ts +9 -10
- package/dist/plugins/uploader/sftp.d.ts +2 -2
- package/dist/plugins/uploader/smms.d.ts +2 -2
- package/dist/plugins/uploader/tcyun.d.ts +8 -8
- package/dist/plugins/uploader/upyun.d.ts +2 -2
- package/dist/plugins/uploader/utils.d.ts +26 -26
- package/dist/plugins/uploader/webdav.d.ts +2 -2
- package/dist/types/index.d.ts +572 -693
- package/dist/types/oldRequest.d.ts +15 -15
- package/dist/utils/common.d.ts +42 -119
- package/dist/utils/createContext.d.ts +6 -6
- package/dist/utils/db.d.ts +17 -15
- package/dist/utils/enum.d.ts +27 -27
- package/dist/utils/eventBus.d.ts +3 -4
- package/dist/utils/getClipboardImage.d.ts +4 -4
- package/dist/utils/sshClient.d.ts +16 -16
- package/dist/utils/static.d.ts +1 -1
- package/docker-compose.yaml +11 -11
- package/eslint.config.js +104 -0
- package/package.json +62 -78
- package/rollup.config.js +25 -42
- package/.eslintignore +0 -6
- package/.eslintrc.js +0 -50
- package/.github/workflows/alpha.yml +0 -22
- package/.github/workflows/main.yml +0 -22
- package/.github/workflows/manually.yml +0 -19
- package/dist/index.cjs.js +0 -2
- package/dist/index.esm.js +0 -2
- package/dist/plugins/commander/init.d.ts +0 -3
- package/dist/utils/initUtils.d.ts +0 -26
- package/dist/utils/interfaces.d.ts +0 -201
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { IPicGo } from '../../types';
|
|
2
|
-
export declare function formatPathHelper({ path, startSlash, endSlash, rootToEmpty }: {
|
|
3
|
-
path?: string;
|
|
4
|
-
startSlash?: boolean;
|
|
5
|
-
endSlash?: boolean;
|
|
6
|
-
rootToEmpty?: boolean;
|
|
7
|
-
}): string;
|
|
8
|
-
export declare function encodePath(path: string): string;
|
|
9
|
-
export declare const buildInUploaderNames: {
|
|
10
|
-
advancedplist: string;
|
|
11
|
-
alistplist: string;
|
|
12
|
-
aliyun: string;
|
|
13
|
-
'aws-s3-plist': string;
|
|
14
|
-
github: string;
|
|
15
|
-
imgur: string;
|
|
16
|
-
local: string;
|
|
17
|
-
lskyplist: string;
|
|
18
|
-
piclist: string;
|
|
19
|
-
qiniu: string;
|
|
20
|
-
sftpplist: string;
|
|
21
|
-
smms: string;
|
|
22
|
-
tcyun: string;
|
|
23
|
-
upyun: string;
|
|
24
|
-
webdavplist: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const createField: (ctx: IPicGo, picBedName: string, name: string, type: any, defaultValue: any, required: boolean, i18nPrefix?: string, extras?: any) => any;
|
|
1
|
+
import { IPicGo } from '../../types';
|
|
2
|
+
export declare function formatPathHelper({ path, startSlash, endSlash, rootToEmpty }: {
|
|
3
|
+
path?: string;
|
|
4
|
+
startSlash?: boolean;
|
|
5
|
+
endSlash?: boolean;
|
|
6
|
+
rootToEmpty?: boolean;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function encodePath(path: string): string;
|
|
9
|
+
export declare const buildInUploaderNames: {
|
|
10
|
+
advancedplist: string;
|
|
11
|
+
alistplist: string;
|
|
12
|
+
aliyun: string;
|
|
13
|
+
'aws-s3-plist': string;
|
|
14
|
+
github: string;
|
|
15
|
+
imgur: string;
|
|
16
|
+
local: string;
|
|
17
|
+
lskyplist: string;
|
|
18
|
+
piclist: string;
|
|
19
|
+
qiniu: string;
|
|
20
|
+
sftpplist: string;
|
|
21
|
+
smms: string;
|
|
22
|
+
tcyun: string;
|
|
23
|
+
upyun: string;
|
|
24
|
+
webdavplist: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const createField: (ctx: IPicGo, picBedName: string, name: string, type: any, defaultValue: any, required: boolean, i18nPrefix?: string, extras?: any) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IPicGo } from '../../types';
|
|
2
|
-
export default function register(ctx: IPicGo): void;
|
|
1
|
+
import { IPicGo } from '../../types';
|
|
2
|
+
export default function register(ctx: IPicGo): void;
|