picgo 1.5.0-alpha.0 → 1.5.0-alpha.3
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/alpha.yml +22 -0
- package/CHANGELOG.md +43 -0
- package/dist/core/PicGo.d.ts +2 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/index.d.ts +16 -0
- package/dist/i18n/zh-CN.d.ts +65 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/plugins/commander/i18n.d.ts +3 -0
- package/dist/plugins/uploader/aliyun.d.ts +2 -7
- package/dist/plugins/uploader/github.d.ts +2 -7
- package/dist/plugins/uploader/imgur.d.ts +2 -7
- package/dist/plugins/uploader/qiniu.d.ts +2 -7
- package/dist/plugins/uploader/smms.d.ts +2 -7
- package/dist/plugins/uploader/tcyun.d.ts +2 -7
- package/dist/plugins/uploader/upyun.d.ts +2 -7
- package/dist/types/index.d.ts +29 -1
- package/dist/utils/common.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- alpha
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Clone repo
|
|
11
|
+
uses: actions/checkout@v1
|
|
12
|
+
- name: Setup node
|
|
13
|
+
uses: actions/setup-node@v1
|
|
14
|
+
with:
|
|
15
|
+
node-version: '12.x'
|
|
16
|
+
registry-url: 'https://registry.npmjs.org'
|
|
17
|
+
- name: Install modules
|
|
18
|
+
run: yarn
|
|
19
|
+
- run: npm run build
|
|
20
|
+
- run: npm publish --tag alpha --access public
|
|
21
|
+
env:
|
|
22
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
# :tada: 1.5.0-alpha.3 (2022-04-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### :bug: Bug Fixes
|
|
5
|
+
|
|
6
|
+
* picgo-gui clipboard image uploading error ([1302f76](https://github.com/PicGo/PicGo-Core/commit/1302f76))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# :tada: 1.5.0-alpha.2 (2022-04-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### :sparkles: Features
|
|
14
|
+
|
|
15
|
+
* add wayland support for linux ([#119](https://github.com/PicGo/PicGo-Core/issues/119)) ([28905f2](https://github.com/PicGo/PicGo-Core/commit/28905f2))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### :bug: Bug Fixes
|
|
19
|
+
|
|
20
|
+
* qiniu && upyun errors ([587dd3f](https://github.com/PicGo/PicGo-Core/commit/587dd3f))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# :tada: 1.5.0-alpha.1 (2022-03-08)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### :sparkles: Features
|
|
28
|
+
|
|
29
|
+
* add options for tencent cos ([1fccdcc](https://github.com/PicGo/PicGo-Core/commit/1fccdcc)), closes [#117](https://github.com/PicGo/PicGo-Core/issues/117)
|
|
30
|
+
* **i18n:** add i18n for picgo ([4b93a76](https://github.com/PicGo/PicGo-Core/commit/4b93a76))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### :bug: Bug Fixes
|
|
34
|
+
|
|
35
|
+
* build error in windows ([5616fb9](https://github.com/PicGo/PicGo-Core/commit/5616fb9))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### :package: Chore
|
|
39
|
+
|
|
40
|
+
* add alpha branch for alpha version ([6882022](https://github.com/PicGo/PicGo-Core/commit/6882022)), closes [#106](https://github.com/PicGo/PicGo-Core/issues/106)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
1
44
|
# :tada: 1.5.0-alpha.0 (2021-10-26)
|
|
2
45
|
|
|
3
46
|
|
package/dist/core/PicGo.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import Commander from '../lib/Commander';
|
|
4
4
|
import { Logger } from '../lib/Logger';
|
|
5
|
-
import { IHelper, IImgInfo, IPicGo, IStringKeyMap, IPluginLoader } from '../types';
|
|
5
|
+
import { IHelper, IImgInfo, IPicGo, IStringKeyMap, IPluginLoader, II18nManager } from '../types';
|
|
6
6
|
import Request from '../lib/Request';
|
|
7
7
|
import PluginHandler from '../lib/PluginHandler';
|
|
8
8
|
import { RequestPromiseAPI } from 'request-promise-native';
|
|
@@ -25,6 +25,7 @@ export declare class PicGo extends EventEmitter implements IPicGo {
|
|
|
25
25
|
* use request instead
|
|
26
26
|
*/
|
|
27
27
|
Request: Request;
|
|
28
|
+
i18n: II18nManager;
|
|
28
29
|
VERSION: string;
|
|
29
30
|
GUI_VERSION?: string;
|
|
30
31
|
get pluginLoader(): IPluginLoader;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILocalesKey } from './zh-CN';
|
|
2
|
+
import { IPicGo } from '../types';
|
|
3
|
+
import { IStringKeyMap, II18nManager } from '../types/index';
|
|
4
|
+
import { ILocale } from '@picgo/i18n/dist/types';
|
|
5
|
+
declare class I18nManager implements II18nManager {
|
|
6
|
+
private readonly i18n;
|
|
7
|
+
private readonly objectAdapter;
|
|
8
|
+
private readonly ctx;
|
|
9
|
+
constructor(ctx: IPicGo);
|
|
10
|
+
translate<T extends string>(key: ILocalesKey | T, args?: IStringKeyMap<string>): string;
|
|
11
|
+
setLanguage(language: string): void;
|
|
12
|
+
addLocale(language: string, locales: ILocale): boolean;
|
|
13
|
+
addLanguage(language: string, locales: ILocale): boolean;
|
|
14
|
+
getLanguageList(): string[];
|
|
15
|
+
}
|
|
16
|
+
export { I18nManager };
|
|
@@ -0,0 +1,65 @@
|
|
|
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_ALICLOUD: string;
|
|
11
|
+
PICBED_ALICLOUD_ACCESSKEYID: string;
|
|
12
|
+
PICBED_ALICLOUD_ACCESSKEYSECRET: string;
|
|
13
|
+
PICBED_ALICLOUD_BUCKET: string;
|
|
14
|
+
PICBED_ALICLOUD_AREA: string;
|
|
15
|
+
PICBED_ALICLOUD_PATH: string;
|
|
16
|
+
PICBED_ALICLOUD_CUSTOMURL: string;
|
|
17
|
+
PICBED_ALICLOUD_OPTIONS: string;
|
|
18
|
+
PICBED_TENCENTCLOUD: string;
|
|
19
|
+
PICBED_TENCENTCLOUD_VERSION: string;
|
|
20
|
+
PICBED_TENCENTCLOUD_SECRETID: string;
|
|
21
|
+
PICBED_TENCENTCLOUD_SECRETKEY: string;
|
|
22
|
+
PICBED_TENCENTCLOUD_APPID: string;
|
|
23
|
+
PICBED_TENCENTCLOUD_BUCKET: string;
|
|
24
|
+
PICBED_TENCENTCLOUD_AREA: string;
|
|
25
|
+
PICBED_TENCENTCLOUD_PATH: string;
|
|
26
|
+
PICBED_TENCENTCLOUD_CUSTOMURL: string;
|
|
27
|
+
PICBED_GITHUB: string;
|
|
28
|
+
PICBED_GITHUB_TOKEN: string;
|
|
29
|
+
PICBED_GITHUB_REPO: string;
|
|
30
|
+
PICBED_GITHUB_PATH: string;
|
|
31
|
+
PICBED_GITHUB_BRANCH: string;
|
|
32
|
+
PICBED_GITHUB_CUSTOMURL: string;
|
|
33
|
+
PICBED_QINIU: string;
|
|
34
|
+
PICBED_QINIU_ACCESSKEY: string;
|
|
35
|
+
PICBED_QINIU_SECRETKEY: string;
|
|
36
|
+
PICBED_QINIU_BUCKET: string;
|
|
37
|
+
PICBED_QINIU_PATH: string;
|
|
38
|
+
PICBED_QINIU_URL: string;
|
|
39
|
+
PICBED_QINIU_OPTIONS: string;
|
|
40
|
+
PICBED_QINIU_AREA: string;
|
|
41
|
+
PICBED_IMGUR: string;
|
|
42
|
+
PICBED_IMGUR_CLIENTID: string;
|
|
43
|
+
PICBED_IMGUR_PROXY: string;
|
|
44
|
+
PICBED_UPYUN: string;
|
|
45
|
+
PICBED_UPYUN_BUCKET: string;
|
|
46
|
+
PICBED_UPYUN_OPERATOR: string;
|
|
47
|
+
PICBED_UPYUN_PASSWORD: string;
|
|
48
|
+
PICBED_UPYUN_PATH: string;
|
|
49
|
+
PICBED_UPYUN_URL: string;
|
|
50
|
+
PICBED_UPYUN_OPTIONS: string;
|
|
51
|
+
PLUGIN_HANDLER_PLUGIN_INSTALL_SUCCESS: string;
|
|
52
|
+
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED: string;
|
|
53
|
+
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_REASON: string;
|
|
54
|
+
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_PATH: string;
|
|
55
|
+
PLUGIN_HANDLER_PLUGIN_UNINSTALL_SUCCESS: string;
|
|
56
|
+
PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED: string;
|
|
57
|
+
PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_REASON: string;
|
|
58
|
+
PLUGIN_HANDLER_PLUGIN_UNINSTALL_FAILED_VALID: string;
|
|
59
|
+
PLUGIN_HANDLER_PLUGIN_UPDATE_SUCCESS: string;
|
|
60
|
+
PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED: string;
|
|
61
|
+
PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_REASON: string;
|
|
62
|
+
PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_VALID: string;
|
|
63
|
+
};
|
|
64
|
+
export declare type ILocalesKey = keyof typeof ZH_CN;
|
|
65
|
+
export declare type ILocales = typeof ZH_CN;
|