@celljs/ta-web 4.46.2 → 4.47.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.
- package/esm/browser/account/account-side.d.ts +3 -3
- package/esm/browser/account/account-side.js +11 -21
- package/esm/browser/account/device-account.d.ts +8 -0
- package/esm/browser/account/device-account.js +20 -0
- package/esm/browser/chat/chat-protocol.d.ts +7 -0
- package/esm/browser/chat/chat-view.js +1 -1
- package/esm/browser/chat/chat.d.ts +1 -0
- package/esm/browser/chat/chat.js +15 -3
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/chat/draft-model.js +2 -2
- package/esm/browser/components/access-view.js +12 -10
- package/esm/browser/components/account-menu.d.ts +2 -0
- package/esm/browser/components/account-menu.js +11 -2
- package/esm/browser/components/account-view.js +9 -5
- package/esm/browser/components/app-nav.js +4 -1
- package/esm/browser/components/app-shell-state.d.ts +2 -0
- package/esm/browser/components/app-update-view.d.ts +2 -0
- package/esm/browser/components/app-update-view.js +37 -0
- package/esm/browser/components/app-view.js +33 -108
- package/esm/browser/components/auth-guide.d.ts +25 -0
- package/esm/browser/components/auth-guide.js +44 -0
- package/esm/browser/components/auth-view.d.ts +2 -0
- package/esm/browser/components/auth-view.js +30 -9
- package/esm/browser/components/chat-list-controls.d.ts +38 -0
- package/esm/browser/components/chat-list-controls.js +46 -0
- package/esm/browser/components/chat-list-hooks.d.ts +19 -0
- package/esm/browser/components/chat-list-hooks.js +52 -0
- package/esm/browser/components/chat-list-rows.d.ts +51 -0
- package/esm/browser/components/chat-list-rows.js +110 -0
- package/esm/browser/components/chat-list-sections.d.ts +36 -0
- package/esm/browser/components/chat-list-sections.js +72 -0
- package/esm/browser/components/chat-list.js +48 -221
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/cloud-sign-in-view.js +4 -1
- package/esm/browser/components/custom-provider-util.d.ts +2 -0
- package/esm/browser/components/custom-provider-util.js +5 -0
- package/esm/browser/components/custom-provider-view.js +33 -12
- package/esm/browser/components/device-sign-in-page.js +4 -5
- package/esm/browser/components/discover-view.d.ts +8 -1
- package/esm/browser/components/discover-view.js +28 -3
- package/esm/browser/components/environment-view.js +60 -62
- package/esm/browser/components/extension-settings.js +1 -0
- package/esm/browser/components/first-steps-util.d.ts +29 -0
- package/esm/browser/components/first-steps-util.js +41 -0
- package/esm/browser/components/first-steps.d.ts +3 -0
- package/esm/browser/components/first-steps.js +36 -0
- package/esm/browser/components/host-view.d.ts +3 -3
- package/esm/browser/components/host-view.js +11 -11
- package/esm/browser/components/me-rows.d.ts +8 -1
- package/esm/browser/components/me-rows.js +3 -3
- package/esm/browser/components/me-view.js +1 -1
- package/esm/browser/components/message-user.js +6 -3
- package/esm/browser/components/model-picker.d.ts +5 -0
- package/esm/browser/components/model-picker.js +10 -1
- package/esm/browser/components/nav-places.d.ts +14 -0
- package/esm/browser/components/nav-places.js +11 -0
- package/esm/browser/components/phone-shell.d.ts +14 -0
- package/esm/browser/components/phone-shell.js +22 -0
- package/esm/browser/components/picture-dialog.js +4 -7
- package/esm/browser/components/profile-view.js +1 -1
- package/esm/browser/components/relay-services.js +4 -7
- package/esm/browser/components/relay-view-util.d.ts +5 -0
- package/esm/browser/components/relay-view-util.js +14 -0
- package/esm/browser/components/relay-view.js +40 -37
- package/esm/browser/components/scan-screen.js +5 -8
- package/esm/browser/components/screen-navigator.d.ts +9 -0
- package/esm/browser/components/screen-navigator.js +84 -0
- package/esm/browser/components/search-page.js +9 -2
- package/esm/browser/components/serve-value.d.ts +27 -0
- package/esm/browser/components/serve-value.js +61 -0
- package/esm/browser/components/serve-watch.d.ts +23 -0
- package/esm/browser/components/serve-watch.js +36 -0
- package/esm/browser/components/settings-choices.js +2 -0
- package/esm/browser/components/settings-controls.d.ts +15 -0
- package/esm/browser/components/settings-controls.js +13 -0
- package/esm/browser/components/settings-more.js +6 -4
- package/esm/browser/components/settings-parts.d.ts +3 -1
- package/esm/browser/components/settings-parts.js +3 -0
- package/esm/browser/components/settings-view.js +37 -11
- package/esm/browser/components/share-friends.js +3 -4
- package/esm/browser/components/share-sheet.js +3 -4
- package/esm/browser/components/tool-view.js +17 -3
- package/esm/browser/device/app-update.d.ts +62 -0
- package/esm/browser/device/app-update.js +144 -0
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-contributions.d.ts +6 -1
- package/esm/browser/extension/web-api-partners.d.ts +6 -0
- package/esm/browser/extension/web-api-spec.js +1 -0
- package/esm/browser/extension/web-home.js +9 -0
- package/esm/browser/extension/web-metrics.d.ts +3 -0
- package/esm/browser/extension/web-metrics.js +33 -22
- package/esm/browser/extension/web-pages.d.ts +3 -1
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/gateway/console-agents.js +11 -15
- package/esm/browser/gateway/console-parts.d.ts +7 -4
- package/esm/browser/gateway/console-parts.js +11 -20
- package/esm/browser/gateway/console-trend.js +2 -2
- package/esm/browser/gateway/console-updates.js +6 -4
- package/esm/browser/gateway/console-view.js +6 -6
- package/esm/browser/i18n/en/account.d.ts +7 -0
- package/esm/browser/i18n/en/account.js +13 -6
- package/esm/browser/i18n/en/chat.d.ts +2 -0
- package/esm/browser/i18n/en/chat.js +2 -0
- package/esm/browser/i18n/en/discover.d.ts +3 -0
- package/esm/browser/i18n/en/discover.js +3 -0
- package/esm/browser/i18n/en/service.d.ts +6 -0
- package/esm/browser/i18n/en/service.js +6 -0
- package/esm/browser/i18n/en/settings.d.ts +3 -0
- package/esm/browser/i18n/en/settings.js +3 -0
- package/esm/browser/i18n/ja/account.js +13 -6
- package/esm/browser/i18n/ja/chat.js +2 -0
- package/esm/browser/i18n/ja/discover.js +3 -0
- package/esm/browser/i18n/ja/service.js +6 -0
- package/esm/browser/i18n/ja/settings.js +3 -0
- package/esm/browser/i18n/locales.d.ts +22 -1
- package/esm/browser/i18n/messages.d.ts +21 -0
- package/esm/browser/i18n/zh/account.js +13 -6
- package/esm/browser/i18n/zh/chat.js +2 -0
- package/esm/browser/i18n/zh/discover.js +3 -0
- package/esm/browser/i18n/zh/service.js +6 -0
- package/esm/browser/i18n/zh/settings.js +3 -0
- package/esm/browser/i18n/zh-tw/account.js +13 -6
- package/esm/browser/i18n/zh-tw/chat.js +2 -0
- package/esm/browser/i18n/zh-tw/discover.js +3 -0
- package/esm/browser/i18n/zh-tw/service.js +6 -0
- package/esm/browser/i18n/zh-tw/settings.js +3 -0
- package/esm/browser/notices/notices.d.ts +2 -0
- package/esm/browser/notices/notices.js +2 -0
- package/esm/browser/partners/group-picker.js +3 -4
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/settings/settings-protocol.d.ts +5 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +4 -3
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +7 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +5 -3
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +1 -1
- package/esm/browser/util/tool.d.ts +5 -0
- package/esm/browser/util/tool.js +21 -3
- package/lib/browser/account/account-side.d.ts +3 -3
- package/lib/browser/account/account-side.js +11 -21
- package/lib/browser/account/device-account.d.ts +8 -0
- package/lib/browser/account/device-account.js +20 -0
- package/lib/browser/chat/chat-protocol.d.ts +7 -0
- package/lib/browser/chat/chat-view.js +1 -1
- package/lib/browser/chat/chat.d.ts +1 -0
- package/lib/browser/chat/chat.js +14 -2
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/chat/draft-model.js +2 -2
- package/lib/browser/components/access-view.js +12 -10
- package/lib/browser/components/account-menu.d.ts +2 -0
- package/lib/browser/components/account-menu.js +11 -2
- package/lib/browser/components/account-view.js +9 -5
- package/lib/browser/components/app-nav.js +3 -0
- package/lib/browser/components/app-shell-state.d.ts +2 -0
- package/lib/browser/components/app-update-view.d.ts +3 -0
- package/lib/browser/components/app-update-view.js +73 -0
- package/lib/browser/components/app-view.js +30 -105
- package/lib/browser/components/auth-guide.d.ts +26 -0
- package/lib/browser/components/auth-guide.js +47 -0
- package/lib/browser/components/auth-view.d.ts +2 -0
- package/lib/browser/components/auth-view.js +29 -8
- package/lib/browser/components/chat-list-controls.d.ts +39 -0
- package/lib/browser/components/chat-list-controls.js +86 -0
- package/lib/browser/components/chat-list-hooks.d.ts +19 -0
- package/lib/browser/components/chat-list-hooks.js +53 -0
- package/lib/browser/components/chat-list-rows.d.ts +52 -0
- package/lib/browser/components/chat-list-rows.js +147 -0
- package/lib/browser/components/chat-list-sections.d.ts +37 -0
- package/lib/browser/components/chat-list-sections.js +108 -0
- package/lib/browser/components/chat-list.js +44 -217
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/cloud-sign-in-view.js +4 -1
- package/lib/browser/components/custom-provider-util.d.ts +2 -0
- package/lib/browser/components/custom-provider-util.js +5 -0
- package/lib/browser/components/custom-provider-view.js +32 -11
- package/lib/browser/components/device-sign-in-page.js +4 -5
- package/lib/browser/components/discover-view.d.ts +8 -1
- package/lib/browser/components/discover-view.js +27 -2
- package/lib/browser/components/environment-view.js +60 -62
- package/lib/browser/components/extension-settings.js +1 -0
- package/lib/browser/components/first-steps-util.d.ts +30 -0
- package/lib/browser/components/first-steps-util.js +44 -0
- package/lib/browser/components/first-steps.d.ts +4 -0
- package/lib/browser/components/first-steps.js +72 -0
- package/lib/browser/components/host-view.d.ts +3 -3
- package/lib/browser/components/host-view.js +11 -11
- package/lib/browser/components/me-rows.d.ts +8 -1
- package/lib/browser/components/me-rows.js +3 -3
- package/lib/browser/components/me-view.js +1 -1
- package/lib/browser/components/message-user.js +5 -2
- package/lib/browser/components/model-picker.d.ts +5 -0
- package/lib/browser/components/model-picker.js +10 -1
- package/lib/browser/components/nav-places.d.ts +14 -0
- package/lib/browser/components/nav-places.js +13 -1
- package/lib/browser/components/phone-shell.d.ts +14 -0
- package/lib/browser/components/phone-shell.js +23 -0
- package/lib/browser/components/picture-dialog.js +4 -7
- package/lib/browser/components/profile-view.js +1 -1
- package/lib/browser/components/relay-services.js +4 -7
- package/lib/browser/components/relay-view-util.d.ts +6 -0
- package/lib/browser/components/relay-view-util.js +17 -0
- package/lib/browser/components/relay-view.js +38 -35
- package/lib/browser/components/scan-screen.js +5 -8
- package/lib/browser/components/screen-navigator.d.ts +9 -0
- package/lib/browser/components/screen-navigator.js +85 -0
- package/lib/browser/components/search-page.js +8 -1
- package/lib/browser/components/serve-value.d.ts +28 -0
- package/lib/browser/components/serve-value.js +97 -0
- package/lib/browser/components/serve-watch.d.ts +24 -0
- package/lib/browser/components/serve-watch.js +39 -0
- package/lib/browser/components/settings-choices.js +2 -0
- package/lib/browser/components/settings-controls.d.ts +15 -0
- package/lib/browser/components/settings-controls.js +13 -0
- package/lib/browser/components/settings-more.js +6 -4
- package/lib/browser/components/settings-parts.d.ts +3 -1
- package/lib/browser/components/settings-parts.js +3 -0
- package/lib/browser/components/settings-view.js +36 -10
- package/lib/browser/components/share-friends.js +3 -4
- package/lib/browser/components/share-sheet.js +3 -4
- package/lib/browser/components/tool-view.js +17 -3
- package/lib/browser/device/app-update.d.ts +63 -0
- package/lib/browser/device/app-update.js +182 -0
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-contributions.d.ts +6 -1
- package/lib/browser/extension/web-api-partners.d.ts +6 -0
- package/lib/browser/extension/web-api-spec.js +1 -0
- package/lib/browser/extension/web-home.js +9 -0
- package/lib/browser/extension/web-metrics.d.ts +3 -0
- package/lib/browser/extension/web-metrics.js +32 -21
- package/lib/browser/extension/web-pages.d.ts +3 -1
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/gateway/console-agents.js +10 -14
- package/lib/browser/gateway/console-parts.d.ts +7 -4
- package/lib/browser/gateway/console-parts.js +12 -21
- package/lib/browser/gateway/console-trend.js +1 -1
- package/lib/browser/gateway/console-updates.js +5 -3
- package/lib/browser/gateway/console-view.js +5 -5
- package/lib/browser/i18n/en/account.d.ts +7 -0
- package/lib/browser/i18n/en/account.js +13 -6
- package/lib/browser/i18n/en/chat.d.ts +2 -0
- package/lib/browser/i18n/en/chat.js +2 -0
- package/lib/browser/i18n/en/discover.d.ts +3 -0
- package/lib/browser/i18n/en/discover.js +3 -0
- package/lib/browser/i18n/en/service.d.ts +6 -0
- package/lib/browser/i18n/en/service.js +6 -0
- package/lib/browser/i18n/en/settings.d.ts +3 -0
- package/lib/browser/i18n/en/settings.js +3 -0
- package/lib/browser/i18n/ja/account.js +13 -6
- package/lib/browser/i18n/ja/chat.js +2 -0
- package/lib/browser/i18n/ja/discover.js +3 -0
- package/lib/browser/i18n/ja/service.js +6 -0
- package/lib/browser/i18n/ja/settings.js +3 -0
- package/lib/browser/i18n/locales.d.ts +22 -1
- package/lib/browser/i18n/messages.d.ts +21 -0
- package/lib/browser/i18n/zh/account.js +13 -6
- package/lib/browser/i18n/zh/chat.js +2 -0
- package/lib/browser/i18n/zh/discover.js +3 -0
- package/lib/browser/i18n/zh/service.js +6 -0
- package/lib/browser/i18n/zh/settings.js +3 -0
- package/lib/browser/i18n/zh-tw/account.js +13 -6
- package/lib/browser/i18n/zh-tw/chat.js +2 -0
- package/lib/browser/i18n/zh-tw/discover.js +3 -0
- package/lib/browser/i18n/zh-tw/service.js +6 -0
- package/lib/browser/i18n/zh-tw/settings.js +3 -0
- package/lib/browser/notices/notices.d.ts +2 -0
- package/lib/browser/notices/notices.js +3 -1
- package/lib/browser/partners/group-picker.js +3 -4
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/settings/settings-protocol.d.ts +5 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +4 -3
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +7 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +5 -3
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +1 -1
- package/lib/browser/util/tool.d.ts +5 -0
- package/lib/browser/util/tool.js +21 -3
- package/package.json +7 -7
|
@@ -88,6 +88,7 @@ export declare const EN_MESSAGES: {
|
|
|
88
88
|
'ta.presence.owner': string;
|
|
89
89
|
'ta.account': string;
|
|
90
90
|
'ta.account.service': string;
|
|
91
|
+
'ta.account.thisComputer': string;
|
|
91
92
|
'ta.account.menu': string;
|
|
92
93
|
'ta.me': string;
|
|
93
94
|
'ta.auth.title': string;
|
|
@@ -157,6 +158,12 @@ export declare const EN_MESSAGES: {
|
|
|
157
158
|
'ta.auth.waiting': string;
|
|
158
159
|
'ta.auth.done': string;
|
|
159
160
|
'ta.auth.failed': string;
|
|
161
|
+
'ta.auth.keyGuide': string;
|
|
162
|
+
'ta.auth.keyPage': string;
|
|
163
|
+
'ta.auth.pricing': string;
|
|
164
|
+
'ta.auth.keyRefused': string;
|
|
165
|
+
'ta.auth.keyAgain': string;
|
|
166
|
+
'ta.auth.more': string;
|
|
160
167
|
'ta.auth.none': string;
|
|
161
168
|
'ta.auth.search': string;
|
|
162
169
|
'ta.auth.accountsTitle': string;
|
|
@@ -509,6 +516,8 @@ export declare const EN_MESSAGES: {
|
|
|
509
516
|
'ta.message.sendFailed': string;
|
|
510
517
|
'ta.message.resend': string;
|
|
511
518
|
'ta.message.discard': string;
|
|
519
|
+
'ta.message.noModel': string;
|
|
520
|
+
'ta.message.connectModel': string;
|
|
512
521
|
'ta.message.selectText': string;
|
|
513
522
|
'ta.message.copyFrom': string;
|
|
514
523
|
'ta.message.copiedFrom': string;
|
|
@@ -1106,6 +1115,9 @@ export declare const EN_MESSAGES: {
|
|
|
1106
1115
|
'ta.launcher.place.discover': string;
|
|
1107
1116
|
'ta.launcher.place.launcher': string;
|
|
1108
1117
|
'ta.launcher.place.list': string;
|
|
1118
|
+
'ta.discover.all': string;
|
|
1119
|
+
'ta.discover.showAll': string;
|
|
1120
|
+
'ta.discover.allHint': string;
|
|
1109
1121
|
'ta.discover.empty': string;
|
|
1110
1122
|
'ta.discover.emptyHint': string;
|
|
1111
1123
|
'ta.discover.hint': string;
|
|
@@ -1177,6 +1189,10 @@ export declare const EN_MESSAGES: {
|
|
|
1177
1189
|
'ta.update.readyDetail': string;
|
|
1178
1190
|
'ta.update.later': string;
|
|
1179
1191
|
'ta.update.restartTo': string;
|
|
1192
|
+
'ta.appUpdate.available': string;
|
|
1193
|
+
'ta.appUpdate.detail': string;
|
|
1194
|
+
'ta.appUpdate.update': string;
|
|
1195
|
+
'ta.appUpdate.installTo': string;
|
|
1180
1196
|
'ta.release.available': string;
|
|
1181
1197
|
'ta.release.detail': string;
|
|
1182
1198
|
'ta.release.install': string;
|
|
@@ -1403,6 +1419,8 @@ export declare const EN_MESSAGES: {
|
|
|
1403
1419
|
'ta.relay.phone': string;
|
|
1404
1420
|
'ta.relay.pair': string;
|
|
1405
1421
|
'ta.relay.scan': string;
|
|
1422
|
+
'ta.relay.noApp': string;
|
|
1423
|
+
'ta.relay.download': string;
|
|
1406
1424
|
'ta.relay.done': string;
|
|
1407
1425
|
'ta.relay.devices': string;
|
|
1408
1426
|
'ta.relay.online': string;
|
|
@@ -1573,6 +1591,9 @@ export declare const EN_MESSAGES: {
|
|
|
1573
1591
|
'ta.settings.recentShotsOpenSettings': string;
|
|
1574
1592
|
'ta.settings.clipboardLinks': string;
|
|
1575
1593
|
'ta.settings.clipboardLinksHint': string;
|
|
1594
|
+
'ta.settings.allFeatures': string;
|
|
1595
|
+
'ta.settings.allFeaturesHint': string;
|
|
1596
|
+
'ta.settings.more': string;
|
|
1576
1597
|
'ta.settings.navigation': string;
|
|
1577
1598
|
'ta.settings.navigation.show': string;
|
|
1578
1599
|
'ta.settings.navigation.inNav': string;
|
|
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ACCOUNT_ZH = void 0;
|
|
4
4
|
exports.ACCOUNT_ZH = {
|
|
5
5
|
'ta.signin.title': '连接 Ta',
|
|
6
|
-
'ta.signin.hint': '
|
|
7
|
-
'ta.signin.token': '
|
|
6
|
+
'ta.signin.hint': '在电脑上运行 ta serve --web,会自动打开本页并登录;也可以粘贴连接码(电脑上 ~/.ta/agent/serve.json 里的 token)。',
|
|
7
|
+
'ta.signin.token': '连接码',
|
|
8
8
|
'ta.signin.connect': '连接',
|
|
9
|
-
'ta.signin.refused': 'Ta
|
|
9
|
+
'ta.signin.refused': '电脑上的 Ta 没有接受这个连接码,或者它没有在运行。',
|
|
10
10
|
'ta.signin.pairHint': '在电脑上运行 ta pair <Relay 地址>,把它打印的链接粘贴到这里。经 Relay 的内容端到端加密。',
|
|
11
11
|
'ta.signin.pairing': '配对链接',
|
|
12
12
|
'ta.signin.pairRefused': '你的 Ta 不认识这台设备,可能已取消配对。请重新运行 ta pair。',
|
|
13
|
-
'ta.signin.accountsHint': '
|
|
13
|
+
'ta.signin.accountsHint': '用你的账号登录,或粘贴电脑上 Ta 的连接码。',
|
|
14
14
|
'ta.signin.with': '使用 {name} 登录',
|
|
15
15
|
'ta.signin.wechat': '微信',
|
|
16
16
|
'ta.signin.orToken': '或',
|
|
17
17
|
'ta.signin.denied': '{account} 还不能使用这个 Ta。请 Ta 的主人在“设置 → 访问”里允许。',
|
|
18
18
|
'ta.signin.failed': '登录没有完成,请再试一次。',
|
|
19
|
-
'ta.signin.hintRemote': '
|
|
19
|
+
'ta.signin.hintRemote': '打开电脑上的 Ta 或网关给你的登录链接,或粘贴它的连接码。',
|
|
20
20
|
'ta.access.title': '访问',
|
|
21
21
|
'ta.access.bind': '用你的账号登录',
|
|
22
22
|
'ta.access.bindHint': '允许你登录用的这个账号,以后在任何设备上都能用它登录。',
|
|
@@ -88,7 +88,8 @@ exports.ACCOUNT_ZH = {
|
|
|
88
88
|
'ta.presence.more': '等 {count} 人',
|
|
89
89
|
'ta.presence.owner': '所有者',
|
|
90
90
|
'ta.account': '账号',
|
|
91
|
-
'ta.account.service': '
|
|
91
|
+
'ta.account.service': '电脑',
|
|
92
|
+
'ta.account.thisComputer': '这台电脑',
|
|
92
93
|
// The settings view and the menu of the gear
|
|
93
94
|
'ta.account.menu': '账号与设置',
|
|
94
95
|
'ta.me': '我',
|
|
@@ -159,6 +160,12 @@ exports.ACCOUNT_ZH = {
|
|
|
159
160
|
'ta.auth.waiting': '等待中…',
|
|
160
161
|
'ta.auth.done': '已登录 {name}',
|
|
161
162
|
'ta.auth.failed': '登录失败:{message}',
|
|
163
|
+
'ta.auth.keyGuide': '在 {name} 的网站创建 Key 后粘贴到这里,按用量付费。',
|
|
164
|
+
'ta.auth.keyPage': '去创建 Key',
|
|
165
|
+
'ta.auth.pricing': '价格',
|
|
166
|
+
'ta.auth.keyRefused': '{name} 不认这个 Key,没有保存。请重新复制一遍。',
|
|
167
|
+
'ta.auth.keyAgain': '重新输入',
|
|
168
|
+
'ta.auth.more': '更多服务商({count} 家)',
|
|
162
169
|
'ta.auth.none': '没有匹配的服务商',
|
|
163
170
|
'ta.auth.search': '搜索服务商',
|
|
164
171
|
'ta.auth.accountsTitle': '模型账号',
|
|
@@ -91,6 +91,8 @@ exports.CHAT_ZH = {
|
|
|
91
91
|
'ta.message.sendFailed': '发送失败',
|
|
92
92
|
'ta.message.resend': '重发',
|
|
93
93
|
'ta.message.discard': '删除',
|
|
94
|
+
'ta.message.noModel': '还没连上模型,Ta 没法回答',
|
|
95
|
+
'ta.message.connectModel': '连接模型',
|
|
94
96
|
'ta.message.selectText': '选择文本',
|
|
95
97
|
'ta.message.copyFrom': '从这里复制到末尾',
|
|
96
98
|
'ta.message.copiedFrom': '已复制 {count} 条消息(Markdown)',
|
|
@@ -97,6 +97,9 @@ exports.DISCOVER_ZH = {
|
|
|
97
97
|
'ta.launcher.place.discover': '在发现',
|
|
98
98
|
'ta.launcher.place.launcher': '快捷打开',
|
|
99
99
|
'ta.launcher.place.list': '在列表里',
|
|
100
|
+
'ta.discover.all': '所有功能',
|
|
101
|
+
'ta.discover.showAll': '在发现里列出所有功能',
|
|
102
|
+
'ta.discover.allHint': '用过的功能会自动出现在发现里,30 天没用再回到这里。',
|
|
100
103
|
'ta.discover.empty': '这里还没有功能',
|
|
101
104
|
'ta.discover.emptyHint': '扩展提供的功能都收在这里',
|
|
102
105
|
'ta.discover.hint': '右键点功能可以放到导航栏。',
|
|
@@ -31,6 +31,10 @@ exports.SERVICE_ZH = {
|
|
|
31
31
|
'ta.update.readyDetail': '重启 Ta 后生效,进行中的任务会在重启后接着做。',
|
|
32
32
|
'ta.update.later': '稍后',
|
|
33
33
|
'ta.update.restartTo': '重启以使用 {version}',
|
|
34
|
+
'ta.appUpdate.available': '有新版本 Ta {version}',
|
|
35
|
+
'ta.appUpdate.detail': '点「更新」后在弹出的对话框里点「安装」,Ta 会关掉并装好新版本,数据不会丢。',
|
|
36
|
+
'ta.appUpdate.update': '更新',
|
|
37
|
+
'ta.appUpdate.installTo': '更新到 Ta {version}',
|
|
34
38
|
'ta.release.available': '有新版本 {version}',
|
|
35
39
|
'ta.release.detail': '会运行 {command};进行中的任务在重启后接着做。',
|
|
36
40
|
'ta.release.install': '更新并重启',
|
|
@@ -257,6 +261,8 @@ exports.SERVICE_ZH = {
|
|
|
257
261
|
'ta.relay.phone': '手机',
|
|
258
262
|
'ta.relay.pair': '配对设备',
|
|
259
263
|
'ta.relay.scan': '用手机上的 Ta 扫码。配对码只显示这一次,不要发给别人。',
|
|
264
|
+
'ta.relay.noApp': '还没装 Ta?用手机相机扫这个码,或者',
|
|
265
|
+
'ta.relay.download': '去下载 Ta',
|
|
260
266
|
'ta.relay.done': '完成',
|
|
261
267
|
'ta.relay.devices': '已配对的设备',
|
|
262
268
|
'ta.relay.online': '已连接 · {relay}',
|
|
@@ -162,6 +162,9 @@ exports.SETTINGS_ZH = {
|
|
|
162
162
|
'ta.settings.recentShotsOpenSettings': '打开系统设置',
|
|
163
163
|
'ta.settings.clipboardLinks': '识别复制的 Ta 链接',
|
|
164
164
|
'ta.settings.clipboardLinksHint': '复制了带 Ta 邀请或分享链接的内容,回到 Ta 时会提示它是什么,点“打开”就能打开;在 Ta 里任何地方粘贴也一样。只在回到 Ta 的那一刻读一次剪贴板,不保存内容。iPhone 上点了“打开”才读',
|
|
165
|
+
'ta.settings.allFeatures': '显示所有功能',
|
|
166
|
+
'ta.settings.allFeaturesHint': '发现里列出全部功能,设置里显示全部分组;关掉时只放常用的和你用过的',
|
|
167
|
+
'ta.settings.more': '更多设置',
|
|
165
168
|
'ta.settings.navigation': '导航栏',
|
|
166
169
|
'ta.settings.navigation.show': '显示在导航栏',
|
|
167
170
|
'ta.settings.navigation.inNav': '在导航栏',
|
|
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ACCOUNT_ZH_TW = void 0;
|
|
4
4
|
exports.ACCOUNT_ZH_TW = {
|
|
5
5
|
'ta.signin.title': '連線 Ta',
|
|
6
|
-
'ta.signin.hint': '
|
|
7
|
-
'ta.signin.token': '
|
|
6
|
+
'ta.signin.hint': '在電腦上執行 ta serve --web,會自動開啟本頁並登入;也可以貼上連接碼(電腦上 ~/.ta/agent/serve.json 裡的 token)。',
|
|
7
|
+
'ta.signin.token': '連接碼',
|
|
8
8
|
'ta.signin.connect': '連線',
|
|
9
|
-
'ta.signin.refused': 'Ta
|
|
9
|
+
'ta.signin.refused': '電腦上的 Ta 沒有接受這個連接碼,或者它沒有在執行。',
|
|
10
10
|
'ta.signin.pairHint': '在電腦上執行 ta pair <Relay 地址>,把它列印的連結貼上到這裡。經 Relay 的內容端到端加密。',
|
|
11
11
|
'ta.signin.pairing': '配對連結',
|
|
12
12
|
'ta.signin.pairRefused': '你的 Ta 不認識這台裝置,可能已取消配對。請重新執行 ta pair。',
|
|
13
|
-
'ta.signin.accountsHint': '
|
|
13
|
+
'ta.signin.accountsHint': '用你的帳號登入,或貼上電腦上 Ta 的連接碼。',
|
|
14
14
|
'ta.signin.with': '使用 {name} 登入',
|
|
15
15
|
'ta.signin.wechat': '微信',
|
|
16
16
|
'ta.signin.orToken': '或',
|
|
17
17
|
'ta.signin.denied': '{account} 還不能使用這個 Ta。請 Ta 的主人在「設定 → 存取」裡允許。',
|
|
18
18
|
'ta.signin.failed': '登入沒有完成,請再試一次。',
|
|
19
|
-
'ta.signin.hintRemote': '
|
|
19
|
+
'ta.signin.hintRemote': '開啟電腦上的 Ta 或閘道器給你的登入連結,或貼上它的連接碼。',
|
|
20
20
|
'ta.access.title': '存取',
|
|
21
21
|
'ta.access.bind': '用你的帳號登入',
|
|
22
22
|
'ta.access.bindHint': '允許你登入用的這個帳號,以後在任何裝置上都能用它登入。',
|
|
@@ -88,7 +88,8 @@ exports.ACCOUNT_ZH_TW = {
|
|
|
88
88
|
'ta.presence.more': '等 {count} 人',
|
|
89
89
|
'ta.presence.owner': '所有者',
|
|
90
90
|
'ta.account': '帳號',
|
|
91
|
-
'ta.account.service': '
|
|
91
|
+
'ta.account.service': '電腦',
|
|
92
|
+
'ta.account.thisComputer': '這台電腦',
|
|
92
93
|
'ta.account.menu': '帳號與設定',
|
|
93
94
|
'ta.me': '我',
|
|
94
95
|
'ta.auth.title': '登入模型服務',
|
|
@@ -158,6 +159,12 @@ exports.ACCOUNT_ZH_TW = {
|
|
|
158
159
|
'ta.auth.waiting': '等待中…',
|
|
159
160
|
'ta.auth.done': '已登入 {name}',
|
|
160
161
|
'ta.auth.failed': '登入失敗:{message}',
|
|
162
|
+
'ta.auth.keyGuide': '在 {name} 的網站建立 Key 後貼到這裡,按用量付費。',
|
|
163
|
+
'ta.auth.keyPage': '去建立 Key',
|
|
164
|
+
'ta.auth.pricing': '價格',
|
|
165
|
+
'ta.auth.keyRefused': '{name} 不認這個 Key,沒有儲存。請重新複製一遍。',
|
|
166
|
+
'ta.auth.keyAgain': '重新輸入',
|
|
167
|
+
'ta.auth.more': '更多服務商({count} 家)',
|
|
161
168
|
'ta.auth.none': '沒有匹配的服務商',
|
|
162
169
|
'ta.auth.search': '搜尋服務商',
|
|
163
170
|
'ta.auth.accountsTitle': '模型帳號',
|
|
@@ -91,6 +91,8 @@ exports.CHAT_ZH_TW = {
|
|
|
91
91
|
'ta.message.sendFailed': '傳送失敗',
|
|
92
92
|
'ta.message.resend': '重發',
|
|
93
93
|
'ta.message.discard': '刪除',
|
|
94
|
+
'ta.message.noModel': '還沒連上模型,Ta 沒法回答',
|
|
95
|
+
'ta.message.connectModel': '連接模型',
|
|
94
96
|
'ta.message.selectText': '選擇文本',
|
|
95
97
|
'ta.message.copyFrom': '從這裡複製到末尾',
|
|
96
98
|
'ta.message.copiedFrom': '已複製 {count} 則訊息(Markdown)',
|
|
@@ -97,6 +97,9 @@ exports.DISCOVER_ZH_TW = {
|
|
|
97
97
|
'ta.launcher.place.discover': '在發現',
|
|
98
98
|
'ta.launcher.place.launcher': '快捷開啟',
|
|
99
99
|
'ta.launcher.place.list': '在列表裡',
|
|
100
|
+
'ta.discover.all': '所有功能',
|
|
101
|
+
'ta.discover.showAll': '在發現裡列出所有功能',
|
|
102
|
+
'ta.discover.allHint': '用過的功能會自動出現在發現裡,30 天沒用再回到這裡。',
|
|
100
103
|
'ta.discover.empty': '這裡還沒有功能',
|
|
101
104
|
'ta.discover.emptyHint': '擴充功能提供的功能都收在這裡',
|
|
102
105
|
'ta.discover.hint': '在功能上按右鍵可以放到導航欄。',
|
|
@@ -31,6 +31,10 @@ exports.SERVICE_ZH_TW = {
|
|
|
31
31
|
'ta.update.readyDetail': '重啟 Ta 後生效,進行中的任務會在重啟後接著做。',
|
|
32
32
|
'ta.update.later': '稍後',
|
|
33
33
|
'ta.update.restartTo': '重啟以使用 {version}',
|
|
34
|
+
'ta.appUpdate.available': '有新版本 Ta {version}',
|
|
35
|
+
'ta.appUpdate.detail': '點「更新」後在彈出的對話框裡點「安裝」,Ta 會關閉並裝好新版本,資料不會遺失。',
|
|
36
|
+
'ta.appUpdate.update': '更新',
|
|
37
|
+
'ta.appUpdate.installTo': '更新到 Ta {version}',
|
|
34
38
|
'ta.release.available': '有新版本 {version}',
|
|
35
39
|
'ta.release.detail': '會執行 {command};進行中的任務在重啟後接著做。',
|
|
36
40
|
'ta.release.install': '更新並重啟',
|
|
@@ -257,6 +261,8 @@ exports.SERVICE_ZH_TW = {
|
|
|
257
261
|
'ta.relay.phone': '手機',
|
|
258
262
|
'ta.relay.pair': '配對裝置',
|
|
259
263
|
'ta.relay.scan': '用手機上的 Ta 掃碼。配對碼只顯示這一次,不要發給別人。',
|
|
264
|
+
'ta.relay.noApp': '還沒裝 Ta?用手機相機掃這個碼,或者',
|
|
265
|
+
'ta.relay.download': '去下載 Ta',
|
|
260
266
|
'ta.relay.done': '完成',
|
|
261
267
|
'ta.relay.devices': '已配對的裝置',
|
|
262
268
|
'ta.relay.online': '已連線 · {relay}',
|
|
@@ -162,6 +162,9 @@ exports.SETTINGS_ZH_TW = {
|
|
|
162
162
|
'ta.settings.recentShotsOpenSettings': '打開系統設定',
|
|
163
163
|
'ta.settings.clipboardLinks': '識別複製的 Ta 連結',
|
|
164
164
|
'ta.settings.clipboardLinksHint': '複製了帶 Ta 邀請或分享連結的內容,回到 Ta 時會提示它是什麼,點「開啟」就能開啟;在 Ta 裡任何地方貼上也一樣。只在回到 Ta 的那一刻讀一次剪貼簿,不保存內容。iPhone 上點了「開啟」才讀',
|
|
165
|
+
'ta.settings.allFeatures': '顯示所有功能',
|
|
166
|
+
'ta.settings.allFeaturesHint': '發現裡列出全部功能,設定裡顯示全部分組;關掉時只放常用的和你用過的',
|
|
167
|
+
'ta.settings.more': '更多設定',
|
|
165
168
|
'ta.settings.navigation': '導航欄',
|
|
166
169
|
'ta.settings.navigation.show': '顯示在導航欄',
|
|
167
170
|
'ta.settings.navigation.inNav': '在導航欄',
|
|
@@ -3,6 +3,8 @@ import { TaSettings } from '../settings/settings-protocol';
|
|
|
3
3
|
import { type ConfirmOptions, type ConfirmRequest, type InputOptions, type InputRequest, type Notice, type NoticeLevel, type NoticeOptions, type NoticesState, TaNotices } from './notices-protocol';
|
|
4
4
|
/** Asks the page to open its sign-in to a provider of models: a call failed for want of one. */
|
|
5
5
|
export declare const SIGN_IN_EVENT = "ta:sign-in";
|
|
6
|
+
/** The user connected a provider of models from the page of sign-in: what failed for want of one goes again. */
|
|
7
|
+
export declare const SIGNED_IN_EVENT = "ta:signed-in";
|
|
6
8
|
/** Which build of Ta a page is: its entry module, whose name changes with each build. */
|
|
7
9
|
export declare namespace PageVersionUtil {
|
|
8
10
|
function entry(html: string): string | undefined;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TaNoticesImpl = exports.NoticesUtil = exports.PageVersionUtil = exports.SIGN_IN_EVENT = void 0;
|
|
12
|
+
exports.TaNoticesImpl = exports.NoticesUtil = exports.PageVersionUtil = exports.SIGNED_IN_EVENT = exports.SIGN_IN_EVENT = void 0;
|
|
13
13
|
const core_1 = require("@celljs/core");
|
|
14
14
|
const ta_client_1 = require("@celljs/ta-client");
|
|
15
15
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
@@ -18,6 +18,8 @@ const settings_protocol_1 = require("../settings/settings-protocol");
|
|
|
18
18
|
const notices_protocol_1 = require("./notices-protocol");
|
|
19
19
|
/** Asks the page to open its sign-in to a provider of models: a call failed for want of one. */
|
|
20
20
|
exports.SIGN_IN_EVENT = 'ta:sign-in';
|
|
21
|
+
/** The user connected a provider of models from the page of sign-in: what failed for want of one goes again. */
|
|
22
|
+
exports.SIGNED_IN_EVENT = 'ta:signed-in';
|
|
21
23
|
/** What the build of the page sends when a part it loads on demand did not load. */
|
|
22
24
|
const PRELOAD_ERROR_EVENT = 'vite:preloadError';
|
|
23
25
|
/** Which build of Ta a page is: its entry module, whose name changes with each build. */
|
|
@@ -37,6 +37,7 @@ exports.PARTNERS_EXTENSION = void 0;
|
|
|
37
37
|
exports.GroupPicker = GroupPicker;
|
|
38
38
|
exports.openGroupPicker = openGroupPicker;
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
|
+
const busy_1 = require("../components/busy");
|
|
40
41
|
const people_picker_1 = require("../components/people-picker");
|
|
41
42
|
const web_dialog_1 = require("../components/web-dialog");
|
|
42
43
|
const use_t_1 = require("../i18n/use-t");
|
|
@@ -52,7 +53,7 @@ function GroupPicker({ host, with: fixed, close }) {
|
|
|
52
53
|
const t = (0, use_t_1.useT)();
|
|
53
54
|
const list = partners_util_1.PartnersUtil.pickable((0, partners_view_1.usePartners)(host));
|
|
54
55
|
const [chosen, setChosen] = React.useState(fixed ? [fixed.key] : []);
|
|
55
|
-
const [busy,
|
|
56
|
+
const [busy, run] = (0, busy_1.useBusy)();
|
|
56
57
|
const [error, setError] = React.useState();
|
|
57
58
|
const picked = list.filter(partner => chosen.includes(partner.key));
|
|
58
59
|
const alone = !fixed && picked.length === 1;
|
|
@@ -64,7 +65,6 @@ function GroupPicker({ host, with: fixed, close }) {
|
|
|
64
65
|
await host.openHome(picked[0]);
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
setBusy(true);
|
|
68
68
|
setError(undefined);
|
|
69
69
|
try {
|
|
70
70
|
for (const { source } of host.partners.sourceList()) {
|
|
@@ -78,7 +78,6 @@ function GroupPicker({ host, with: fixed, close }) {
|
|
|
78
78
|
catch (failure) {
|
|
79
79
|
setError(failure instanceof Error ? failure.message : String(failure));
|
|
80
80
|
}
|
|
81
|
-
setBusy(false);
|
|
82
81
|
};
|
|
83
82
|
const people = list.map(partner => ({
|
|
84
83
|
key: partner.key,
|
|
@@ -93,7 +92,7 @@ function GroupPicker({ host, with: fixed, close }) {
|
|
|
93
92
|
React.createElement(people_picker_1.PeoplePicker, { people: people, value: chosen, onChange: setChosen, disabled: busy, empty: t('ta.partners.pickNone') }),
|
|
94
93
|
error && React.createElement("p", { className: "ta-picker-error" }, error),
|
|
95
94
|
React.createElement("div", { className: "ta-dialog-actions" },
|
|
96
|
-
React.createElement("button", { type: "button", className: `ta-button ta-primary${busy ? ' ta-busy' : ''}`, disabled: busy || !enough, onClick: () => void done
|
|
95
|
+
React.createElement("button", { type: "button", className: `ta-button ta-primary${busy ? ' ta-busy' : ''}`, disabled: busy || !enough, onClick: () => void run(done) },
|
|
97
96
|
busy && React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
98
97
|
React.createElement("span", null, alone ? t('ta.partners.pickChat') : t('ta.partners.pickDone', { count: picked.length + 1 })))))));
|
|
99
98
|
}
|