@celljs/ta-web 4.37.0 → 4.38.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/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/components/app-contexts.js +10 -9
- package/esm/browser/components/cloud-network.d.ts +17 -0
- package/esm/browser/components/cloud-network.js +105 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/folder-picker.d.ts +3 -3
- package/esm/browser/components/folder-picker.js +5 -15
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/markdown.d.ts +1 -1
- package/esm/browser/components/markdown.js +8 -2
- package/esm/browser/components/relay-services.d.ts +0 -2
- package/esm/browser/components/relay-services.js +1 -11
- package/esm/browser/components/remote-hosts.d.ts +9 -7
- package/esm/browser/components/remote-hosts.js +86 -47
- package/esm/browser/components/remote-machines.d.ts +21 -0
- package/esm/browser/components/remote-machines.js +56 -0
- package/esm/browser/components/remote-prompts.d.ts +2 -3
- package/esm/browser/components/remote-prompts.js +3 -15
- package/esm/browser/components/remote-steps.d.ts +19 -0
- package/esm/browser/components/remote-steps.js +26 -0
- package/esm/browser/components/settings-controls.d.ts +3 -1
- package/esm/browser/components/settings-controls.js +2 -2
- package/esm/browser/extension/web-api-menus.d.ts +14 -0
- package/esm/browser/extension/web-api-services.d.ts +6 -0
- package/esm/browser/extension/web-api-spec.js +2 -0
- package/esm/browser/extension/web-extension-context.js +2 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +3 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +4 -3
- package/esm/browser/extension/web-extension-run.js +3 -1
- package/esm/browser/i18n/en/service.d.ts +26 -2
- package/esm/browser/i18n/en/service.js +33 -9
- package/esm/browser/i18n/ja/service.js +33 -9
- package/esm/browser/i18n/locales.d.ts +27 -3
- package/esm/browser/i18n/messages.d.ts +26 -2
- package/esm/browser/i18n/zh/service.js +33 -9
- package/esm/browser/i18n/zh-tw/service.js +33 -9
- package/esm/browser/markdown/code-renderers.d.ts +3 -0
- package/esm/browser/markdown/code-renderers.js +2 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +1 -4
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +9 -1
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-services.d.ts +2 -0
- package/esm/browser/workbench-services.js +5 -0
- package/esm/browser/workbench.js +3 -0
- package/lib/browser/components/app-contexts.js +9 -8
- package/lib/browser/components/cloud-network.d.ts +18 -0
- package/lib/browser/components/cloud-network.js +142 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/folder-picker.d.ts +3 -3
- package/lib/browser/components/folder-picker.js +5 -15
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/markdown.d.ts +1 -1
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/relay-services.d.ts +0 -2
- package/lib/browser/components/relay-services.js +1 -11
- package/lib/browser/components/remote-hosts.d.ts +9 -7
- package/lib/browser/components/remote-hosts.js +84 -45
- package/lib/browser/components/remote-machines.d.ts +22 -0
- package/lib/browser/components/remote-machines.js +59 -0
- package/lib/browser/components/remote-prompts.d.ts +2 -3
- package/lib/browser/components/remote-prompts.js +3 -15
- package/lib/browser/components/remote-steps.d.ts +20 -0
- package/lib/browser/components/remote-steps.js +63 -0
- package/lib/browser/components/settings-controls.d.ts +3 -1
- package/lib/browser/components/settings-controls.js +2 -2
- package/lib/browser/extension/web-api-menus.d.ts +14 -0
- package/lib/browser/extension/web-api-services.d.ts +6 -0
- package/lib/browser/extension/web-api-spec.js +2 -0
- package/lib/browser/extension/web-extension-context.js +2 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +3 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +4 -3
- package/lib/browser/extension/web-extension-run.js +3 -1
- package/lib/browser/i18n/en/service.d.ts +26 -2
- package/lib/browser/i18n/en/service.js +33 -9
- package/lib/browser/i18n/ja/service.js +33 -9
- package/lib/browser/i18n/locales.d.ts +27 -3
- package/lib/browser/i18n/messages.d.ts +26 -2
- package/lib/browser/i18n/zh/service.js +33 -9
- package/lib/browser/i18n/zh-tw/service.js +33 -9
- package/lib/browser/markdown/code-renderers.d.ts +3 -0
- package/lib/browser/markdown/code-renderers.js +3 -1
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +1 -4
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +9 -1
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-services.d.ts +2 -0
- package/lib/browser/workbench-services.js +5 -0
- package/lib/browser/workbench.js +3 -0
- package/package.json +12 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TaRemoteHost } from '@celljs/ta-protocol';
|
|
2
|
+
import type { Translate } from '../i18n/use-t.js';
|
|
3
|
+
import type { RemoteStepInfo } from './remote-steps.js';
|
|
4
|
+
/** A machine of the list: a host of ssh with the cloud workspace made on it (`relay`), or a cloud workspace of a gateway. */
|
|
5
|
+
export interface RemoteMachine {
|
|
6
|
+
host: TaRemoteHost;
|
|
7
|
+
relay?: TaRemoteHost;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace RemoteMachinesUtil {
|
|
10
|
+
/**
|
|
11
|
+
* The machines of the list, each once: a cloud workspace on a host of ssh is that host's `relay` (the host made
|
|
12
|
+
* up, not connected, when it is no longer listed); those of gateways after the hosts.
|
|
13
|
+
*/
|
|
14
|
+
function machines(hosts: readonly TaRemoteHost[]): RemoteMachine[];
|
|
15
|
+
/** The name of the cloud workspace of a gateway, from its address: its first label, free among `taken`. */
|
|
16
|
+
function cloudName(gateway: string, taken?: readonly string[]): string;
|
|
17
|
+
/** Whether a step is of making a host of ssh a cloud workspace, which the row of its handover shows, not that of the host. */
|
|
18
|
+
function relayStep(step: RemoteStepInfo | undefined): boolean;
|
|
19
|
+
/** What a host does now, in words: the step it is at, connected or not. */
|
|
20
|
+
function state(host: TaRemoteHost, step: RemoteStepInfo | undefined, t: Translate): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TaLocation } from '@celljs/ta-protocol';
|
|
2
|
+
export var RemoteMachinesUtil;
|
|
3
|
+
(function (RemoteMachinesUtil) {
|
|
4
|
+
/**
|
|
5
|
+
* The machines of the list, each once: a cloud workspace on a host of ssh is that host's `relay` (the host made
|
|
6
|
+
* up, not connected, when it is no longer listed); those of gateways after the hosts.
|
|
7
|
+
*/
|
|
8
|
+
function machines(hosts) {
|
|
9
|
+
const relays = new Map(hosts.filter(host => host.source === 'cloud' && host.via).map(host => [host.via, host]));
|
|
10
|
+
const ssh = hosts.filter(host => host.source !== 'cloud');
|
|
11
|
+
const missing = [...relays.keys()].filter(via => !ssh.some(host => host.host === via));
|
|
12
|
+
return [
|
|
13
|
+
...ssh.map(host => ({ host, relay: relays.get(host.host) })),
|
|
14
|
+
...missing.map(via => ({ host: { host: via, source: 'recent', connected: false }, relay: relays.get(via) })),
|
|
15
|
+
...hosts.filter(host => host.source === 'cloud' && !host.via).map(host => ({ host })),
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
RemoteMachinesUtil.machines = machines;
|
|
19
|
+
/** The name of the cloud workspace of a gateway, from its address: its first label, free among `taken`. */
|
|
20
|
+
function cloudName(gateway, taken = []) {
|
|
21
|
+
var _a;
|
|
22
|
+
let host = gateway.trim();
|
|
23
|
+
try {
|
|
24
|
+
host = new URL(/^[a-z]+:\/\//i.test(host) ? host : `https://${host}`).hostname;
|
|
25
|
+
}
|
|
26
|
+
catch (_b) {
|
|
27
|
+
// What the user is typing: its first word is enough.
|
|
28
|
+
}
|
|
29
|
+
const first = ((_a = host.split(/[.:/]/)[0]) !== null && _a !== void 0 ? _a : '')
|
|
30
|
+
.toLowerCase()
|
|
31
|
+
.replace(/[^a-z0-9-]+/g, '-')
|
|
32
|
+
.replace(/^-+|-+$/g, '')
|
|
33
|
+
.slice(0, 36);
|
|
34
|
+
const base = /^[a-z0-9]/.test(first) ? first : 'cloud';
|
|
35
|
+
let name = base;
|
|
36
|
+
for (let n = 2; taken.includes(name); n++) {
|
|
37
|
+
name = `${base}-${n}`;
|
|
38
|
+
}
|
|
39
|
+
return name;
|
|
40
|
+
}
|
|
41
|
+
RemoteMachinesUtil.cloudName = cloudName;
|
|
42
|
+
/** Whether a step is of making a host of ssh a cloud workspace, which the row of its handover shows, not that of the host. */
|
|
43
|
+
function relayStep(step) {
|
|
44
|
+
return (step === null || step === void 0 ? void 0 : step.step) === 'installing-ta' || (step === null || step === void 0 ? void 0 : step.step) === 'starting-ta';
|
|
45
|
+
}
|
|
46
|
+
RemoteMachinesUtil.relayStep = relayStep;
|
|
47
|
+
/** What a host does now, in words: the step it is at, connected or not. */
|
|
48
|
+
function state(host, step, t) {
|
|
49
|
+
var _a;
|
|
50
|
+
return step
|
|
51
|
+
? t(`ta.remote.step.${step.step}`, { host: TaLocation.hostLabel(host.host), detail: (_a = step.detail) !== null && _a !== void 0 ? _a : '' })
|
|
52
|
+
: t(host.connected ? 'ta.remote.connected' : 'ta.remote.disconnected');
|
|
53
|
+
}
|
|
54
|
+
RemoteMachinesUtil.state = state;
|
|
55
|
+
})(RemoteMachinesUtil || (RemoteMachinesUtil = {}));
|
|
56
|
+
//# sourceMappingURL=remote-machines.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* What ssh asks while ta serve connects to a host, one question at a time, in every page that is open (the
|
|
4
|
-
* first answer counts);
|
|
5
|
-
* time (it installs Node.js there); and a notice when a connection is lost.
|
|
4
|
+
* first answer counts); and a notice when a connection is lost.
|
|
6
5
|
*/
|
|
7
|
-
export declare function RemotePrompts(): React.JSX.Element;
|
|
6
|
+
export declare function RemotePrompts(): React.JSX.Element | null;
|
|
@@ -29,15 +29,13 @@ function PromptDialog({ prompt, onAnswer }) {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* What ssh asks while ta serve connects to a host, one question at a time, in every page that is open (the
|
|
32
|
-
* first answer counts);
|
|
33
|
-
* time (it installs Node.js there); and a notice when a connection is lost.
|
|
32
|
+
* first answer counts); and a notice when a connection is lost.
|
|
34
33
|
*/
|
|
35
34
|
export function RemotePrompts() {
|
|
36
35
|
const t = useT();
|
|
37
36
|
const [, bench] = useWorkbench();
|
|
38
37
|
const [, notices] = useNotices();
|
|
39
38
|
const [prompts, setPrompts] = React.useState([]);
|
|
40
|
-
const [steps, setSteps] = React.useState({});
|
|
41
39
|
const connected = React.useRef(new Set());
|
|
42
40
|
React.useEffect(() => bench.onRemoteEvent((event) => {
|
|
43
41
|
if (event.type === 'prompt') {
|
|
@@ -46,11 +44,7 @@ export function RemotePrompts() {
|
|
|
46
44
|
else if (event.type === 'prompt_closed') {
|
|
47
45
|
setPrompts(shown => shown.filter(prompt => prompt.promptId !== event.promptId));
|
|
48
46
|
}
|
|
49
|
-
else if (event.type === '
|
|
50
|
-
setSteps(shown => { var _a; return ({ ...shown, [event.host]: t(`ta.remote.step.${event.step}`, { host: event.host, detail: (_a = event.detail) !== null && _a !== void 0 ? _a : '' }) }); });
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
setSteps(({ [event.host]: _gone, ...rest }) => rest);
|
|
47
|
+
else if (event.type === 'connection') {
|
|
54
48
|
// Lost, not closed on purpose; a connection that failed is the caller's to tell.
|
|
55
49
|
if (!event.connected && event.error && connected.current.has(event.host)) {
|
|
56
50
|
notices.notify(t('ta.remote.lost', { host: event.host }), { level: 'warning', detail: event.error });
|
|
@@ -63,12 +57,6 @@ export function RemotePrompts() {
|
|
|
63
57
|
setPrompts(shown => shown.slice(1));
|
|
64
58
|
void bench.remote.answer(prompt.promptId, value).catch(() => undefined);
|
|
65
59
|
};
|
|
66
|
-
|
|
67
|
-
return (React.createElement(React.Fragment, null,
|
|
68
|
-
prompt && React.createElement(PromptDialog, { key: prompt.promptId, prompt: prompt, onAnswer: answer }),
|
|
69
|
-
lines.length > 0 &&
|
|
70
|
-
createPortal(React.createElement("div", { className: "ta-remote-status", role: "status" },
|
|
71
|
-
React.createElement("span", { className: "ta-spinner" }),
|
|
72
|
-
lines.join(' · ')), document.body)));
|
|
60
|
+
return prompt ? React.createElement(PromptDialog, { key: prompt.promptId, prompt: prompt, onAnswer: answer }) : null;
|
|
73
61
|
}
|
|
74
62
|
//# sourceMappingURL=remote-prompts.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TaRemoteEvent, TaRemoteStep } from '@celljs/ta-protocol';
|
|
2
|
+
/** What a host is doing that takes a while: a step of connecting, or of making it a cloud workspace. */
|
|
3
|
+
export interface RemoteStepInfo {
|
|
4
|
+
step: TaRemoteStep;
|
|
5
|
+
detail?: string;
|
|
6
|
+
}
|
|
7
|
+
/** What gives the events of TaRemoteServer: the workbench. */
|
|
8
|
+
export interface RemoteEvents {
|
|
9
|
+
onRemoteEvent(listener: (event: TaRemoteEvent) => void): () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace RemoteSteps {
|
|
12
|
+
/** The steps by host after `event`: a step until the host connects, fails or its work ends. */
|
|
13
|
+
function next(steps: Readonly<Record<string, RemoteStepInfo>>, event: TaRemoteEvent): Readonly<Record<string, RemoteStepInfo>>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What the hosts do now, by host, shown where the user looks at them (a row of Remote hosts, the picker of folders),
|
|
17
|
+
* never over the page.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useRemoteSteps(events: RemoteEvents | undefined): Readonly<Record<string, RemoteStepInfo>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export var RemoteSteps;
|
|
3
|
+
(function (RemoteSteps) {
|
|
4
|
+
/** The steps by host after `event`: a step until the host connects, fails or its work ends. */
|
|
5
|
+
function next(steps, event) {
|
|
6
|
+
if (event.type === 'progress') {
|
|
7
|
+
return { ...steps, [event.host]: { step: event.step, ...(event.detail ? { detail: event.detail } : {}) } };
|
|
8
|
+
}
|
|
9
|
+
if ((event.type === 'connection' || event.type === 'progress_end') && event.host in steps) {
|
|
10
|
+
const { [event.host]: _over, ...rest } = steps;
|
|
11
|
+
return rest;
|
|
12
|
+
}
|
|
13
|
+
return steps;
|
|
14
|
+
}
|
|
15
|
+
RemoteSteps.next = next;
|
|
16
|
+
})(RemoteSteps || (RemoteSteps = {}));
|
|
17
|
+
/**
|
|
18
|
+
* What the hosts do now, by host, shown where the user looks at them (a row of Remote hosts, the picker of folders),
|
|
19
|
+
* never over the page.
|
|
20
|
+
*/
|
|
21
|
+
export function useRemoteSteps(events) {
|
|
22
|
+
const [steps, setSteps] = React.useState({});
|
|
23
|
+
React.useEffect(() => events === null || events === void 0 ? void 0 : events.onRemoteEvent(event => setSteps(shown => RemoteSteps.next(shown, event))), [events]);
|
|
24
|
+
return steps;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=remote-steps.js.map
|
|
@@ -38,10 +38,12 @@ export interface RowProps {
|
|
|
38
38
|
stacked?: boolean;
|
|
39
39
|
/** Set in the file shown: a bar on its left, as in an IDE. */
|
|
40
40
|
modified?: boolean;
|
|
41
|
+
/** Belongs to the row above (a setting of a host listed there): it starts under that row's label. */
|
|
42
|
+
inset?: boolean;
|
|
41
43
|
children?: React.ReactNode;
|
|
42
44
|
}
|
|
43
45
|
/** Label and description on the left, the control on the right; stacked when the control is wide. */
|
|
44
|
-
export declare function Row({ label, icon, description, stacked, modified, children }: RowProps): React.JSX.Element;
|
|
46
|
+
export declare function Row({ label, icon, description, stacked, modified, inset, children }: RowProps): React.JSX.Element;
|
|
45
47
|
/** A choice of several as a row of its own, checked on its right: a phone's Segmented when the labels are too many to fit. */
|
|
46
48
|
export declare function ChoiceRow({ label, checked, onPick }: {
|
|
47
49
|
label: string;
|
|
@@ -26,8 +26,8 @@ export function Switch({ checked, onChange, label, disabled }) {
|
|
|
26
26
|
} }));
|
|
27
27
|
}
|
|
28
28
|
/** Label and description on the left, the control on the right; stacked when the control is wide. */
|
|
29
|
-
export function Row({ label, icon, description, stacked, modified, children }) {
|
|
30
|
-
return (React.createElement("div", { className: `ta-setting-row${stacked ? ' ta-stacked' : ''}${modified ? ' ta-modified' : ''}` },
|
|
29
|
+
export function Row({ label, icon, description, stacked, modified, inset, children }) {
|
|
30
|
+
return (React.createElement("div", { className: `ta-setting-row${stacked ? ' ta-stacked' : ''}${modified ? ' ta-modified' : ''}${inset ? ' ta-inset' : ''}` },
|
|
31
31
|
icon && (React.createElement("span", { className: "ta-setting-icon", "aria-hidden": "true" },
|
|
32
32
|
React.createElement(Icon, { icon: icon, size: 16 }))),
|
|
33
33
|
(label || description) && (React.createElement("div", { className: "ta-setting-text" },
|
|
@@ -24,6 +24,14 @@ export interface WebFileRef {
|
|
|
24
24
|
}
|
|
25
25
|
/** The entries an extension adds to the menu of a file or a folder of a list of files (registerFileMenu); none for some. */
|
|
26
26
|
export type WebFileMenu = (file: WebFileRef) => WebMenuItem[];
|
|
27
|
+
/** A block of code as a reply shows it (a fenced block of Markdown, a command a tool ran). */
|
|
28
|
+
export interface WebCodeRef {
|
|
29
|
+
/** As the fence names it, in lower case; empty for none. */
|
|
30
|
+
language: string;
|
|
31
|
+
code: string;
|
|
32
|
+
}
|
|
33
|
+
/** The actions an extension adds to a block of code (registerCodeMenu); none for some. */
|
|
34
|
+
export type WebCodeMenu = (block: WebCodeRef) => WebMenuItem[];
|
|
27
35
|
/** What a web extension adds to the menus of the page (WebExtensionAPI extends it). */
|
|
28
36
|
export interface WebMenus {
|
|
29
37
|
/**
|
|
@@ -37,4 +45,10 @@ export interface WebMenus {
|
|
|
37
45
|
* `pi.registerFileMenu?.(…)`.
|
|
38
46
|
*/
|
|
39
47
|
registerFileMenu(menu: WebFileMenu): void;
|
|
48
|
+
/**
|
|
49
|
+
* Actions of a block of code (a fenced block of a reply, a command a tool ran) that has no renderer of its own,
|
|
50
|
+
* each a button by its icon beside Copy (one without an icon is not drawn): read each time the block is drawn.
|
|
51
|
+
* Newer than some Ta apps: `pi.registerCodeMenu?.(…)`.
|
|
52
|
+
*/
|
|
53
|
+
registerCodeMenu(menu: WebCodeMenu): void;
|
|
40
54
|
}
|
|
@@ -13,6 +13,12 @@ export interface WebServices {
|
|
|
13
13
|
readonly workspace: TaWorkspaceServer;
|
|
14
14
|
/** Shells; their output comes by {@link onTerminalData}. */
|
|
15
15
|
readonly terminals: TaTerminalServer;
|
|
16
|
+
/**
|
|
17
|
+
* The page connected to Ta again after it was not (the network dropped, Ta restarted or updated): what it held on the
|
|
18
|
+
* server (terminals, subscriptions) may be gone, read it again. Stops when the extension unloads. Newer than some Ta
|
|
19
|
+
* apps: `pi.onReconnect?.(…)`.
|
|
20
|
+
*/
|
|
21
|
+
onReconnect(listener: () => void): () => void;
|
|
16
22
|
/** The packages pi loads; for the data of the extension's own package, {@link storage}. */
|
|
17
23
|
readonly packages: TaPackageServer;
|
|
18
24
|
/**
|
|
@@ -176,6 +176,7 @@ export const WEB_API_SPEC = {
|
|
|
176
176
|
registerPartners: page,
|
|
177
177
|
registerSessionMenu: page,
|
|
178
178
|
registerFileMenu: page,
|
|
179
|
+
registerCodeMenu: page,
|
|
179
180
|
on: page,
|
|
180
181
|
sendUserMessage: page,
|
|
181
182
|
switchSession: page,
|
|
@@ -184,6 +185,7 @@ export const WEB_API_SPEC = {
|
|
|
184
185
|
openTemporary: page,
|
|
185
186
|
onRoomEvent: page,
|
|
186
187
|
onTerminalData: page,
|
|
188
|
+
onReconnect: page,
|
|
187
189
|
server: page,
|
|
188
190
|
workspace: page,
|
|
189
191
|
terminals: page,
|
|
@@ -187,6 +187,7 @@ export class WebExtensionContext {
|
|
|
187
187
|
onRoomEvent: (listener, options) => hear(next => workbench.onRoomEvent(next, options), listener),
|
|
188
188
|
ui: this.ui(run, register),
|
|
189
189
|
onTerminalData: listener => hear(workbench.onTerminalData.bind(workbench), listener),
|
|
190
|
+
onReconnect: listener => hear(workbench.onReconnect.bind(workbench), listener),
|
|
190
191
|
storage: { ...this.storage(run), directory: cwd => this.storage(run, cwd) },
|
|
191
192
|
registerView: (name, view) => register(() => run.views.set(name, view)),
|
|
192
193
|
registerMessageRenderer: (customType, renderer) => register(() => run.renderers.set(customType, renderer)),
|
|
@@ -217,6 +218,7 @@ export class WebExtensionContext {
|
|
|
217
218
|
registerSettings: section => register(() => run.settingsSections.push(section)),
|
|
218
219
|
registerSessionMenu: menu => register(() => run.sessionMenus.push(WebExtensionRunUtil.menu(run, menu))),
|
|
219
220
|
registerFileMenu: menu => register(() => run.fileMenus.push(WebExtensionRunUtil.menu(run, menu))),
|
|
221
|
+
registerCodeMenu: menu => register(() => run.codeMenus.push(WebExtensionRunUtil.menu(run, menu))),
|
|
220
222
|
registerOpener: (opener, options) => register(() => ((options === null || options === void 0 ? void 0 : options.specific) ? run.specificOpeners : run.openers).push(async (link) => {
|
|
221
223
|
// An opener that fails, or of an extension that stopped, leaves the link to the next one.
|
|
222
224
|
try {
|
|
@@ -2,7 +2,7 @@ import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-pr
|
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { MessageId } from '../i18n/messages.js';
|
|
4
4
|
import type { BlockSpeech } from '../util/spoken.js';
|
|
5
|
-
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api.js';
|
|
5
|
+
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api.js';
|
|
6
6
|
import type { WebHomeBoard } from './web-home.js';
|
|
7
7
|
import type { PageUsage, WebPageInfo } from './web-pages.js';
|
|
8
8
|
import type { WebPartnerBoard } from './web-partners.js';
|
|
@@ -157,6 +157,8 @@ export interface WebExtensionsState {
|
|
|
157
157
|
sessionMenus: WebSessionMenu[];
|
|
158
158
|
/** Entries of the menu of a file or a folder of a list of files (WebExtensionAPI.registerFileMenu). */
|
|
159
159
|
fileMenus: WebFileMenu[];
|
|
160
|
+
/** Actions of a block of code (WebExtensionAPI.registerCodeMenu). */
|
|
161
|
+
codeMenus: WebCodeMenu[];
|
|
160
162
|
/** The tabs of the editor area (the workbench), in the order they opened. */
|
|
161
163
|
editors: WebEditorEntry[];
|
|
162
164
|
activeEditor?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api.js';
|
|
3
|
+
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebCodeMenu, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebVoice, WidgetOptions } from './web-extension-api.js';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol.js';
|
|
5
5
|
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
6
|
export interface WebRegistrations {
|
|
@@ -28,6 +28,7 @@ export interface WebRegistrations {
|
|
|
28
28
|
specificOpeners: WebOpener[];
|
|
29
29
|
sessionMenus: WebSessionMenu[];
|
|
30
30
|
fileMenus: WebFileMenu[];
|
|
31
|
+
codeMenus: WebCodeMenu[];
|
|
31
32
|
taskSources: WebTaskSource[];
|
|
32
33
|
searches: WebSearchSource[];
|
|
33
34
|
composerAddons: WebComposerAddon[];
|
|
@@ -51,7 +52,7 @@ export interface WebExtensionRun extends WebRegistrations {
|
|
|
51
52
|
dispose?: () => void;
|
|
52
53
|
}
|
|
53
54
|
export declare namespace WebExtensionRunUtil {
|
|
54
|
-
/** A menu of the extension (registerSessionMenu, registerFileMenu): none once it stopped, nor when it throws. */
|
|
55
|
+
/** A menu of the extension (registerSessionMenu, registerFileMenu, registerCodeMenu): none once it stopped, nor when it throws. */
|
|
55
56
|
function menu<T>(run: WebExtensionRun, menu: (target: T) => WebMenuItem[]): (target: T) => WebMenuItem[];
|
|
56
57
|
/** Nothing registered: the one list of what a run holds, so that a stop clears every kind of it. */
|
|
57
58
|
function registrations(): WebRegistrations;
|
|
@@ -68,5 +69,5 @@ export declare namespace WebExtensionRunUtil {
|
|
|
68
69
|
*/
|
|
69
70
|
function voice(run: WebExtensionRun, voice: WebVoice): WebVoice;
|
|
70
71
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
71
|
-
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
72
|
+
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'codeMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
72
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const DEFAULT_ORDER = 100;
|
|
2
2
|
export var WebExtensionRunUtil;
|
|
3
3
|
(function (WebExtensionRunUtil) {
|
|
4
|
-
/** A menu of the extension (registerSessionMenu, registerFileMenu): none once it stopped, nor when it throws. */
|
|
4
|
+
/** A menu of the extension (registerSessionMenu, registerFileMenu, registerCodeMenu): none once it stopped, nor when it throws. */
|
|
5
5
|
function menu(run, menu) {
|
|
6
6
|
return target => {
|
|
7
7
|
try {
|
|
@@ -37,6 +37,7 @@ export var WebExtensionRunUtil;
|
|
|
37
37
|
specificOpeners: [],
|
|
38
38
|
sessionMenus: [],
|
|
39
39
|
fileMenus: [],
|
|
40
|
+
codeMenus: [],
|
|
40
41
|
taskSources: [],
|
|
41
42
|
searches: [],
|
|
42
43
|
composerAddons: [],
|
|
@@ -162,6 +163,7 @@ export var WebExtensionRunUtil;
|
|
|
162
163
|
specificOpeners: runs.flatMap(run => run.specificOpeners),
|
|
163
164
|
sessionMenus: runs.flatMap(run => run.sessionMenus),
|
|
164
165
|
fileMenus: runs.flatMap(run => run.fileMenus),
|
|
166
|
+
codeMenus: runs.flatMap(run => run.codeMenus),
|
|
165
167
|
extensions: runs.map(run => run.loaded),
|
|
166
168
|
views,
|
|
167
169
|
widgets: runs.flatMap(run => [...run.widgets].map(([key, { component, options }]) => { var _a; return ({
|
|
@@ -68,12 +68,35 @@ export declare const SERVICE_EN: {
|
|
|
68
68
|
'ta.remote.cloudDescription': string;
|
|
69
69
|
'ta.remote.cloudUrl': string;
|
|
70
70
|
'ta.remote.cloudToken': string;
|
|
71
|
-
'ta.remote.cloudName': string;
|
|
72
71
|
'ta.remote.cloudHint': string;
|
|
73
72
|
'ta.remote.cloudConnect': string;
|
|
74
73
|
'ta.remote.cloudAdded': string;
|
|
75
74
|
'ta.remote.openCloud': string;
|
|
76
75
|
'ta.remote.openCloudHint': string;
|
|
76
|
+
'ta.remote.madeCloud': string;
|
|
77
|
+
'ta.remote.network': string;
|
|
78
|
+
'ta.remote.portLocal': string;
|
|
79
|
+
'ta.remote.relay': string;
|
|
80
|
+
'ta.remote.relay.off': string;
|
|
81
|
+
'ta.remote.relay.on': string;
|
|
82
|
+
'ta.remote.relay.stopTitle': string;
|
|
83
|
+
'ta.remote.relay.stopHint': string;
|
|
84
|
+
'ta.remote.relay.stop': string;
|
|
85
|
+
'ta.remote.network.off': string;
|
|
86
|
+
'ta.remote.network.common': string;
|
|
87
|
+
'ta.remote.network.open': string;
|
|
88
|
+
'ta.remote.network.custom': string;
|
|
89
|
+
'ta.remote.network.off.hint': string;
|
|
90
|
+
'ta.remote.network.common.hint': string;
|
|
91
|
+
'ta.remote.network.open.hint': string;
|
|
92
|
+
'ta.remote.network.custom.hint': string;
|
|
93
|
+
'ta.remote.network.soft': string;
|
|
94
|
+
'ta.remote.network.isolate': string;
|
|
95
|
+
'ta.remote.network.isolateHint': string;
|
|
96
|
+
'ta.remote.network.isolated': string;
|
|
97
|
+
'ta.remote.network.placeholder': string;
|
|
98
|
+
'ta.remote.network.save': string;
|
|
99
|
+
'ta.remote.network.saved': string;
|
|
77
100
|
'ta.environment.elsewhere': string;
|
|
78
101
|
'ta.environment.elsewhereHint': string;
|
|
79
102
|
'ta.environment.makeToken': string;
|
|
@@ -190,7 +213,6 @@ export declare const SERVICE_EN: {
|
|
|
190
213
|
'ta.remote.options': string;
|
|
191
214
|
'ta.remote.disconnected': string;
|
|
192
215
|
'ta.remote.fromConfig': string;
|
|
193
|
-
'ta.remote.added': string;
|
|
194
216
|
'ta.remote.connect': string;
|
|
195
217
|
'ta.remote.disconnect': string;
|
|
196
218
|
'ta.remote.connectedTo': string;
|
|
@@ -203,6 +225,8 @@ export declare const SERVICE_EN: {
|
|
|
203
225
|
'ta.remote.step.installing-node': string;
|
|
204
226
|
'ta.remote.step.copying-server': string;
|
|
205
227
|
'ta.remote.step.starting': string;
|
|
228
|
+
'ta.remote.step.installing-ta': string;
|
|
229
|
+
'ta.remote.step.starting-ta': string;
|
|
206
230
|
'ta.remote.lost': string;
|
|
207
231
|
'ta.remote.prompt.title': string;
|
|
208
232
|
'ta.remote.prompt.trust': string;
|
|
@@ -65,22 +65,45 @@ export const SERVICE_EN = {
|
|
|
65
65
|
'ta.environment.stop': 'Stop',
|
|
66
66
|
'ta.environment.stopConfirm': 'Stop the environment of {account}?',
|
|
67
67
|
'ta.environment.stopDetail': 'It starts again when they connect; what runs in it stops now.',
|
|
68
|
-
'ta.remote.addCloud': '
|
|
69
|
-
'ta.remote.cloudTitle': '
|
|
70
|
-
'ta.remote.cloudDescription': '
|
|
68
|
+
'ta.remote.addCloud': 'Enter the gateway',
|
|
69
|
+
'ta.remote.cloudTitle': "Your company's Ta gateway",
|
|
70
|
+
'ta.remote.cloudDescription': 'Only when your company runs a Ta gateway. Without one, add a machine you reach by ssh above and turn on handover.',
|
|
71
71
|
'ta.remote.cloudUrl': 'Gateway address',
|
|
72
72
|
'ta.remote.cloudToken': 'Access token',
|
|
73
|
-
'ta.remote.
|
|
74
|
-
'ta.remote.cloudHint': 'Make the token on the gateway: Settings, Environment, Use it from another Ta.',
|
|
73
|
+
'ta.remote.cloudHint': 'The address is that of the web page of the gateway; make the token there in Settings, Environment, Use it from another Ta.',
|
|
75
74
|
'ta.remote.cloudConnect': 'Connect and add',
|
|
76
75
|
'ta.remote.cloudAdded': '{name} added: pick it in the folder picker',
|
|
77
76
|
'ta.remote.openCloud': 'Open its Ta',
|
|
78
77
|
'ta.remote.openCloudHint': 'The whole Ta there, its agent in the cloud too',
|
|
78
|
+
'ta.remote.madeCloud': 'Handover is on: while this computer is away, conversations go on on {host}',
|
|
79
|
+
'ta.remote.network': 'Network',
|
|
80
|
+
'ta.remote.portLocal': 'Forwarded to localhost:{port} here',
|
|
81
|
+
'ta.remote.relay': 'Go on here while this computer is away',
|
|
82
|
+
'ta.remote.relay.off': 'Keeps Ta running here: when this computer closes its lid or runs low, conversations go on here.',
|
|
83
|
+
'ta.remote.relay.on': 'When the lid closes, the computer sleeps or its battery runs low, running conversations go on here, and come back when it returns.',
|
|
84
|
+
'ta.remote.relay.stopTitle': 'Stop handing over to {host}?',
|
|
85
|
+
'ta.remote.relay.stopHint': 'Ta stays installed there. Take back the conversations that went there first.',
|
|
86
|
+
'ta.remote.relay.stop': 'Turn off handover',
|
|
87
|
+
'ta.remote.network.off': 'Off (recommended)',
|
|
88
|
+
'ta.remote.network.common': 'Package sources only',
|
|
89
|
+
'ta.remote.network.open': 'Anywhere',
|
|
90
|
+
'ta.remote.network.custom': 'Custom…',
|
|
91
|
+
'ta.remote.network.off.hint': "Commands the agent runs there can't reach the internet. Dependencies are installed before it starts.",
|
|
92
|
+
'ta.remote.network.common.hint': 'Commands can reach npm, PyPI, GitHub and other common package sources only.',
|
|
93
|
+
'ta.remote.network.open.hint': 'Commands can reach any address.',
|
|
94
|
+
'ta.remote.network.custom.hint': 'Commands can reach only these hosts.',
|
|
95
|
+
'ta.remote.network.soft': 'This machine can only hold them back through proxy settings.',
|
|
96
|
+
'ta.remote.network.isolate': 'Isolate fully',
|
|
97
|
+
'ta.remote.network.isolateHint': 'Installs bubblewrap there (and its AppArmor profile on Ubuntu) with sudo',
|
|
98
|
+
'ta.remote.network.isolated': 'The agent there now has a network of its own',
|
|
99
|
+
'ta.remote.network.placeholder': 'One per line: registry.npmjs.org, *.example.com, example.com:8443',
|
|
100
|
+
'ta.remote.network.save': 'Save',
|
|
101
|
+
'ta.remote.network.saved': 'Network of {name} updated',
|
|
79
102
|
'ta.environment.elsewhere': 'Use it from another Ta',
|
|
80
103
|
'ta.environment.elsewhereHint': 'Ta on your computer works in this sandbox as a cloud workspace, its agent on your computer.',
|
|
81
104
|
'ta.environment.makeToken': 'Make a token',
|
|
82
105
|
'ta.environment.tokenLabel': 'Another Ta',
|
|
83
|
-
'ta.environment.tokenHint':
|
|
106
|
+
'ta.environment.tokenHint': "Shown once. In Ta on your computer: Settings, Remote hosts, Your company's Ta gateway, Enter the gateway. Sign it out in Access when no longer used.",
|
|
84
107
|
'ta.environment.quotaHint': 'What you used of your free minutes this month',
|
|
85
108
|
'ta.environment.blockedTitle': 'Your Ta is paused',
|
|
86
109
|
'ta.environment.blockedSuspended': 'An administrator of the gateway suspended your account. Ask them to resume it.',
|
|
@@ -185,19 +208,18 @@ export const SERVICE_EN = {
|
|
|
185
208
|
'ta.relays.storeNote': 'Ta tries it first, writing and removing a small file. What sync puts there is sealed on this computer; the password stays in relays.json here.',
|
|
186
209
|
'ta.relays.storeAdd': 'Add and sync there',
|
|
187
210
|
'ta.remote.title': 'Remote hosts',
|
|
188
|
-
'ta.remote.description': 'Conversations can work in directories of these machines.
|
|
211
|
+
'ta.remote.description': 'Conversations can work in directories of these machines. On one with handover on, they go on there while this computer is away.',
|
|
189
212
|
'ta.remote.none': 'No hosts yet',
|
|
190
213
|
'ta.remote.noneHint': 'Add one above: conversations then work in its directories over ssh',
|
|
191
214
|
'ta.remote.invalid': '{host} names no host: write a Host of ~/.ssh/config, user@host:port, or ssh user@host -p port.',
|
|
192
215
|
'ta.remote.options': 'Ta takes no {options} here: put it in a Host of ~/.ssh/config, and add that Host.',
|
|
193
216
|
'ta.remote.disconnected': 'Not connected',
|
|
194
217
|
'ta.remote.fromConfig': 'From ~/.ssh/config',
|
|
195
|
-
'ta.remote.added': 'Added',
|
|
196
218
|
'ta.remote.connect': 'Connect',
|
|
197
219
|
'ta.remote.disconnect': 'Disconnect',
|
|
198
220
|
'ta.remote.connectedTo': 'Connected to {host}',
|
|
199
221
|
'ta.remote.remove': 'Remove {host}',
|
|
200
|
-
'ta.remote.port': 'Port {port}
|
|
222
|
+
'ta.remote.port': 'Port {port}',
|
|
201
223
|
'ta.remote.closePort': 'Stop forwarding',
|
|
202
224
|
'ta.remote.connecting': 'Connecting to {host}…',
|
|
203
225
|
'ta.remote.step.connecting': 'Connecting to {host}…',
|
|
@@ -205,6 +227,8 @@ export const SERVICE_EN = {
|
|
|
205
227
|
'ta.remote.step.installing-node': 'Installing Node.js {detail} on {host}…',
|
|
206
228
|
'ta.remote.step.copying-server': 'Copying Ta to {host}…',
|
|
207
229
|
'ta.remote.step.starting': 'Starting on {host}…',
|
|
230
|
+
'ta.remote.step.installing-ta': 'Installing Ta {detail} on {host}…',
|
|
231
|
+
'ta.remote.step.starting-ta': 'Starting Ta on {host}…',
|
|
208
232
|
'ta.remote.lost': 'Lost the connection to {host}; it comes back with the next step.',
|
|
209
233
|
'ta.remote.prompt.title': 'Connect to {host}',
|
|
210
234
|
'ta.remote.prompt.trust': 'Trust and connect',
|
|
@@ -62,22 +62,45 @@ export const SERVICE_JA = {
|
|
|
62
62
|
'ta.environment.stop': '停止',
|
|
63
63
|
'ta.environment.stopConfirm': '{account} の実行環境を停止しますか?',
|
|
64
64
|
'ta.environment.stopDetail': '再び接続すると再び起動します。実行中のものはすぐに停止します。',
|
|
65
|
-
'ta.remote.addCloud': '
|
|
66
|
-
'ta.remote.cloudTitle': '
|
|
67
|
-
'ta.remote.cloudDescription': 'Ta
|
|
65
|
+
'ta.remote.addCloud': 'ゲートウェイを入力',
|
|
66
|
+
'ta.remote.cloudTitle': '会社の Ta ゲートウェイ',
|
|
67
|
+
'ta.remote.cloudDescription': '会社が Ta ゲートウェイを運用している場合だけ必要です。ない場合は、上で ssh できるマシンを追加して引き継ぎをオンにします。',
|
|
68
68
|
'ta.remote.cloudUrl': 'ゲートウェイのアドレス',
|
|
69
69
|
'ta.remote.cloudToken': 'アクセストークン',
|
|
70
|
-
'ta.remote.
|
|
71
|
-
'ta.remote.cloudHint': 'トークンはゲートウェイの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
70
|
+
'ta.remote.cloudHint': 'アドレスはゲートウェイの Web ページのアドレスです。トークンはそのページの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
72
71
|
'ta.remote.cloudConnect': '接続して追加',
|
|
73
72
|
'ta.remote.cloudAdded': '{name} を追加しました。フォルダ選択で選べます',
|
|
74
73
|
'ta.remote.openCloud': 'クラウドの Ta を開く',
|
|
75
74
|
'ta.remote.openCloudHint': 'エージェントも含めて Ta 全体がクラウドで動きます',
|
|
75
|
+
'ta.remote.madeCloud': '引き継ぎをオンにしました:パソコンを離れている間、会話は {host} で続きます',
|
|
76
|
+
'ta.remote.network': 'ネットワーク',
|
|
77
|
+
'ta.remote.portLocal': 'このパソコンの localhost:{port} に転送済み',
|
|
78
|
+
'ta.remote.relay': 'パソコンを離れている間ここで続ける',
|
|
79
|
+
'ta.remote.relay.off': 'ここに Ta を常駐させます。パソコンを閉じたり電池が少なくなったりすると、会話はここで続きます。',
|
|
80
|
+
'ta.remote.relay.on': 'ふたを閉じた、スリープした、電池が少ないときに、実行中の会話はここで続き、戻ると自動で引き戻します。',
|
|
81
|
+
'ta.remote.relay.stopTitle': '{host} への引き継ぎをやめますか?',
|
|
82
|
+
'ta.remote.relay.stopHint': 'そのマシンの Ta はそのまま残ります。そちらに移った会話は、先にこのパソコンへ引き戻してください。',
|
|
83
|
+
'ta.remote.relay.stop': '引き継ぎをオフ',
|
|
84
|
+
'ta.remote.network.off': 'オフ(おすすめ)',
|
|
85
|
+
'ta.remote.network.common': 'パッケージ配布元のみ',
|
|
86
|
+
'ta.remote.network.open': '制限なし',
|
|
87
|
+
'ta.remote.network.custom': 'カスタム…',
|
|
88
|
+
'ta.remote.network.off.hint': 'エージェントがそこで実行するコマンドはネットに出られません。依存関係は開始前に自動で入ります。',
|
|
89
|
+
'ta.remote.network.common.hint': 'npm、PyPI、GitHub などよく使う配布元にだけつながります。',
|
|
90
|
+
'ta.remote.network.open.hint': 'どのアドレスにもつながります。',
|
|
91
|
+
'ta.remote.network.custom.hint': '下のホストにだけつながります。',
|
|
92
|
+
'ta.remote.network.soft': 'このマシンではプロキシ設定でしか止められません。',
|
|
93
|
+
'ta.remote.network.isolate': '完全に隔離',
|
|
94
|
+
'ta.remote.network.isolateHint': 'sudo で bubblewrap を入れます(Ubuntu では付属の AppArmor プロファイルも有効にします)',
|
|
95
|
+
'ta.remote.network.isolated': 'そこのエージェントを完全に隔離しました',
|
|
96
|
+
'ta.remote.network.placeholder': '1 行に 1 つ:registry.npmjs.org、*.example.com、example.com:8443',
|
|
97
|
+
'ta.remote.network.save': '保存',
|
|
98
|
+
'ta.remote.network.saved': '{name} のネットワーク設定を更新しました',
|
|
76
99
|
'ta.environment.elsewhere': '他の Ta から使う',
|
|
77
100
|
'ta.environment.elsewhereHint': 'お使いのコンピュータの Ta がこのサンドボックスをクラウドワークスペースとして使います。エージェントはコンピュータ側です。',
|
|
78
101
|
'ta.environment.makeToken': 'トークンを作成',
|
|
79
102
|
'ta.environment.tokenLabel': '他の Ta',
|
|
80
|
-
'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト →
|
|
103
|
+
'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト → 会社の Ta ゲートウェイ → ゲートウェイを入力。使わなくなったら「アクセス」でサインアウトしてください。',
|
|
81
104
|
'ta.environment.quotaHint': '今月の無料時間の使用状況',
|
|
82
105
|
'ta.environment.blockedTitle': 'Ta は一時停止中です',
|
|
83
106
|
'ta.environment.blockedSuspended': 'ゲートウェイの管理者がアカウントを停止しました。再開を依頼してください。',
|
|
@@ -182,19 +205,18 @@ export const SERVICE_JA = {
|
|
|
182
205
|
'ta.relays.storeNote': 'Ta が先に試します:小さいファイルを書き込んで削除します。同期が保存する内容はこのパソコンで既に暗号化されています。パスワードはこのパソコンの relays.json にのみ保存されます。',
|
|
183
206
|
'ta.relays.storeAdd': '追加して同期に使用',
|
|
184
207
|
'ta.remote.title': 'リモートホスト',
|
|
185
|
-
'ta.remote.description': '
|
|
208
|
+
'ta.remote.description': '会話はこれらのマシンのディレクトリで動作できます。引き継ぎをオンにしたマシンでは、パソコンを離れている間も会話が続きます。',
|
|
186
209
|
'ta.remote.none': 'ホストはまだありません',
|
|
187
210
|
'ta.remote.noneHint': '上で追加するとホストのディレクトリで ssh 経由で会話が動作します',
|
|
188
211
|
'ta.remote.invalid': '{host} はホストではありません:~/.ssh/config の Host、user@host:port、または ssh user@host -p ポート を入力してください。',
|
|
189
212
|
'ta.remote.options': 'Ta はここで {options} をサポートしていません:~/.ssh/config の Host に追加して、そのホストを追加してください。',
|
|
190
213
|
'ta.remote.disconnected': '未接続',
|
|
191
214
|
'ta.remote.fromConfig': '~/.ssh/config から',
|
|
192
|
-
'ta.remote.added': '手動で追加',
|
|
193
215
|
'ta.remote.connect': '接続',
|
|
194
216
|
'ta.remote.disconnect': '切断',
|
|
195
217
|
'ta.remote.connectedTo': '{host} に接続済み',
|
|
196
218
|
'ta.remote.remove': '{host} を削除',
|
|
197
|
-
'ta.remote.port': '
|
|
219
|
+
'ta.remote.port': 'ポート {port}',
|
|
198
220
|
'ta.remote.closePort': '転送を停止',
|
|
199
221
|
'ta.remote.connecting': '{host} に接続中…',
|
|
200
222
|
'ta.remote.step.connecting': '{host} に接続中…',
|
|
@@ -202,6 +224,8 @@ export const SERVICE_JA = {
|
|
|
202
224
|
'ta.remote.step.installing-node': '{host} に Node.js {detail} をインストール中…',
|
|
203
225
|
'ta.remote.step.copying-server': 'Ta を {host} にコピー中…',
|
|
204
226
|
'ta.remote.step.starting': '{host} で起動中…',
|
|
227
|
+
'ta.remote.step.installing-ta': '{host} に Ta {detail} をインストール中…',
|
|
228
|
+
'ta.remote.step.starting-ta': '{host} で Ta を起動中…',
|
|
205
229
|
'ta.remote.lost': '{host} への接続が失われました。次のステップで自動的に再接続します。',
|
|
206
230
|
'ta.remote.prompt.title': '{host} に接続',
|
|
207
231
|
'ta.remote.prompt.trust': '信頼して接続',
|