@celljs/ta-web 4.34.0 → 4.35.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/apps/app-icon.d.ts +23 -0
- package/esm/browser/apps/app-icon.js +98 -0
- package/esm/browser/apps/app-settings.d.ts +6 -0
- package/esm/browser/apps/app-settings.js +67 -0
- package/esm/browser/apps/app-window-util.d.ts +23 -0
- package/esm/browser/apps/app-window-util.js +27 -0
- package/esm/browser/apps/app-window.d.ts +9 -0
- package/esm/browser/apps/app-window.js +90 -0
- package/esm/browser/apps/web-apps.d.ts +29 -0
- package/esm/browser/apps/web-apps.js +57 -0
- package/esm/browser/assistant/call-keeper.d.ts +2 -5
- package/esm/browser/assistant/call-keeper.js +7 -11
- package/esm/browser/components/access-settings.d.ts +6 -0
- package/esm/browser/components/access-settings.js +52 -0
- package/esm/browser/components/app-root.d.ts +6 -0
- package/esm/browser/components/app-root.js +34 -0
- package/esm/browser/components/app-view.d.ts +8 -2
- package/esm/browser/components/app-view.js +1 -25
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/settings-more.js +6 -0
- package/esm/browser/device/screen-awake.d.ts +16 -0
- package/esm/browser/device/screen-awake.js +37 -0
- package/esm/browser/device/sheet-swipe.js +4 -0
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-access.d.ts +16 -0
- package/esm/browser/extension/web-access.js +75 -0
- package/esm/browser/extension/web-api-desktop.d.ts +23 -0
- package/esm/browser/extension/web-api-spec.d.ts +70 -0
- package/esm/browser/extension/web-api-spec.js +223 -0
- package/esm/browser/extension/web-extension-api.d.ts +6 -0
- package/esm/browser/extension/web-extension-context.js +11 -2
- package/esm/browser/extension/web-extension-run.d.ts +6 -1
- package/esm/browser/extension/web-extension-run.js +25 -0
- package/esm/browser/extension/web-extensions-running.d.ts +18 -1
- package/esm/browser/extension/web-extensions-running.js +102 -9
- package/esm/browser/extension/web-pages.d.ts +5 -0
- package/esm/browser/extension/web-pages.js +3 -0
- package/esm/browser/i18n/en/common.d.ts +1 -0
- package/esm/browser/i18n/en/common.js +1 -0
- package/esm/browser/i18n/en/discover.d.ts +11 -0
- package/esm/browser/i18n/en/discover.js +11 -0
- package/esm/browser/i18n/en/settings.d.ts +28 -0
- package/esm/browser/i18n/en/settings.js +28 -0
- package/esm/browser/i18n/ja/common.js +1 -0
- package/esm/browser/i18n/ja/discover.js +11 -0
- package/esm/browser/i18n/ja/settings.js +28 -0
- package/esm/browser/i18n/locales.d.ts +41 -3
- package/esm/browser/i18n/messages.d.ts +40 -2
- package/esm/browser/i18n/zh/common.js +1 -0
- package/esm/browser/i18n/zh/discover.js +11 -0
- package/esm/browser/i18n/zh/settings.js +28 -0
- package/esm/browser/i18n/zh-tw/common.js +1 -0
- package/esm/browser/i18n/zh-tw/discover.js +11 -0
- package/esm/browser/i18n/zh-tw/settings.js +28 -0
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -0
- package/esm/browser/notices/notices.js +1 -0
- package/esm/browser/sandbox/channel/channel.d.ts +56 -0
- package/esm/browser/sandbox/channel/channel.js +124 -0
- package/esm/browser/sandbox/channel/codec.d.ts +80 -0
- package/esm/browser/sandbox/channel/codec.js +251 -0
- package/esm/browser/sandbox/hook-host.d.ts +23 -0
- package/esm/browser/sandbox/hook-host.js +61 -0
- package/esm/browser/sandbox/isolated-host.d.ts +105 -0
- package/esm/browser/sandbox/isolated-host.js +395 -0
- package/esm/browser/sandbox/remote/remote-copy.d.ts +56 -0
- package/esm/browser/sandbox/remote/remote-copy.js +302 -0
- package/esm/browser/sandbox/remote/remote-mirror.d.ts +61 -0
- package/esm/browser/sandbox/remote/remote-mirror.js +341 -0
- package/esm/browser/sandbox/remote/remote-protocol.d.ts +79 -0
- package/esm/browser/sandbox/remote/remote-protocol.js +54 -0
- package/esm/browser/sandbox/remote/remote-styles.d.ts +10 -0
- package/esm/browser/sandbox/remote/remote-styles.js +113 -0
- package/esm/browser/sandbox/remote-root.d.ts +11 -0
- package/esm/browser/sandbox/remote-root.js +81 -0
- package/esm/browser/sandbox/runtime/frame-api.d.ts +28 -0
- package/esm/browser/sandbox/runtime/frame-api.js +147 -0
- package/esm/browser/sandbox/runtime/frame-features.d.ts +6 -0
- package/esm/browser/sandbox/runtime/frame-features.js +50 -0
- package/esm/browser/sandbox/runtime/frame-parts.d.ts +36 -0
- package/esm/browser/sandbox/runtime/frame-parts.js +69 -0
- package/esm/browser/sandbox/runtime/frame-roots.d.ts +26 -0
- package/esm/browser/sandbox/runtime/frame-roots.js +76 -0
- package/esm/browser/sandbox/runtime/frame-store.d.ts +9 -0
- package/esm/browser/sandbox/runtime/frame-store.js +18 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.d.ts +11 -0
- package/esm/browser/sandbox/runtime/sandbox-runtime.js +45 -0
- package/esm/browser/sandbox/sandbox-features.d.ts +25 -0
- package/esm/browser/sandbox/sandbox-features.js +32 -0
- package/esm/browser/sandbox/sandbox-frame.d.ts +21 -0
- package/esm/browser/sandbox/sandbox-frame.js +75 -0
- package/esm/browser/sandbox/sandbox-guards.d.ts +19 -0
- package/esm/browser/sandbox/sandbox-guards.js +74 -0
- package/esm/browser/sandbox/sandbox-protocol.d.ts +57 -0
- package/esm/browser/sandbox/sandbox-protocol.js +49 -0
- package/esm/browser/sandbox/sandbox-runtime-code.d.ts +1 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +3 -0
- package/esm/browser/sandbox/web-sandbox.d.ts +28 -0
- package/esm/browser/sandbox/web-sandbox.js +44 -0
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +5 -0
- package/esm/browser/style/tints.d.ts +2 -0
- package/esm/browser/style/tints.js +10 -0
- package/esm/browser/util/desktop.d.ts +31 -1
- package/esm/browser/util/desktop.js +20 -0
- package/esm/browser/view.js +1 -1
- package/lib/browser/apps/app-icon.d.ts +24 -0
- package/lib/browser/apps/app-icon.js +134 -0
- package/lib/browser/apps/app-settings.d.ts +7 -0
- package/lib/browser/apps/app-settings.js +103 -0
- package/lib/browser/apps/app-window-util.d.ts +24 -0
- package/lib/browser/apps/app-window-util.js +30 -0
- package/lib/browser/apps/app-window.d.ts +10 -0
- package/lib/browser/apps/app-window.js +126 -0
- package/lib/browser/apps/web-apps.d.ts +30 -0
- package/lib/browser/apps/web-apps.js +61 -0
- package/lib/browser/assistant/call-keeper.d.ts +2 -5
- package/lib/browser/assistant/call-keeper.js +6 -10
- package/lib/browser/components/access-settings.d.ts +7 -0
- package/lib/browser/components/access-settings.js +88 -0
- package/lib/browser/components/app-root.d.ts +7 -0
- package/lib/browser/components/app-root.js +70 -0
- package/lib/browser/components/app-view.d.ts +8 -2
- package/lib/browser/components/app-view.js +1 -25
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/settings-more.js +6 -0
- package/lib/browser/device/screen-awake.d.ts +16 -0
- package/lib/browser/device/screen-awake.js +39 -1
- package/lib/browser/device/sheet-swipe.js +4 -0
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-access.d.ts +17 -0
- package/lib/browser/extension/web-access.js +78 -0
- package/lib/browser/extension/web-api-desktop.d.ts +23 -0
- package/lib/browser/extension/web-api-spec.d.ts +71 -0
- package/lib/browser/extension/web-api-spec.js +226 -0
- package/lib/browser/extension/web-extension-api.d.ts +6 -0
- package/lib/browser/extension/web-extension-context.js +11 -2
- package/lib/browser/extension/web-extension-run.d.ts +6 -1
- package/lib/browser/extension/web-extension-run.js +25 -0
- package/lib/browser/extension/web-extensions-running.d.ts +18 -1
- package/lib/browser/extension/web-extensions-running.js +102 -9
- package/lib/browser/extension/web-pages.d.ts +5 -0
- package/lib/browser/extension/web-pages.js +3 -0
- package/lib/browser/i18n/en/common.d.ts +1 -0
- package/lib/browser/i18n/en/common.js +1 -0
- package/lib/browser/i18n/en/discover.d.ts +11 -0
- package/lib/browser/i18n/en/discover.js +11 -0
- package/lib/browser/i18n/en/settings.d.ts +28 -0
- package/lib/browser/i18n/en/settings.js +28 -0
- package/lib/browser/i18n/ja/common.js +1 -0
- package/lib/browser/i18n/ja/discover.js +11 -0
- package/lib/browser/i18n/ja/settings.js +28 -0
- package/lib/browser/i18n/locales.d.ts +41 -3
- package/lib/browser/i18n/messages.d.ts +40 -2
- package/lib/browser/i18n/zh/common.js +1 -0
- package/lib/browser/i18n/zh/discover.js +11 -0
- package/lib/browser/i18n/zh/settings.js +28 -0
- package/lib/browser/i18n/zh-tw/common.js +1 -0
- package/lib/browser/i18n/zh-tw/discover.js +11 -0
- package/lib/browser/i18n/zh-tw/settings.js +28 -0
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/browser/notices/notices.js +1 -0
- package/lib/browser/sandbox/channel/channel.d.ts +57 -0
- package/lib/browser/sandbox/channel/channel.js +128 -0
- package/lib/browser/sandbox/channel/codec.d.ts +81 -0
- package/lib/browser/sandbox/channel/codec.js +256 -0
- package/lib/browser/sandbox/hook-host.d.ts +24 -0
- package/lib/browser/sandbox/hook-host.js +98 -0
- package/lib/browser/sandbox/isolated-host.d.ts +106 -0
- package/lib/browser/sandbox/isolated-host.js +432 -0
- package/lib/browser/sandbox/remote/remote-copy.d.ts +57 -0
- package/lib/browser/sandbox/remote/remote-copy.js +306 -0
- package/lib/browser/sandbox/remote/remote-mirror.d.ts +62 -0
- package/lib/browser/sandbox/remote/remote-mirror.js +345 -0
- package/lib/browser/sandbox/remote/remote-protocol.d.ts +80 -0
- package/lib/browser/sandbox/remote/remote-protocol.js +57 -0
- package/lib/browser/sandbox/remote/remote-styles.d.ts +11 -0
- package/lib/browser/sandbox/remote/remote-styles.js +116 -0
- package/lib/browser/sandbox/remote-root.d.ts +12 -0
- package/lib/browser/sandbox/remote-root.js +117 -0
- package/lib/browser/sandbox/runtime/frame-api.d.ts +29 -0
- package/lib/browser/sandbox/runtime/frame-api.js +183 -0
- package/lib/browser/sandbox/runtime/frame-features.d.ts +7 -0
- package/lib/browser/sandbox/runtime/frame-features.js +53 -0
- package/lib/browser/sandbox/runtime/frame-parts.d.ts +37 -0
- package/lib/browser/sandbox/runtime/frame-parts.js +106 -0
- package/lib/browser/sandbox/runtime/frame-roots.d.ts +27 -0
- package/lib/browser/sandbox/runtime/frame-roots.js +113 -0
- package/lib/browser/sandbox/runtime/frame-store.d.ts +10 -0
- package/lib/browser/sandbox/runtime/frame-store.js +22 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.d.ts +12 -0
- package/lib/browser/sandbox/runtime/sandbox-runtime.js +47 -0
- package/lib/browser/sandbox/sandbox-features.d.ts +26 -0
- package/lib/browser/sandbox/sandbox-features.js +35 -0
- package/lib/browser/sandbox/sandbox-frame.d.ts +22 -0
- package/lib/browser/sandbox/sandbox-frame.js +79 -0
- package/lib/browser/sandbox/sandbox-guards.d.ts +20 -0
- package/lib/browser/sandbox/sandbox-guards.js +77 -0
- package/lib/browser/sandbox/sandbox-protocol.d.ts +58 -0
- package/lib/browser/sandbox/sandbox-protocol.js +52 -0
- package/lib/browser/sandbox/sandbox-runtime-code.d.ts +2 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +6 -0
- package/lib/browser/sandbox/web-sandbox.d.ts +29 -0
- package/lib/browser/sandbox/web-sandbox.js +47 -0
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +5 -0
- package/lib/browser/style/tints.d.ts +2 -0
- package/lib/browser/style/tints.js +10 -0
- package/lib/browser/util/desktop.d.ts +31 -1
- package/lib/browser/util/desktop.js +20 -0
- package/lib/browser/view.js +2 -2
- package/package.json +8 -8
|
@@ -55,6 +55,9 @@ export declare abstract class WebExtensionsRunning {
|
|
|
55
55
|
protected placeholders?: WebViewEntry[];
|
|
56
56
|
protected started?: WebOnDemand;
|
|
57
57
|
protected readonly pageList: WebPageList;
|
|
58
|
+
/** Versions the user did not allow in this page (`<id>:<hash>`): not asked again until it loads again or they change. */
|
|
59
|
+
protected readonly refused: Set<string>;
|
|
60
|
+
protected readonly asking: Map<string, Promise<boolean>>;
|
|
58
61
|
get state(): WebExtensionsState;
|
|
59
62
|
protected init(): void;
|
|
60
63
|
/** The extensions started on open (ta-launcher.md). */
|
|
@@ -62,7 +65,7 @@ export declare abstract class WebExtensionsRunning {
|
|
|
62
65
|
/** The kinds the pages of the extensions there are list (TaWebExtensionInfo.lists), started or not. */
|
|
63
66
|
protected listedKinds(): Set<string>;
|
|
64
67
|
/** Loads and starts an extension started on open, as reconcile starts the others. */
|
|
65
|
-
protected launch(
|
|
68
|
+
protected launch(asked: TaWebExtensionInfo): Promise<void>;
|
|
66
69
|
/** Stops one started on open: it is still listed, to start again; its page, if shown, gives way to the conversation. */
|
|
67
70
|
protected stopOnDemand(id: string): void;
|
|
68
71
|
protected reconcile(): Promise<boolean>;
|
|
@@ -73,6 +76,14 @@ export declare abstract class WebExtensionsRunning {
|
|
|
73
76
|
* still the same and stops the others.
|
|
74
77
|
*/
|
|
75
78
|
protected startKept(host: string | undefined): Promise<boolean>;
|
|
79
|
+
/** Whether what runs is that of the list: the same code, allowed as much. */
|
|
80
|
+
protected same(run: WebExtensionRun | undefined, info: TaWebExtensionInfo): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* It as it may start: allowed already, or allowed by the user now (docs/design/ta-extension-access.md); undefined
|
|
83
|
+
* when they did not allow it. Asked once at a time, and not again in this page once refused.
|
|
84
|
+
*/
|
|
85
|
+
protected allow(info: TaWebExtensionInfo): Promise<TaWebExtensionInfo | undefined>;
|
|
86
|
+
protected askAccess(info: TaWebExtensionInfo): Promise<boolean>;
|
|
76
87
|
/** Stops and forgets the extensions running that `keep` does not keep; whether there were any. */
|
|
77
88
|
protected stopUnless(keep: (run: WebExtensionRun) => boolean): boolean;
|
|
78
89
|
protected loadPackage(info: TaWebExtensionInfo): Promise<{
|
|
@@ -81,6 +92,11 @@ export declare abstract class WebExtensionsRunning {
|
|
|
81
92
|
} | {
|
|
82
93
|
error: string;
|
|
83
94
|
}>;
|
|
95
|
+
/**
|
|
96
|
+
* What starts an extension: its module, imported into the page; or, for one the user allowed less than all, its code
|
|
97
|
+
* to run in a sandbox, never imported here (docs/design/ta-extension-access.md 3).
|
|
98
|
+
*/
|
|
99
|
+
protected factoryOf(info: TaWebExtensionInfo, code: string): Promise<WebExtensionFactory>;
|
|
84
100
|
protected startPackage(info: TaWebExtensionInfo, load: {
|
|
85
101
|
factory: WebExtensionFactory;
|
|
86
102
|
hash: string;
|
|
@@ -92,6 +108,7 @@ export declare abstract class WebExtensionsRunning {
|
|
|
92
108
|
protected guard(run: WebExtensionRun, action: () => void): void;
|
|
93
109
|
protected publish(): void;
|
|
94
110
|
protected update(change: Partial<WebExtensionsState>): void;
|
|
111
|
+
abstract refresh(): Promise<boolean>;
|
|
95
112
|
abstract openView(id: string, preserveFocus?: boolean): void;
|
|
96
113
|
abstract showView(id: string): Promise<boolean>;
|
|
97
114
|
protected abstract get context(): WebExtensionContext;
|
|
@@ -12,14 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WebExtensionsRunning = void 0;
|
|
13
13
|
const core_1 = require("@celljs/core");
|
|
14
14
|
const files_protocol_1 = require("../files/files-protocol");
|
|
15
|
+
const messages_1 = require("../i18n/messages");
|
|
15
16
|
const links_protocol_1 = require("../links/links-protocol");
|
|
16
17
|
const notices_protocol_1 = require("../notices/notices-protocol");
|
|
17
18
|
const session_notices_1 = require("../notices/session-notices");
|
|
18
19
|
const device_values_1 = require("../offline/device-values");
|
|
20
|
+
const sandbox_protocol_1 = require("../sandbox/sandbox-protocol");
|
|
21
|
+
const web_sandbox_1 = require("../sandbox/web-sandbox");
|
|
19
22
|
const screen_protocol_1 = require("../screen/screen-protocol");
|
|
20
23
|
const settings_protocol_1 = require("../settings/settings-protocol");
|
|
21
24
|
const state_protocol_1 = require("../state/state-protocol");
|
|
22
25
|
const workbench_protocol_1 = require("../workbench-protocol");
|
|
26
|
+
const web_access_1 = require("./web-access");
|
|
23
27
|
const web_editor_tabs_1 = require("./web-editor-tabs");
|
|
24
28
|
const web_extension_code_1 = require("./web-extension-code");
|
|
25
29
|
const web_extension_protocol_1 = require("./web-extension-protocol");
|
|
@@ -67,6 +71,9 @@ class WebExtensionsRunning {
|
|
|
67
71
|
/** The extensions of the list of the last time have started (startKept), once. */
|
|
68
72
|
this.keptStarted = false;
|
|
69
73
|
this.pageList = new web_page_list_1.WebPageList();
|
|
74
|
+
/** Versions the user did not allow in this page (`<id>:<hash>`): not asked again until it loads again or they change. */
|
|
75
|
+
this.refused = new Set();
|
|
76
|
+
this.asking = new Map();
|
|
70
77
|
}
|
|
71
78
|
get state() {
|
|
72
79
|
return this.current;
|
|
@@ -97,13 +104,19 @@ class WebExtensionsRunning {
|
|
|
97
104
|
return web_pages_1.WebPagesUtil.listedKinds([...this.current.onOpen.map(entry => entry.info), ...[...this.running.values()].map(run => run.loaded.info)]);
|
|
98
105
|
}
|
|
99
106
|
/** Loads and starts an extension started on open, as reconcile starts the others. */
|
|
100
|
-
async launch(
|
|
101
|
-
var _a;
|
|
107
|
+
async launch(asked) {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
const info = await this.allow(asked);
|
|
110
|
+
if (!info) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
102
113
|
const load = await this.loadPackage(info);
|
|
103
114
|
// Gone or changed meanwhile: the next refresh has it.
|
|
104
115
|
if (((_a = this.onDemand.get(info.id)) === null || _a === void 0 ? void 0 : _a.hash) === info.hash && !this.running.has(info.id)) {
|
|
105
116
|
this.startPackage(info, load);
|
|
106
117
|
this.publish();
|
|
118
|
+
// One in a sandbox registers its pages as it starts: they are there to show once it did.
|
|
119
|
+
await ('factory' in load ? (_b = load.factory.ready) === null || _b === void 0 ? void 0 : _b.catch(() => undefined) : undefined);
|
|
107
120
|
}
|
|
108
121
|
}
|
|
109
122
|
/** Stops one started on open: it is still listed, to start again; its page, if shown, gives way to the conversation. */
|
|
@@ -153,8 +166,13 @@ class WebExtensionsRunning {
|
|
|
153
166
|
void this.code.keepOnly(infos.map(info => info.hash));
|
|
154
167
|
// Those started on open wait to be opened (ta-launcher.md).
|
|
155
168
|
this.onDemand.set(infos.filter(info => info.activation === 'open'));
|
|
156
|
-
// Fetched together, started in the order of the list: the order of their views stays the same.
|
|
157
|
-
|
|
169
|
+
// Fetched together, started in the order of the list: the order of their views stays the same. One the user
|
|
170
|
+
// has not allowed (docs/design/ta-extension-access.md) waits to be asked; allowed, the list has it next time.
|
|
171
|
+
const differ = infos.filter(info => !this.same(this.running.get(info.id), info) && info.activation !== 'open');
|
|
172
|
+
const starting = differ.filter(info => web_access_1.WebAccessUtil.granted(info) !== undefined);
|
|
173
|
+
for (const info of differ.filter(waiting => web_access_1.WebAccessUtil.granted(waiting) === undefined)) {
|
|
174
|
+
void this.allow(info).then(allowed => allowed && this.refresh());
|
|
175
|
+
}
|
|
158
176
|
const loads = await Promise.all(starting.map(info => this.loadPackage(info)));
|
|
159
177
|
// Stopped only now, just before the new code starts: the views of the old one stay drawn until the next
|
|
160
178
|
// publish, and stopped while the new code is read (after an update, over the relay) they would show
|
|
@@ -164,7 +182,7 @@ class WebExtensionsRunning {
|
|
|
164
182
|
return true;
|
|
165
183
|
}
|
|
166
184
|
const info = fresh.get(run.loaded.id);
|
|
167
|
-
if (info &&
|
|
185
|
+
if (info && this.same(run, info)) {
|
|
168
186
|
// Started from the list of the last time: what else it says is of now.
|
|
169
187
|
run.loaded = { ...run.loaded, info };
|
|
170
188
|
return true;
|
|
@@ -193,10 +211,12 @@ class WebExtensionsRunning {
|
|
|
193
211
|
return false;
|
|
194
212
|
}
|
|
195
213
|
this.keptStarted = true;
|
|
196
|
-
const infos = this.code
|
|
214
|
+
const infos = this.code
|
|
215
|
+
.list(host)
|
|
216
|
+
.filter(info => info.enabled !== false && info.activation !== 'open' && !this.running.has(info.id) && web_access_1.WebAccessUtil.granted(info) !== undefined);
|
|
197
217
|
const loads = await Promise.all(infos.map(async (info) => {
|
|
198
218
|
const code = await this.code.get(info.hash);
|
|
199
|
-
return code === undefined ? undefined :
|
|
219
|
+
return code === undefined ? undefined : this.factoryOf(info, code).catch(() => undefined);
|
|
200
220
|
}));
|
|
201
221
|
let started = false;
|
|
202
222
|
for (const [index, info] of infos.entries()) {
|
|
@@ -211,6 +231,55 @@ class WebExtensionsRunning {
|
|
|
211
231
|
}
|
|
212
232
|
return started;
|
|
213
233
|
}
|
|
234
|
+
/** Whether what runs is that of the list: the same code, allowed as much. */
|
|
235
|
+
same(run, info) {
|
|
236
|
+
return !!run && run.hash === info.hash && web_access_1.WebAccessUtil.granted(run.loaded.info) === web_access_1.WebAccessUtil.granted(info);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* It as it may start: allowed already, or allowed by the user now (docs/design/ta-extension-access.md); undefined
|
|
240
|
+
* when they did not allow it. Asked once at a time, and not again in this page once refused.
|
|
241
|
+
*/
|
|
242
|
+
async allow(info) {
|
|
243
|
+
var _a;
|
|
244
|
+
if (web_access_1.WebAccessUtil.granted(info) !== undefined) {
|
|
245
|
+
return info;
|
|
246
|
+
}
|
|
247
|
+
const key = `${info.id}:${info.hash}`;
|
|
248
|
+
// Trusted only as far as a web page (3.6): not asked, its row in the list says why.
|
|
249
|
+
if (info.held || this.refused.has(key)) {
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
const asked = (_a = this.asking.get(key)) !== null && _a !== void 0 ? _a : this.askAccess(info).finally(() => this.asking.delete(key));
|
|
253
|
+
this.asking.set(key, asked);
|
|
254
|
+
return (await asked) ? { ...info, granted: info.access } : undefined;
|
|
255
|
+
}
|
|
256
|
+
async askAccess(info) {
|
|
257
|
+
var _a;
|
|
258
|
+
const language = this.settings.state.language;
|
|
259
|
+
const say = (id) => (0, messages_1.message)(language, id);
|
|
260
|
+
const access = (_a = info.access) !== null && _a !== void 0 ? _a : 'full';
|
|
261
|
+
const yes = await this.notices.confirm({
|
|
262
|
+
title: say('ta.access.ask').replace('{name}', web_pages_1.WebPagesUtil.title(info, language)),
|
|
263
|
+
message: [
|
|
264
|
+
say(info.regrant ? 'ta.access.updated' : 'ta.access.new'),
|
|
265
|
+
say(`ta.access.${access}`),
|
|
266
|
+
say('ta.access.from').replace('{source}', web_access_1.WebAccessUtil.source(info, say)),
|
|
267
|
+
].join('\n'),
|
|
268
|
+
confirmLabel: say('ta.access.allow'),
|
|
269
|
+
});
|
|
270
|
+
if (!yes) {
|
|
271
|
+
this.refused.add(`${info.id}:${info.hash}`);
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
try {
|
|
275
|
+
await this.workbench.packages.grantAccess(info.id, access);
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
this.notices.notify(say('ta.access.failed'), { level: 'error', detail: error instanceof Error ? error.message : String(error) });
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
214
283
|
/** Stops and forgets the extensions running that `keep` does not keep; whether there were any. */
|
|
215
284
|
stopUnless(keep) {
|
|
216
285
|
let stopped = false;
|
|
@@ -228,11 +297,11 @@ class WebExtensionsRunning {
|
|
|
228
297
|
try {
|
|
229
298
|
const kept = await this.code.get(info.hash);
|
|
230
299
|
if (kept !== undefined) {
|
|
231
|
-
return { factory: await
|
|
300
|
+
return { factory: await this.factoryOf(info, kept), hash: info.hash };
|
|
232
301
|
}
|
|
233
302
|
const { code, hash } = await this.workbench.packages.readWebExtension(info.id);
|
|
234
303
|
void this.code.set(hash, code);
|
|
235
|
-
const factory = await
|
|
304
|
+
const factory = await this.factoryOf(info, code);
|
|
236
305
|
// Read from the computer: what the user waits for the first time (kept code is quick).
|
|
237
306
|
this.metrics.record(info.name, 'web:load', false, performance.now() - start);
|
|
238
307
|
return { factory, hash };
|
|
@@ -242,6 +311,20 @@ class WebExtensionsRunning {
|
|
|
242
311
|
return { error: web_view_util_1.WebExtensionUtil.message(error) };
|
|
243
312
|
}
|
|
244
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* What starts an extension: its module, imported into the page; or, for one the user allowed less than all, its code
|
|
316
|
+
* to run in a sandbox, never imported here (docs/design/ta-extension-access.md 3).
|
|
317
|
+
*/
|
|
318
|
+
async factoryOf(info, code) {
|
|
319
|
+
const granted = web_access_1.WebAccessUtil.granted(info);
|
|
320
|
+
if (!web_sandbox_1.WebSandbox.applies(info, granted)) {
|
|
321
|
+
return web_view_util_1.WebExtensionUtil.load(code);
|
|
322
|
+
}
|
|
323
|
+
return web_sandbox_1.WebSandbox.factory(code, info, granted, {
|
|
324
|
+
options: this.persisted.get(sandbox_protocol_1.SandboxOptionsUtil.SPEC),
|
|
325
|
+
changes: listener => this.settings.subscribe(() => listener()),
|
|
326
|
+
});
|
|
327
|
+
}
|
|
245
328
|
startPackage(info, load) {
|
|
246
329
|
const loaded = { id: info.id, name: info.name, info };
|
|
247
330
|
if ('error' in load) {
|
|
@@ -252,6 +335,7 @@ class WebExtensionsRunning {
|
|
|
252
335
|
}
|
|
253
336
|
}
|
|
254
337
|
start(loaded, factory, hash) {
|
|
338
|
+
var _a;
|
|
255
339
|
const run = web_extension_run_1.WebExtensionRunUtil.create(loaded, hash);
|
|
256
340
|
this.running.set(loaded.id, run);
|
|
257
341
|
try {
|
|
@@ -259,6 +343,15 @@ class WebExtensionsRunning {
|
|
|
259
343
|
run.dispose = typeof dispose === 'function' ? dispose : undefined;
|
|
260
344
|
run.started = true;
|
|
261
345
|
this.metrics.record(loaded.id, 'web:start');
|
|
346
|
+
// One in a sandbox that could not start says why where it is listed, as one that threw (3.7).
|
|
347
|
+
(_a = factory.ready) === null || _a === void 0 ? void 0 : _a.catch(error => {
|
|
348
|
+
if (this.running.get(loaded.id) === run && !run.stopped) {
|
|
349
|
+
this.metrics.record(loaded.id, 'web:start', true);
|
|
350
|
+
this.stop(run);
|
|
351
|
+
run.loaded = { ...loaded, error: web_view_util_1.WebExtensionUtil.message(error) };
|
|
352
|
+
this.publish();
|
|
353
|
+
}
|
|
354
|
+
});
|
|
262
355
|
}
|
|
263
356
|
catch (error) {
|
|
264
357
|
this.metrics.record(loaded.id, 'web:start', true);
|
|
@@ -17,6 +17,11 @@ export interface WebPageInfo {
|
|
|
17
17
|
extension: string;
|
|
18
18
|
title: string;
|
|
19
19
|
icon?: WebIcon;
|
|
20
|
+
/**
|
|
21
|
+
* The colour of its tile, `--ta-tint-<tint>` and `--ta-tint-ink-<tint>` of the theme, the same for every page of its
|
|
22
|
+
* extension: the launcher's tile and the icon of its app (docs/design/ta-install-as-app.md). Newer than some Ta apps.
|
|
23
|
+
*/
|
|
24
|
+
tint?: number;
|
|
20
25
|
state: WebPageState;
|
|
21
26
|
/** Its extension starts when it opens (`pi.webActivation`, or temporary): it is never in the navigation. */
|
|
22
27
|
onOpen: boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebPagesUtil = void 0;
|
|
4
4
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
const tints_1 = require("../style/tints");
|
|
5
6
|
const icons_1 = require("./icons");
|
|
6
7
|
const web_extension_protocol_1 = require("./web-extension-protocol");
|
|
7
8
|
var WebPagesUtil;
|
|
@@ -71,6 +72,7 @@ var WebPagesUtil;
|
|
|
71
72
|
extension: view.id.slice(0, view.id.lastIndexOf('/')),
|
|
72
73
|
title: web_extension_protocol_1.WebLabelUtil.text(view.title),
|
|
73
74
|
icon: view.icon,
|
|
75
|
+
tint: tints_1.TintUtil.of(view.id.slice(0, view.id.lastIndexOf('/'))),
|
|
74
76
|
state: view.id === shown ? 'shown' : 'running',
|
|
75
77
|
onOpen: false,
|
|
76
78
|
place: placeOf(view),
|
|
@@ -86,6 +88,7 @@ var WebPagesUtil;
|
|
|
86
88
|
extension: info.name,
|
|
87
89
|
title: title(info, language, first ? web_extension_protocol_1.WebLabelUtil.text(first.title) : undefined),
|
|
88
90
|
icon: (_a = (info.icon ? icons_1.WEB_ICONS[info.icon] : undefined)) !== null && _a !== void 0 ? _a : first === null || first === void 0 ? void 0 : first.icon,
|
|
91
|
+
tint: tints_1.TintUtil.of(info.name),
|
|
89
92
|
state: isShown ? 'shown' : background ? 'background' : running ? 'running' : 'stopped',
|
|
90
93
|
onOpen: true,
|
|
91
94
|
place: info.temporary ? 'launcher' : listed(info, kinds) ? 'list' : 'discover',
|
|
@@ -71,6 +71,7 @@ export declare const COMMON_EN: {
|
|
|
71
71
|
'ta.error.forbiddenHint': string;
|
|
72
72
|
'ta.error.forbiddenAsk': string;
|
|
73
73
|
'ta.error.limit': string;
|
|
74
|
+
'ta.error.deviceNotWaiting': string;
|
|
74
75
|
'ta.error.forbiddenNever': string;
|
|
75
76
|
'ta.notices': string;
|
|
76
77
|
'ta.notice.picture': string;
|
|
@@ -75,6 +75,7 @@ exports.COMMON_EN = {
|
|
|
75
75
|
'ta.error.forbiddenHint': 'The owner of this Ta or an admin can let you',
|
|
76
76
|
'ta.error.forbiddenAsk': 'Ask',
|
|
77
77
|
'ta.error.limit': 'Too many people are working in this Ta at once; try again in a moment',
|
|
78
|
+
'ta.error.deviceNotWaiting': 'This device is not waiting to be let in: it may be in already, or removed',
|
|
78
79
|
'ta.error.forbiddenNever': 'This is kept out of reach of everyone let in',
|
|
79
80
|
'ta.notices': 'Notifications',
|
|
80
81
|
'ta.notice.picture': 'Picture of the extension, such as a QR code to scan',
|
|
@@ -58,6 +58,17 @@ export declare const DISCOVER_EN: {
|
|
|
58
58
|
'ta.open.open': string;
|
|
59
59
|
'ta.open.notALink': string;
|
|
60
60
|
'ta.open.failed': string;
|
|
61
|
+
'ta.access.ask': string;
|
|
62
|
+
'ta.access.new': string;
|
|
63
|
+
'ta.access.updated': string;
|
|
64
|
+
'ta.access.full': string;
|
|
65
|
+
'ta.access.app': string;
|
|
66
|
+
'ta.access.browser': string;
|
|
67
|
+
'ta.access.from': string;
|
|
68
|
+
'ta.access.fromLink': string;
|
|
69
|
+
'ta.access.fromMarket': string;
|
|
70
|
+
'ta.access.allow': string;
|
|
71
|
+
'ta.access.failed': string;
|
|
61
72
|
'ta.search.pages': string;
|
|
62
73
|
'ta.search.all': string;
|
|
63
74
|
'ta.search.more': string;
|
|
@@ -62,6 +62,17 @@ exports.DISCOVER_EN = {
|
|
|
62
62
|
'ta.open.open': 'Open',
|
|
63
63
|
'ta.open.notALink': 'This is not a link of an extension',
|
|
64
64
|
'ta.open.failed': 'Could not open it',
|
|
65
|
+
'ta.access.ask': 'Allow {name} to run?',
|
|
66
|
+
'ta.access.new': 'It is not one you made: it runs once you allow it.',
|
|
67
|
+
'ta.access.updated': 'It changed since you allowed it: this version runs once you allow it again.',
|
|
68
|
+
'ta.access.full': 'It asks for all Ta can do: read and write the files of this computer, run commands, read your conversations. Allow only what you trust.',
|
|
69
|
+
'ta.access.app': 'It asks for its own pages and the notices, widgets and voice of Ta, not for your files or conversations.',
|
|
70
|
+
'ta.access.browser': 'It asks only for its own pages and data, as a web page does, not for your files or conversations.',
|
|
71
|
+
'ta.access.from': 'From: {source}.',
|
|
72
|
+
'ta.access.fromLink': 'a link someone shared',
|
|
73
|
+
'ta.access.fromMarket': 'the market',
|
|
74
|
+
'ta.access.allow': 'Allow',
|
|
75
|
+
'ta.access.failed': 'Could not allow it',
|
|
65
76
|
'ta.search.pages': 'Pages',
|
|
66
77
|
'ta.search.all': 'Show all {count}',
|
|
67
78
|
'ta.search.more': 'Show more',
|
|
@@ -105,6 +105,22 @@ export declare const SETTINGS_EN: {
|
|
|
105
105
|
'ta.settings.keepAliveDescription': string;
|
|
106
106
|
'ta.settings.retention': string;
|
|
107
107
|
'ta.settings.retentionDescription': string;
|
|
108
|
+
'ta.settings.trust': string;
|
|
109
|
+
'ta.settings.trustDescription': string;
|
|
110
|
+
'ta.settings.trust.off': string;
|
|
111
|
+
'ta.settings.trust.browser': string;
|
|
112
|
+
'ta.settings.trust.ask': string;
|
|
113
|
+
'ta.settings.trust.all': string;
|
|
114
|
+
'ta.settings.trust.offHint': string;
|
|
115
|
+
'ta.settings.trust.browserHint': string;
|
|
116
|
+
'ta.settings.trust.askHint': string;
|
|
117
|
+
'ta.settings.trust.allHint': string;
|
|
118
|
+
'ta.settings.sandbox': string;
|
|
119
|
+
'ta.settings.sandboxDescription': string;
|
|
120
|
+
'ta.settings.sandboxLocal': string;
|
|
121
|
+
'ta.settings.sandboxLocalDescription': string;
|
|
122
|
+
'ta.settings.sandboxParts': string;
|
|
123
|
+
'ta.settings.sandboxPartsDescription': string;
|
|
108
124
|
'ta.settings.minutes': string;
|
|
109
125
|
'ta.settings.days': string;
|
|
110
126
|
'ta.settings.never': string;
|
|
@@ -236,5 +252,17 @@ export declare const SETTINGS_EN: {
|
|
|
236
252
|
'ta.settings.cwdChange': string;
|
|
237
253
|
'ta.settings.cwdDescription': string;
|
|
238
254
|
'ta.workingDirectory.changed': string;
|
|
255
|
+
'ta.settings.installApps': string;
|
|
256
|
+
'ta.settings.installAppsDescription': string;
|
|
257
|
+
'ta.settings.apps': string;
|
|
258
|
+
'ta.apps.install': string;
|
|
259
|
+
'ta.apps.remove': string;
|
|
260
|
+
'ta.apps.open': string;
|
|
261
|
+
'ta.apps.installed': string;
|
|
262
|
+
'ta.apps.noEntry': string;
|
|
263
|
+
'ta.apps.removed': string;
|
|
264
|
+
'ta.apps.off': string;
|
|
265
|
+
'ta.apps.gone': string;
|
|
266
|
+
'ta.apps.goneHint': string;
|
|
239
267
|
};
|
|
240
268
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -108,6 +108,22 @@ exports.SETTINGS_EN = {
|
|
|
108
108
|
'ta.settings.keepAliveDescription': 'An extension that starts when opened stops after this long in the background, and opens again where you left it until then',
|
|
109
109
|
'ta.settings.retention': 'Clear unused temporary extensions',
|
|
110
110
|
'ta.settings.retentionDescription': 'Extensions opened without installing go after this many days unused, unless they are in Mine',
|
|
111
|
+
'ta.settings.trust': 'Extensions others made',
|
|
112
|
+
'ta.settings.trustDescription': 'How far extensions others shared with you may reach: a web page, each version you allow, or all of Ta',
|
|
113
|
+
'ta.settings.trust.off': 'Off',
|
|
114
|
+
'ta.settings.trust.browser': 'Web only',
|
|
115
|
+
'ta.settings.trust.ask': 'Ask each',
|
|
116
|
+
'ta.settings.trust.all': 'Full',
|
|
117
|
+
'ta.settings.trust.offHint': 'None of them runs, and you are not asked',
|
|
118
|
+
'ta.settings.trust.browserHint': 'They get only their own pages and data, as a web page does; one that asks more does not run',
|
|
119
|
+
'ta.settings.trust.askHint': 'You allow what each asks, and again after each update; below full access it runs apart from Ta',
|
|
120
|
+
'ta.settings.trust.allHint': 'They run with all Ta can do (your files, your chats) without asking. Only if you trust whoever shares with you',
|
|
121
|
+
'ta.settings.sandbox': 'Run them apart on this device',
|
|
122
|
+
'ta.settings.sandboxDescription': 'Off: those that need to run apart from Ta do not run on this device',
|
|
123
|
+
'ta.settings.sandboxLocal': 'Keep their local data',
|
|
124
|
+
'ta.settings.sandboxLocalDescription': 'Their local storage is kept with their data, up to 1 MB each',
|
|
125
|
+
'ta.settings.sandboxParts': "Let them use Ta's components",
|
|
126
|
+
'ta.settings.sandboxPartsDescription': "Off: they draw only their own elements, without Ta's text, dialogs and icons",
|
|
111
127
|
'ta.settings.minutes': '{count} min',
|
|
112
128
|
'ta.settings.days': '{count} days',
|
|
113
129
|
'ta.settings.never': 'Never',
|
|
@@ -239,5 +255,17 @@ exports.SETTINGS_EN = {
|
|
|
239
255
|
'ta.settings.cwdChange': 'Change…',
|
|
240
256
|
'ta.settings.cwdDescription': 'New chats, terminals and the tasks of the double open here; open chats stay in their own: {path}',
|
|
241
257
|
'ta.workingDirectory.changed': 'Default directory: {path}',
|
|
258
|
+
'ta.settings.installApps': 'Install pages as apps',
|
|
259
|
+
'ta.settings.installAppsDescription': 'Hold a page in Quick open to install it as an app of this computer, with a window of its own. Off, those installed still open',
|
|
260
|
+
'ta.settings.apps': 'Installed as apps',
|
|
261
|
+
'ta.apps.install': 'Install as app',
|
|
262
|
+
'ta.apps.remove': 'Remove from apps',
|
|
263
|
+
'ta.apps.open': 'Open',
|
|
264
|
+
'ta.apps.installed': '{name} is installed as an app: open it from the apps of this computer from now on',
|
|
265
|
+
'ta.apps.noEntry': 'The window of {name} is open, but it could not be put among the apps of this computer',
|
|
266
|
+
'ta.apps.removed': '{name} is removed from the apps',
|
|
267
|
+
'ta.apps.off': 'Installing pages as apps is turned off in Settings',
|
|
268
|
+
'ta.apps.gone': 'This page is no longer here',
|
|
269
|
+
'ta.apps.goneHint': 'Its extension may have been removed or turned off.',
|
|
242
270
|
};
|
|
243
271
|
//# sourceMappingURL=settings.js.map
|
|
@@ -73,6 +73,7 @@ exports.COMMON_JA = {
|
|
|
73
73
|
'ta.error.forbiddenHint': 'この Ta の所有者または管理者が権限を与えることができます',
|
|
74
74
|
'ta.error.forbiddenAsk': '申し込む',
|
|
75
75
|
'ta.error.limit': 'この Ta で同時に作業している人が多すぎます。少しの間、もう一度試してください',
|
|
76
|
+
'ta.error.deviceNotWaiting': 'このデバイスは許可待ちではありません。すでに許可されたか、削除された可能性があります',
|
|
76
77
|
'ta.error.forbiddenNever': 'これはアクセスを許可されたすべての人に対して制限されています',
|
|
77
78
|
'ta.notices': '通知',
|
|
78
79
|
'ta.notice.picture': '拡張が提供する画像(スキャンする QR コードなど)',
|
|
@@ -60,6 +60,17 @@ exports.DISCOVER_JA = {
|
|
|
60
60
|
'ta.open.open': '開く',
|
|
61
61
|
'ta.open.notALink': 'これは拡張機能のリンクではありません',
|
|
62
62
|
'ta.open.failed': '開けませんでした',
|
|
63
|
+
'ta.access.ask': '「{name}」の実行を許可しますか?',
|
|
64
|
+
'ta.access.new': 'あなたが作ったものではないため、許可すると実行されます。',
|
|
65
|
+
'ta.access.updated': '許可した後に更新されました。この版は再度許可すると実行されます。',
|
|
66
|
+
'ta.access.full': 'Ta のすべての機能を求めています:このパソコンのファイルの読み書き、コマンドの実行、会話の閲覧。信頼できるものだけ許可してください。',
|
|
67
|
+
'ta.access.app': '自分のページと、Ta の通知・ウィジェット・音声だけを求めています。ファイルや会話は求めていません。',
|
|
68
|
+
'ta.access.browser': 'ウェブページと同じく、自分のページとデータだけを求めています。ファイルや会話は求めていません。',
|
|
69
|
+
'ta.access.from': '提供元:{source}。',
|
|
70
|
+
'ta.access.fromLink': '誰かが共有したリンク',
|
|
71
|
+
'ta.access.fromMarket': 'マーケット',
|
|
72
|
+
'ta.access.allow': '許可',
|
|
73
|
+
'ta.access.failed': '許可できませんでした',
|
|
63
74
|
'ta.search.pages': 'ページ',
|
|
64
75
|
'ta.search.all': 'すべて表示 {count} 件',
|
|
65
76
|
'ta.search.more': 'さらに表示',
|
|
@@ -107,6 +107,22 @@ exports.SETTINGS_JA = {
|
|
|
107
107
|
'ta.settings.keepAliveDescription': '開いたときに起動する拡張機能は、バックグラウンドで離れた後、この時間経つと停止します。その間に再度開くと、元の位置に戻ります',
|
|
108
108
|
'ta.settings.retention': '使わない一時的な拡張機能を削除',
|
|
109
109
|
'ta.settings.retentionDescription': 'インストール不要で開いた拡張機能は、この日数使われないと削除されます。「私の」に保存されたものは削除されません',
|
|
110
|
+
'ta.settings.trust': '他の人が共有した拡張機能',
|
|
111
|
+
'ta.settings.trustDescription': '共有された拡張機能がどこまで使えるか:ウェブページ並み、バージョンごとに確認、または Ta のすべて',
|
|
112
|
+
'ta.settings.trust.off': 'オフ',
|
|
113
|
+
'ta.settings.trust.browser': 'ウェブ並み',
|
|
114
|
+
'ta.settings.trust.ask': '都度確認',
|
|
115
|
+
'ta.settings.trust.all': 'すべて許可',
|
|
116
|
+
'ta.settings.trust.offHint': '他の人が共有した拡張機能はどれも動かず、確認もしません',
|
|
117
|
+
'ta.settings.trust.browserHint': '自分のページとデータだけ、ウェブページと同じ。それ以上を求めるものは動きません',
|
|
118
|
+
'ta.settings.trust.askHint': '求める権限はあなたが許可し、更新後にもう一度確認。フルアクセス未満は Ta から分離して動きます',
|
|
119
|
+
'ta.settings.trust.allHint': '確認なしで Ta のすべて(ファイル、会話)を使えます。共有した人を信頼できるときだけ',
|
|
120
|
+
'ta.settings.sandbox': 'このデバイスで分離して実行',
|
|
121
|
+
'ta.settings.sandboxDescription': 'オフ:分離が必要な拡張機能はこのデバイスでは動きません',
|
|
122
|
+
'ta.settings.sandboxLocal': 'ローカルデータを保存',
|
|
123
|
+
'ta.settings.sandboxLocalDescription': 'ローカルに保存したデータを拡張機能のデータと一緒に保存(各 1 MB まで)',
|
|
124
|
+
'ta.settings.sandboxParts': 'Ta のコンポーネントを使わせる',
|
|
125
|
+
'ta.settings.sandboxPartsDescription': 'オフ:拡張機能が自分で描いたものだけ。Ta の文字組み、ダイアログ、アイコンなし',
|
|
110
126
|
'ta.settings.minutes': '{count} 分',
|
|
111
127
|
'ta.settings.days': '{count} 日',
|
|
112
128
|
'ta.settings.never': 'なし',
|
|
@@ -238,5 +254,17 @@ exports.SETTINGS_JA = {
|
|
|
238
254
|
'ta.settings.cwdChange': '変更…',
|
|
239
255
|
'ta.settings.cwdDescription': '新しいチャット、ターミナル、分身が派遣したタスクはここで開きます。既存のチャットは各自のディレクトリのままです:{path}',
|
|
240
256
|
'ta.workingDirectory.changed': 'デフォルトディレクトリが {path} に変更されました',
|
|
257
|
+
'ta.settings.installApps': 'アプリとしてインストール',
|
|
258
|
+
'ta.settings.installAppsDescription': 'クイックオープンでページを長押しすると、このコンピュータのアプリとして専用ウインドウで使えます。オフにしても、インストール済みのものは開けます',
|
|
259
|
+
'ta.settings.apps': 'アプリとしてインストール済み',
|
|
260
|
+
'ta.apps.install': 'アプリとしてインストール',
|
|
261
|
+
'ta.apps.remove': 'アプリから削除',
|
|
262
|
+
'ta.apps.open': '開く',
|
|
263
|
+
'ta.apps.installed': '{name} をアプリとしてインストールしました。これからはコンピュータのアプリから開けます',
|
|
264
|
+
'ta.apps.noEntry': '{name} のウインドウは開きましたが、コンピュータのアプリに追加できませんでした',
|
|
265
|
+
'ta.apps.removed': '{name} をアプリから削除しました',
|
|
266
|
+
'ta.apps.off': '設定で「アプリとしてインストール」がオフになっています',
|
|
267
|
+
'ta.apps.gone': 'このページはもうありません',
|
|
268
|
+
'ta.apps.goneHint': '拡張機能が削除されたか、オフになっている可能性があります。',
|
|
241
269
|
};
|
|
242
270
|
//# sourceMappingURL=settings.js.map
|