terminus-cloud-settings-sync-plus 0.0.0-stage → 1.0.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.
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 +111 -6
@@ -0,0 +1,242 @@
1
+ import { PlatformService } from 'terminus-core';
2
+ export declare class CloudSyncFeedbackComponent {
3
+ private platform;
4
+ translate: {
5
+ lang: {
6
+ common: {
7
+ menu_title: string;
8
+ verifyConfigString: string;
9
+ config_inject_header: string;
10
+ errors: {
11
+ invalidServerConfig: string;
12
+ };
13
+ };
14
+ form: {
15
+ error: {
16
+ required_all: string;
17
+ };
18
+ };
19
+ tabs: {
20
+ general: string;
21
+ security: string;
22
+ feedback: string;
23
+ change_logs: string;
24
+ check_for_update: string;
25
+ };
26
+ alerts: {
27
+ debug_build: string;
28
+ update_available: string;
29
+ };
30
+ settings: {
31
+ title: string;
32
+ sub_title: string;
33
+ service_label: string;
34
+ service_hint: string;
35
+ sync_enabled_label: string;
36
+ sync_enabled_hint: string;
37
+ show_loader_label: string;
38
+ show_loader_hint: string;
39
+ interval_label: string;
40
+ interval_hint: string;
41
+ encryption_title: string;
42
+ encryption_hint: string;
43
+ encryption_secret_label: string;
44
+ encryption_secret_hint: string;
45
+ encryption_secret_placeholder: string;
46
+ encryption_confirm_label: string;
47
+ encryption_confirm_hint: string;
48
+ encryption_confirm_placeholder: string;
49
+ encryption_show_secret: string;
50
+ encryption_hide_secret: string;
51
+ encryption_show_confirmation: string;
52
+ encryption_hide_confirmation: string;
53
+ encryption_set: string;
54
+ encryption_configured: string;
55
+ encryption_configured_hint: string;
56
+ encryption_legacy_title: string;
57
+ encryption_legacy_warning: string;
58
+ encryption_recovery_warning: string;
59
+ encryption_mismatch: string;
60
+ encryption_saved: string;
61
+ encryption_failed: string;
62
+ encryption_already_configured: string;
63
+ amazon: {
64
+ connected: string;
65
+ save_settings_failed: string;
66
+ save_settings_success: string;
67
+ };
68
+ error_connection_timeout: string;
69
+ };
70
+ sync: {
71
+ loading_config: string;
72
+ sync_confirmation: string;
73
+ setting_valid: string;
74
+ error_setting_save_file: string;
75
+ error_connection: string;
76
+ error_invalid_setting: string;
77
+ error_invalid_setting_2: string;
78
+ error_save_setting: string;
79
+ need_to_save_config: string;
80
+ sync_success: string;
81
+ sync_error: string;
82
+ sync_server_failed: string;
83
+ sync_enabled: string;
84
+ sync_disabled: string;
85
+ loader_enabled: string;
86
+ loader_disabled: string;
87
+ confirm_remove_setting: string;
88
+ remove_setting_success: string;
89
+ remove_setting_error: string;
90
+ remove_secret_error: string;
91
+ setting_changes_saved: string;
92
+ confirm_push_local: string;
93
+ };
94
+ log: {
95
+ invalid_cloud_settings: string;
96
+ read_cloud_settings: string;
97
+ error_upload_settings: string;
98
+ error_test_connection: string;
99
+ };
100
+ s3: {
101
+ title: string;
102
+ title_blackblaze: string;
103
+ app_id_placeholder: string;
104
+ app_secret_placeholder: string;
105
+ blackblaze_key_placeholder: string;
106
+ blackblaze_app_key_placeholder: string;
107
+ bucket_placeholder: string;
108
+ region_placeholder: string;
109
+ blackblaze_region_placeholder: string;
110
+ endpoint_placeholder: string;
111
+ location_placeholder: string;
112
+ blackblaze_region_help: string;
113
+ };
114
+ ftp: {
115
+ title: string;
116
+ host_placeholder: string;
117
+ location_placeholder: string;
118
+ username_placeholder: string;
119
+ password_placeholder: string;
120
+ port_placeholder: string;
121
+ };
122
+ webdav: {
123
+ title: string;
124
+ host_placeholder: string;
125
+ username_placeholder: string;
126
+ password_placeholder: string;
127
+ port_placeholder: string;
128
+ location_placeholder: string;
129
+ };
130
+ gist: {
131
+ title: string;
132
+ name: string;
133
+ id: string;
134
+ token: string;
135
+ invalid_provider: string;
136
+ enter_id: string;
137
+ error_create_gist: string;
138
+ help_github: string;
139
+ help_gitee: string;
140
+ };
141
+ dropbox: {
142
+ title: string;
143
+ title_connecting: string;
144
+ callback_waiting: string;
145
+ callback_listener_unavailable: string;
146
+ callback_title: string;
147
+ callback_hint: string;
148
+ callback_invalid: string;
149
+ callback_timeout: string;
150
+ use_manual_callback: string;
151
+ obtain_token: string;
152
+ obtaining_token: string;
153
+ paste_from_clipboard: string;
154
+ connected: string;
155
+ last_sync_error: string;
156
+ disconnect_account: string;
157
+ confirm_disconnect: string;
158
+ encryption_secret_title: string;
159
+ encryption_secret_required: string;
160
+ encryption_secret_label: string;
161
+ encryption_secret_placeholder: string;
162
+ encryption_secret_invalid: string;
163
+ encryption_secret_saved: string;
164
+ encryption_unlock: string;
165
+ encryption_unlocking: string;
166
+ missing_app_credentials: string;
167
+ missing_callback_url: string;
168
+ connect_success: string;
169
+ clipboard_success: string;
170
+ clipboard_error: string;
171
+ };
172
+ builtin: {
173
+ login_title: string;
174
+ reset_title: string;
175
+ email_placeholder: string;
176
+ password_placeholder: string;
177
+ reset_notice: string;
178
+ };
179
+ vault: {
180
+ title: string;
181
+ description: string;
182
+ };
183
+ feedback: {
184
+ title: string;
185
+ description: string;
186
+ description_2: string;
187
+ open_issue_hint: string;
188
+ };
189
+ changelogs: {
190
+ title: string;
191
+ description: string;
192
+ column_version: string;
193
+ column_date: string;
194
+ column_description: string;
195
+ };
196
+ updates: {
197
+ title: string;
198
+ current_version: string;
199
+ check_hint: string;
200
+ latest_version: string;
201
+ whats_new: string;
202
+ up_to_date: string;
203
+ check_failed: string;
204
+ upgrade_success: string;
205
+ rollback_title: string;
206
+ rollback_warning_backup: string;
207
+ rollback_warning_risk: string;
208
+ confirm_rollback: string;
209
+ column_version: string;
210
+ column_action: string;
211
+ };
212
+ buttons: {
213
+ sync_from_cloud: string;
214
+ sync_from_local: string;
215
+ check_update: string;
216
+ yes: string;
217
+ cancel: string;
218
+ no: string;
219
+ ok: string;
220
+ view: string;
221
+ connect: string;
222
+ disconnect: string;
223
+ open_github_issue: string;
224
+ rollback: string;
225
+ update_to: string;
226
+ visit_plugin_page: string;
227
+ login: string;
228
+ reset_password: string;
229
+ send_reset_link: string;
230
+ test_connection: string;
231
+ processing: string;
232
+ save_settings: string;
233
+ upload_settings: string;
234
+ cloud_syncing_progress: string;
235
+ remove_saved_setting: string;
236
+ };
237
+ };
238
+ trans: (key: string, replacements?: Record<string, string | number>) => string;
239
+ };
240
+ constructor(platform: PlatformService);
241
+ openIssuesPage(): void;
242
+ }
@@ -0,0 +1,244 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class MasterPasswordComponent implements OnInit {
3
+ translate: {
4
+ lang: {
5
+ common: {
6
+ menu_title: string;
7
+ verifyConfigString: string;
8
+ config_inject_header: string;
9
+ errors: {
10
+ invalidServerConfig: string;
11
+ };
12
+ };
13
+ form: {
14
+ error: {
15
+ required_all: string;
16
+ };
17
+ };
18
+ tabs: {
19
+ general: string;
20
+ security: string;
21
+ feedback: string;
22
+ change_logs: string;
23
+ check_for_update: string;
24
+ };
25
+ alerts: {
26
+ debug_build: string;
27
+ update_available: string;
28
+ };
29
+ settings: {
30
+ title: string;
31
+ sub_title: string;
32
+ service_label: string;
33
+ service_hint: string;
34
+ sync_enabled_label: string;
35
+ sync_enabled_hint: string;
36
+ show_loader_label: string;
37
+ show_loader_hint: string;
38
+ interval_label: string;
39
+ interval_hint: string;
40
+ encryption_title: string;
41
+ encryption_hint: string;
42
+ encryption_secret_label: string;
43
+ encryption_secret_hint: string;
44
+ encryption_secret_placeholder: string;
45
+ encryption_confirm_label: string;
46
+ encryption_confirm_hint: string;
47
+ encryption_confirm_placeholder: string;
48
+ encryption_show_secret: string;
49
+ encryption_hide_secret: string;
50
+ encryption_show_confirmation: string;
51
+ encryption_hide_confirmation: string;
52
+ encryption_set: string;
53
+ encryption_configured: string;
54
+ encryption_configured_hint: string;
55
+ encryption_legacy_title: string;
56
+ encryption_legacy_warning: string;
57
+ encryption_recovery_warning: string;
58
+ encryption_mismatch: string;
59
+ encryption_saved: string;
60
+ encryption_failed: string;
61
+ encryption_already_configured: string;
62
+ amazon: {
63
+ connected: string;
64
+ save_settings_failed: string;
65
+ save_settings_success: string;
66
+ };
67
+ error_connection_timeout: string;
68
+ };
69
+ sync: {
70
+ loading_config: string;
71
+ sync_confirmation: string;
72
+ setting_valid: string;
73
+ error_setting_save_file: string;
74
+ error_connection: string;
75
+ error_invalid_setting: string;
76
+ error_invalid_setting_2: string;
77
+ error_save_setting: string;
78
+ need_to_save_config: string;
79
+ sync_success: string;
80
+ sync_error: string;
81
+ sync_server_failed: string;
82
+ sync_enabled: string;
83
+ sync_disabled: string;
84
+ loader_enabled: string;
85
+ loader_disabled: string;
86
+ confirm_remove_setting: string;
87
+ remove_setting_success: string;
88
+ remove_setting_error: string;
89
+ remove_secret_error: string;
90
+ setting_changes_saved: string;
91
+ confirm_push_local: string;
92
+ };
93
+ log: {
94
+ invalid_cloud_settings: string;
95
+ read_cloud_settings: string;
96
+ error_upload_settings: string;
97
+ error_test_connection: string;
98
+ };
99
+ s3: {
100
+ title: string;
101
+ title_blackblaze: string;
102
+ app_id_placeholder: string;
103
+ app_secret_placeholder: string;
104
+ blackblaze_key_placeholder: string;
105
+ blackblaze_app_key_placeholder: string;
106
+ bucket_placeholder: string;
107
+ region_placeholder: string;
108
+ blackblaze_region_placeholder: string;
109
+ endpoint_placeholder: string;
110
+ location_placeholder: string;
111
+ blackblaze_region_help: string;
112
+ };
113
+ ftp: {
114
+ title: string;
115
+ host_placeholder: string;
116
+ location_placeholder: string;
117
+ username_placeholder: string;
118
+ password_placeholder: string;
119
+ port_placeholder: string;
120
+ };
121
+ webdav: {
122
+ title: string;
123
+ host_placeholder: string;
124
+ username_placeholder: string;
125
+ password_placeholder: string;
126
+ port_placeholder: string;
127
+ location_placeholder: string;
128
+ };
129
+ gist: {
130
+ title: string;
131
+ name: string;
132
+ id: string;
133
+ token: string;
134
+ invalid_provider: string;
135
+ enter_id: string;
136
+ error_create_gist: string;
137
+ help_github: string;
138
+ help_gitee: string;
139
+ };
140
+ dropbox: {
141
+ title: string;
142
+ title_connecting: string;
143
+ callback_waiting: string;
144
+ callback_listener_unavailable: string;
145
+ callback_title: string;
146
+ callback_hint: string;
147
+ callback_invalid: string;
148
+ callback_timeout: string;
149
+ use_manual_callback: string;
150
+ obtain_token: string;
151
+ obtaining_token: string;
152
+ paste_from_clipboard: string;
153
+ connected: string;
154
+ last_sync_error: string;
155
+ disconnect_account: string;
156
+ confirm_disconnect: string;
157
+ encryption_secret_title: string;
158
+ encryption_secret_required: string;
159
+ encryption_secret_label: string;
160
+ encryption_secret_placeholder: string;
161
+ encryption_secret_invalid: string;
162
+ encryption_secret_saved: string;
163
+ encryption_unlock: string;
164
+ encryption_unlocking: string;
165
+ missing_app_credentials: string;
166
+ missing_callback_url: string;
167
+ connect_success: string;
168
+ clipboard_success: string;
169
+ clipboard_error: string;
170
+ };
171
+ builtin: {
172
+ login_title: string;
173
+ reset_title: string;
174
+ email_placeholder: string;
175
+ password_placeholder: string;
176
+ reset_notice: string;
177
+ };
178
+ vault: {
179
+ title: string;
180
+ description: string;
181
+ };
182
+ feedback: {
183
+ title: string;
184
+ description: string;
185
+ description_2: string;
186
+ open_issue_hint: string;
187
+ };
188
+ changelogs: {
189
+ title: string;
190
+ description: string;
191
+ column_version: string;
192
+ column_date: string;
193
+ column_description: string;
194
+ };
195
+ updates: {
196
+ title: string;
197
+ current_version: string;
198
+ check_hint: string;
199
+ latest_version: string;
200
+ whats_new: string;
201
+ up_to_date: string;
202
+ check_failed: string;
203
+ upgrade_success: string;
204
+ rollback_title: string;
205
+ rollback_warning_backup: string;
206
+ rollback_warning_risk: string;
207
+ confirm_rollback: string;
208
+ column_version: string;
209
+ column_action: string;
210
+ };
211
+ buttons: {
212
+ sync_from_cloud: string;
213
+ sync_from_local: string;
214
+ check_update: string;
215
+ yes: string;
216
+ cancel: string;
217
+ no: string;
218
+ ok: string;
219
+ view: string;
220
+ connect: string;
221
+ disconnect: string;
222
+ open_github_issue: string;
223
+ rollback: string;
224
+ update_to: string;
225
+ visit_plugin_page: string;
226
+ login: string;
227
+ reset_password: string;
228
+ send_reset_link: string;
229
+ test_connection: string;
230
+ processing: string;
231
+ save_settings: string;
232
+ upload_settings: string;
233
+ cloud_syncing_progress: string;
234
+ remove_saved_setting: string;
235
+ };
236
+ };
237
+ trans: (key: string, replacements?: Record<string, string | number>) => string;
238
+ };
239
+ form: {
240
+ password: string;
241
+ reTypePassword: string;
242
+ };
243
+ ngOnInit(): void;
244
+ }
@@ -0,0 +1,20 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PlatformService } from 'terminus-core';
3
+ export declare class CloudSyncAboutComponent implements OnInit {
4
+ private platform;
5
+ supportUrl: string;
6
+ githubUrl: string;
7
+ info: {
8
+ author: string;
9
+ support_url: string;
10
+ github_url: string;
11
+ buy_me_a_cafe: string;
12
+ version: string;
13
+ };
14
+ constructor(platform: PlatformService);
15
+ ngOnInit(): void;
16
+ loadPackageMetadata(): Promise<void>;
17
+ openSupportUrl(): void;
18
+ openGitHubUrl(): void;
19
+ openDonationPage(): void;
20
+ }