tabby-sync-selective 1.1.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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -0
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.LICENSE.txt +7479 -0
  5. package/dist/src/components/change-logs/change-logs.component.d.ts +8 -0
  6. package/dist/src/components/checkbox.component.d.ts +13 -0
  7. package/dist/src/components/cloud-sync-settings.component.d.ts +317 -0
  8. package/dist/src/components/feeback-form/feeback.component.d.ts +36 -0
  9. package/dist/src/components/master-password/master-password.component.d.ts +8 -0
  10. package/dist/src/components/sub-components/about/about.component.d.ts +17 -0
  11. package/dist/src/components/sub-components/amazon/amazon-settings.component.d.ts +350 -0
  12. package/dist/src/components/sub-components/built-in/builtin-settings.component.d.ts +215 -0
  13. package/dist/src/components/sub-components/check-for-updates/check-for-updates.component.d.ts +26 -0
  14. package/dist/src/components/sub-components/dropbox/dropbox-settings.component.d.ts +348 -0
  15. package/dist/src/components/sub-components/ftp/ftp-settings.component.d.ts +351 -0
  16. package/dist/src/components/sub-components/gist/gist-settings.component.d.ts +352 -0
  17. package/dist/src/components/sub-components/plugin-logs/plugin-logs.component.d.ts +21 -0
  18. package/dist/src/components/sub-components/webdav/webdav-settings.component.d.ts +349 -0
  19. package/dist/src/components/support-us/support-us.component.d.ts +14 -0
  20. package/dist/src/components/sync-sections-dialog/sync-sections-dialog.component.d.ts +131 -0
  21. package/dist/src/components/toggle.component.d.ts +4 -0
  22. package/dist/src/data/lang.d.ts +119 -0
  23. package/dist/src/data/mockdata.json +7 -0
  24. package/dist/src/data/s3-data.d.ts +15 -0
  25. package/dist/src/data/setting-items.d.ts +197 -0
  26. package/dist/src/index.d.ts +15 -0
  27. package/dist/src/interface/index.d.ts +33 -0
  28. package/dist/src/services/dev-constants.d.ts +4 -0
  29. package/dist/src/services/sync-sections-dialog.service.d.ts +9 -0
  30. package/dist/src/services/tabby-sync-upgrade.d.ts +7 -0
  31. package/dist/src/settings.d.ts +7 -0
  32. package/dist/src/utils/CloudSyncSettingsHelper.d.ts +8 -0
  33. package/dist/src/utils/Logger.d.ts +9 -0
  34. package/dist/src/utils/cloud-components/AmazonS3.d.ts +30 -0
  35. package/dist/src/utils/cloud-components/Dropbox.d.ts +17 -0
  36. package/dist/src/utils/cloud-components/FTP.d.ts +15 -0
  37. package/dist/src/utils/cloud-components/WebDav.d.ts +13 -0
  38. package/dist/src/utils/cloud-components/gist.d.ts +12 -0
  39. package/dist/src/utils/cloud-components/gists/gists.d.ts +10 -0
  40. package/dist/src/utils/cloud-components/gists/gitee.d.ts +12 -0
  41. package/dist/src/utils/cloud-components/gists/github.d.ts +12 -0
  42. package/dist/src/utils/cloud-components/gists/gitlab.d.ts +12 -0
  43. package/dist/src/utils/config-merge.d.ts +40 -0
  44. package/dist/src/utils/dev-mock-data.d.ts +6 -0
  45. package/dist/src/utils/settings-helper.d.ts +49 -0
  46. package/package.json +101 -0
@@ -0,0 +1,350 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ConfigService, PlatformService } from 'terminus-core';
3
+ import { ToastrService } from 'ngx-toastr';
4
+ interface formData {
5
+ endpointUrl: string;
6
+ appId: string;
7
+ appSecret: string;
8
+ bucket: string;
9
+ region: string;
10
+ location: string;
11
+ }
12
+ export declare class CloudSyncAmazonSettingsComponent implements OnInit {
13
+ private config;
14
+ private platform;
15
+ private toast;
16
+ resetFormMessages: EventEmitter<unknown>;
17
+ setFormMessage: EventEmitter<unknown>;
18
+ provider: string;
19
+ presetData: {
20
+ defaultSyncInterval: number;
21
+ tabbySettingsFilename: string;
22
+ storedSettingsFilename: string;
23
+ cloudSettingsFilename: string;
24
+ syncHashFilename: string;
25
+ tabbyLocalEncryptedFile: string;
26
+ values: {
27
+ BUILT_IN: string;
28
+ S3: string;
29
+ WASABI: string;
30
+ DIGITAL_OCEAN: string;
31
+ BLACKBLAZE: string;
32
+ S3_COMPATIBLE: string;
33
+ WEBDAV: string;
34
+ FTP: string;
35
+ GIST: string;
36
+ DROPBOX: string;
37
+ };
38
+ amazonEndpoints: {
39
+ WASABI: string;
40
+ DIGITAL_OCEAN: string;
41
+ BLACKBLAZE: string;
42
+ S3_COMPATIBLE: string;
43
+ };
44
+ serviceProvidersList: {
45
+ name: string;
46
+ value: string;
47
+ }[];
48
+ BuiltinLoginMode: {
49
+ LOGIN: string;
50
+ RESET_PASSWORD: string;
51
+ };
52
+ availablePluginVersions: string[];
53
+ formData: {
54
+ [x: string]: {
55
+ email: string;
56
+ password: string;
57
+ reset_password_email: string;
58
+ appId?: undefined;
59
+ appSecret?: undefined;
60
+ location?: undefined;
61
+ bucket?: undefined;
62
+ region?: undefined;
63
+ endpointUrl?: undefined;
64
+ host?: undefined;
65
+ username?: undefined;
66
+ port?: undefined;
67
+ protocol?: undefined;
68
+ type?: undefined;
69
+ name?: undefined;
70
+ accessToken?: undefined;
71
+ id?: undefined;
72
+ apiKey?: undefined;
73
+ apiSecret?: undefined;
74
+ } | {
75
+ appId: string;
76
+ appSecret: string;
77
+ location: string;
78
+ bucket: string;
79
+ region: string;
80
+ email?: undefined;
81
+ password?: undefined;
82
+ reset_password_email?: undefined;
83
+ endpointUrl?: undefined;
84
+ host?: undefined;
85
+ username?: undefined;
86
+ port?: undefined;
87
+ protocol?: undefined;
88
+ type?: undefined;
89
+ name?: undefined;
90
+ accessToken?: undefined;
91
+ id?: undefined;
92
+ apiKey?: undefined;
93
+ apiSecret?: undefined;
94
+ } | {
95
+ endpointUrl: string;
96
+ appId: string;
97
+ appSecret: string;
98
+ location: string;
99
+ bucket: string;
100
+ region: string;
101
+ email?: undefined;
102
+ password?: undefined;
103
+ reset_password_email?: undefined;
104
+ host?: undefined;
105
+ username?: undefined;
106
+ port?: undefined;
107
+ protocol?: undefined;
108
+ type?: undefined;
109
+ name?: undefined;
110
+ accessToken?: undefined;
111
+ id?: undefined;
112
+ apiKey?: undefined;
113
+ apiSecret?: undefined;
114
+ } | {
115
+ host: string;
116
+ username: string;
117
+ password: string;
118
+ location: string;
119
+ port: string;
120
+ email?: undefined;
121
+ reset_password_email?: undefined;
122
+ appId?: undefined;
123
+ appSecret?: undefined;
124
+ bucket?: undefined;
125
+ region?: undefined;
126
+ endpointUrl?: undefined;
127
+ protocol?: undefined;
128
+ type?: undefined;
129
+ name?: undefined;
130
+ accessToken?: undefined;
131
+ id?: undefined;
132
+ apiKey?: undefined;
133
+ apiSecret?: undefined;
134
+ } | {
135
+ protocol: string;
136
+ host: string;
137
+ username: string;
138
+ password: string;
139
+ location: string;
140
+ port: number;
141
+ email?: undefined;
142
+ reset_password_email?: undefined;
143
+ appId?: undefined;
144
+ appSecret?: undefined;
145
+ bucket?: undefined;
146
+ region?: undefined;
147
+ endpointUrl?: undefined;
148
+ type?: undefined;
149
+ name?: undefined;
150
+ accessToken?: undefined;
151
+ id?: undefined;
152
+ apiKey?: undefined;
153
+ apiSecret?: undefined;
154
+ } | {
155
+ type: string;
156
+ name: string;
157
+ accessToken: string;
158
+ id: string;
159
+ email?: undefined;
160
+ password?: undefined;
161
+ reset_password_email?: undefined;
162
+ appId?: undefined;
163
+ appSecret?: undefined;
164
+ location?: undefined;
165
+ bucket?: undefined;
166
+ region?: undefined;
167
+ endpointUrl?: undefined;
168
+ host?: undefined;
169
+ username?: undefined;
170
+ port?: undefined;
171
+ protocol?: undefined;
172
+ apiKey?: undefined;
173
+ apiSecret?: undefined;
174
+ } | {
175
+ apiKey: string;
176
+ apiSecret: string;
177
+ email?: undefined;
178
+ password?: undefined;
179
+ reset_password_email?: undefined;
180
+ appId?: undefined;
181
+ appSecret?: undefined;
182
+ location?: undefined;
183
+ bucket?: undefined;
184
+ region?: undefined;
185
+ endpointUrl?: undefined;
186
+ host?: undefined;
187
+ username?: undefined;
188
+ port?: undefined;
189
+ protocol?: undefined;
190
+ type?: undefined;
191
+ name?: undefined;
192
+ accessToken?: undefined;
193
+ id?: undefined;
194
+ };
195
+ };
196
+ external_urls: {
197
+ ApiUrl: string;
198
+ BlackBlazeHelp: string;
199
+ checkForUpdateUrl: string;
200
+ };
201
+ isCloudStorageS3Compatibility(provider: string): boolean;
202
+ gistUrls: {
203
+ viewItems: {
204
+ github: string;
205
+ gitee: string;
206
+ gitlab: string;
207
+ };
208
+ github: string;
209
+ gitee: string;
210
+ gitlab: string;
211
+ };
212
+ donationUrl: string;
213
+ pluginUrl: string;
214
+ };
215
+ translate: {
216
+ lang: {
217
+ common: {
218
+ menu_title: string;
219
+ verifyConfigString: string;
220
+ config_inject_header: string;
221
+ errors: {
222
+ invalidServerConfig: string;
223
+ };
224
+ };
225
+ form: {
226
+ error: {
227
+ required_all: string;
228
+ };
229
+ };
230
+ settings: {
231
+ title: string;
232
+ sub_title: string;
233
+ service_label: string;
234
+ amazon: {
235
+ connected: string;
236
+ save_settings_failed: string;
237
+ save_settings_success: string;
238
+ };
239
+ error_connection_timeout: string;
240
+ };
241
+ sync: {
242
+ loading_config: string;
243
+ sync_confirmation: string;
244
+ setting_valid: string;
245
+ error_setting_save_file: string;
246
+ error_connection: string;
247
+ error_invalid_setting: string;
248
+ error_invalid_setting_2: string;
249
+ error_save_setting: string;
250
+ need_to_save_config: string;
251
+ sync_success: string;
252
+ sync_error: string;
253
+ sync_server_failed: string;
254
+ sync_enabled: string;
255
+ sync_disabled: string;
256
+ confirm_remove_setting: string;
257
+ remove_setting_success: string;
258
+ remove_setting_error: string;
259
+ setting_changes_saved: string;
260
+ sync_sections_saved: string;
261
+ sync_mode_full: string;
262
+ sync_mode_platform_safe: string;
263
+ sync_mode_custom: string;
264
+ sync_mode_selective: string;
265
+ sync_sections_title: string;
266
+ sync_sections_hint: string;
267
+ manual_sync_title: string;
268
+ manual_sync_confirm: string;
269
+ };
270
+ log: {
271
+ invalid_cloud_settings: string;
272
+ read_cloud_settings: string;
273
+ error_upload_settings: string;
274
+ error_test_connection: string;
275
+ };
276
+ s3: {
277
+ title: string;
278
+ title_blackblaze: string;
279
+ app_id_placeholder: string;
280
+ app_secret_placeholder: string;
281
+ blackblaze_key_placeholder: string;
282
+ blackblaze_app_key_placeholder: string;
283
+ bucket_placeholder: string;
284
+ region_placeholder: string;
285
+ blackblaze_bucket_placeholder: string;
286
+ endpoint_placeholder: string;
287
+ location_placeholder: string;
288
+ };
289
+ ftp: {
290
+ title: string;
291
+ host_placeholder: string;
292
+ location_placeholder: string;
293
+ username_placeholder: string;
294
+ password_placeholder: string;
295
+ port_placeholder: string;
296
+ };
297
+ webdav: {
298
+ title: string;
299
+ host_placeholder: string;
300
+ username_placeholder: string;
301
+ password_placeholder: string;
302
+ port_placeholder: string;
303
+ location_placeholder: string;
304
+ };
305
+ gist: {
306
+ title: string;
307
+ name: string;
308
+ id: string;
309
+ token: string;
310
+ invalid_provider: string;
311
+ enter_id: string;
312
+ error_create_gist: string;
313
+ };
314
+ buttons: {
315
+ sync_from_cloud: string;
316
+ sync_from_local: string;
317
+ check_update: string;
318
+ yes: string;
319
+ cancel: string;
320
+ no: string;
321
+ ok: string;
322
+ view: string;
323
+ test_connection: string;
324
+ processing: string;
325
+ save_settings: string;
326
+ upload_settings: string;
327
+ cloud_syncing_progress: string;
328
+ remove_saved_setting: string;
329
+ };
330
+ };
331
+ trans: (key: string) => string;
332
+ };
333
+ isPreloadingSavedConfig: boolean;
334
+ isSettingSaved: boolean;
335
+ isServiceAccountCheckPassed: boolean;
336
+ isFormProcessing: boolean;
337
+ isSyncingProgress: boolean;
338
+ form: formData;
339
+ s3Regions: any[];
340
+ constructor(config: ConfigService, platform: PlatformService, toast: ToastrService);
341
+ ngOnInit(): void;
342
+ validateFormInput(): boolean;
343
+ correctLocationPath(): void;
344
+ performLoginAmazonS3(): void;
345
+ saveAmazonS3Settings(): Promise<void>;
346
+ cancelSaveSettings(): void;
347
+ openBlackBlazeRegionHelp(): void;
348
+ removeSavedSettings(): Promise<void>;
349
+ }
350
+ export {};
@@ -0,0 +1,215 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ interface formData {
3
+ email: string;
4
+ password: string;
5
+ reset_password_email: string;
6
+ }
7
+ export declare class CloudSyncBuiltinSettingsComponent implements OnInit {
8
+ resetFormMessages: EventEmitter<unknown>;
9
+ setFormMessage: EventEmitter<unknown>;
10
+ presetData: {
11
+ defaultSyncInterval: number;
12
+ tabbySettingsFilename: string;
13
+ storedSettingsFilename: string;
14
+ cloudSettingsFilename: string;
15
+ syncHashFilename: string;
16
+ tabbyLocalEncryptedFile: string;
17
+ values: {
18
+ BUILT_IN: string;
19
+ S3: string;
20
+ WASABI: string;
21
+ DIGITAL_OCEAN: string;
22
+ BLACKBLAZE: string;
23
+ S3_COMPATIBLE: string;
24
+ WEBDAV: string;
25
+ FTP: string;
26
+ GIST: string;
27
+ DROPBOX: string;
28
+ };
29
+ amazonEndpoints: {
30
+ WASABI: string;
31
+ DIGITAL_OCEAN: string;
32
+ BLACKBLAZE: string;
33
+ S3_COMPATIBLE: string;
34
+ };
35
+ serviceProvidersList: {
36
+ name: string;
37
+ value: string;
38
+ }[];
39
+ BuiltinLoginMode: {
40
+ LOGIN: string;
41
+ RESET_PASSWORD: string;
42
+ };
43
+ availablePluginVersions: string[];
44
+ formData: {
45
+ [x: string]: {
46
+ email: string;
47
+ password: string;
48
+ reset_password_email: string;
49
+ appId?: undefined;
50
+ appSecret?: undefined;
51
+ location?: undefined;
52
+ bucket?: undefined;
53
+ region?: undefined;
54
+ endpointUrl?: undefined;
55
+ host?: undefined;
56
+ username?: undefined;
57
+ port?: undefined;
58
+ protocol?: undefined;
59
+ type?: undefined;
60
+ name?: undefined;
61
+ accessToken?: undefined;
62
+ id?: undefined;
63
+ apiKey?: undefined;
64
+ apiSecret?: undefined;
65
+ } | {
66
+ appId: string;
67
+ appSecret: string;
68
+ location: string;
69
+ bucket: string;
70
+ region: string;
71
+ email?: undefined;
72
+ password?: undefined;
73
+ reset_password_email?: undefined;
74
+ endpointUrl?: undefined;
75
+ host?: undefined;
76
+ username?: undefined;
77
+ port?: undefined;
78
+ protocol?: undefined;
79
+ type?: undefined;
80
+ name?: undefined;
81
+ accessToken?: undefined;
82
+ id?: undefined;
83
+ apiKey?: undefined;
84
+ apiSecret?: undefined;
85
+ } | {
86
+ endpointUrl: string;
87
+ appId: string;
88
+ appSecret: string;
89
+ location: string;
90
+ bucket: string;
91
+ region: string;
92
+ email?: undefined;
93
+ password?: undefined;
94
+ reset_password_email?: undefined;
95
+ host?: undefined;
96
+ username?: undefined;
97
+ port?: undefined;
98
+ protocol?: undefined;
99
+ type?: undefined;
100
+ name?: undefined;
101
+ accessToken?: undefined;
102
+ id?: undefined;
103
+ apiKey?: undefined;
104
+ apiSecret?: undefined;
105
+ } | {
106
+ host: string;
107
+ username: string;
108
+ password: string;
109
+ location: string;
110
+ port: string;
111
+ email?: undefined;
112
+ reset_password_email?: undefined;
113
+ appId?: undefined;
114
+ appSecret?: undefined;
115
+ bucket?: undefined;
116
+ region?: undefined;
117
+ endpointUrl?: undefined;
118
+ protocol?: undefined;
119
+ type?: undefined;
120
+ name?: undefined;
121
+ accessToken?: undefined;
122
+ id?: undefined;
123
+ apiKey?: undefined;
124
+ apiSecret?: undefined;
125
+ } | {
126
+ protocol: string;
127
+ host: string;
128
+ username: string;
129
+ password: string;
130
+ location: string;
131
+ port: number;
132
+ email?: undefined;
133
+ reset_password_email?: undefined;
134
+ appId?: undefined;
135
+ appSecret?: undefined;
136
+ bucket?: undefined;
137
+ region?: undefined;
138
+ endpointUrl?: undefined;
139
+ type?: undefined;
140
+ name?: undefined;
141
+ accessToken?: undefined;
142
+ id?: undefined;
143
+ apiKey?: undefined;
144
+ apiSecret?: undefined;
145
+ } | {
146
+ type: string;
147
+ name: string;
148
+ accessToken: string;
149
+ id: string;
150
+ email?: undefined;
151
+ password?: undefined;
152
+ reset_password_email?: undefined;
153
+ appId?: undefined;
154
+ appSecret?: undefined;
155
+ location?: undefined;
156
+ bucket?: undefined;
157
+ region?: undefined;
158
+ endpointUrl?: undefined;
159
+ host?: undefined;
160
+ username?: undefined;
161
+ port?: undefined;
162
+ protocol?: undefined;
163
+ apiKey?: undefined;
164
+ apiSecret?: undefined;
165
+ } | {
166
+ apiKey: string;
167
+ apiSecret: string;
168
+ email?: undefined;
169
+ password?: undefined;
170
+ reset_password_email?: undefined;
171
+ appId?: undefined;
172
+ appSecret?: undefined;
173
+ location?: undefined;
174
+ bucket?: undefined;
175
+ region?: undefined;
176
+ endpointUrl?: undefined;
177
+ host?: undefined;
178
+ username?: undefined;
179
+ port?: undefined;
180
+ protocol?: undefined;
181
+ type?: undefined;
182
+ name?: undefined;
183
+ accessToken?: undefined;
184
+ id?: undefined;
185
+ };
186
+ };
187
+ external_urls: {
188
+ ApiUrl: string;
189
+ BlackBlazeHelp: string;
190
+ checkForUpdateUrl: string;
191
+ };
192
+ isCloudStorageS3Compatibility(provider: string): boolean;
193
+ gistUrls: {
194
+ viewItems: {
195
+ github: string;
196
+ gitee: string;
197
+ gitlab: string;
198
+ };
199
+ github: string;
200
+ gitee: string;
201
+ gitlab: string;
202
+ };
203
+ donationUrl: string;
204
+ pluginUrl: string;
205
+ };
206
+ builtinLoginMode: string;
207
+ isCheckLoginSuccess: boolean;
208
+ isFormProcessing: boolean;
209
+ form: formData;
210
+ ngOnInit(): void;
211
+ switchBetweenBuiltinLoginScreens(screenAlias: string): void;
212
+ performLoginWithEmailPassword(): void;
213
+ cancelSaveSettings(): void;
214
+ }
215
+ export {};
@@ -0,0 +1,26 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ConfigService, PlatformService } from 'terminus-core';
3
+ import { TabbySyncUpgradeService } from '../../../services/tabby-sync-upgrade';
4
+ export declare class CheckForUpdatesComponent implements OnInit {
5
+ private platform;
6
+ private config;
7
+ pluginManager: TabbySyncUpgradeService;
8
+ logger: any;
9
+ version: string;
10
+ availableRollbackBuilds: string[];
11
+ errorCheckForUpdates: boolean;
12
+ isSuccessPluginUpgrade: boolean;
13
+ errorUpgradePlugin: boolean;
14
+ errorUpgradePluginMessage: string;
15
+ isUpdatingPlugin: boolean;
16
+ targetRollbackVersion: string;
17
+ isUpdateAvailable: boolean;
18
+ newVersionData: any;
19
+ noUpdateAvailable: boolean;
20
+ isProcessingRequest: boolean;
21
+ constructor(platform: PlatformService, config: ConfigService, pluginManager: TabbySyncUpgradeService);
22
+ ngOnInit(): void;
23
+ checkForPluginVersion(): Promise<void>;
24
+ upgradePlugin(targetVersion?: any): Promise<void>;
25
+ confirmRollbackToVersion(rollbackVersion: string): Promise<void>;
26
+ }