piclist 0.0.8 → 0.0.9

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.
@@ -0,0 +1,2 @@
1
+ import { IPicGo } from '../../types';
2
+ export default function register(ctx: IPicGo): void;
@@ -329,6 +329,21 @@ export interface IImgurConfig {
329
329
  /** 代理地址,仅支持 http 代理 */
330
330
  proxy: string;
331
331
  }
332
+ /** Webdav 图床配置项 */
333
+ export interface IWebdavPlistConfig {
334
+ /** webdav 的 `host` */
335
+ host: string;
336
+ /** webdav 的 `sslEnabled` */
337
+ sslEnabled: boolean;
338
+ /** webdav 的 `username` */
339
+ username: string;
340
+ /** webdav 的 `password` */
341
+ password: string;
342
+ /** webdav 的 `path` */
343
+ path: string;
344
+ /** webdav 的 `customUrl` */
345
+ customUrl: string;
346
+ }
332
347
  /** PicGo 配置文件类型定义 */
333
348
  export interface IConfig {
334
349
  picBed: {
@@ -341,6 +356,7 @@ export interface IConfig {
341
356
  github?: IGithubConfig;
342
357
  aliyun?: IAliyunConfig;
343
358
  imgur?: IImgurConfig;
359
+ webdavplist?: IWebdavPlistConfig;
344
360
  transformer?: string;
345
361
  /** for uploader */
346
362
  proxy?: string;
@@ -2,6 +2,7 @@
2
2
  /// <reference types="node" />
3
3
  import { PicGo } from '../core/PicGo';
4
4
  import LifecyclePlugins from '../lib/LifecyclePlugins';
5
+ import { IWebdavPlistConfig } from '../types';
5
6
  /**
6
7
  * for plugin config
7
8
  */
@@ -134,6 +135,7 @@ export interface IConfig {
134
135
  github?: IGithubConfig;
135
136
  aliyun?: IAliyunConfig;
136
137
  imgur?: IImgurConfig;
138
+ webdavplist?: IWebdavPlistConfig;
137
139
  transformer?: string;
138
140
  proxy: string;
139
141
  };
package/package.json CHANGED
@@ -1,132 +1,132 @@
1
- {
2
- "name": "piclist",
3
- "version": "0.0.8",
4
- "description": "Modified PicGo core, A tool for picture uploading",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "typings": "dist/index.d.ts",
8
- "bin": {
9
- "picgo": "./bin/picgo"
10
- },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "start": "node ./bin/picgo",
16
- "lint": "eslint src/**/*.ts && npm run build",
17
- "test": "echo \"Error: no test specified\" && exit 1",
18
- "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
19
- "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
20
- "patch": "npm version patch && git push origin master && git push origin --tags",
21
- "minor": "npm version minor && git push origin master && git push origin --tags",
22
- "major": "npm version major && git push origin master && git push origin --tags",
23
- "cz": "git-cz",
24
- "release": "bump-version"
25
- },
26
- "keywords": [
27
- "picture",
28
- "upload",
29
- "util"
30
- ],
31
- "husky": {
32
- "hooks": {
33
- "pre-commit": "npm run lint"
34
- }
35
- },
36
- "config": {
37
- "commitizen": {
38
- "path": "./node_modules/cz-customizable"
39
- },
40
- "cz-customizable": {
41
- "config": "./node_modules/@picgo/bump-version/.cz-config.js"
42
- }
43
- },
44
- "commitlint": {
45
- "extends": [
46
- "./node_modules/@picgo/bump-version/commitlint-picgo"
47
- ]
48
- },
49
- "author": "Kuingsmile",
50
- "license": "MIT",
51
- "devDependencies": {
52
- "@picgo/bump-version": "^1.1.2",
53
- "@rollup/plugin-commonjs": "^21.0.0",
54
- "@rollup/plugin-json": "^4.1.0",
55
- "@rollup/plugin-node-resolve": "^13.0.5",
56
- "@rollup/plugin-replace": "^3.0.0",
57
- "@types/cross-spawn": "^6.0.0",
58
- "@types/ejs": "^3.0.5",
59
- "@types/fs-extra": "^11.0.1",
60
- "@types/image-size": "^0.0.29",
61
- "@types/inquirer": "^0.0.42",
62
- "@types/js-yaml": "^4.0.5",
63
- "@types/lodash": "^4.14.175",
64
- "@types/md5": "^2.3.2",
65
- "@types/mime-types": "^2.1.0",
66
- "@types/minimatch": "^3.0.3",
67
- "@types/node": "16.11.7",
68
- "@types/resolve": "^0.0.8",
69
- "@types/rimraf": "^3.0.0",
70
- "@types/tunnel": "^0.0.3",
71
- "@typescript-eslint/eslint-plugin": "3",
72
- "@typescript-eslint/parser": "^3.2.0",
73
- "babel-eslint": "^10.1.0",
74
- "builtins": "^4.0.0",
75
- "conventional-changelog": "^3.0.6",
76
- "copyfiles": "^2.1.0",
77
- "cross-env": "^7.0.3",
78
- "cz-customizable": "^5.10.0",
79
- "eslint": "7",
80
- "eslint-config-standard-with-typescript": "^18.0.2",
81
- "eslint-plugin-import": "2",
82
- "eslint-plugin-node": "11",
83
- "eslint-plugin-promise": "4",
84
- "eslint-plugin-standard": "4",
85
- "execa": "^5.1.1",
86
- "husky": "^1.3.1",
87
- "pre-commit": "^1.2.2",
88
- "rollup": "^2.58.0",
89
- "rollup-plugin-string": "^3.0.0",
90
- "rollup-plugin-terser": "^7.0.2",
91
- "rollup-plugin-typescript2": "^0.30.0",
92
- "typescript": "^4.8.2"
93
- },
94
- "dependencies": {
95
- "@picgo/i18n": "^1.0.0",
96
- "@picgo/store": "^2.0.4",
97
- "axios": "^1.3.2",
98
- "chalk": "^2.4.1",
99
- "commander": "^8.1.0",
100
- "comment-json": "^2.3.1",
101
- "cross-spawn": "^6.0.5",
102
- "dayjs": "^1.11.7",
103
- "download-git-repo": "^3.0.2",
104
- "ejs": "^2.6.1",
105
- "fs-extra": "^11.1.0",
106
- "globby": "^11.0.4",
107
- "image-size": "^0.8.3",
108
- "inquirer": "^6.0.0",
109
- "is-wsl": "^2.2.0",
110
- "js-yaml": "^4.1.0",
111
- "lodash": "^4.17.21",
112
- "md5": "^2.3.0",
113
- "mime-types": "2.1.33",
114
- "minimatch": "^3.0.4",
115
- "minimist": "^1.2.5",
116
- "qiniu": "^7.8.0",
117
- "resolve": "^1.8.1",
118
- "rimraf": "^3.0.2",
119
- "tunnel": "^0.0.6"
120
- },
121
- "repository": {
122
- "type": "git",
123
- "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
124
- },
125
- "picBed": {
126
- "current": "smms"
127
- },
128
- "plugins": {},
129
- "engines": {
130
- "node": ">= 12.0.0"
131
- }
132
- }
1
+ {
2
+ "name": "piclist",
3
+ "version": "0.0.9",
4
+ "description": "Modified PicGo core, A tool for picture uploading",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "typings": "dist/index.d.ts",
8
+ "bin": {
9
+ "picgo": "./bin/picgo"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "start": "node ./bin/picgo",
16
+ "lint": "eslint src/**/*.ts && npm run build",
17
+ "test": "echo \"Error: no test specified\" && exit 1",
18
+ "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
19
+ "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
20
+ "patch": "npm version patch && git push origin master && git push origin --tags",
21
+ "minor": "npm version minor && git push origin master && git push origin --tags",
22
+ "major": "npm version major && git push origin master && git push origin --tags",
23
+ "cz": "git-cz",
24
+ "release": "bump-version"
25
+ },
26
+ "keywords": [
27
+ "picture",
28
+ "upload",
29
+ "util"
30
+ ],
31
+ "husky": {
32
+ "hooks": {
33
+ "pre-commit": "npm run lint"
34
+ }
35
+ },
36
+ "config": {
37
+ "commitizen": {
38
+ "path": "./node_modules/cz-customizable"
39
+ },
40
+ "cz-customizable": {
41
+ "config": "./node_modules/@picgo/bump-version/.cz-config.js"
42
+ }
43
+ },
44
+ "commitlint": {
45
+ "extends": [
46
+ "./node_modules/@picgo/bump-version/commitlint-picgo"
47
+ ]
48
+ },
49
+ "author": "Kuingsmile",
50
+ "license": "MIT",
51
+ "devDependencies": {
52
+ "@picgo/bump-version": "^1.1.2",
53
+ "@rollup/plugin-commonjs": "^21.0.0",
54
+ "@rollup/plugin-json": "^4.1.0",
55
+ "@rollup/plugin-node-resolve": "^13.0.5",
56
+ "@rollup/plugin-replace": "^3.0.0",
57
+ "@types/cross-spawn": "^6.0.0",
58
+ "@types/ejs": "^3.0.5",
59
+ "@types/fs-extra": "^11.0.1",
60
+ "@types/image-size": "^0.0.29",
61
+ "@types/inquirer": "^0.0.42",
62
+ "@types/js-yaml": "^4.0.5",
63
+ "@types/lodash": "^4.14.175",
64
+ "@types/md5": "^2.3.2",
65
+ "@types/mime-types": "^2.1.0",
66
+ "@types/minimatch": "^3.0.3",
67
+ "@types/node": "16.11.7",
68
+ "@types/resolve": "^0.0.8",
69
+ "@types/rimraf": "^3.0.0",
70
+ "@types/tunnel": "^0.0.3",
71
+ "@typescript-eslint/eslint-plugin": "3",
72
+ "@typescript-eslint/parser": "^3.2.0",
73
+ "babel-eslint": "^10.1.0",
74
+ "builtins": "^4.0.0",
75
+ "conventional-changelog": "^3.0.6",
76
+ "copyfiles": "^2.1.0",
77
+ "cross-env": "^7.0.3",
78
+ "cz-customizable": "^5.10.0",
79
+ "eslint": "7",
80
+ "eslint-config-standard-with-typescript": "^18.0.2",
81
+ "eslint-plugin-import": "2",
82
+ "eslint-plugin-node": "11",
83
+ "eslint-plugin-promise": "4",
84
+ "eslint-plugin-standard": "4",
85
+ "execa": "^5.1.1",
86
+ "husky": "^1.3.1",
87
+ "pre-commit": "^1.2.2",
88
+ "rollup": "^2.58.0",
89
+ "rollup-plugin-string": "^3.0.0",
90
+ "rollup-plugin-terser": "^7.0.2",
91
+ "rollup-plugin-typescript2": "^0.30.0",
92
+ "typescript": "^4.8.2"
93
+ },
94
+ "dependencies": {
95
+ "@picgo/i18n": "^1.0.0",
96
+ "@picgo/store": "^2.0.4",
97
+ "axios": "^1.3.2",
98
+ "chalk": "^2.4.1",
99
+ "commander": "^8.1.0",
100
+ "comment-json": "^2.3.1",
101
+ "cross-spawn": "^6.0.5",
102
+ "dayjs": "^1.11.7",
103
+ "download-git-repo": "^3.0.2",
104
+ "ejs": "^2.6.1",
105
+ "fs-extra": "^11.1.0",
106
+ "globby": "^11.0.4",
107
+ "image-size": "^0.8.3",
108
+ "inquirer": "^6.0.0",
109
+ "is-wsl": "^2.2.0",
110
+ "js-yaml": "^4.1.0",
111
+ "lodash": "^4.17.21",
112
+ "md5": "^2.3.0",
113
+ "mime-types": "2.1.33",
114
+ "minimatch": "^3.0.4",
115
+ "minimist": "^1.2.5",
116
+ "qiniu": "^7.8.0",
117
+ "resolve": "^1.8.1",
118
+ "rimraf": "^3.0.2",
119
+ "tunnel": "^0.0.6"
120
+ },
121
+ "repository": {
122
+ "type": "git",
123
+ "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
124
+ },
125
+ "picBed": {
126
+ "current": "smms"
127
+ },
128
+ "plugins": {},
129
+ "engines": {
130
+ "node": ">= 12.0.0"
131
+ }
132
+ }