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,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PlatformService } from 'terminus-core';
3
+ export declare class ChangeLogsComponent implements OnInit {
4
+ private platform;
5
+ constructor(platform: PlatformService);
6
+ ngOnInit(): void;
7
+ openPluginPage(): void;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ /** @hidden */
3
+ export declare class CheckboxComponent implements ControlValueAccessor {
4
+ model: boolean;
5
+ disabled: boolean;
6
+ text: string;
7
+ private changed;
8
+ click(): void;
9
+ writeValue(obj: any): void;
10
+ registerOnChange(fn: any): void;
11
+ registerOnTouched(fn: any): void;
12
+ setDisabledState(isDisabled: boolean): void;
13
+ }
@@ -0,0 +1,317 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ConfigService, PlatformService, BaseComponent } from 'terminus-core';
3
+ import { ToastrService } from 'ngx-toastr';
4
+ import { ConnectionGroup } from '../interface';
5
+ import { SyncMode, getFieldsByGroup } from '../utils/config-merge';
6
+ /** @hidden */
7
+ export declare class CloudSyncSettingsComponent extends BaseComponent implements OnInit {
8
+ config: ConfigService;
9
+ private toast;
10
+ private platform;
11
+ lastVersion: string;
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
+ settings: {
28
+ title: string;
29
+ sub_title: string;
30
+ service_label: string;
31
+ amazon: {
32
+ connected: string;
33
+ save_settings_failed: string;
34
+ save_settings_success: string;
35
+ };
36
+ error_connection_timeout: string;
37
+ };
38
+ sync: {
39
+ loading_config: string;
40
+ sync_confirmation: string;
41
+ setting_valid: string;
42
+ error_setting_save_file: string;
43
+ error_connection: string;
44
+ error_invalid_setting: string;
45
+ error_invalid_setting_2: string;
46
+ error_save_setting: string;
47
+ need_to_save_config: string;
48
+ sync_success: string;
49
+ sync_error: string;
50
+ sync_server_failed: string;
51
+ sync_enabled: string;
52
+ sync_disabled: string;
53
+ confirm_remove_setting: string;
54
+ remove_setting_success: string;
55
+ remove_setting_error: string;
56
+ setting_changes_saved: string;
57
+ sync_sections_saved: string;
58
+ sync_mode_full: string;
59
+ sync_mode_platform_safe: string;
60
+ sync_mode_custom: string;
61
+ sync_mode_selective: string;
62
+ sync_sections_title: string;
63
+ sync_sections_hint: string;
64
+ manual_sync_title: string;
65
+ manual_sync_confirm: string;
66
+ };
67
+ log: {
68
+ invalid_cloud_settings: string;
69
+ read_cloud_settings: string;
70
+ error_upload_settings: string;
71
+ error_test_connection: string;
72
+ };
73
+ s3: {
74
+ title: string;
75
+ title_blackblaze: string;
76
+ app_id_placeholder: string;
77
+ app_secret_placeholder: string;
78
+ blackblaze_key_placeholder: string;
79
+ blackblaze_app_key_placeholder: string;
80
+ bucket_placeholder: string;
81
+ region_placeholder: string;
82
+ blackblaze_bucket_placeholder: string;
83
+ endpoint_placeholder: string;
84
+ location_placeholder: string;
85
+ };
86
+ ftp: {
87
+ title: string;
88
+ host_placeholder: string;
89
+ location_placeholder: string;
90
+ username_placeholder: string;
91
+ password_placeholder: string;
92
+ port_placeholder: string;
93
+ };
94
+ webdav: {
95
+ title: string;
96
+ host_placeholder: string;
97
+ username_placeholder: string;
98
+ password_placeholder: string;
99
+ port_placeholder: string;
100
+ location_placeholder: string;
101
+ };
102
+ gist: {
103
+ title: string;
104
+ name: string;
105
+ id: string;
106
+ token: string;
107
+ invalid_provider: string;
108
+ enter_id: string;
109
+ error_create_gist: string;
110
+ };
111
+ buttons: {
112
+ sync_from_cloud: string;
113
+ sync_from_local: string;
114
+ check_update: string;
115
+ yes: string;
116
+ cancel: string;
117
+ no: string;
118
+ ok: string;
119
+ view: string;
120
+ test_connection: string;
121
+ processing: string;
122
+ save_settings: string;
123
+ upload_settings: string;
124
+ cloud_syncing_progress: string;
125
+ remove_saved_setting: string;
126
+ };
127
+ };
128
+ trans: (key: string) => string;
129
+ };
130
+ isUpdateAvailable: boolean;
131
+ isDebug: boolean;
132
+ serviceProviderValues: {
133
+ BUILT_IN: string;
134
+ S3: string;
135
+ WASABI: string;
136
+ DIGITAL_OCEAN: string;
137
+ BLACKBLAZE: string;
138
+ S3_COMPATIBLE: string;
139
+ WEBDAV: string;
140
+ FTP: string;
141
+ GIST: string;
142
+ DROPBOX: string;
143
+ };
144
+ serviceProviders: {
145
+ name: string;
146
+ value: string;
147
+ }[];
148
+ selectedProvider: string;
149
+ groups: ConnectionGroup[];
150
+ form_messages: {
151
+ errors: any[];
152
+ success: any[];
153
+ };
154
+ syncEnabled: boolean;
155
+ isShowSyncLoader: boolean;
156
+ intervalSync: number;
157
+ storedSettingsData: any;
158
+ form: {
159
+ [x: string]: {
160
+ email: string;
161
+ password: string;
162
+ reset_password_email: string;
163
+ appId?: undefined;
164
+ appSecret?: undefined;
165
+ location?: undefined;
166
+ bucket?: undefined;
167
+ region?: undefined;
168
+ endpointUrl?: undefined;
169
+ host?: undefined;
170
+ username?: undefined;
171
+ port?: undefined;
172
+ protocol?: undefined;
173
+ type?: undefined;
174
+ name?: undefined;
175
+ accessToken?: undefined;
176
+ id?: undefined;
177
+ apiKey?: undefined;
178
+ apiSecret?: undefined;
179
+ } | {
180
+ appId: string;
181
+ appSecret: string;
182
+ location: string;
183
+ bucket: string;
184
+ region: string;
185
+ email?: undefined;
186
+ password?: undefined;
187
+ reset_password_email?: undefined;
188
+ endpointUrl?: undefined;
189
+ host?: undefined;
190
+ username?: undefined;
191
+ port?: undefined;
192
+ protocol?: undefined;
193
+ type?: undefined;
194
+ name?: undefined;
195
+ accessToken?: undefined;
196
+ id?: undefined;
197
+ apiKey?: undefined;
198
+ apiSecret?: undefined;
199
+ } | {
200
+ endpointUrl: string;
201
+ appId: string;
202
+ appSecret: string;
203
+ location: string;
204
+ bucket: string;
205
+ region: string;
206
+ email?: undefined;
207
+ password?: undefined;
208
+ reset_password_email?: undefined;
209
+ host?: undefined;
210
+ username?: undefined;
211
+ port?: undefined;
212
+ protocol?: undefined;
213
+ type?: undefined;
214
+ name?: undefined;
215
+ accessToken?: undefined;
216
+ id?: undefined;
217
+ apiKey?: undefined;
218
+ apiSecret?: undefined;
219
+ } | {
220
+ host: string;
221
+ username: string;
222
+ password: string;
223
+ location: string;
224
+ port: string;
225
+ email?: undefined;
226
+ reset_password_email?: undefined;
227
+ appId?: undefined;
228
+ appSecret?: undefined;
229
+ bucket?: undefined;
230
+ region?: undefined;
231
+ endpointUrl?: undefined;
232
+ protocol?: undefined;
233
+ type?: undefined;
234
+ name?: undefined;
235
+ accessToken?: undefined;
236
+ id?: undefined;
237
+ apiKey?: undefined;
238
+ apiSecret?: undefined;
239
+ } | {
240
+ protocol: string;
241
+ host: string;
242
+ username: string;
243
+ password: string;
244
+ location: string;
245
+ port: number;
246
+ email?: undefined;
247
+ reset_password_email?: undefined;
248
+ appId?: undefined;
249
+ appSecret?: undefined;
250
+ bucket?: undefined;
251
+ region?: undefined;
252
+ endpointUrl?: undefined;
253
+ type?: undefined;
254
+ name?: undefined;
255
+ accessToken?: undefined;
256
+ id?: undefined;
257
+ apiKey?: undefined;
258
+ apiSecret?: undefined;
259
+ } | {
260
+ type: string;
261
+ name: string;
262
+ accessToken: string;
263
+ id: string;
264
+ email?: undefined;
265
+ password?: undefined;
266
+ reset_password_email?: undefined;
267
+ appId?: undefined;
268
+ appSecret?: undefined;
269
+ location?: undefined;
270
+ bucket?: undefined;
271
+ region?: undefined;
272
+ endpointUrl?: undefined;
273
+ host?: undefined;
274
+ username?: undefined;
275
+ port?: undefined;
276
+ protocol?: undefined;
277
+ apiKey?: undefined;
278
+ apiSecret?: undefined;
279
+ } | {
280
+ apiKey: string;
281
+ apiSecret: string;
282
+ email?: undefined;
283
+ password?: undefined;
284
+ reset_password_email?: undefined;
285
+ appId?: undefined;
286
+ appSecret?: undefined;
287
+ location?: undefined;
288
+ bucket?: undefined;
289
+ region?: undefined;
290
+ endpointUrl?: undefined;
291
+ host?: undefined;
292
+ username?: undefined;
293
+ port?: undefined;
294
+ protocol?: undefined;
295
+ type?: undefined;
296
+ name?: undefined;
297
+ accessToken?: undefined;
298
+ id?: undefined;
299
+ };
300
+ };
301
+ syncMode: SyncMode;
302
+ syncFields: Record<string, boolean>;
303
+ fieldGroups: import("../utils/config-merge").SyncFieldGroupDef[];
304
+ allFieldDefs: import("../utils/config-merge").SyncFieldDef[];
305
+ getFieldsByGroup: typeof getFieldsByGroup;
306
+ true: any;
307
+ constructor(config: ConfigService, toast: ToastrService, platform: PlatformService);
308
+ ngOnInit(): void;
309
+ checkForNewVersion(): Promise<void>;
310
+ onSelectProviderChange(): void;
311
+ toggleEnableSync(): Promise<void>;
312
+ toggleEnableShowLoader(): Promise<void>;
313
+ onIntervalSyncChanged(): void;
314
+ saveSyncSectionSettings(): Promise<void>;
315
+ resetFormMessages(): void;
316
+ setFormMessage(params: any): void;
317
+ }
@@ -0,0 +1,36 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class CloudSyncFeedbackComponent implements OnInit {
3
+ requestUrl: string;
4
+ requestSubscribeUrl: string;
5
+ isFormProcessing: boolean;
6
+ isFormSubscribeProcessing: boolean;
7
+ form_messages: {
8
+ errors: any[];
9
+ success: any[];
10
+ };
11
+ form_subscribe_messages: {
12
+ errors: any[];
13
+ success: any[];
14
+ };
15
+ form: {
16
+ subject: string;
17
+ name: string;
18
+ email: string;
19
+ message: string;
20
+ };
21
+ newLetterForm: {
22
+ email: string;
23
+ };
24
+ calculationGenerateObj: {
25
+ left: number;
26
+ right: number;
27
+ answer: string;
28
+ correctedAnswer: string;
29
+ };
30
+ ngOnInit(): void;
31
+ setCaptchaCalculation(): void;
32
+ resetForm(): void;
33
+ resetFormMessages(): void;
34
+ subscribeNewsletter(): Promise<void>;
35
+ submitFeedback(): Promise<void>;
36
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class MasterPasswordComponent implements OnInit {
3
+ form: {
4
+ password: string;
5
+ reTypePassword: string;
6
+ };
7
+ ngOnInit(): void;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PlatformService } from 'terminus-core';
3
+ export declare class CloudSyncAboutComponent implements OnInit {
4
+ private platform;
5
+ info: {
6
+ author: string;
7
+ support_url: string;
8
+ github_url: string;
9
+ buy_me_a_cafe: string;
10
+ version: string;
11
+ };
12
+ constructor(platform: PlatformService);
13
+ ngOnInit(): void;
14
+ openSupportUrl(): void;
15
+ openGitHubUrl(): void;
16
+ openDonationPage(): void;
17
+ }