@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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoteMachinesUtil = void 0;
|
|
4
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
var RemoteMachinesUtil;
|
|
6
|
+
(function (RemoteMachinesUtil) {
|
|
7
|
+
/**
|
|
8
|
+
* The machines of the list, each once: a cloud workspace on a host of ssh is that host's `relay` (the host made
|
|
9
|
+
* up, not connected, when it is no longer listed); those of gateways after the hosts.
|
|
10
|
+
*/
|
|
11
|
+
function machines(hosts) {
|
|
12
|
+
const relays = new Map(hosts.filter(host => host.source === 'cloud' && host.via).map(host => [host.via, host]));
|
|
13
|
+
const ssh = hosts.filter(host => host.source !== 'cloud');
|
|
14
|
+
const missing = [...relays.keys()].filter(via => !ssh.some(host => host.host === via));
|
|
15
|
+
return [
|
|
16
|
+
...ssh.map(host => ({ host, relay: relays.get(host.host) })),
|
|
17
|
+
...missing.map(via => ({ host: { host: via, source: 'recent', connected: false }, relay: relays.get(via) })),
|
|
18
|
+
...hosts.filter(host => host.source === 'cloud' && !host.via).map(host => ({ host })),
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
RemoteMachinesUtil.machines = machines;
|
|
22
|
+
/** The name of the cloud workspace of a gateway, from its address: its first label, free among `taken`. */
|
|
23
|
+
function cloudName(gateway, taken = []) {
|
|
24
|
+
var _a;
|
|
25
|
+
let host = gateway.trim();
|
|
26
|
+
try {
|
|
27
|
+
host = new URL(/^[a-z]+:\/\//i.test(host) ? host : `https://${host}`).hostname;
|
|
28
|
+
}
|
|
29
|
+
catch (_b) {
|
|
30
|
+
// What the user is typing: its first word is enough.
|
|
31
|
+
}
|
|
32
|
+
const first = ((_a = host.split(/[.:/]/)[0]) !== null && _a !== void 0 ? _a : '')
|
|
33
|
+
.toLowerCase()
|
|
34
|
+
.replace(/[^a-z0-9-]+/g, '-')
|
|
35
|
+
.replace(/^-+|-+$/g, '')
|
|
36
|
+
.slice(0, 36);
|
|
37
|
+
const base = /^[a-z0-9]/.test(first) ? first : 'cloud';
|
|
38
|
+
let name = base;
|
|
39
|
+
for (let n = 2; taken.includes(name); n++) {
|
|
40
|
+
name = `${base}-${n}`;
|
|
41
|
+
}
|
|
42
|
+
return name;
|
|
43
|
+
}
|
|
44
|
+
RemoteMachinesUtil.cloudName = cloudName;
|
|
45
|
+
/** 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. */
|
|
46
|
+
function relayStep(step) {
|
|
47
|
+
return (step === null || step === void 0 ? void 0 : step.step) === 'installing-ta' || (step === null || step === void 0 ? void 0 : step.step) === 'starting-ta';
|
|
48
|
+
}
|
|
49
|
+
RemoteMachinesUtil.relayStep = relayStep;
|
|
50
|
+
/** What a host does now, in words: the step it is at, connected or not. */
|
|
51
|
+
function state(host, step, t) {
|
|
52
|
+
var _a;
|
|
53
|
+
return step
|
|
54
|
+
? t(`ta.remote.step.${step.step}`, { host: ta_protocol_1.TaLocation.hostLabel(host.host), detail: (_a = step.detail) !== null && _a !== void 0 ? _a : '' })
|
|
55
|
+
: t(host.connected ? 'ta.remote.connected' : 'ta.remote.disconnected');
|
|
56
|
+
}
|
|
57
|
+
RemoteMachinesUtil.state = state;
|
|
58
|
+
})(RemoteMachinesUtil || (exports.RemoteMachinesUtil = RemoteMachinesUtil = {}));
|
|
59
|
+
//# sourceMappingURL=remote-machines.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
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;
|
|
8
7
|
//# sourceMappingURL=remote-prompts.d.ts.map
|
|
@@ -65,15 +65,13 @@ function PromptDialog({ prompt, onAnswer }) {
|
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* What ssh asks while ta serve connects to a host, one question at a time, in every page that is open (the
|
|
68
|
-
* first answer counts);
|
|
69
|
-
* time (it installs Node.js there); and a notice when a connection is lost.
|
|
68
|
+
* first answer counts); and a notice when a connection is lost.
|
|
70
69
|
*/
|
|
71
70
|
function RemotePrompts() {
|
|
72
71
|
const t = (0, use_t_1.useT)();
|
|
73
72
|
const [, bench] = (0, hooks_1.useWorkbench)();
|
|
74
73
|
const [, notices] = (0, hooks_1.useNotices)();
|
|
75
74
|
const [prompts, setPrompts] = React.useState([]);
|
|
76
|
-
const [steps, setSteps] = React.useState({});
|
|
77
75
|
const connected = React.useRef(new Set());
|
|
78
76
|
React.useEffect(() => bench.onRemoteEvent((event) => {
|
|
79
77
|
if (event.type === 'prompt') {
|
|
@@ -82,11 +80,7 @@ function RemotePrompts() {
|
|
|
82
80
|
else if (event.type === 'prompt_closed') {
|
|
83
81
|
setPrompts(shown => shown.filter(prompt => prompt.promptId !== event.promptId));
|
|
84
82
|
}
|
|
85
|
-
else if (event.type === '
|
|
86
|
-
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 : '' }) }); });
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
setSteps(({ [event.host]: _gone, ...rest }) => rest);
|
|
83
|
+
else if (event.type === 'connection') {
|
|
90
84
|
// Lost, not closed on purpose; a connection that failed is the caller's to tell.
|
|
91
85
|
if (!event.connected && event.error && connected.current.has(event.host)) {
|
|
92
86
|
notices.notify(t('ta.remote.lost', { host: event.host }), { level: 'warning', detail: event.error });
|
|
@@ -99,12 +93,6 @@ function RemotePrompts() {
|
|
|
99
93
|
setPrompts(shown => shown.slice(1));
|
|
100
94
|
void bench.remote.answer(prompt.promptId, value).catch(() => undefined);
|
|
101
95
|
};
|
|
102
|
-
|
|
103
|
-
return (React.createElement(React.Fragment, null,
|
|
104
|
-
prompt && React.createElement(PromptDialog, { key: prompt.promptId, prompt: prompt, onAnswer: answer }),
|
|
105
|
-
lines.length > 0 &&
|
|
106
|
-
(0, react_dom_1.createPortal)(React.createElement("div", { className: "ta-remote-status", role: "status" },
|
|
107
|
-
React.createElement("span", { className: "ta-spinner" }),
|
|
108
|
-
lines.join(' · ')), document.body)));
|
|
96
|
+
return prompt ? React.createElement(PromptDialog, { key: prompt.promptId, prompt: prompt, onAnswer: answer }) : null;
|
|
109
97
|
}
|
|
110
98
|
//# sourceMappingURL=remote-prompts.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
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>>;
|
|
20
|
+
//# sourceMappingURL=remote-steps.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.RemoteSteps = void 0;
|
|
37
|
+
exports.useRemoteSteps = useRemoteSteps;
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
var RemoteSteps;
|
|
40
|
+
(function (RemoteSteps) {
|
|
41
|
+
/** The steps by host after `event`: a step until the host connects, fails or its work ends. */
|
|
42
|
+
function next(steps, event) {
|
|
43
|
+
if (event.type === 'progress') {
|
|
44
|
+
return { ...steps, [event.host]: { step: event.step, ...(event.detail ? { detail: event.detail } : {}) } };
|
|
45
|
+
}
|
|
46
|
+
if ((event.type === 'connection' || event.type === 'progress_end') && event.host in steps) {
|
|
47
|
+
const { [event.host]: _over, ...rest } = steps;
|
|
48
|
+
return rest;
|
|
49
|
+
}
|
|
50
|
+
return steps;
|
|
51
|
+
}
|
|
52
|
+
RemoteSteps.next = next;
|
|
53
|
+
})(RemoteSteps || (exports.RemoteSteps = RemoteSteps = {}));
|
|
54
|
+
/**
|
|
55
|
+
* What the hosts do now, by host, shown where the user looks at them (a row of Remote hosts, the picker of folders),
|
|
56
|
+
* never over the page.
|
|
57
|
+
*/
|
|
58
|
+
function useRemoteSteps(events) {
|
|
59
|
+
const [steps, setSteps] = React.useState({});
|
|
60
|
+
React.useEffect(() => events === null || events === void 0 ? void 0 : events.onRemoteEvent(event => setSteps(shown => RemoteSteps.next(shown, event))), [events]);
|
|
61
|
+
return steps;
|
|
62
|
+
}
|
|
63
|
+
//# 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;
|
|
@@ -69,8 +69,8 @@ function Switch({ checked, onChange, label, disabled }) {
|
|
|
69
69
|
} }));
|
|
70
70
|
}
|
|
71
71
|
/** Label and description on the left, the control on the right; stacked when the control is wide. */
|
|
72
|
-
function Row({ label, icon, description, stacked, modified, children }) {
|
|
73
|
-
return (React.createElement("div", { className: `ta-setting-row${stacked ? ' ta-stacked' : ''}${modified ? ' ta-modified' : ''}` },
|
|
72
|
+
function Row({ label, icon, description, stacked, modified, inset, children }) {
|
|
73
|
+
return (React.createElement("div", { className: `ta-setting-row${stacked ? ' ta-stacked' : ''}${modified ? ' ta-modified' : ''}${inset ? ' ta-inset' : ''}` },
|
|
74
74
|
icon && (React.createElement("span", { className: "ta-setting-icon", "aria-hidden": "true" },
|
|
75
75
|
React.createElement(icon_1.Icon, { icon: icon, size: 16 }))),
|
|
76
76
|
(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,5 +45,11 @@ 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
|
}
|
|
41
55
|
//# sourceMappingURL=web-api-menus.d.ts.map
|
|
@@ -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
|
/**
|
|
@@ -179,6 +179,7 @@ exports.WEB_API_SPEC = {
|
|
|
179
179
|
registerPartners: page,
|
|
180
180
|
registerSessionMenu: page,
|
|
181
181
|
registerFileMenu: page,
|
|
182
|
+
registerCodeMenu: page,
|
|
182
183
|
on: page,
|
|
183
184
|
sendUserMessage: page,
|
|
184
185
|
switchSession: page,
|
|
@@ -187,6 +188,7 @@ exports.WEB_API_SPEC = {
|
|
|
187
188
|
openTemporary: page,
|
|
188
189
|
onRoomEvent: page,
|
|
189
190
|
onTerminalData: page,
|
|
191
|
+
onReconnect: page,
|
|
190
192
|
server: page,
|
|
191
193
|
workspace: page,
|
|
192
194
|
terminals: page,
|
|
@@ -223,6 +223,7 @@ class WebExtensionContext {
|
|
|
223
223
|
onRoomEvent: (listener, options) => hear(next => workbench.onRoomEvent(next, options), listener),
|
|
224
224
|
ui: this.ui(run, register),
|
|
225
225
|
onTerminalData: listener => hear(workbench.onTerminalData.bind(workbench), listener),
|
|
226
|
+
onReconnect: listener => hear(workbench.onReconnect.bind(workbench), listener),
|
|
226
227
|
storage: { ...this.storage(run), directory: cwd => this.storage(run, cwd) },
|
|
227
228
|
registerView: (name, view) => register(() => run.views.set(name, view)),
|
|
228
229
|
registerMessageRenderer: (customType, renderer) => register(() => run.renderers.set(customType, renderer)),
|
|
@@ -253,6 +254,7 @@ class WebExtensionContext {
|
|
|
253
254
|
registerSettings: section => register(() => run.settingsSections.push(section)),
|
|
254
255
|
registerSessionMenu: menu => register(() => run.sessionMenus.push(web_extension_run_1.WebExtensionRunUtil.menu(run, menu))),
|
|
255
256
|
registerFileMenu: menu => register(() => run.fileMenus.push(web_extension_run_1.WebExtensionRunUtil.menu(run, menu))),
|
|
257
|
+
registerCodeMenu: menu => register(() => run.codeMenus.push(web_extension_run_1.WebExtensionRunUtil.menu(run, menu))),
|
|
256
258
|
registerOpener: (opener, options) => register(() => ((options === null || options === void 0 ? void 0 : options.specific) ? run.specificOpeners : run.openers).push(async (link) => {
|
|
257
259
|
// An opener that fails, or of an extension that stopped, leaves the link to the next one.
|
|
258
260
|
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';
|
|
4
4
|
import type { BlockSpeech } from '../util/spoken';
|
|
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';
|
|
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';
|
|
6
6
|
import type { WebHomeBoard } from './web-home';
|
|
7
7
|
import type { PageUsage, WebPageInfo } from './web-pages';
|
|
8
8
|
import type { WebPartnerBoard } from './web-partners';
|
|
@@ -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';
|
|
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';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol';
|
|
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,6 +69,6 @@ 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
|
}
|
|
73
74
|
//# sourceMappingURL=web-extension-run.d.ts.map
|
|
@@ -4,7 +4,7 @@ exports.WebExtensionRunUtil = void 0;
|
|
|
4
4
|
const DEFAULT_ORDER = 100;
|
|
5
5
|
var WebExtensionRunUtil;
|
|
6
6
|
(function (WebExtensionRunUtil) {
|
|
7
|
-
/** A menu of the extension (registerSessionMenu, registerFileMenu): none once it stopped, nor when it throws. */
|
|
7
|
+
/** A menu of the extension (registerSessionMenu, registerFileMenu, registerCodeMenu): none once it stopped, nor when it throws. */
|
|
8
8
|
function menu(run, menu) {
|
|
9
9
|
return target => {
|
|
10
10
|
try {
|
|
@@ -40,6 +40,7 @@ var WebExtensionRunUtil;
|
|
|
40
40
|
specificOpeners: [],
|
|
41
41
|
sessionMenus: [],
|
|
42
42
|
fileMenus: [],
|
|
43
|
+
codeMenus: [],
|
|
43
44
|
taskSources: [],
|
|
44
45
|
searches: [],
|
|
45
46
|
composerAddons: [],
|
|
@@ -165,6 +166,7 @@ var WebExtensionRunUtil;
|
|
|
165
166
|
specificOpeners: runs.flatMap(run => run.specificOpeners),
|
|
166
167
|
sessionMenus: runs.flatMap(run => run.sessionMenus),
|
|
167
168
|
fileMenus: runs.flatMap(run => run.fileMenus),
|
|
169
|
+
codeMenus: runs.flatMap(run => run.codeMenus),
|
|
168
170
|
extensions: runs.map(run => run.loaded),
|
|
169
171
|
views,
|
|
170
172
|
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;
|
|
@@ -68,22 +68,45 @@ exports.SERVICE_EN = {
|
|
|
68
68
|
'ta.environment.stop': 'Stop',
|
|
69
69
|
'ta.environment.stopConfirm': 'Stop the environment of {account}?',
|
|
70
70
|
'ta.environment.stopDetail': 'It starts again when they connect; what runs in it stops now.',
|
|
71
|
-
'ta.remote.addCloud': '
|
|
72
|
-
'ta.remote.cloudTitle': '
|
|
73
|
-
'ta.remote.cloudDescription': '
|
|
71
|
+
'ta.remote.addCloud': 'Enter the gateway',
|
|
72
|
+
'ta.remote.cloudTitle': "Your company's Ta gateway",
|
|
73
|
+
'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.',
|
|
74
74
|
'ta.remote.cloudUrl': 'Gateway address',
|
|
75
75
|
'ta.remote.cloudToken': 'Access token',
|
|
76
|
-
'ta.remote.
|
|
77
|
-
'ta.remote.cloudHint': 'Make the token on the gateway: Settings, Environment, Use it from another Ta.',
|
|
76
|
+
'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.',
|
|
78
77
|
'ta.remote.cloudConnect': 'Connect and add',
|
|
79
78
|
'ta.remote.cloudAdded': '{name} added: pick it in the folder picker',
|
|
80
79
|
'ta.remote.openCloud': 'Open its Ta',
|
|
81
80
|
'ta.remote.openCloudHint': 'The whole Ta there, its agent in the cloud too',
|
|
81
|
+
'ta.remote.madeCloud': 'Handover is on: while this computer is away, conversations go on on {host}',
|
|
82
|
+
'ta.remote.network': 'Network',
|
|
83
|
+
'ta.remote.portLocal': 'Forwarded to localhost:{port} here',
|
|
84
|
+
'ta.remote.relay': 'Go on here while this computer is away',
|
|
85
|
+
'ta.remote.relay.off': 'Keeps Ta running here: when this computer closes its lid or runs low, conversations go on here.',
|
|
86
|
+
'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.',
|
|
87
|
+
'ta.remote.relay.stopTitle': 'Stop handing over to {host}?',
|
|
88
|
+
'ta.remote.relay.stopHint': 'Ta stays installed there. Take back the conversations that went there first.',
|
|
89
|
+
'ta.remote.relay.stop': 'Turn off handover',
|
|
90
|
+
'ta.remote.network.off': 'Off (recommended)',
|
|
91
|
+
'ta.remote.network.common': 'Package sources only',
|
|
92
|
+
'ta.remote.network.open': 'Anywhere',
|
|
93
|
+
'ta.remote.network.custom': 'Custom…',
|
|
94
|
+
'ta.remote.network.off.hint': "Commands the agent runs there can't reach the internet. Dependencies are installed before it starts.",
|
|
95
|
+
'ta.remote.network.common.hint': 'Commands can reach npm, PyPI, GitHub and other common package sources only.',
|
|
96
|
+
'ta.remote.network.open.hint': 'Commands can reach any address.',
|
|
97
|
+
'ta.remote.network.custom.hint': 'Commands can reach only these hosts.',
|
|
98
|
+
'ta.remote.network.soft': 'This machine can only hold them back through proxy settings.',
|
|
99
|
+
'ta.remote.network.isolate': 'Isolate fully',
|
|
100
|
+
'ta.remote.network.isolateHint': 'Installs bubblewrap there (and its AppArmor profile on Ubuntu) with sudo',
|
|
101
|
+
'ta.remote.network.isolated': 'The agent there now has a network of its own',
|
|
102
|
+
'ta.remote.network.placeholder': 'One per line: registry.npmjs.org, *.example.com, example.com:8443',
|
|
103
|
+
'ta.remote.network.save': 'Save',
|
|
104
|
+
'ta.remote.network.saved': 'Network of {name} updated',
|
|
82
105
|
'ta.environment.elsewhere': 'Use it from another Ta',
|
|
83
106
|
'ta.environment.elsewhereHint': 'Ta on your computer works in this sandbox as a cloud workspace, its agent on your computer.',
|
|
84
107
|
'ta.environment.makeToken': 'Make a token',
|
|
85
108
|
'ta.environment.tokenLabel': 'Another Ta',
|
|
86
|
-
'ta.environment.tokenHint':
|
|
109
|
+
'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.",
|
|
87
110
|
'ta.environment.quotaHint': 'What you used of your free minutes this month',
|
|
88
111
|
'ta.environment.blockedTitle': 'Your Ta is paused',
|
|
89
112
|
'ta.environment.blockedSuspended': 'An administrator of the gateway suspended your account. Ask them to resume it.',
|
|
@@ -188,19 +211,18 @@ exports.SERVICE_EN = {
|
|
|
188
211
|
'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.',
|
|
189
212
|
'ta.relays.storeAdd': 'Add and sync there',
|
|
190
213
|
'ta.remote.title': 'Remote hosts',
|
|
191
|
-
'ta.remote.description': 'Conversations can work in directories of these machines.
|
|
214
|
+
'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.',
|
|
192
215
|
'ta.remote.none': 'No hosts yet',
|
|
193
216
|
'ta.remote.noneHint': 'Add one above: conversations then work in its directories over ssh',
|
|
194
217
|
'ta.remote.invalid': '{host} names no host: write a Host of ~/.ssh/config, user@host:port, or ssh user@host -p port.',
|
|
195
218
|
'ta.remote.options': 'Ta takes no {options} here: put it in a Host of ~/.ssh/config, and add that Host.',
|
|
196
219
|
'ta.remote.disconnected': 'Not connected',
|
|
197
220
|
'ta.remote.fromConfig': 'From ~/.ssh/config',
|
|
198
|
-
'ta.remote.added': 'Added',
|
|
199
221
|
'ta.remote.connect': 'Connect',
|
|
200
222
|
'ta.remote.disconnect': 'Disconnect',
|
|
201
223
|
'ta.remote.connectedTo': 'Connected to {host}',
|
|
202
224
|
'ta.remote.remove': 'Remove {host}',
|
|
203
|
-
'ta.remote.port': 'Port {port}
|
|
225
|
+
'ta.remote.port': 'Port {port}',
|
|
204
226
|
'ta.remote.closePort': 'Stop forwarding',
|
|
205
227
|
'ta.remote.connecting': 'Connecting to {host}…',
|
|
206
228
|
'ta.remote.step.connecting': 'Connecting to {host}…',
|
|
@@ -208,6 +230,8 @@ exports.SERVICE_EN = {
|
|
|
208
230
|
'ta.remote.step.installing-node': 'Installing Node.js {detail} on {host}…',
|
|
209
231
|
'ta.remote.step.copying-server': 'Copying Ta to {host}…',
|
|
210
232
|
'ta.remote.step.starting': 'Starting on {host}…',
|
|
233
|
+
'ta.remote.step.installing-ta': 'Installing Ta {detail} on {host}…',
|
|
234
|
+
'ta.remote.step.starting-ta': 'Starting Ta on {host}…',
|
|
211
235
|
'ta.remote.lost': 'Lost the connection to {host}; it comes back with the next step.',
|
|
212
236
|
'ta.remote.prompt.title': 'Connect to {host}',
|
|
213
237
|
'ta.remote.prompt.trust': 'Trust and connect',
|
|
@@ -65,22 +65,45 @@ exports.SERVICE_JA = {
|
|
|
65
65
|
'ta.environment.stop': '停止',
|
|
66
66
|
'ta.environment.stopConfirm': '{account} の実行環境を停止しますか?',
|
|
67
67
|
'ta.environment.stopDetail': '再び接続すると再び起動します。実行中のものはすぐに停止します。',
|
|
68
|
-
'ta.remote.addCloud': '
|
|
69
|
-
'ta.remote.cloudTitle': '
|
|
70
|
-
'ta.remote.cloudDescription': 'Ta
|
|
68
|
+
'ta.remote.addCloud': 'ゲートウェイを入力',
|
|
69
|
+
'ta.remote.cloudTitle': '会社の Ta ゲートウェイ',
|
|
70
|
+
'ta.remote.cloudDescription': '会社が Ta ゲートウェイを運用している場合だけ必要です。ない場合は、上で ssh できるマシンを追加して引き継ぎをオンにします。',
|
|
71
71
|
'ta.remote.cloudUrl': 'ゲートウェイのアドレス',
|
|
72
72
|
'ta.remote.cloudToken': 'アクセストークン',
|
|
73
|
-
'ta.remote.
|
|
74
|
-
'ta.remote.cloudHint': 'トークンはゲートウェイの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
73
|
+
'ta.remote.cloudHint': 'アドレスはゲートウェイの Web ページのアドレスです。トークンはそのページの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
75
74
|
'ta.remote.cloudConnect': '接続して追加',
|
|
76
75
|
'ta.remote.cloudAdded': '{name} を追加しました。フォルダ選択で選べます',
|
|
77
76
|
'ta.remote.openCloud': 'クラウドの Ta を開く',
|
|
78
77
|
'ta.remote.openCloudHint': 'エージェントも含めて Ta 全体がクラウドで動きます',
|
|
78
|
+
'ta.remote.madeCloud': '引き継ぎをオンにしました:パソコンを離れている間、会話は {host} で続きます',
|
|
79
|
+
'ta.remote.network': 'ネットワーク',
|
|
80
|
+
'ta.remote.portLocal': 'このパソコンの localhost:{port} に転送済み',
|
|
81
|
+
'ta.remote.relay': 'パソコンを離れている間ここで続ける',
|
|
82
|
+
'ta.remote.relay.off': 'ここに Ta を常駐させます。パソコンを閉じたり電池が少なくなったりすると、会話はここで続きます。',
|
|
83
|
+
'ta.remote.relay.on': 'ふたを閉じた、スリープした、電池が少ないときに、実行中の会話はここで続き、戻ると自動で引き戻します。',
|
|
84
|
+
'ta.remote.relay.stopTitle': '{host} への引き継ぎをやめますか?',
|
|
85
|
+
'ta.remote.relay.stopHint': 'そのマシンの Ta はそのまま残ります。そちらに移った会話は、先にこのパソコンへ引き戻してください。',
|
|
86
|
+
'ta.remote.relay.stop': '引き継ぎをオフ',
|
|
87
|
+
'ta.remote.network.off': 'オフ(おすすめ)',
|
|
88
|
+
'ta.remote.network.common': 'パッケージ配布元のみ',
|
|
89
|
+
'ta.remote.network.open': '制限なし',
|
|
90
|
+
'ta.remote.network.custom': 'カスタム…',
|
|
91
|
+
'ta.remote.network.off.hint': 'エージェントがそこで実行するコマンドはネットに出られません。依存関係は開始前に自動で入ります。',
|
|
92
|
+
'ta.remote.network.common.hint': 'npm、PyPI、GitHub などよく使う配布元にだけつながります。',
|
|
93
|
+
'ta.remote.network.open.hint': 'どのアドレスにもつながります。',
|
|
94
|
+
'ta.remote.network.custom.hint': '下のホストにだけつながります。',
|
|
95
|
+
'ta.remote.network.soft': 'このマシンではプロキシ設定でしか止められません。',
|
|
96
|
+
'ta.remote.network.isolate': '完全に隔離',
|
|
97
|
+
'ta.remote.network.isolateHint': 'sudo で bubblewrap を入れます(Ubuntu では付属の AppArmor プロファイルも有効にします)',
|
|
98
|
+
'ta.remote.network.isolated': 'そこのエージェントを完全に隔離しました',
|
|
99
|
+
'ta.remote.network.placeholder': '1 行に 1 つ:registry.npmjs.org、*.example.com、example.com:8443',
|
|
100
|
+
'ta.remote.network.save': '保存',
|
|
101
|
+
'ta.remote.network.saved': '{name} のネットワーク設定を更新しました',
|
|
79
102
|
'ta.environment.elsewhere': '他の Ta から使う',
|
|
80
103
|
'ta.environment.elsewhereHint': 'お使いのコンピュータの Ta がこのサンドボックスをクラウドワークスペースとして使います。エージェントはコンピュータ側です。',
|
|
81
104
|
'ta.environment.makeToken': 'トークンを作成',
|
|
82
105
|
'ta.environment.tokenLabel': '他の Ta',
|
|
83
|
-
'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト →
|
|
106
|
+
'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト → 会社の Ta ゲートウェイ → ゲートウェイを入力。使わなくなったら「アクセス」でサインアウトしてください。',
|
|
84
107
|
'ta.environment.quotaHint': '今月の無料時間の使用状況',
|
|
85
108
|
'ta.environment.blockedTitle': 'Ta は一時停止中です',
|
|
86
109
|
'ta.environment.blockedSuspended': 'ゲートウェイの管理者がアカウントを停止しました。再開を依頼してください。',
|
|
@@ -185,19 +208,18 @@ exports.SERVICE_JA = {
|
|
|
185
208
|
'ta.relays.storeNote': 'Ta が先に試します:小さいファイルを書き込んで削除します。同期が保存する内容はこのパソコンで既に暗号化されています。パスワードはこのパソコンの relays.json にのみ保存されます。',
|
|
186
209
|
'ta.relays.storeAdd': '追加して同期に使用',
|
|
187
210
|
'ta.remote.title': 'リモートホスト',
|
|
188
|
-
'ta.remote.description': '
|
|
211
|
+
'ta.remote.description': '会話はこれらのマシンのディレクトリで動作できます。引き継ぎをオンにしたマシンでは、パソコンを離れている間も会話が続きます。',
|
|
189
212
|
'ta.remote.none': 'ホストはまだありません',
|
|
190
213
|
'ta.remote.noneHint': '上で追加するとホストのディレクトリで ssh 経由で会話が動作します',
|
|
191
214
|
'ta.remote.invalid': '{host} はホストではありません:~/.ssh/config の Host、user@host:port、または ssh user@host -p ポート を入力してください。',
|
|
192
215
|
'ta.remote.options': 'Ta はここで {options} をサポートしていません:~/.ssh/config の Host に追加して、そのホストを追加してください。',
|
|
193
216
|
'ta.remote.disconnected': '未接続',
|
|
194
217
|
'ta.remote.fromConfig': '~/.ssh/config から',
|
|
195
|
-
'ta.remote.added': '手動で追加',
|
|
196
218
|
'ta.remote.connect': '接続',
|
|
197
219
|
'ta.remote.disconnect': '切断',
|
|
198
220
|
'ta.remote.connectedTo': '{host} に接続済み',
|
|
199
221
|
'ta.remote.remove': '{host} を削除',
|
|
200
|
-
'ta.remote.port': '
|
|
222
|
+
'ta.remote.port': 'ポート {port}',
|
|
201
223
|
'ta.remote.closePort': '転送を停止',
|
|
202
224
|
'ta.remote.connecting': '{host} に接続中…',
|
|
203
225
|
'ta.remote.step.connecting': '{host} に接続中…',
|
|
@@ -205,6 +227,8 @@ exports.SERVICE_JA = {
|
|
|
205
227
|
'ta.remote.step.installing-node': '{host} に Node.js {detail} をインストール中…',
|
|
206
228
|
'ta.remote.step.copying-server': 'Ta を {host} にコピー中…',
|
|
207
229
|
'ta.remote.step.starting': '{host} で起動中…',
|
|
230
|
+
'ta.remote.step.installing-ta': '{host} に Ta {detail} をインストール中…',
|
|
231
|
+
'ta.remote.step.starting-ta': '{host} で Ta を起動中…',
|
|
208
232
|
'ta.remote.lost': '{host} への接続が失われました。次のステップで自動的に再接続します。',
|
|
209
233
|
'ta.remote.prompt.title': '{host} に接続',
|
|
210
234
|
'ta.remote.prompt.trust': '信頼して接続',
|