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