picgo 1.5.0-alpha.0 → 1.5.0-alpha.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.
@@ -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,23 @@
1
+ # :tada: 1.5.0-alpha.1 (2022-03-08)
2
+
3
+
4
+ ### :sparkles: Features
5
+
6
+ * add options for tencent cos ([1fccdcc](https://github.com/PicGo/PicGo-Core/commit/1fccdcc)), closes [#117](https://github.com/PicGo/PicGo-Core/issues/117)
7
+ * **i18n:** add i18n for picgo ([4b93a76](https://github.com/PicGo/PicGo-Core/commit/4b93a76))
8
+
9
+
10
+ ### :bug: Bug Fixes
11
+
12
+ * build error in windows ([5616fb9](https://github.com/PicGo/PicGo-Core/commit/5616fb9))
13
+
14
+
15
+ ### :package: Chore
16
+
17
+ * 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)
18
+
19
+
20
+
1
21
  # :tada: 1.5.0-alpha.0 (2021-10-26)
2
22
 
3
23
 
@@ -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,2 @@
1
+ import { ILocales } from './zh-CN';
2
+ export declare const EN: ILocales;
@@ -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;