tabby-sync-selective 1.1.2 → 1.1.5

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.
@@ -1,22 +1,71 @@
1
+ import { PlatformService } from 'terminus-core';
1
2
  declare const CloudSyncLang: {
2
3
  lang: {
3
4
  common: {
4
- menu_title: string;
5
+ menu_title: {
6
+ en: string;
7
+ zh: string;
8
+ };
5
9
  verifyConfigString: string;
6
10
  config_inject_header: string;
7
11
  errors: {
8
- invalidServerConfig: string;
12
+ invalidServerConfig: {
13
+ en: string;
14
+ zh: string;
15
+ };
16
+ };
17
+ };
18
+ tabs: {
19
+ general: {
20
+ en: string;
21
+ zh: string;
22
+ };
23
+ sync_settings: {
24
+ en: string;
25
+ zh: string;
26
+ };
27
+ feedback: {
28
+ en: string;
29
+ zh: string;
30
+ };
31
+ support_us: {
32
+ en: string;
33
+ zh: string;
34
+ };
35
+ change_logs: {
36
+ en: string;
37
+ zh: string;
38
+ };
39
+ check_for_update: {
40
+ en: string;
41
+ zh: string;
42
+ };
43
+ logs: {
44
+ en: string;
45
+ zh: string;
9
46
  };
10
47
  };
11
48
  form: {
12
49
  error: {
13
- required_all: string;
50
+ required_all: {
51
+ en: string;
52
+ zh: string;
53
+ };
14
54
  };
15
55
  };
16
56
  settings: {
17
- title: string;
18
- sub_title: string;
19
- service_label: string;
57
+ title: {
58
+ en: string;
59
+ zh: string;
60
+ };
61
+ sub_title: {
62
+ en: string;
63
+ zh: string;
64
+ };
65
+ service_label: {
66
+ en: string;
67
+ zh: string;
68
+ };
20
69
  amazon: {
21
70
  connected: string;
22
71
  save_settings_failed: string;
@@ -25,11 +74,23 @@ declare const CloudSyncLang: {
25
74
  error_connection_timeout: string;
26
75
  };
27
76
  sync: {
28
- loading_config: string;
29
- sync_confirmation: string;
30
- setting_valid: string;
77
+ loading_config: {
78
+ en: string;
79
+ zh: string;
80
+ };
81
+ sync_confirmation: {
82
+ en: string;
83
+ zh: string;
84
+ };
85
+ setting_valid: {
86
+ en: string;
87
+ zh: string;
88
+ };
31
89
  error_setting_save_file: string;
32
- error_connection: string;
90
+ error_connection: {
91
+ en: string;
92
+ zh: string;
93
+ };
33
94
  error_invalid_setting: string;
34
95
  error_invalid_setting_2: string;
35
96
  error_save_setting: string;
@@ -43,15 +104,74 @@ declare const CloudSyncLang: {
43
104
  remove_setting_success: string;
44
105
  remove_setting_error: string;
45
106
  setting_changes_saved: string;
46
- sync_sections_saved: string;
47
- sync_mode_full: string;
48
- sync_mode_platform_safe: string;
49
- sync_mode_custom: string;
50
- sync_mode_selective: string;
51
- sync_sections_title: string;
52
- sync_sections_hint: string;
53
- manual_sync_title: string;
54
- manual_sync_confirm: string;
107
+ sync_sections_saved: {
108
+ en: string;
109
+ zh: string;
110
+ };
111
+ sync_mode_full: {
112
+ en: string;
113
+ zh: string;
114
+ };
115
+ sync_mode_full_desc: {
116
+ en: string;
117
+ zh: string;
118
+ };
119
+ sync_mode_platform_safe: {
120
+ en: string;
121
+ zh: string;
122
+ };
123
+ sync_mode_platform_safe_desc: {
124
+ en: string;
125
+ zh: string;
126
+ };
127
+ sync_mode_custom: {
128
+ en: string;
129
+ zh: string;
130
+ };
131
+ sync_mode_custom_desc: {
132
+ en: string;
133
+ zh: string;
134
+ };
135
+ sync_mode_selective: {
136
+ en: string;
137
+ zh: string;
138
+ };
139
+ sync_sections_title: {
140
+ en: string;
141
+ zh: string;
142
+ };
143
+ sync_sections_hint: {
144
+ en: string;
145
+ zh: string;
146
+ };
147
+ manual_sync_title: {
148
+ en: string;
149
+ zh: string;
150
+ };
151
+ manual_sync_confirm: {
152
+ en: string;
153
+ zh: string;
154
+ };
155
+ custom_fields_title: {
156
+ en: string;
157
+ zh: string;
158
+ };
159
+ custom_fields_hint: {
160
+ en: string;
161
+ zh: string;
162
+ };
163
+ configure_custom_items: {
164
+ en: string;
165
+ zh: string;
166
+ };
167
+ custom_fields_summary: {
168
+ en: string;
169
+ zh: string;
170
+ };
171
+ save_sync_settings: {
172
+ en: string;
173
+ zh: string;
174
+ };
55
175
  };
56
176
  log: {
57
177
  invalid_cloud_settings: string;
@@ -102,9 +222,15 @@ declare const CloudSyncLang: {
102
222
  sync_from_local: string;
103
223
  check_update: string;
104
224
  yes: string;
105
- cancel: string;
225
+ cancel: {
226
+ en: string;
227
+ zh: string;
228
+ };
106
229
  no: string;
107
- ok: string;
230
+ ok: {
231
+ en: string;
232
+ zh: string;
233
+ };
108
234
  view: string;
109
235
  test_connection: string;
110
236
  processing: string;
@@ -114,6 +240,8 @@ declare const CloudSyncLang: {
114
240
  remove_saved_setting: string;
115
241
  };
116
242
  };
117
- trans: (key: string) => string;
243
+ refreshLocale(platform: PlatformService): void;
244
+ isChinese(): boolean;
245
+ trans: (key: string, vars?: Record<string, string | number>) => string;
118
246
  };
119
247
  export default CloudSyncLang;
@@ -0,0 +1,8 @@
1
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
2
+ import { PlatformService } from 'terminus-core';
3
+ export declare class CustomSyncFieldsDialogService {
4
+ private modalService;
5
+ private platform;
6
+ constructor(modalService: NgbModal, platform: PlatformService);
7
+ prompt(syncFields: Record<string, boolean>): Promise<Record<string, boolean> | null>;
8
+ }
@@ -0,0 +1 @@
1
+ export declare function joinCloudPath(location: string, filename: string): string;
@@ -34,6 +34,9 @@ export declare function getDefaultSyncFields(): Record<string, boolean>;
34
34
  /** @deprecated use getDefaultSyncFields */
35
35
  export declare function getDefaultSyncSections(): Record<string, boolean>;
36
36
  export declare function getFieldsByGroup(groupId: string): SyncFieldDef[];
37
+ export declare function getGroupLabel(group: SyncFieldGroupDef, isZh: boolean): string;
38
+ export declare function getFieldLabel(field: SyncFieldDef, isZh: boolean): string;
39
+ export declare function countEnabledSyncFields(syncFields: Record<string, boolean>): number;
37
40
  export declare function resolveSyncOptions(saved: any, override?: SyncOptions): SyncOptions;
38
41
  export declare function mergeForDownload(localRaw: string, remoteRaw: string, options: SyncOptions): string;
39
42
  export declare function mergeForUpload(localRaw: string, remoteRaw: string | null, options: SyncOptions): string;
@@ -0,0 +1,3 @@
1
+ import { PlatformService } from 'terminus-core';
2
+ export declare function getTabbyLanguage(platform: PlatformService): string;
3
+ export declare function isChineseLocale(platform: PlatformService): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-sync-selective",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
4
4
  "date": "6th July 2026",
5
5
  "description": "Selectively sync Tabby config across devices via WebDAV and other cloud services. Merge appearance, profiles, and more without overwriting platform-specific settings.",
6
6
  "keywords": [
@@ -12,9 +12,9 @@
12
12
  "files": [
13
13
  "dist"
14
14
  ],
15
- "author": "kentxxq",
16
- "support_url": "https://github.com/kentxxq/tabby-cloud-sync-settings",
17
- "github_url": "https://github.com/kentxxq/tabby-cloud-sync-settings",
15
+ "author": "chomoe327",
16
+ "support_url": "https://github.com/chomoe327/tabby-cloud-sync-settings",
17
+ "github_url": "https://github.com/chomoe327/tabby-cloud-sync-settings",
18
18
  "license": "MIT",
19
19
  "devDependencies": {
20
20
  "@angular/animations": "^7.2.8",
@@ -39,7 +39,7 @@
39
39
  "electron": "^14.2.7",
40
40
  "eslint": "^7.32.0",
41
41
  "glob-to-regexp": "^0.4.1",
42
- "is-stream": "^4.0.1",
42
+ "hot-patcher": "1.0.0",
43
43
  "isomorphic-form-data": "^2.0.0",
44
44
  "jest": "^27.0.6",
45
45
  "js-yaml": "^4.1.0",
@@ -66,7 +66,6 @@
66
66
  "ts-jest": "^27.0.3",
67
67
  "ts-loader": "^9.2.3",
68
68
  "typescript": "^4.3.5",
69
- "webdav": "^4.6.0",
70
69
  "webpack": "^5.88.2",
71
70
  "webpack-cli": "^4.5.0"
72
71
  },
@@ -75,19 +74,20 @@
75
74
  },
76
75
  "repository": {
77
76
  "type": "git",
78
- "url": "git+https://github.com/kentxxq/tabby-cloud-sync-settings.git"
77
+ "url": "git+https://github.com/chomoe327/tabby-cloud-sync-settings.git"
79
78
  },
80
79
  "dependencies": {
81
80
  "crypto-js": "^4.0.0",
82
- "dropbox": "^10.34.0"
81
+ "dropbox": "^10.34.0",
82
+ "webdav": "^4.6.0"
83
83
  },
84
84
  "publishConfig": {
85
85
  "registry": "https://registry.npmjs.org"
86
86
  },
87
87
  "bugs": {
88
- "url": "https://github.com/kentxxq/tabby-cloud-sync-settings/issues"
88
+ "url": "https://github.com/chomoe327/tabby-cloud-sync-settings/issues"
89
89
  },
90
- "homepage": "https://github.com/kentxxq/tabby-cloud-sync-settings",
90
+ "homepage": "https://github.com/chomoe327/tabby-cloud-sync-settings",
91
91
  "scripts": {
92
92
  "build": "webpack --progress --color --mode=production && npm run postbuild",
93
93
  "watch": "webpack --progress --color --watch",