terminus-cloud-settings-sync-plus 0.0.0-stage → 1.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +7 -0
  3. package/README.en.md +41 -0
  4. package/README.md +40 -2
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.LICENSE.txt +7439 -0
  7. package/dist/src/components/change-logs/change-logs.component.d.ts +244 -0
  8. package/dist/src/components/checkbox.component.d.ts +13 -0
  9. package/dist/src/components/cloud-sync-settings.component.d.ts +431 -0
  10. package/dist/src/components/feeback-form/feeback.component.d.ts +242 -0
  11. package/dist/src/components/master-password/master-password.component.d.ts +244 -0
  12. package/dist/src/components/sub-components/about/about.component.d.ts +20 -0
  13. package/dist/src/components/sub-components/amazon/amazon-settings.component.d.ts +459 -0
  14. package/dist/src/components/sub-components/built-in/builtin-settings.component.d.ts +444 -0
  15. package/dist/src/components/sub-components/check-for-updates/check-for-updates.component.d.ts +267 -0
  16. package/dist/src/components/sub-components/dropbox/dropbox-encryption-secret-modal.component.d.ts +252 -0
  17. package/dist/src/components/sub-components/dropbox/dropbox-settings.component.d.ts +488 -0
  18. package/dist/src/components/sub-components/ftp/ftp-settings.component.d.ts +460 -0
  19. package/dist/src/components/sub-components/gist/gist-settings.component.d.ts +461 -0
  20. package/dist/src/components/sub-components/webdav/webdav-settings.component.d.ts +454 -0
  21. package/dist/src/components/toggle.component.d.ts +4 -0
  22. package/dist/src/data/lang.d.ts +245 -0
  23. package/dist/src/data/s3-data.d.ts +15 -0
  24. package/dist/src/data/setting-items.d.ts +198 -0
  25. package/dist/src/index.d.ts +47 -0
  26. package/dist/src/interface/index.d.ts +65 -0
  27. package/dist/src/providers/cloud-sync-actions.d.ts +15 -0
  28. package/dist/src/providers/cloud-sync-command.provider.d.ts +16 -0
  29. package/dist/src/providers/cloud-sync-toolbar.provider.d.ts +7 -0
  30. package/dist/src/services/dev-constants.d.ts +4 -0
  31. package/dist/src/services/tabby-sync-upgrade.d.ts +10 -0
  32. package/dist/src/services/toast.d.ts +61 -0
  33. package/dist/src/settings.d.ts +7 -0
  34. package/dist/src/utils/CloudSyncSettingsHelper.d.ts +8 -0
  35. package/dist/src/utils/Logger.d.ts +29 -0
  36. package/dist/src/utils/cloud-components/AmazonS3.d.ts +38 -0
  37. package/dist/src/utils/cloud-components/Dropbox.d.ts +50 -0
  38. package/dist/src/utils/cloud-components/FTP.d.ts +46 -0
  39. package/dist/src/utils/cloud-components/WebDav.d.ts +34 -0
  40. package/dist/src/utils/cloud-components/gist.d.ts +86 -0
  41. package/dist/src/utils/cloud-components/gists/gists.d.ts +15 -0
  42. package/dist/src/utils/cloud-components/gists/gitee.d.ts +16 -0
  43. package/dist/src/utils/cloud-components/gists/github.d.ts +16 -0
  44. package/dist/src/utils/cloud-components/gists/gitlab.d.ts +44 -0
  45. package/dist/src/utils/cloud-components/sync-utils.d.ts +90 -0
  46. package/dist/src/utils/config-hash.d.ts +21 -0
  47. package/dist/src/utils/dev-mock-data.d.ts +6 -0
  48. package/dist/src/utils/settings-crypto.d.ts +53 -0
  49. package/dist/src/utils/settings-helper.d.ts +177 -0
  50. package/dist/src/utils/settings-secret.d.ts +16 -0
  51. package/dist/src/utils/sync-lock.d.ts +44 -0
  52. package/dist/src/utils/sync-payload.d.ts +38 -0
  53. package/dist/src/utils/sync-state.d.ts +55 -0
  54. package/package.json +98 -6
@@ -0,0 +1,460 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ConfigService, PlatformService } from 'terminus-core';
3
+ interface formData {
4
+ protocol: string;
5
+ host: string;
6
+ username: string;
7
+ password: string;
8
+ location: string;
9
+ port: string;
10
+ }
11
+ export declare class CloudSyncFtpSettingsComponent implements OnInit {
12
+ private config;
13
+ private platform;
14
+ translate: {
15
+ lang: {
16
+ common: {
17
+ menu_title: string;
18
+ verifyConfigString: string;
19
+ config_inject_header: string;
20
+ errors: {
21
+ invalidServerConfig: string;
22
+ };
23
+ };
24
+ form: {
25
+ error: {
26
+ required_all: string;
27
+ };
28
+ };
29
+ tabs: {
30
+ general: string;
31
+ security: string;
32
+ feedback: string;
33
+ change_logs: string;
34
+ check_for_update: string;
35
+ };
36
+ alerts: {
37
+ debug_build: string;
38
+ update_available: string;
39
+ };
40
+ settings: {
41
+ title: string;
42
+ sub_title: string;
43
+ service_label: string;
44
+ service_hint: string;
45
+ sync_enabled_label: string;
46
+ sync_enabled_hint: string;
47
+ show_loader_label: string;
48
+ show_loader_hint: string;
49
+ interval_label: string;
50
+ interval_hint: string;
51
+ encryption_title: string;
52
+ encryption_hint: string;
53
+ encryption_secret_label: string;
54
+ encryption_secret_hint: string;
55
+ encryption_secret_placeholder: string;
56
+ encryption_confirm_label: string;
57
+ encryption_confirm_hint: string;
58
+ encryption_confirm_placeholder: string;
59
+ encryption_show_secret: string;
60
+ encryption_hide_secret: string;
61
+ encryption_show_confirmation: string;
62
+ encryption_hide_confirmation: string;
63
+ encryption_set: string;
64
+ encryption_configured: string;
65
+ encryption_configured_hint: string;
66
+ encryption_legacy_title: string;
67
+ encryption_legacy_warning: string;
68
+ encryption_recovery_warning: string;
69
+ encryption_mismatch: string;
70
+ encryption_saved: string;
71
+ encryption_failed: string;
72
+ encryption_already_configured: string;
73
+ amazon: {
74
+ connected: string;
75
+ save_settings_failed: string;
76
+ save_settings_success: string;
77
+ };
78
+ error_connection_timeout: string;
79
+ };
80
+ sync: {
81
+ loading_config: string;
82
+ sync_confirmation: string;
83
+ setting_valid: string;
84
+ error_setting_save_file: string;
85
+ error_connection: string;
86
+ error_invalid_setting: string;
87
+ error_invalid_setting_2: string;
88
+ error_save_setting: string;
89
+ need_to_save_config: string;
90
+ sync_success: string;
91
+ sync_error: string;
92
+ sync_server_failed: string;
93
+ sync_enabled: string;
94
+ sync_disabled: string;
95
+ loader_enabled: string;
96
+ loader_disabled: string;
97
+ confirm_remove_setting: string;
98
+ remove_setting_success: string;
99
+ remove_setting_error: string;
100
+ remove_secret_error: string;
101
+ setting_changes_saved: string;
102
+ confirm_push_local: string;
103
+ };
104
+ log: {
105
+ invalid_cloud_settings: string;
106
+ read_cloud_settings: string;
107
+ error_upload_settings: string;
108
+ error_test_connection: string;
109
+ };
110
+ s3: {
111
+ title: string;
112
+ title_blackblaze: string;
113
+ app_id_placeholder: string;
114
+ app_secret_placeholder: string;
115
+ blackblaze_key_placeholder: string;
116
+ blackblaze_app_key_placeholder: string;
117
+ bucket_placeholder: string;
118
+ region_placeholder: string;
119
+ blackblaze_region_placeholder: string;
120
+ endpoint_placeholder: string;
121
+ location_placeholder: string;
122
+ blackblaze_region_help: string;
123
+ };
124
+ ftp: {
125
+ title: string;
126
+ host_placeholder: string;
127
+ location_placeholder: string;
128
+ username_placeholder: string;
129
+ password_placeholder: string;
130
+ port_placeholder: string;
131
+ };
132
+ webdav: {
133
+ title: string;
134
+ host_placeholder: string;
135
+ username_placeholder: string;
136
+ password_placeholder: string;
137
+ port_placeholder: string;
138
+ location_placeholder: string;
139
+ };
140
+ gist: {
141
+ title: string;
142
+ name: string;
143
+ id: string;
144
+ token: string;
145
+ invalid_provider: string;
146
+ enter_id: string;
147
+ error_create_gist: string;
148
+ help_github: string;
149
+ help_gitee: string;
150
+ };
151
+ dropbox: {
152
+ title: string;
153
+ title_connecting: string;
154
+ callback_waiting: string;
155
+ callback_listener_unavailable: string;
156
+ callback_title: string;
157
+ callback_hint: string;
158
+ callback_invalid: string;
159
+ callback_timeout: string;
160
+ use_manual_callback: string;
161
+ obtain_token: string;
162
+ obtaining_token: string;
163
+ paste_from_clipboard: string;
164
+ connected: string;
165
+ last_sync_error: string;
166
+ disconnect_account: string;
167
+ confirm_disconnect: string;
168
+ encryption_secret_title: string;
169
+ encryption_secret_required: string;
170
+ encryption_secret_label: string;
171
+ encryption_secret_placeholder: string;
172
+ encryption_secret_invalid: string;
173
+ encryption_secret_saved: string;
174
+ encryption_unlock: string;
175
+ encryption_unlocking: string;
176
+ missing_app_credentials: string;
177
+ missing_callback_url: string;
178
+ connect_success: string;
179
+ clipboard_success: string;
180
+ clipboard_error: string;
181
+ };
182
+ builtin: {
183
+ login_title: string;
184
+ reset_title: string;
185
+ email_placeholder: string;
186
+ password_placeholder: string;
187
+ reset_notice: string;
188
+ };
189
+ vault: {
190
+ title: string;
191
+ description: string;
192
+ };
193
+ feedback: {
194
+ title: string;
195
+ description: string;
196
+ description_2: string;
197
+ open_issue_hint: string;
198
+ };
199
+ changelogs: {
200
+ title: string;
201
+ description: string;
202
+ column_version: string;
203
+ column_date: string;
204
+ column_description: string;
205
+ };
206
+ updates: {
207
+ title: string;
208
+ current_version: string;
209
+ check_hint: string;
210
+ latest_version: string;
211
+ whats_new: string;
212
+ up_to_date: string;
213
+ check_failed: string;
214
+ upgrade_success: string;
215
+ rollback_title: string;
216
+ rollback_warning_backup: string;
217
+ rollback_warning_risk: string;
218
+ confirm_rollback: string;
219
+ column_version: string;
220
+ column_action: string;
221
+ };
222
+ buttons: {
223
+ sync_from_cloud: string;
224
+ sync_from_local: string;
225
+ check_update: string;
226
+ yes: string;
227
+ cancel: string;
228
+ no: string;
229
+ ok: string;
230
+ view: string;
231
+ connect: string;
232
+ disconnect: string;
233
+ open_github_issue: string;
234
+ rollback: string;
235
+ update_to: string;
236
+ visit_plugin_page: string;
237
+ login: string;
238
+ reset_password: string;
239
+ send_reset_link: string;
240
+ test_connection: string;
241
+ processing: string;
242
+ save_settings: string;
243
+ upload_settings: string;
244
+ cloud_syncing_progress: string;
245
+ remove_saved_setting: string;
246
+ };
247
+ };
248
+ trans: (key: string, replacements?: Record<string, string | number>) => string;
249
+ };
250
+ presetData: {
251
+ defaultSyncInterval: number;
252
+ syncSkewToleranceSeconds: number;
253
+ tabbySettingsFilename: string;
254
+ storedSettingsFilename: string;
255
+ syncStateFilename: string;
256
+ cloudSettingsFilename: string;
257
+ tabbyLocalEncryptedFile: string;
258
+ values: {
259
+ BUILT_IN: string;
260
+ S3: string;
261
+ WASABI: string;
262
+ DIGITAL_OCEAN: string;
263
+ BLACKBLAZE: string;
264
+ S3_COMPATIBLE: string;
265
+ WEBDAV: string;
266
+ FTP: string;
267
+ GIST: string;
268
+ DROPBOX: string;
269
+ };
270
+ amazonEndpoints: {
271
+ WASABI: string;
272
+ DIGITAL_OCEAN: string;
273
+ BLACKBLAZE: string;
274
+ S3_COMPATIBLE: string;
275
+ };
276
+ serviceProvidersList: {
277
+ name: string;
278
+ value: string;
279
+ }[];
280
+ BuiltinLoginMode: {
281
+ LOGIN: string;
282
+ RESET_PASSWORD: string;
283
+ };
284
+ availablePluginVersions: any[];
285
+ formData: {
286
+ [x: string]: {
287
+ email: string;
288
+ password: string;
289
+ reset_password_email: string;
290
+ appId?: undefined;
291
+ appSecret?: undefined;
292
+ location?: undefined;
293
+ bucket?: undefined;
294
+ region?: undefined;
295
+ endpointUrl?: undefined;
296
+ host?: undefined;
297
+ username?: undefined;
298
+ port?: undefined;
299
+ protocol?: undefined;
300
+ type?: undefined;
301
+ name?: undefined;
302
+ accessToken?: undefined;
303
+ id?: undefined;
304
+ apiKey?: undefined;
305
+ } | {
306
+ appId: string;
307
+ appSecret: string;
308
+ location: string;
309
+ bucket: string;
310
+ region: string;
311
+ email?: undefined;
312
+ password?: undefined;
313
+ reset_password_email?: undefined;
314
+ endpointUrl?: undefined;
315
+ host?: undefined;
316
+ username?: undefined;
317
+ port?: undefined;
318
+ protocol?: undefined;
319
+ type?: undefined;
320
+ name?: undefined;
321
+ accessToken?: undefined;
322
+ id?: undefined;
323
+ apiKey?: undefined;
324
+ } | {
325
+ endpointUrl: string;
326
+ appId: string;
327
+ appSecret: string;
328
+ location: string;
329
+ bucket: string;
330
+ region: string;
331
+ email?: undefined;
332
+ password?: undefined;
333
+ reset_password_email?: undefined;
334
+ host?: undefined;
335
+ username?: undefined;
336
+ port?: undefined;
337
+ protocol?: undefined;
338
+ type?: undefined;
339
+ name?: undefined;
340
+ accessToken?: undefined;
341
+ id?: undefined;
342
+ apiKey?: undefined;
343
+ } | {
344
+ host: string;
345
+ username: string;
346
+ password: string;
347
+ location: string;
348
+ port: string;
349
+ email?: undefined;
350
+ reset_password_email?: undefined;
351
+ appId?: undefined;
352
+ appSecret?: undefined;
353
+ bucket?: undefined;
354
+ region?: undefined;
355
+ endpointUrl?: undefined;
356
+ protocol?: undefined;
357
+ type?: undefined;
358
+ name?: undefined;
359
+ accessToken?: undefined;
360
+ id?: undefined;
361
+ apiKey?: undefined;
362
+ } | {
363
+ protocol: string;
364
+ host: string;
365
+ username: string;
366
+ password: string;
367
+ location: string;
368
+ port: number;
369
+ email?: undefined;
370
+ reset_password_email?: undefined;
371
+ appId?: undefined;
372
+ appSecret?: undefined;
373
+ bucket?: undefined;
374
+ region?: undefined;
375
+ endpointUrl?: undefined;
376
+ type?: undefined;
377
+ name?: undefined;
378
+ accessToken?: undefined;
379
+ id?: undefined;
380
+ apiKey?: undefined;
381
+ } | {
382
+ type: string;
383
+ name: string;
384
+ accessToken: string;
385
+ id: string;
386
+ email?: undefined;
387
+ password?: undefined;
388
+ reset_password_email?: undefined;
389
+ appId?: undefined;
390
+ appSecret?: undefined;
391
+ location?: undefined;
392
+ bucket?: undefined;
393
+ region?: undefined;
394
+ endpointUrl?: undefined;
395
+ host?: undefined;
396
+ username?: undefined;
397
+ port?: undefined;
398
+ protocol?: undefined;
399
+ apiKey?: undefined;
400
+ } | {
401
+ apiKey: string;
402
+ email?: undefined;
403
+ password?: undefined;
404
+ reset_password_email?: undefined;
405
+ appId?: undefined;
406
+ appSecret?: undefined;
407
+ location?: undefined;
408
+ bucket?: undefined;
409
+ region?: undefined;
410
+ endpointUrl?: undefined;
411
+ host?: undefined;
412
+ username?: undefined;
413
+ port?: undefined;
414
+ protocol?: undefined;
415
+ type?: undefined;
416
+ name?: undefined;
417
+ accessToken?: undefined;
418
+ id?: undefined;
419
+ };
420
+ };
421
+ external_urls: {
422
+ ApiUrl: string;
423
+ BlackBlazeHelp: string;
424
+ checkForUpdateUrl: string;
425
+ githubIssuesUrl: string;
426
+ };
427
+ isCloudStorageS3Compatibility(provider: string): boolean;
428
+ gistUrls: {
429
+ viewItems: {
430
+ github: string;
431
+ gitee: string;
432
+ gitlab: string;
433
+ };
434
+ github: string;
435
+ gitee: string;
436
+ gitlab: string;
437
+ };
438
+ donationUrl: string;
439
+ pluginUrl: string;
440
+ };
441
+ isPreloadingSavedConfig: boolean;
442
+ isSettingSaved: boolean;
443
+ isCheckLoginSuccess: boolean;
444
+ isSyncingProgress: boolean;
445
+ isFormProcessing: boolean;
446
+ passwordFieldType: string;
447
+ protocol: {
448
+ value: string;
449
+ name: string;
450
+ }[];
451
+ form: formData;
452
+ constructor(config: ConfigService, platform: PlatformService);
453
+ ngOnInit(): void;
454
+ toggleViewPassword(): void;
455
+ testConnection(): Promise<void>;
456
+ saveSettings(): Promise<void>;
457
+ cancelSaveSettings(): void;
458
+ removeSavedSettings(): Promise<void>;
459
+ }
460
+ export {};