Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

My Cloud being updated: say so, not "can't be reached" (draft, look needs approval)

milind-soni96c2fd2f41e8
diff --git a/cloud-work-preview.html b/cloud-work-preview.html
new file mode 100644
index 0000000000..4140583d66
--- /dev/null
+++ b/cloud-work-preview.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Cloud Work Preview</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/cloud-work-preview.tsx"></script>
+ </body>
+</html>
diff --git a/electron/cloud-account.mjs b/electron/cloud-account.mjs
index e29518a2ae..02e20287ce 100644
--- a/electron/cloud-account.mjs
+++ b/electron/cloud-account.mjs
@@ -1,6 +1,7 @@
import { createManagedDesktopStore, retryDelay, unreadableRecord } from "./managed-desktop.mjs";
import { CLOUD_MACHINE_CONNECTABLE, cloudUnreachableText, parseCloudCredit, parseCloudLanding, parseCloudOffer, parseCloudPurchase, parseCloudSummary, parseCloudTeams, parseCloudRoom, parseCloudTrial, parseCloudUsage, parsePairingGrant, parsePublicOffer, withoutTrial } from "./cloud-home.mjs";
import { CLOUD_ID, CLOUD_SWATCHES, cleanCloudListName, ORGANIZATION_BLOCKS, otherOwnClouds, ownCloud, parseCloudList, parseCloudRenewal, parseOrganizations, releaseVersion } from "./cloud-list.mjs";
+import { anyOperation, OPERATION_REFRESH_MS } from "./cloud-operation.mjs";
import { planTeam, teamPlan } from "./cloud-team-plan.mjs";
import { cleanCode, cleanEmail, failureKind, parseSignInStart, READ_WAIT_MS, resetOffered, retryAfterSeconds, settledWithin, SIGN_IN_START, SIGN_IN_TRIES, SIGN_IN_VERIFY, signInBlock, signInIdentity, startFailure, verifyFailure } from "./cloud-signin.mjs";
import nativeText from "./native-text.cjs";
@@ -307,7 +308,7 @@ export function createCloudAccountClient({ store, openBrowser, platform, deviceN
const settingUp = planCloud?.status === "provisioning" || (access.status === "active" && !planCloud) || Boolean(purchase) || otherOwnClouds(clouds).some(cloud => cloud.status === "setting_up");
const added = adding ? clouds?.find(cloud => cloud.id === adding.cloudId) ?? null : null;
const paying = watchingAdd() && Boolean(adding.url) && (!added || added.status === "checkout");
- const delay = (watching() && planCloud?.status !== "ready") || paying ? WATCH_REFRESH_MS : settingUp ? SETUP_REFRESH_MS : awaitingWake() ? ASLEEP_REFRESH_MS : REFRESH_MS;
+ const delay = (watching() && planCloud?.status !== "ready") || paying ? WATCH_REFRESH_MS : settingUp ? SETUP_REFRESH_MS : awaitingWake() ? ASLEEP_REFRESH_MS : anyOperation(machine, clouds) ? OPERATION_REFRESH_MS : REFRESH_MS; // an operation of ours: sooner
schedule(refresh, Math.min(delay, verifiedUntil - now()));
} catch (error) {
if (!current(stamp)) return state();
diff --git a/electron/cloud-home.d.mts b/electron/cloud-home.d.mts
index dcf02fee15..b3a3ffd923 100644
--- a/electron/cloud-home.d.mts
+++ b/electron/cloud-home.d.mts
@@ -18,6 +18,8 @@ export interface CloudMachine {
unreachable?: { cause: CloudUnreachableCause; since: number };
/** Only for a plan that sleeps when idle: whether it is awake now, as the Admin says. */
power?: import("./cloud-power.mjs").CloudPower;
+ /** An operation of the Admin's own has it down now: an update, resize, move, restore or start (cloud-operation.mjs). */
+ operation?: import("./cloud-operation.mjs").CloudOperation;
/** The Admin lets this account's computer move to it now (its `moves` gate). */
moves?: true;
/** It ended (a trial not paid, a plan cancelled) and the Admin still holds it until it is deleted. `homecoming`: the one
diff --git a/electron/cloud-home.mjs b/electron/cloud-home.mjs
index 7eabbeaeff..447805dcc2 100644
--- a/electron/cloud-home.mjs
+++ b/electron/cloud-home.mjs
@@ -1,5 +1,6 @@
// A pairing code lives in main-process memory for one navigation: never persisted, never sent to a renderer, only in a link's hash.
import environments from "./environments.cjs";
+import { parseCloudOperation } from "./cloud-operation.mjs";
import nativeText from "./native-text.cjs";
const { englishText } = nativeText;
@@ -77,8 +78,10 @@ export function parseCloudSummary(input) {
const homecoming = record(input.hold) ? parseHomecoming(input.hold.homecoming) : null;
const hold = record(input.hold) && moment(input.hold.until) ? { until: input.hold.until, ...(homecoming ? { homecoming } : {}) } : null;
const formerOrigins = parseFormerOrigins(input.formerOrigins, origin);
+ // Additive: an operation of the Admin's own has it down now (an update, resize, move, restore or start: cloud-operation.mjs).
+ const operation = ["ready", "provisioning", "failed"].includes(status) ? parseCloudOperation(input.operation) : null;
return { status, ...(origin ? { origin } : {}), ...(formerOrigins.length ? { formerOrigins } : {}), ...(setup ? { setup } : {}), ...(retryAt ? { retryAt } : {}), ...(disk ? { disk } : {}), ...(unreachable ? { unreachable } : {}), ...(power ? { power } : {}),
- ...(input.moves === true ? { moves: true } : {}), ...(hold ? { hold } : {}) };
+ ...(input.moves === true ? { moves: true } : {}), ...(hold ? { hold } : {}), ...(operation ? { operation } : {}) };
}
const UNREACHABLE_TEXT = Object.freeze({ host: "native.cloud.unreachable.host", no_answer: "native.cloud.unreachable.noAnswer" });
diff --git a/electron/cloud-list.d.mts b/electron/cloud-list.d.mts
index a73ec87c5c..5ce4a55e23 100644
--- a/electron/cloud-list.d.mts
+++ b/electron/cloud-list.d.mts
@@ -33,6 +33,8 @@ export interface CloudListEntry {
removable?: true;
/** A Ready Cloud whose plan sleeps: whether it is asleep now. */
power?: import("./cloud-power.mjs").CloudPower;
+ /** An operation of the Admin's own has it down now (cloud-operation.mjs). */
+ operation?: import("./cloud-operation.mjs").CloudOperation;
}
/** What this app says of a listed Cloud it doesn't open: ended, its checkout not finished, a payment problem, or being set up. */
export type CloudState = "ended" | "checkout" | "payment" | "setup";
diff --git a/electron/cloud-list.mjs b/electron/cloud-list.mjs
index cb17f281b1..5eb7e4f29b 100644
--- a/electron/cloud-list.mjs
+++ b/electron/cloud-list.mjs
@@ -1,6 +1,7 @@
// The verified session's `clouds` (contract v1, additive): every Cloud this person owns and every team's Cloud they are
// in, the account's primary Cloud first. Only the Admin lists a Cloud; a page never names one.
import { CLOUD_SETUP_STEPS, homeOrigin, parseCloudPower, parseFormerOrigins } from "./cloud-home.mjs";
+import { parseCloudOperation } from "./cloud-operation.mjs";
import environments from "./environments.cjs";
export const MAX_CLOUDS = 20;
@@ -64,10 +65,12 @@ function parseCloudEntry(input) {
const deleteAfter = DEAD.includes(input.status) && Number.isSafeInteger(input.deleteAfter) && input.deleteAfter > 0 ? input.deleteAfter : null;
const removable = input.removable === true && DEAD.includes(input.status) && managed && input.role === "owner" && teamId === null;
const formerOrigins = parseFormerOrigins(input.formerOrigins, origin);
+ // Additive: an operation of the Admin's own has it down now (cloud-operation.mjs), as the session's `cloud.operation`.
+ const operation = managed && ["ready", "setting_up"].includes(input.status) ? parseCloudOperation(input.operation) : null;
return { id: input.id, name, color: Object.hasOwn(CLOUD_SWATCH_COLORS, input.color) ? input.color : null, role: input.role,
tier: typeof input.tier === "string" && TIER.test(input.tier) ? input.tier : null, runsOn: input.runsOn, status: input.status, origin, teamId,
primary: input.primary, managed, ...(formerOrigins.length ? { formerOrigins } : {}), ...(setup ? { setup } : {}), ...(lastSeenAt ? { lastSeenAt } : {}), ...(version ? { version } : {}), ...(power ? { power } : {}),
- ...(deleteAfter ? { deleteAfter } : {}), ...(removable ? { removable: true } : {}) };
+ ...(deleteAfter ? { deleteAfter } : {}), ...(removable ? { removable: true } : {}), ...(operation ? { operation } : {}) };
}
/** What this app says of a listed Cloud it doesn't open, on this computer's own screen (never by its address): it has ended
@@ -170,7 +173,8 @@ export function otherOwnClouds(clouds) {
export function cloudMachine(cloud) {
const status = cloud ? MACHINE_STATUS[cloud.status] : undefined;
if (!status) return null;
- return { status, ...(cloud.origin ? { origin: cloud.origin } : {}), ...(status === "provisioning" && cloud.setup?.step ? { setup: { step: cloud.setup.step } } : {}) };
+ return { status, ...(cloud.origin ? { origin: cloud.origin } : {}), ...(status === "provisioning" && cloud.setup?.step ? { setup: { step: cloud.setup.step } } : {}),
+ ...(cloud.operation ? { operation: cloud.operation } : {}) };
}
/** How far along a setup step is (0 to 1). */
diff --git a/electron/cloud-operation.d.mts b/electron/cloud-operation.d.mts
new file mode 100644
index 0000000000..31ecdfd649
--- /dev/null
+++ b/electron/cloud-operation.d.mts
@@ -0,0 +1,10 @@
+/** What the Admin says while an operation of its own has a Cloud down (cloud-operation.mjs). `kind`: one of
+ * CLOUD_OPERATION_KINDS, or a newer one this app reads as "restarting"; `until`: its own deadline, past which the Admin's alert
+ * has gone out; `expectedAt`: when it is usually back, only where the Admin measured it; `backup`: the update backs the whole
+ * Cloud up first; `bigger`: a resize to a bigger size. Times in epoch ms. */
+export interface CloudOperation { kind: string; since: number; until: number; expectedAt?: number; backup?: true; bigger?: true }
+export declare const CLOUD_OPERATION_KINDS: readonly string[];
+export declare const OPERATION_REFRESH_MS: number;
+export declare function parseCloudOperation(input: unknown): CloudOperation | null;
+export declare function cloudOperationAt(state: unknown, origin: string | null | undefined): CloudOperation | null;
+export declare function anyOperation(machine: { operation?: CloudOperation } | null | undefined, clouds: unknown): boolean;
diff --git a/electron/cloud-operation.mjs b/electron/cloud-operation.mjs
new file mode 100644
index 0000000000..be8d0a9954
--- /dev/null
+++ b/electron/cloud-operation.mjs
@@ -0,0 +1,32 @@
+// What the Admin says while an operation of its own has a Cloud down: an update, a resize, a move, a disk move, a restore or
+// a start (the session's `cloud.operation` and each `clouds[].operation`, additive). The window then says what is happening
+// instead of "can't be reached", and goes on looking by itself. Display only: it never opens, wakes or pairs anything.
+
+/** The kinds this app has its own words for; another kind the Admin adds later reads as "restarting". */
+export const CLOUD_OPERATION_KINDS = Object.freeze(["update", "resize", "move", "disk", "restore", "start"]);
+/** While the Admin says an operation has a Cloud down, its session is read this often, so the window follows it closely. */
+export const OPERATION_REFRESH_MS = 15_000;
+
+const KIND = /^[a-z][a-z-]{0,23}$/;
+const record = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
+const moment = (value) => Number.isSafeInteger(value) && value > 0;
+
+/** A malformed operation is none; a malformed estimate is left out. */
+export function parseCloudOperation(input) {
+ if (!record(input) || typeof input.kind !== "string" || !KIND.test(input.kind) || !moment(input.since) || !moment(input.until)) return null;
+ return { kind: input.kind, since: input.since, until: input.until, ...(moment(input.expectedAt) ? { expectedAt: input.expectedAt } : {}),
+ ...(input.backup === true ? { backup: true } : {}), ...(input.bigger === true ? { bigger: true } : {}) };
+}
+
+/** The operation the Admin says has the Cloud at `origin` down: My Cloud's own (the session's `cloud`), else that Cloud's in the
+ * session's list (a team's Cloud, another of the person's own). Null while signed out, for any other address, or when none. */
+export function cloudOperationAt(state, origin) {
+ if (state?.status !== "connected" || typeof origin !== "string" || !origin) return null;
+ const mine = state.machine;
+ if (mine?.origin === origin && mine.operation) return mine.operation;
+ const listed = Array.isArray(state.clouds) ? state.clouds.find((cloud) => cloud.origin === origin) : null;
+ return listed?.operation ?? null;
+}
+
+/** Whether any Cloud in the session is down for an operation now (its session is then read every OPERATION_REFRESH_MS). */
+export const anyOperation = (machine, clouds) => Boolean(machine?.operation) || (Array.isArray(clouds) && clouds.some((cloud) => Boolean(cloud?.operation)));
diff --git a/electron/cloud-operation.node-test.mjs b/electron/cloud-operation.node-test.mjs
new file mode 100644
index 0000000000..a5ea7ef8c7
--- /dev/null
+++ b/electron/cloud-operation.node-test.mjs
@@ -0,0 +1,88 @@
+// While an operation of the Admin's own has a Cloud down (an update, resize, move, restore or start: cloud-operation.mjs), the
+// window says what it is instead of "can't be reached", looks again by itself, and opens the Cloud once it answers.
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { parseCloudSummary } from "./cloud-home.mjs";
+import { parseCloudList } from "./cloud-list.mjs";
+import { anyOperation, cloudOperationAt, OPERATION_REFRESH_MS, parseCloudOperation } from "./cloud-operation.mjs";
+import { HOME_SCREEN_PATH } from "./home-window.mjs";
+import { CLIENT, CLIENT_A, CLOUD, connected, LOCAL, world } from "./fixtures/home-window-world.mjs";
+
+const UPDATE = { kind: "update", since: 1_000_000, until: 2_080_000, expectedAt: 1_180_000 };
+
+test("an operation is read whole or not at all; a malformed estimate is left out; a kind this app doesn't know is kept", () => {
+ assert.deepEqual(parseCloudOperation(UPDATE), UPDATE);
+ assert.deepEqual(parseCloudOperation({ ...UPDATE, expectedAt: "soon", backup: true, bigger: "yes", label: "its move to Hetzner" }),
+ { kind: "update", since: 1_000_000, until: 2_080_000, backup: true }, "never the Admin's label, only fixed fields");
+ assert.deepEqual(parseCloudOperation({ kind: "teleport", since: 5, until: 9 }), { kind: "teleport", since: 5, until: 9 });
+ for (const bad of [null, [], { ...UPDATE, kind: "<b>" }, { ...UPDATE, kind: 3 }, { ...UPDATE, since: 0 }, { ...UPDATE, until: 1.5 }, { kind: "update" }]) assert.equal(parseCloudOperation(bad), null);
+});
+
+test("the session's cloud and each listed Cloud carry it; an older Admin's (none) reads as before", () => {
+ const summary = parseCloudSummary({ state: "ready", origin: CLOUD, operation: UPDATE });
+ assert.deepEqual(summary.operation, UPDATE);
+ assert.equal("operation" in parseCloudSummary({ state: "ready", origin: CLOUD }), false);
+ assert.equal("operation" in parseCloudSummary({ state: "stopped", origin: CLOUD, operation: UPDATE }), false, "a stopped Cloud has no operation of ours");
+ const [entry] = parseCloudList([{ ...CLIENT_A, operation: { kind: "move", since: 1, until: 2 } }]);
+ assert.deepEqual(entry.operation, { kind: "move", since: 1, until: 2 });
+ assert.equal(anyOperation(summary, null), true);
+ assert.equal(anyOperation({ status: "ready" }, [entry]), true);
+ assert.equal(anyOperation({ status: "ready" }, [CLIENT_A]), false);
+ const state = { ...connected({ operation: UPDATE }), clouds: [entry] };
+ assert.deepEqual([cloudOperationAt(state, CLOUD), cloudOperationAt(state, CLIENT), cloudOperationAt(state, "https://other.example"), cloudOperationAt({ status: "signed-out" }, CLOUD)],
+ [UPDATE, { kind: "move", since: 1, until: 2 }, null, null]);
+});
+
+test("My Cloud being updated: this computer's screen says so, never \"can't reach\", and opens it by itself once it answers", async () => {
+ const w = world({ cloud: { down: true }, state: connected({ operation: UPDATE }) });
+ await w.home.show();
+ assert.deepEqual(w.home.view(), { screen: "working", operation: UPDATE });
+ assert.deepEqual(w.went.at(-1), [`${LOCAL}${HOME_SCREEN_PATH}`, null]);
+ assert.ok(w.timers.length > 0 && w.timers.every((timer) => timer.at - w.clock <= OPERATION_REFRESH_MS), "it looks again by itself, within OPERATION_REFRESH_MS");
+ // The update is done: the Admin says nothing more, the Cloud answers, and the window goes there without a press.
+ w.cloud.down = false;
+ w.state = connected();
+ await w.later(OPERATION_REFRESH_MS);
+ for (let i = 0; i < 10; i++) await new Promise((resolve) => setImmediate(resolve));
+ assert.equal(w.went.at(-1)[1], CLOUD, "My Cloud opens");
+ // The same Cloud down with nothing of ours on it is the offline screen, as before.
+ const plain = world({ cloud: { down: true } });
+ await plain.home.show();
+ assert.equal(plain.home.view().screen, "offline");
+});
+
+test("a Cloud the Admin is starting again says so, never its setup or a failure, and its address is never looked up", async () => {
+ const start = { kind: "start", since: 1_000_000, until: 2_800_000 };
+ for (const machine of [{ status: "provisioning", setup: { step: "starting" }, operation: start }, { status: "failed", operation: start }]) {
+ const w = world({ state: connected(machine) });
+ await w.home.show();
+ assert.deepEqual(w.home.view(), { screen: "working", operation: start }, machine.status);
+ assert.deepEqual(w.fetched, [], machine.status);
+ }
+ // Without the Admin's word: its setup, as before.
+ const before = world({ state: connected({ status: "provisioning", setup: { step: "starting" } }) });
+ await before.home.show();
+ assert.equal(before.home.view().screen, "setup");
+});
+
+test("another Cloud of the person's own being moved: its screen names it", async () => {
+ const move = { kind: "move", since: 1_000_000, until: 4_600_000 };
+ const w = world({ client: { down: true }, state: { ...connected(), clouds: [{ ...CLIENT_A, operation: move }] } });
+ await w.home.show({ place: { cloud: "c-a" } });
+ assert.deepEqual(w.home.view(), { screen: "working", operation: move, name: "Client A" });
+});
+
+test("the Cloud's own page asks what has it down: the Admin's word for the place on screen only, read again when it is old", async () => {
+ const w = world({ state: { ...connected({ operation: UPDATE }), verifiedAt: 1_000_000 } });
+ await w.home.refresh();
+ assert.deepEqual(await w.home.operation(), UPDATE);
+ w.state = { ...connected(), verifiedAt: 1_000_000 };
+ assert.equal(await w.home.operation(), null);
+ // An old read is read again first when the account can (this fixture's can't): it still answers what it has, never throws.
+ const stale = world({ state: { ...connected({ operation: UPDATE }), verifiedAt: 1 } });
+ await stale.home.refresh();
+ assert.deepEqual(await stale.home.operation(), UPDATE);
+ const signedOut = world({ state: { status: "signed-out" } });
+ assert.equal(await signedOut.home.operation(), null);
+});
diff --git a/electron/home-window.d.mts b/electron/home-window.d.mts
index 522e808f9d..3879680e5f 100644
--- a/electron/home-window.d.mts
+++ b/electron/home-window.d.mts
@@ -10,6 +10,9 @@ export type HomeView = { name?: string } & (
* Admin knows of nothing wrong. `retryAt`: the Admin asked this app to wait (429), and it tries again by itself then. */
| { screen: "offline"; reason?: string; cause?: "host" | "no_answer" | "network"; host?: string; retryAt?: number }
| { screen: "signin"; other?: true }
+ /** An operation of the Admin's own has the place down now (an update, resize, move, restore or start): what it is, and when
+ * it is usually back, as the Admin says (cloud-operation.mjs). The window looks again by itself; nothing to press. */
+ | { screen: "working"; operation: import("./cloud-operation.mjs").CloudOperation }
/** `member`: a team's User, who can't subscribe or pay for it and is sent to its owner. */
| { screen: "plan"; machine: "stopped" | "payment-problem" | "failed"; member?: true }
/** A Cloud the session's list says isn't running, so nothing looks up its address: it has ended (`deleteAt`: when its kept
@@ -33,6 +36,8 @@ export interface HomeBridge {
repair(): Promise<void>;
/** My Cloud's own page only: the window reloaded it just now for its newer version. */
updating?: boolean;
+ /** The place's own page only (absent elsewhere, and in an app before it): what the Admin says has it down now, or null. */
+ operation?(): Promise<import("./cloud-operation.mjs").CloudOperation | null>;
}
export type Home = ({ kind: "computer" } | { kind: "cloud"; origin: string } | { kind: "signin"; other?: true })
@@ -108,6 +113,7 @@ export interface HomeWindow {
navigated(url: string): void;
failed(url: string, code?: number): boolean;
homePage(event: unknown): boolean;
+ operation(): Promise<import("./cloud-operation.mjs").CloudOperation | null>;
/** Asked once by the home page as it loads: the window reloaded it just now for its newer version. */
updating(event: unknown): boolean;
screenPage(event: unknown): boolean;
diff --git a/electron/home-window.mjs b/electron/home-window.mjs
index 2537da26b7..f078ce5e61 100644
--- a/electron/home-window.mjs
+++ b/electron/home-window.mjs
@@ -10,6 +10,7 @@
// Admin's team pairing (its claims are the Admin's), never an address a page supplied.
import { cloudHomeConnectUrl, cloudSetupOf, cloudUnreachableCause, cloudUnreachableText, machineSetup, readyCloudOrigin } from "./cloud-home.mjs";
import { cloudMachine, cloudState, myCloudOf, otherOwnClouds, ownCloud } from "./cloud-list.mjs";
+import { cloudOperationAt, OPERATION_REFRESH_MS } from "./cloud-operation.mjs";
import { asleepAnswer, BACKGROUND_HEADERS, openSleepingCloud, SIGNED_IN_MS } from "./cloud-power.mjs";
import nativeText from "./native-text.cjs";
import { createPairWait, nameNotFound } from "./home-pairing.mjs";
@@ -357,12 +358,26 @@ export function createHomeWindow(deps) {
goScreen();
}
+ /** The operation the Admin says has the place being opened down now (an update, resize, move, restore or start:
+ * cloud-operation.mjs), else null. */
+ const operationNow = () => cloudOperationAt(state(), otherPlace(opening) ? opening.origin : cloudOrigin());
+ /** While an operation of the Admin's own has the place down, this computer's screen says what it is, never "can't be
+ * reached" or a plan problem, and looks again by itself (the session is read every OPERATION_REFRESH_MS meanwhile). True
+ * when it showed that screen. */
+ function working(token) {
+ const operation = operationNow();
+ if (!operation || !wanted(token)) return false;
+ toScreen({ screen: "working", operation });
+ later(RETRY_MS, undefined, OPERATION_REFRESH_MS);
+ return true;
+ }
/** The place didn't answer: this computer's screen says so, with the Admin's reason for My Cloud, and looks again by itself.
* `unreached`: My Cloud's address, named once its page has kept failing to connect from here (home-pairing.mjs) while the
* Admin knows of nothing wrong. `held`: the origin whose next code waits: the screen looks again when that wait ends,
* and says when for the Admin's own 429. */
function offline(token, unreached = null, held = null) {
if (!wanted(token)) return;
+ if (working(token)) return;
const cause = otherPlace(opening) ? null : cloudUnreachableCause(state(), cloudOrigin());
const host = !cause && unreached && !otherPlace(opening) ? waits.unreachedHost(unreached) : null;
const until = held ? waits.until(held) : null, retryAt = held && waits.limited(held) ? until : null;
@@ -488,6 +503,8 @@ export function createHomeWindow(deps) {
// My Cloud the session's list says isn't running: its own screen, never its address, and nothing to look again for.
const listed = place.kind === "cloud" ? cloudScreen(myListed()) : null;
if (listed && NOT_RUNNING.has(listed.screen)) { clearRetry(); return toScreen(listed); }
+ // A Cloud the Admin is starting again (a resume) reads as its setup or a failure otherwise: say what it is.
+ if (machine?.operation && machine.status !== "ready" && !machine.hold && working(token)) return;
if (machine && (PLAN_PROBLEMS.has(machine.status) || (place.kind === "team" && machine.hold))) {
toScreen(planScreen(PLAN_PROBLEMS.has(machine.status) ? machine.status : "stopped", place)); later(); return;
}
@@ -833,6 +850,15 @@ export function createHomeWindow(deps) {
},
/** `event` came from the shown place's own page in this window (My Cloud's while it is home, or a team's Cloud's). */
homePage,
+ /** The operation the Admin says has the place on screen down now (cloud-operation.mjs), else null: its own page asks while
+ * its live stream is down, so it can say "Updating My Cloud" instead of "unable to connect". The session is read again
+ * first when the last read is OPERATION_REFRESH_MS old or more (the Admin is the one that knows; the place doesn't answer). */
+ async operation() {
+ const origin = placeOrigin(), current = state();
+ if (!origin || current?.status !== "connected") return null;
+ if (!(now() - (current.verifiedAt ?? 0) < OPERATION_REFRESH_MS)) await Promise.resolve(account()?.refresh?.()).catch(() => {});
+ return cloudOperationAt(state(), origin);
+ },
updating(event) {
if (!homePage(event)) return false;
const reloaded = updatingAt !== null && now() - updatingAt < UPDATING_MS;
@@ -868,6 +894,7 @@ export function installHomeWindowIpc({ ipcMain, homeWindow, cloudPage }) {
ipcMain.handle("home:remove", from("home:remove", screenPage, () => homeWindow.remove()));
ipcMain.handle("home:sign-in", from("home:sign-in", (event) => screenPage(event) || cloudPage(event) === "cloud" || (homeWindow.homePage(event) && homeWindow.shown()?.kind === "own"), () => homeWindow.signIn()));
ipcMain.handle("home:repair", from("home:repair", (event) => homeWindow.homePage(event), () => homeWindow.repair()));
+ ipcMain.handle("home:operation", from("home:operation", (event) => homeWindow.homePage(event), () => homeWindow.operation()));
ipcMain.on("home:page", (event) => { try { event.returnValue = homeWindow.homePage(event); } catch { event.returnValue = false; } });
ipcMain.on("home:updating", (event) => { try { event.returnValue = homeWindow.updating(event); } catch { event.returnValue = false; } });
}
diff --git a/electron/preload.cjs b/electron/preload.cjs
index c0f316b2d4..30d4f4dbc1 100644
--- a/electron/preload.cjs
+++ b/electron/preload.cjs
@@ -759,6 +759,8 @@ const bridge = {
? ipcRenderer.invoke("home:sign-in") : Promise.reject(new Error("Choose Sign in to sign in again.")),
repair: () => ipcRenderer.invoke("home:repair"),
updating: onHomePage && reloadedForUpdate(),
+ // My Cloud's own page, while its live stream is down: what the Admin says has it down (an update, resize, move...), or null.
+ operation: onHomePage ? () => ipcRenderer.invoke("home:operation") : undefined,
},
updatesConsent: {
state: () => ipcRenderer.invoke("updates-consent:state"),
diff --git a/src/cloud-work-preview.tsx b/src/cloud-work-preview.tsx
new file mode 100644
index 0000000000..e2828e7c25
--- /dev/null
+++ b/src/cloud-work-preview.tsx
@@ -0,0 +1,74 @@
+// Dev-only gallery of what the desktop window says while My Cloud doesn't answer, served at /cloud-work-preview.html; not in
+// the packaged app. It mounts the real HomeScreen (this computer's screen) and the real LiveConnectionStrip (the strip on My
+// Cloud's own page) over fake bridges, with no server behind them.
+// ?state=update|update-later|update-late|update-backup|resize|move|disk|restore|start|waking|unreachable|unreachable-host|payment
+// |strip|strip-help|strip-update|strip-update-late|chat-not-sent&era=today|now&skin=midnight|daylight&lang=de
+// `era=today` shows what each moment looks like without the Admin's `operation` (what an app before it, or an older Admin, shows).
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import type { HomeBridge, HomeView } from "../electron/home-window.mjs";
+import { ChatErrorBanner } from "@/components/ChatErrorBanner";
+import { HomeScreen } from "@/components/HomeScreen";
+import { LiveConnectionStrip } from "@/components/LiveConnectionStrip";
+import { loadLocale } from "@/lib/i18n";
+import { applySkinChoice, SKIN_IDS, type SkinId } from "@/lib/skins";
+import "./styles.css";
+
+const params = new URLSearchParams(location.search);
+const stateName = params.get("state") ?? "update";
+const era = params.get("era") === "today" ? "today" : "now";
+const skin = params.get("skin") ?? "midnight";
+applySkinChoice(SKIN_IDS.includes(skin as SkinId) ? (skin as SkinId) : "midnight");
+await loadLocale(params.get("lang") ?? "en");
+
+// The strip waits 4 s, then 20 s, before it says more: the gallery runs those waits at once.
+const realTimeout = window.setTimeout.bind(window);
+if (stateName.startsWith("strip") || stateName === "chat-not-sent") Object.assign(window, { setTimeout: (work: () => void, ms?: number) => realTimeout(work, Math.min(ms ?? 0, 30)) });
+
+const MINUTE = 60_000, now = Date.now();
+/** What the Admin says (its session's `cloud.operation`) at each moment, as the gallery fakes it. */
+const OPERATIONS: Record<string, Record<string, unknown>> = {
+ update: { kind: "update", since: now - 40_000, until: now + 17 * MINUTE, expectedAt: now + 2 * MINUTE },
+ "update-later": { kind: "update", since: now - 5 * MINUTE, until: now + 13 * MINUTE, expectedAt: now - 2 * MINUTE },
+ "update-late": { kind: "update", since: now - 25 * MINUTE, until: now - 7 * MINUTE, expectedAt: now - 22 * MINUTE },
+ "update-backup": { kind: "update", since: now - 3 * MINUTE, until: now + 177 * MINUTE, expectedAt: now + 68 * MINUTE, backup: true },
+ resize: { kind: "resize", since: now - 30_000, until: now + 17 * MINUTE, expectedAt: now + 2 * MINUTE, bigger: true },
+ move: { kind: "move", since: now - 4 * MINUTE, until: now + 60 * MINUTE },
+ disk: { kind: "disk", since: now - 4 * MINUTE, until: now + 30 * MINUTE },
+ restore: { kind: "restore", since: now - 2 * MINUTE, until: now + 28 * MINUTE },
+ start: { kind: "start", since: now - MINUTE, until: now + 29 * MINUTE },
+};
+OPERATIONS["strip-update"] = OPERATIONS.update!;
+OPERATIONS["strip-update-late"] = OPERATIONS["update-late"]!;
+OPERATIONS["chat-not-sent"] = OPERATIONS.update!;
+const operation = era === "now" ? OPERATIONS[stateName] ?? null : null;
+
+/** This computer's screen at each moment. Without an operation, what it shows today: an update or move restarting My Cloud
+ * reads as "can't reach" (the Admin keeps its health checks off it, so it names no reason), a start as setting up. */
+function viewOf(): HomeView {
+ if (stateName === "waking") return { screen: "waking" };
+ if (stateName === "unreachable") return { screen: "offline", reason: "", cause: "no_answer" };
+ if (stateName === "unreachable-host") return { screen: "offline", reason: "", cause: "host" };
+ if (stateName === "payment") return { screen: "plan", machine: "payment-problem" };
+ if (operation) return { screen: "working", operation } as unknown as HomeView;
+ if (stateName === "start") return { screen: "setup", step: "starting" };
+ return { screen: "offline" };
+}
+const view = viewOf();
+const bridge = { state: async () => view, onState: () => () => {}, retry: async () => view, signIn: async () => {}, repair: async () => {} } as unknown as HomeBridge;
+Object.assign(window, { ogb: { home: { ...bridge, operation: async () => operation } } });
+
+function Gallery() {
+ if (stateName.startsWith("strip") || stateName === "chat-not-sent") {
+ // The strip on the Cloud's own page while its live stream is down; for a send that failed meanwhile, the chat's error line
+ // above the composer too.
+ return <div className="flex h-screen flex-col bg-canvas text-ink">
+ <LiveConnectionStrip connected={false} hydrated />
+ <div className="flex-1" />
+ {stateName === "chat-not-sent" && <div className="pb-6"><ChatErrorBanner message="TypeError: Failed to fetch" onDismiss={() => {}} /></div>}
+ </div>;
+ }
+ return <HomeScreen bridge={bridge} manage={async () => {}} />;
+}
+
+createRoot(document.getElementById("root")!).render(<StrictMode><Gallery /></StrictMode>);
diff --git a/src/components/ChatErrorBanner.tsx b/src/components/ChatErrorBanner.tsx
index 8ef884670b..0d8daafc7b 100644
--- a/src/components/ChatErrorBanner.tsx
+++ b/src/components/ChatErrorBanner.tsx
@@ -1,4 +1,6 @@
+import { useEffect, useState } from "react";
import { X } from "lucide-react";
+import { cloudWorkNow, cloudWorkTitle, onCloudWork } from "@/lib/cloud-work";
import { t } from "@/lib/i18n";
import { plainErrorLine } from "@/lib/plain-error";
import type { AppState } from "@/state/store";
@@ -21,9 +23,27 @@ export function ChatNotice({ notice }: { notice: AppState["notice"] }) {
);
}
+/** A send that failed because the Cloud didn't answer: while an operation of ours has it down, that is expected, not an error. */
+const NOT_ANSWERED = /Failed to fetch|NetworkError|Load failed|fetch failed|ECONN(?:RESET|REFUSED|ABORTED)|socket hang up|\b50[234]\b|bad gateway|service unavailable|timed? ?out/i;
+
export function ChatErrorBanner({ message, onDismiss }: { message: string | null; onDismiss: () => void }) {
const member = useTeamPeople()?.admin === false;
+ const [work, setWork] = useState(cloudWorkNow);
+ // Follows the window's word on an operation of ours (lib/cloud-work.ts), which lives outside React.
+ useEffect(() => onCloudWork(setWork), []);
if (!message) return null;
+ if (work && NOT_ANSWERED.test(message)) {
+ return (
+ <div className="w-full px-5">
+ <div role="status" data-chat-cloud-work className="mb-2 flex items-start gap-2 rounded-lg border border-hairline/40 bg-panel px-3 py-2 text-[13px] text-ink-secondary">
+ <p className="min-w-0 flex-1 break-words">{`${cloudWorkTitle(work)}. ${t("cloudWork.notSent")}`}</p>
+ <button type="button" onClick={onDismiss} aria-label={t("chat.error.dismiss")} title={t("chat.error.dismiss")} className="shrink-0 rounded p-0.5 hover:bg-raised">
+ <X size={13} />
+ </button>
+ </div>
+ </div>
+ );
+ }
const plain = plainErrorLine(message) ?? (member && message.startsWith("forbidden:") ? t("serverError.chat.ownerOrAdmin") : undefined);
return (
<div className="w-full px-5">
diff --git a/src/components/HomeScreen.tsx b/src/components/HomeScreen.tsx
index ef19ede2eb..424f58f249 100644
--- a/src/components/HomeScreen.tsx
+++ b/src/components/HomeScreen.tsx
@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from "react";
import { activeLocale, t } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
import type { HomeView, HomeBridge } from "../../electron/home-window.mjs";
+import { cloudWorkText, useNow } from "@/lib/cloud-work";
import { CloudSetupSteps } from "./CloudSetupSteps";
const MACHINE: Record<string, LocaleKey> = {
@@ -25,6 +26,12 @@ export function homeDay(at: number, now = Date.now()): string {
export function homeScreenText(view: HomeView | null, now = Date.now()): { title: string; body: string | null; reason: string | null; action: HomeAction | null; busy: boolean } {
// A team's Cloud is named; My Cloud keeps its own words.
const name = view?.name ?? null;
+ // An operation of the Admin's own has it down: what it is and when it is back, never "can't be reached"; nothing to press,
+ // the window opens it by itself.
+ if (view?.screen === "working") {
+ const work = cloudWorkText(view.operation, now, name);
+ return { title: work.title, body: [work.backup, work.when, t("cloudWork.reconnects")].filter(Boolean).join(" "), reason: work.bots, action: null, busy: true };
+ }
const named = (plain: LocaleKey, withName: LocaleKey) => (name ? t(withName, { name }) : t(plain));
if (view?.screen === "setup") return { title: named("homeScreen.setup", "homeScreen.setupNamed"), body: t(view.slow ? "cloudHome.slow" : "homeScreen.setupBody"), reason: null, action: null, busy: true };
if (view?.screen === "offline") return { title: named("homeScreen.offline", "homeScreen.offlineNamed"), body: t("homeScreen.offlineBack"), action: "retry", busy: false,
@@ -93,7 +100,8 @@ export function HomeScreen({ bridge, manage }: { bridge: HomeBridge; manage?: ()
window.addEventListener("focus", again);
return () => { alive = false; stop(); window.removeEventListener("online", again); window.removeEventListener("focus", again); };
}, [bridge]);
- const text = homeScreenText(view);
+ // The working screen's words follow the clock ("taking longer than usual" once its usual time passed).
+ const text = homeScreenText(view, useNow(view?.screen === "working"));
const act = (action: () => Promise<unknown>) => { setFailed(false); void action().catch(() => setFailed(true)); };
// Its checkout's page again when this app keeps it (the Cloud it is buying), else the Cloud page, where it can be paid.
const reopen = window.ogb?.cloudAdd?.reopen;
diff --git a/src/components/LiveConnectionStrip.tsx b/src/components/LiveConnectionStrip.tsx
index b22da6a724..e731baaa7b 100644
--- a/src/components/LiveConnectionStrip.tsx
+++ b/src/components/LiveConnectionStrip.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { CloudOff, Loader2 } from "lucide-react";
import { cloudAsleep, onCloudPower } from "@/lib/cloud-power";
+import { cloudWorkLine, useCloudWork, useNow } from "@/lib/cloud-work";
import { t } from "@/lib/i18n";
import { retryLiveEvents } from "@/lib/live-events";
import { noteRefusedRequest } from "@/lib/session-ended";
@@ -9,7 +10,8 @@ export const RECONNECTING_AFTER_MS = 4_000;
export const CONNECTION_HELP_AFTER_MS = 20_000;
/** The live stream is down: replies and other people's messages wait until it is back. A blip shorter than a few
- * seconds says nothing; a Cloud asleep has its own strip. */
+ * seconds says nothing; a Cloud asleep has its own strip. While the window says an operation of ours has this Cloud down (an
+ * update, a resize, a move: lib/cloud-work.ts), the strip says that instead, calmly and with nothing to press. */
export function LiveConnectionStrip({ connected, hydrated }: { connected: boolean; hydrated: boolean }) {
const [late, setLate] = useState(false);
const [help, setHelp] = useState(false);
@@ -37,9 +39,17 @@ export function LiveConnectionStrip({ connected, hydrated }: { connected: boolea
const helpTimer = setTimeout(() => { setHelp(true); noteRefusedRequest(); }, CONNECTION_HELP_AFTER_MS);
return () => { clearTimeout(probe); clearTimeout(timer); clearTimeout(helpTimer); };
}, [connected, asleep, online]);
+ const work = useCloudWork(!connected && !asleep && online);
+ const now = useNow(Boolean(work));
if (asleep) return null;
- const notice = !online ? "offline" : !connected && late && (hydrated || help) ? "reconnecting" : null;
+ const notice = !online ? "offline" : !connected && work ? "working" : !connected && late && (hydrated || help) ? "reconnecting" : null;
if (!notice) return null;
+ if (notice === "working" && work) {
+ return <div role="status" data-live-connection="working" className="flex flex-wrap items-center justify-center gap-2 border-b border-hairline/40 bg-panel px-3 py-1.5 text-[13px] text-ink-secondary">
+ <Loader2 size={14} className="shrink-0 animate-spin" aria-hidden="true" />
+ <span>{cloudWorkLine(work, now)}</span>
+ </div>;
+ }
return <div role="status" data-live-connection={notice} className="flex flex-wrap items-center justify-center gap-2 border-b border-hairline/40 bg-panel px-3 py-1.5 text-[13px] text-ink-secondary">
{notice === "offline" ? <CloudOff size={14} className="shrink-0" aria-hidden="true" /> : <Loader2 size={14} className="shrink-0 animate-spin" aria-hidden="true" />}
<span>{t(notice === "offline" ? "liveConnection.offline" : help ? "liveConnection.help" : "liveConnection.reconnecting")}</span>
diff --git a/src/lib/cloud-work.test.ts b/src/lib/cloud-work.test.ts
new file mode 100644
index 0000000000..44a8a3f67c
--- /dev/null
+++ b/src/lib/cloud-work.test.ts
@@ -0,0 +1,75 @@
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { afterEach, beforeEach, describe, expect, it } from "vitest";
+import { ChatErrorBanner } from "@/components/ChatErrorBanner";
+import { homeScreenText } from "@/components/HomeScreen";
+import { setLocale, t } from "@/lib/i18n";
+import { cloudWorkLine, cloudWorkText, cloudWorkTitle, cloudWorkWhen, setCloudWork } from "./cloud-work";
+
+// While an operation of the Admin's own has the person's Cloud down (electron/cloud-operation.mjs), every place that would say
+// "can't be reached" says what is happening and when it is back, in plain words, with nothing to press.
+const MINUTE = 60_000, AT = Date.parse("2026-11-25T03:10:00Z");
+const update = { kind: "update", since: AT - 40_000, until: AT + 17 * MINUTE, expectedAt: AT + 2 * MINUTE };
+
+beforeEach(() => setLocale("en"));
+afterEach(() => setCloudWork(null));
+
+describe("the words", () => {
+ it("say what each operation is, for My Cloud or a Cloud by its name; a kind this app doesn't know is \"restarting\"", () => {
+ const titles = (["update", "move", "disk", "restore", "start", "teleport"] as const).map((kind) => cloudWorkTitle({ ...update, kind }));
+ expect(titles).toEqual(["Updating My Cloud to the latest version", "Moving My Cloud to a new server", "Moving My Cloud to a new disk",
+ "Restoring My Cloud from a backup", "Starting My Cloud again", "My Cloud is restarting"]);
+ expect(cloudWorkTitle({ ...update, kind: "resize", bigger: true })).toBe("Giving My Cloud more power");
+ expect(cloudWorkTitle({ ...update, kind: "resize" })).toBe("Changing My Cloud's size for its plan");
+ expect(cloudWorkTitle(update, "Acme")).toBe("Updating Acme to the latest version");
+ });
+
+ it("say when it is back as honestly as the Admin knows: its usual time, then a little longer, then that we've been told", () => {
+ expect(cloudWorkWhen(update, AT)).toBe("Back in a minute or two.");
+ expect(cloudWorkWhen({ ...update, expectedAt: update.since + 5 * MINUTE }, AT)).toBe("Back in a few minutes.");
+ expect(cloudWorkWhen(update, AT + 3 * MINUTE), "past its usual time").toBe("Taking a little longer than usual.");
+ expect(cloudWorkWhen(update, update.until), "past its own deadline, when the Admin's alert goes out").toBe("This is taking longer than usual, and we've been told.");
+ const { expectedAt: _none, ...move } = { ...update, kind: "move" };
+ expect(cloudWorkWhen(move, AT), "no usual time: none is named").toBe("It comes back by itself when it's done.");
+ const long = { ...update, backup: true as const, expectedAt: AT + 68 * MINUTE, until: AT + 177 * MINUTE };
+ expect(cloudWorkWhen(long, AT)).toMatch(/^Expected back around \d{1,2}:\d{2}/);
+ expect(cloudWorkWhen(long, AT), "a long one is never \"a minute\"").not.toMatch(/minute/);
+ expect(cloudWorkText(long, AT).backup).toBe("This update first backs up everything on it, so a big Cloud takes longer.");
+ expect(cloudWorkText(long, long.until).backup, "past its deadline only the late line").toBeNull();
+ });
+
+ it("this computer's screen: the title, when it is back, that the window reconnects, and one line about the bots; nothing to press", () => {
+ const text = homeScreenText({ screen: "working", operation: update } as never, AT);
+ expect(text).toEqual({ title: "Updating My Cloud to the latest version", body: "Back in a minute or two. This window reconnects by itself.",
+ reason: "Unfinished bot work starts again by itself once it's back.", action: null, busy: true });
+ expect(homeScreenText({ screen: "working", operation: update, name: "Acme" } as never, AT).title).toBe("Updating Acme to the latest version");
+ for (const words of Object.values(text)) expect(String(words)).not.toMatch(/can't|unable|error|Try again|Fly|Hetzner/i);
+ });
+
+ it("the strip on the Cloud's own page is one line", () => {
+ expect(cloudWorkLine(update, AT)).toBe("Updating My Cloud to the latest version. Back in a minute or two.");
+ });
+
+ it("every language has every sentence, with its placeholders", () => {
+ for (const locale of ["de", "es", "fr", "hi", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "uk", "vi", "zh", "zh-tw"]) {
+ setLocale(locale);
+ expect(cloudWorkTitle(update), locale).not.toBe("Updating My Cloud to the latest version");
+ expect(cloudWorkTitle(update, "Acme"), locale).toContain("Acme");
+ expect(t("cloudWork.backAround", { time: "15:40" }), locale).toContain("15:40");
+ }
+ });
+});
+
+describe("a send that failed while the Cloud is being updated", () => {
+ it("is said calmly with what is happening, not as a red error; any other error stays as it was", () => {
+ setCloudWork(update);
+ const calm = renderToStaticMarkup(createElement(ChatErrorBanner, { message: "TypeError: Failed to fetch", onDismiss: () => {} }));
+ expect(calm).toContain("data-chat-cloud-work");
+ expect(calm).toContain("Updating My Cloud to the latest version. Your message wasn&#x27;t sent and is still in the box.");
+ expect(calm).not.toContain("text-danger");
+ const other = renderToStaticMarkup(createElement(ChatErrorBanner, { message: "forbidden: not yours", onDismiss: () => {} }));
+ expect(other).toContain("text-danger");
+ setCloudWork(null);
+ expect(renderToStaticMarkup(createElement(ChatErrorBanner, { message: "TypeError: Failed to fetch", onDismiss: () => {} }))).toContain("text-danger");
+ });
+});
diff --git a/src/lib/cloud-work.ts b/src/lib/cloud-work.ts
new file mode 100644
index 0000000000..b21e1b6bdf
--- /dev/null
+++ b/src/lib/cloud-work.ts
@@ -0,0 +1,108 @@
+import { useEffect, useState } from "react";
+import { activeLocale, t } from "@/lib/i18n";
+import type { LocaleKey } from "@/locales";
+import type { CloudOperation } from "../../electron/cloud-operation.mjs";
+
+// What the person reads while an operation of the Admin's own has their Cloud down (electron/cloud-operation.mjs): what is
+// happening and when it is usually back, never "can't be reached". This computer's screen (HomeScreen) shows it whole; the
+// Cloud's own page says it in its connection strip, and a send that failed meanwhile says it calmly (ChatErrorBanner).
+
+const MINUTE = 60_000;
+/** A typical wait this short reads "a minute or two"; up to SOON_MAX_MS, "a few minutes"; longer, the time it is expected. */
+const SOON_MS = 3 * MINUTE, SOON_MAX_MS = 10 * MINUTE;
+/** The Cloud's own page asks the window this often while its live stream is down. */
+export const CLOUD_WORK_ASK_MS = 10_000;
+
+const TITLES: Record<string, readonly [LocaleKey, LocaleKey]> = {
+ update: ["cloudWork.update", "cloudWork.updateNamed"],
+ resize: ["cloudWork.resize", "cloudWork.resizeNamed"],
+ resizeUp: ["cloudWork.resizeUp", "cloudWork.resizeUpNamed"],
+ move: ["cloudWork.move", "cloudWork.moveNamed"],
+ disk: ["cloudWork.disk", "cloudWork.diskNamed"],
+ restore: ["cloudWork.restore", "cloudWork.restoreNamed"],
+ start: ["cloudWork.start", "cloudWork.startNamed"],
+};
+const OTHER = ["cloudWork.other", "cloudWork.otherNamed"] as const;
+
+/** "Updating My Cloud to the latest version", or the team's Cloud by its `name`; a kind this app doesn't know is "restarting". */
+export function cloudWorkTitle(operation: CloudOperation, name: string | null = null): string {
+ const key = operation.kind === "resize" && operation.bigger ? "resizeUp" : operation.kind;
+ const [plain, named] = Object.hasOwn(TITLES, key) ? TITLES[key]! : OTHER;
+ return name ? t(named, { name }) : t(plain);
+}
+
+/** When it is back, as honestly as the Admin knows: its usual time while that hasn't passed; past it, a little longer than
+ * usual; past the operation's own deadline (the Admin's alert has gone out), that it takes longer and we've been told. With no
+ * usual time (a move, a restore), only that it comes back by itself. */
+export function cloudWorkWhen(operation: CloudOperation, now = Date.now()): string {
+ if (now >= operation.until) return t("cloudWork.late");
+ if (operation.expectedAt === undefined) return t("cloudWork.backWhenDone");
+ if (now >= operation.expectedAt) return t("cloudWork.longer");
+ const usual = operation.expectedAt - operation.since;
+ if (usual <= SOON_MS) return t("cloudWork.backSoon");
+ if (usual <= SOON_MAX_MS) return t("cloudWork.backMinutes");
+ return t("cloudWork.backAround", { time: new Intl.DateTimeFormat(activeLocale(), { timeStyle: "short" }).format(new Date(operation.expectedAt)) });
+}
+
+/** The whole of it for this computer's screen: the title, the backup's note (an update that backs everything up first), when
+ * it is back, and the one line about the bots' work. */
+export function cloudWorkText(operation: CloudOperation, now = Date.now(), name: string | null = null) {
+ const late = now >= operation.until;
+ return { title: cloudWorkTitle(operation, name), backup: operation.backup && !late ? t("cloudWork.backup") : null, when: cloudWorkWhen(operation, now), bots: t("cloudWork.bots") };
+}
+
+/** The strip's one line on the Cloud's own page: "Updating My Cloud to the latest version. Back in a minute or two." */
+export const cloudWorkLine = (operation: CloudOperation, now = Date.now()) => `${cloudWorkTitle(operation)}. ${cloudWorkWhen(operation, now)}`;
+
+let current: CloudOperation | null = null;
+const listeners = new Set<(operation: CloudOperation | null) => void>();
+/** What the window last said has this Cloud down, while the page's live stream is down; null otherwise. */
+export const cloudWorkNow = () => current;
+export function setCloudWork(next: CloudOperation | null) {
+ if (next === current || (next && current && next.kind === current.kind && next.since === current.since && next.until === current.until && next.expectedAt === current.expectedAt)) return;
+ current = next;
+ for (const listener of listeners) listener(next);
+}
+export function onCloudWork(listener: (operation: CloudOperation | null) => void) {
+ listeners.add(listener);
+ return () => { listeners.delete(listener); };
+}
+
+/** The window's bridge on the Cloud's own page (absent in a browser, on another server, and in an app before it). */
+const ask = () => {
+ const operation = typeof window === "undefined" ? undefined : window.ogb?.home?.operation;
+ return typeof operation === "function" ? operation : null;
+};
+
+/**
+ * While `down` (the page's live stream is down), what the window says has the Cloud down, asked now and every
+ * CLOUD_WORK_ASK_MS; null otherwise, and at once when the stream is back. Shared through `cloudWorkNow` with the chat's
+ * error line. A page with no bridge (a browser) says what it says today.
+ */
+export function useCloudWork(down: boolean): CloudOperation | null {
+ const [operation, setOperation] = useState<CloudOperation | null>(cloudWorkNow);
+ // Keeps this page's copy in step with the window's word, which lives outside React.
+ useEffect(() => onCloudWork(setOperation), []);
+ useEffect(() => {
+ const read = ask();
+ if (!down || !read) { setCloudWork(null); return; }
+ let alive = true;
+ const look = () => { void read().then((next) => { if (alive) setCloudWork(next ?? null); }, () => {}); };
+ look();
+ const timer = setInterval(look, CLOUD_WORK_ASK_MS);
+ return () => { alive = false; clearInterval(timer); };
+ }, [down]);
+ return operation;
+}
+
+/** Re-renders every `everyMs` while `on`, so words that depend on the time ("taking longer than usual") change by themselves. */
+export function useNow(on: boolean, everyMs = 15_000): number {
+ const [now, setNow] = useState(() => Date.now());
+ useEffect(() => {
+ if (!on) return;
+ setNow(Date.now());
+ const timer = setInterval(() => setNow(Date.now()), everyMs);
+ return () => clearInterval(timer);
+ }, [on, everyMs]);
+ return now;
+}
diff --git a/src/locales/de.json b/src/locales/de.json
index b093e0d185..9243852738 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -733,6 +733,32 @@
"cloudHome.filesLink": "Ordner unter Dateien mit der Cloud teilen",
"cloudHome.connectFailed": "Die Cloud konnte nicht geöffnet werden. Versuche es gleich noch einmal.",
"cloudHome.waking": "Die Cloud wird geweckt…",
+ "cloudWork.update": "My Cloud wird auf die neueste Version aktualisiert",
+ "cloudWork.updateNamed": "{name} wird auf die neueste Version aktualisiert",
+ "cloudWork.resizeUp": "My Cloud bekommt mehr Leistung",
+ "cloudWork.resizeUpNamed": "{name} bekommt mehr Leistung",
+ "cloudWork.resize": "Die Größe von My Cloud wird an den Tarif angepasst",
+ "cloudWork.resizeNamed": "Die Größe von {name} wird an den Tarif angepasst",
+ "cloudWork.move": "My Cloud zieht auf einen neuen Server um",
+ "cloudWork.moveNamed": "{name} zieht auf einen neuen Server um",
+ "cloudWork.disk": "My Cloud zieht auf einen neuen Datenträger um",
+ "cloudWork.diskNamed": "{name} zieht auf einen neuen Datenträger um",
+ "cloudWork.restore": "My Cloud wird aus einer Sicherung wiederhergestellt",
+ "cloudWork.restoreNamed": "{name} wird aus einer Sicherung wiederhergestellt",
+ "cloudWork.start": "My Cloud wird neu gestartet",
+ "cloudWork.startNamed": "{name} wird neu gestartet",
+ "cloudWork.other": "My Cloud startet neu",
+ "cloudWork.otherNamed": "{name} startet neu",
+ "cloudWork.backup": "Dieses Update sichert zuerst alles darauf, bei einer großen Cloud dauert es daher länger.",
+ "cloudWork.backSoon": "In ein, zwei Minuten wieder da.",
+ "cloudWork.backMinutes": "In ein paar Minuten wieder da.",
+ "cloudWork.backAround": "Voraussichtlich gegen {time} wieder da.",
+ "cloudWork.backWhenDone": "Es kommt von selbst zurück, sobald es fertig ist.",
+ "cloudWork.longer": "Dauert etwas länger als üblich.",
+ "cloudWork.late": "Das dauert länger als üblich, und wir wurden benachrichtigt.",
+ "cloudWork.reconnects": "Dieses Fenster verbindet sich von selbst neu.",
+ "cloudWork.bots": "Unerledigte Arbeit der Bots startet von selbst neu, sobald es zurück ist.",
+ "cloudWork.notSent": "Deine Nachricht wurde nicht gesendet und steht noch im Eingabefeld.",
"cloudHome.unreachableHost": "Unser Hosting-Anbieter startet den Rechner neu, auf dem die Cloud läuft. Die Cloud und ihre Dateien sind sicher, und sie kommt von selbst zurück, meist innerhalb von etwa 20 Minuten.",
"cloudHome.unreachable": "Die Cloud antwortet seit ein paar Minuten nicht. Es ging nichts verloren, und wir wurden benachrichtigt.",
"lending.activity.empty": "Noch nichts. Jede Anfrage der Bots dort wird hier aufgeführt, auch abgelehnte.",
diff --git a/src/locales/en.json b/src/locales/en.json
index 914f8d3ce2..656a59b283 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1675,6 +1675,32 @@
"cloudHome.filesLink": "Share folders with the Cloud in Files",
"cloudHome.connectFailed": "Could not open the Cloud. Try again in a moment.",
"cloudHome.waking": "Waking the Cloud…",
+ "cloudWork.update": "Updating My Cloud to the latest version",
+ "cloudWork.updateNamed": "Updating {name} to the latest version",
+ "cloudWork.resizeUp": "Giving My Cloud more power",
+ "cloudWork.resizeUpNamed": "Giving {name} more power",
+ "cloudWork.resize": "Changing My Cloud's size for its plan",
+ "cloudWork.resizeNamed": "Changing {name}'s size for its plan",
+ "cloudWork.move": "Moving My Cloud to a new server",
+ "cloudWork.moveNamed": "Moving {name} to a new server",
+ "cloudWork.disk": "Moving My Cloud to a new disk",
+ "cloudWork.diskNamed": "Moving {name} to a new disk",
+ "cloudWork.restore": "Restoring My Cloud from a backup",
+ "cloudWork.restoreNamed": "Restoring {name} from a backup",
+ "cloudWork.start": "Starting My Cloud again",
+ "cloudWork.startNamed": "Starting {name} again",
+ "cloudWork.other": "My Cloud is restarting",
+ "cloudWork.otherNamed": "{name} is restarting",
+ "cloudWork.backup": "This update first backs up everything on it, so a big Cloud takes longer.",
+ "cloudWork.backSoon": "Back in a minute or two.",
+ "cloudWork.backMinutes": "Back in a few minutes.",
+ "cloudWork.backAround": "Expected back around {time}.",
+ "cloudWork.backWhenDone": "It comes back by itself when it's done.",
+ "cloudWork.longer": "Taking a little longer than usual.",
+ "cloudWork.late": "This is taking longer than usual, and we've been told.",
+ "cloudWork.reconnects": "This window reconnects by itself.",
+ "cloudWork.bots": "Unfinished bot work starts again by itself once it's back.",
+ "cloudWork.notSent": "Your message wasn't sent and is still in the box.",
"cloudHome.unreachableHost": "Our hosting provider is restarting the machine the Cloud runs on. The Cloud and its files are safe, and it comes back on its own, usually within about 20 minutes.",
"cloudHome.unreachable": "The Cloud hasn't answered for a few minutes. Nothing was lost, and we've been told.",
"lending.activity.title": "Activity on this computer",
diff --git a/src/locales/es.json b/src/locales/es.json
index 4925f18d2f..392c418535 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -1037,6 +1037,32 @@
"cloudHome.filesLink": "Comparte carpetas con la Cloud en «Archivos»",
"cloudHome.connectFailed": "No se pudo abrir la Cloud. Inténtalo de nuevo en un momento.",
"cloudHome.waking": "Despertando la Cloud…",
+ "cloudWork.update": "Actualizando My Cloud a la última versión",
+ "cloudWork.updateNamed": "Actualizando {name} a la última versión",
+ "cloudWork.resizeUp": "Dando más potencia a My Cloud",
+ "cloudWork.resizeUpNamed": "Dando más potencia a {name}",
+ "cloudWork.resize": "Ajustando el tamaño de My Cloud a su plan",
+ "cloudWork.resizeNamed": "Ajustando el tamaño de {name} a su plan",
+ "cloudWork.move": "Moviendo My Cloud a un servidor nuevo",
+ "cloudWork.moveNamed": "Moviendo {name} a un servidor nuevo",
+ "cloudWork.disk": "Moviendo My Cloud a un disco nuevo",
+ "cloudWork.diskNamed": "Moviendo {name} a un disco nuevo",
+ "cloudWork.restore": "Restaurando My Cloud desde una copia de seguridad",
+ "cloudWork.restoreNamed": "Restaurando {name} desde una copia de seguridad",
+ "cloudWork.start": "Iniciando My Cloud de nuevo",
+ "cloudWork.startNamed": "Iniciando {name} de nuevo",
+ "cloudWork.other": "My Cloud se está reiniciando",
+ "cloudWork.otherNamed": "{name} se está reiniciando",
+ "cloudWork.backup": "Esta actualización primero hace una copia de seguridad de todo, así que una Cloud grande tarda más.",
+ "cloudWork.backSoon": "Vuelve en un minuto o dos.",
+ "cloudWork.backMinutes": "Vuelve en unos minutos.",
+ "cloudWork.backAround": "Debería volver hacia las {time}.",
+ "cloudWork.backWhenDone": "Vuelve sola cuando termine.",
+ "cloudWork.longer": "Está tardando un poco más de lo normal.",
+ "cloudWork.late": "Está tardando más de lo normal y ya nos han avisado.",
+ "cloudWork.reconnects": "Esta ventana se vuelve a conectar sola.",
+ "cloudWork.bots": "El trabajo sin terminar de los bots vuelve a empezar solo en cuanto vuelva.",
+ "cloudWork.notSent": "Tu mensaje no se envió y sigue en el cuadro.",
"cloudHome.unreachableHost": "Nuestro proveedor de hosting está reiniciando la máquina en la que funciona la Cloud. La Cloud y sus archivos están a salvo, y volverá automáticamente, normalmente en unos 20 minutos.",
"cloudHome.unreachable": "La Cloud lleva unos minutos sin responder. No se perdió nada y ya estamos avisados.",
"lending.activity.title": "Actividad en este equipo",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 5d83d4e260..0cbdb473c5 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -517,6 +517,32 @@
"cloudHome.filesLink": "Partager des dossiers avec le Cloud dans Fichiers",
"cloudHome.connectFailed": "Impossible d'ouvrir le Cloud. Réessayez dans un instant.",
"cloudHome.waking": "Réveil du Cloud…",
+ "cloudWork.update": "Mise à jour de My Cloud vers la dernière version",
+ "cloudWork.updateNamed": "Mise à jour de {name} vers la dernière version",
+ "cloudWork.resizeUp": "My Cloud reçoit plus de puissance",
+ "cloudWork.resizeUpNamed": "{name} reçoit plus de puissance",
+ "cloudWork.resize": "Ajustement de la taille de My Cloud à son forfait",
+ "cloudWork.resizeNamed": "Ajustement de la taille de {name} à son forfait",
+ "cloudWork.move": "Déménagement de My Cloud vers un nouveau serveur",
+ "cloudWork.moveNamed": "Déménagement de {name} vers un nouveau serveur",
+ "cloudWork.disk": "Déménagement de My Cloud vers un nouveau disque",
+ "cloudWork.diskNamed": "Déménagement de {name} vers un nouveau disque",
+ "cloudWork.restore": "Restauration de My Cloud depuis une sauvegarde",
+ "cloudWork.restoreNamed": "Restauration de {name} depuis une sauvegarde",
+ "cloudWork.start": "Redémarrage de My Cloud",
+ "cloudWork.startNamed": "Redémarrage de {name}",
+ "cloudWork.other": "My Cloud redémarre",
+ "cloudWork.otherNamed": "{name} redémarre",
+ "cloudWork.backup": "Cette mise à jour sauvegarde d'abord tout son contenu : un gros Cloud prend donc plus de temps.",
+ "cloudWork.backSoon": "De retour dans une minute ou deux.",
+ "cloudWork.backMinutes": "De retour dans quelques minutes.",
+ "cloudWork.backAround": "Retour prévu vers {time}.",
+ "cloudWork.backWhenDone": "Il revient tout seul une fois terminé.",
+ "cloudWork.longer": "C'est un peu plus long que d'habitude.",
+ "cloudWork.late": "C'est plus long que d'habitude, et nous avons été prévenus.",
+ "cloudWork.reconnects": "Cette fenêtre se reconnecte toute seule.",
+ "cloudWork.bots": "Le travail inachevé des bots reprend tout seul dès son retour.",
+ "cloudWork.notSent": "Votre message n'a pas été envoyé et est toujours dans le champ de saisie.",
"cloudHome.unreachableHost": "Notre hébergeur redémarre la machine sur laquelle tourne le Cloud. Le Cloud et ses fichiers sont en sécurité, et il revient tout seul, en général en 20 minutes environ.",
"cloudHome.unreachable": "Le Cloud ne répond plus depuis quelques minutes. Rien n'a été perdu, et nous avons été prévenus.",
"lending.activity.empty": "Rien pour l'instant. Chaque demande des bots de là-bas apparaîtra ici, y compris celles refusées.",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index b819f3331c..e4ad87283f 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -515,6 +515,32 @@
"cloudHome.filesLink": "फ़ाइलें में Cloud के साथ फ़ोल्डर साझा करें",
"cloudHome.connectFailed": "Cloud नहीं खुल सका। थोड़ी देर में फिर कोशिश करें।",
"cloudHome.waking": "Cloud जगाया जा रहा है…",
+ "cloudWork.update": "My Cloud को नवीनतम संस्करण पर अपडेट किया जा रहा है",
+ "cloudWork.updateNamed": "{name} को नवीनतम संस्करण पर अपडेट किया जा रहा है",
+ "cloudWork.resizeUp": "My Cloud को और ताकत दी जा रही है",
+ "cloudWork.resizeUpNamed": "{name} को और ताकत दी जा रही है",
+ "cloudWork.resize": "My Cloud का आकार उसके प्लान के अनुसार बदला जा रहा है",
+ "cloudWork.resizeNamed": "{name} का आकार उसके प्लान के अनुसार बदला जा रहा है",
+ "cloudWork.move": "My Cloud को नए सर्वर पर ले जाया जा रहा है",
+ "cloudWork.moveNamed": "{name} को नए सर्वर पर ले जाया जा रहा है",
+ "cloudWork.disk": "My Cloud को नई डिस्क पर ले जाया जा रहा है",
+ "cloudWork.diskNamed": "{name} को नई डिस्क पर ले जाया जा रहा है",
+ "cloudWork.restore": "My Cloud को बैकअप से बहाल किया जा रहा है",
+ "cloudWork.restoreNamed": "{name} को बैकअप से बहाल किया जा रहा है",
+ "cloudWork.start": "My Cloud फिर से शुरू किया जा रहा है",
+ "cloudWork.startNamed": "{name} फिर से शुरू किया जा रहा है",
+ "cloudWork.other": "My Cloud रीस्टार्ट हो रहा है",
+ "cloudWork.otherNamed": "{name} रीस्टार्ट हो रहा है",
+ "cloudWork.backup": "यह अपडेट पहले इस पर मौजूद हर चीज़ का बैकअप लेता है, इसलिए बड़े Cloud में ज़्यादा समय लगता है।",
+ "cloudWork.backSoon": "एक-दो मिनट में वापस।",
+ "cloudWork.backMinutes": "कुछ मिनटों में वापस।",
+ "cloudWork.backAround": "लगभग {time} तक वापस आने की उम्मीद है।",
+ "cloudWork.backWhenDone": "पूरा होते ही यह अपने-आप वापस आ जाएगा।",
+ "cloudWork.longer": "सामान्य से थोड़ा ज़्यादा समय लग रहा है।",
+ "cloudWork.late": "इसमें सामान्य से ज़्यादा समय लग रहा है, और हमें सूचना मिल गई है।",
+ "cloudWork.reconnects": "यह विंडो अपने-आप फिर से जुड़ जाएगी।",
+ "cloudWork.bots": "बॉट्स का अधूरा काम वापस आते ही अपने-आप फिर से शुरू हो जाता है।",
+ "cloudWork.notSent": "आपका संदेश नहीं भेजा गया और अभी भी बॉक्स में है।",
"cloudHome.unreachableHost": "हमारा होस्टिंग प्रदाता उस मशीन को रीस्टार्ट कर रहा है जिस पर Cloud चलता है। Cloud और उसकी फ़ाइलें सुरक्षित हैं, और यह अपने-आप लौट आता है, आमतौर पर लगभग 20 मिनट में।",
"cloudHome.unreachable": "Cloud ने कुछ मिनटों से जवाब नहीं दिया है। कुछ भी खोया नहीं है, और हमें सूचना मिल गई है।",
"lending.activity.empty": "अभी कुछ नहीं। वहाँ के बॉट का हर अनुरोध यहाँ दिखेगा, अस्वीकार किए गए अनुरोध भी।",
diff --git a/src/locales/it.json b/src/locales/it.json
index 8dfe385881..be0dd218ec 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -1673,6 +1673,32 @@
"cloudHome.filesLink": "Condividi cartelle con il Cloud in File",
"cloudHome.connectFailed": "Non è stato possibile aprire il Cloud. Riprova tra un momento.",
"cloudHome.waking": "Risveglio del Cloud…",
+ "cloudWork.update": "Aggiornamento di My Cloud all'ultima versione",
+ "cloudWork.updateNamed": "Aggiornamento di {name} all'ultima versione",
+ "cloudWork.resizeUp": "My Cloud riceve più potenza",
+ "cloudWork.resizeUpNamed": "{name} riceve più potenza",
+ "cloudWork.resize": "Adeguamento delle dimensioni di My Cloud al suo piano",
+ "cloudWork.resizeNamed": "Adeguamento delle dimensioni di {name} al suo piano",
+ "cloudWork.move": "Trasferimento di My Cloud su un nuovo server",
+ "cloudWork.moveNamed": "Trasferimento di {name} su un nuovo server",
+ "cloudWork.disk": "Trasferimento di My Cloud su un nuovo disco",
+ "cloudWork.diskNamed": "Trasferimento di {name} su un nuovo disco",
+ "cloudWork.restore": "Ripristino di My Cloud da un backup",
+ "cloudWork.restoreNamed": "Ripristino di {name} da un backup",
+ "cloudWork.start": "Riavvio di My Cloud",
+ "cloudWork.startNamed": "Riavvio di {name}",
+ "cloudWork.other": "My Cloud si sta riavviando",
+ "cloudWork.otherNamed": "{name} si sta riavviando",
+ "cloudWork.backup": "Questo aggiornamento prima fa un backup di tutto, quindi un Cloud grande richiede più tempo.",
+ "cloudWork.backSoon": "Di nuovo disponibile tra un paio di minuti.",
+ "cloudWork.backMinutes": "Di nuovo disponibile tra qualche minuto.",
+ "cloudWork.backAround": "Previsto di nuovo disponibile verso le {time}.",
+ "cloudWork.backWhenDone": "Torna da solo quando ha finito.",
+ "cloudWork.longer": "Ci vuole un po' più del solito.",
+ "cloudWork.late": "Ci vuole più del solito e siamo stati avvisati.",
+ "cloudWork.reconnects": "Questa finestra si ricollega da sola.",
+ "cloudWork.bots": "Il lavoro non finito dei bot riparte da solo appena torna.",
+ "cloudWork.notSent": "Il tuo messaggio non è stato inviato ed è ancora nella casella.",
"cloudHome.unreachableHost": "Il fornitore di hosting sta riavviando la macchina su cui gira il Cloud. Il Cloud e i suoi file sono al sicuro e torna da solo, di solito entro circa 20 minuti.",
"cloudHome.unreachable": "Il Cloud non risponde da qualche minuto. Non è andato perso nulla e siamo stati avvisati.",
"lending.activity.title": "Attività su questo computer",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index d8cc4a87de..88d30dfcdc 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -1334,6 +1334,32 @@
"cloudHome.filesLink": "「ファイル」で Cloud とフォルダーを共有",
"cloudHome.connectFailed": "Cloud を開けませんでした。少し待ってからもう一度お試しください。",
"cloudHome.waking": "Cloud を起動しています…",
+ "cloudWork.update": "My Cloud を最新バージョンに更新しています",
+ "cloudWork.updateNamed": "{name} を最新バージョンに更新しています",
+ "cloudWork.resizeUp": "My Cloud の性能を上げています",
+ "cloudWork.resizeUpNamed": "{name} の性能を上げています",
+ "cloudWork.resize": "My Cloud のサイズをプランに合わせて変更しています",
+ "cloudWork.resizeNamed": "{name} のサイズをプランに合わせて変更しています",
+ "cloudWork.move": "My Cloud を新しいサーバーに移しています",
+ "cloudWork.moveNamed": "{name} を新しいサーバーに移しています",
+ "cloudWork.disk": "My Cloud を新しいディスクに移しています",
+ "cloudWork.diskNamed": "{name} を新しいディスクに移しています",
+ "cloudWork.restore": "My Cloud をバックアップから復元しています",
+ "cloudWork.restoreNamed": "{name} をバックアップから復元しています",
+ "cloudWork.start": "My Cloud を再び起動しています",
+ "cloudWork.startNamed": "{name} を再び起動しています",
+ "cloudWork.other": "My Cloud を再起動しています",
+ "cloudWork.otherNamed": "{name} を再起動しています",
+ "cloudWork.backup": "この更新では最初にすべてをバックアップするため、大きな Cloud ほど時間がかかります。",
+ "cloudWork.backSoon": "1〜2 分で戻ります。",
+ "cloudWork.backMinutes": "数分で戻ります。",
+ "cloudWork.backAround": "{time} ごろに戻る見込みです。",
+ "cloudWork.backWhenDone": "終わりしだい自動的に戻ります。",
+ "cloudWork.longer": "いつもより少し時間がかかっています。",
+ "cloudWork.late": "いつもより時間がかかっています。こちらにも通知が届いています。",
+ "cloudWork.reconnects": "このウィンドウは自動的に再接続します。",
+ "cloudWork.bots": "ボットの終わっていない作業は、戻りしだい自動的に再開します。",
+ "cloudWork.notSent": "メッセージは送信されず、入力欄に残っています。",
"cloudHome.unreachableHost": "Cloud が稼働しているマシンを、ホスティングプロバイダーが再起動しています。Cloud とそのファイルは安全で、通常は約20分以内に自動的に復旧します。",
"cloudHome.unreachable": "Cloud から数分間応答がありません。失われたものはなく、こちらにも通知が届いています。",
"lending.activity.title": "このコンピューターのアクティビティ",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 2fba1fcb40..24bb0adbe2 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -1257,6 +1257,32 @@
"cloudHome.filesLink": "파일에서 클라우드와 폴더 공유하기",
"cloudHome.connectFailed": "클라우드를 열지 못했어요. 잠시 후 다시 시도하세요.",
"cloudHome.waking": "클라우드를 깨우는 중…",
+ "cloudWork.update": "내 클라우드를 최신 버전으로 업데이트하는 중",
+ "cloudWork.updateNamed": "{name}을(를) 최신 버전으로 업데이트하는 중",
+ "cloudWork.resizeUp": "내 클라우드 성능을 높이는 중",
+ "cloudWork.resizeUpNamed": "{name} 성능을 높이는 중",
+ "cloudWork.resize": "내 클라우드 크기를 요금제에 맞게 바꾸는 중",
+ "cloudWork.resizeNamed": "{name} 크기를 요금제에 맞게 바꾸는 중",
+ "cloudWork.move": "내 클라우드를 새 서버로 옮기는 중",
+ "cloudWork.moveNamed": "{name}을(를) 새 서버로 옮기는 중",
+ "cloudWork.disk": "내 클라우드를 새 디스크로 옮기는 중",
+ "cloudWork.diskNamed": "{name}을(를) 새 디스크로 옮기는 중",
+ "cloudWork.restore": "내 클라우드를 백업에서 복원하는 중",
+ "cloudWork.restoreNamed": "{name}을(를) 백업에서 복원하는 중",
+ "cloudWork.start": "내 클라우드를 다시 시작하는 중",
+ "cloudWork.startNamed": "{name}을(를) 다시 시작하는 중",
+ "cloudWork.other": "내 클라우드를 다시 시작하고 있어요",
+ "cloudWork.otherNamed": "{name}을(를) 다시 시작하고 있어요",
+ "cloudWork.backup": "이번 업데이트는 먼저 모든 내용을 백업하므로 큰 클라우드일수록 오래 걸려요.",
+ "cloudWork.backSoon": "1~2분 후에 돌아와요.",
+ "cloudWork.backMinutes": "몇 분 후에 돌아와요.",
+ "cloudWork.backAround": "{time}쯤 돌아올 예정이에요.",
+ "cloudWork.backWhenDone": "끝나면 알아서 돌아와요.",
+ "cloudWork.longer": "평소보다 조금 더 걸리고 있어요.",
+ "cloudWork.late": "평소보다 오래 걸리고 있어요. 저희에게도 알림이 왔어요.",
+ "cloudWork.reconnects": "이 창은 알아서 다시 연결돼요.",
+ "cloudWork.bots": "봇이 끝내지 못한 작업은 돌아오면 알아서 다시 시작돼요.",
+ "cloudWork.notSent": "메시지가 전송되지 않았고 입력란에 그대로 있어요.",
"cloudHome.unreachableHost": "호스팅 업체가 클라우드가 돌아가는 머신을 다시 시작하고 있어요. 클라우드와 파일은 안전하고, 보통 20분 안에 알아서 돌아와요.",
"cloudHome.unreachable": "클라우드가 몇 분째 응답하지 않아요. 잃은 것은 없으며, 저희도 알림을 받았어요.",
"lending.activity.title": "이 컴퓨터의 활동",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 89ee7a8c46..164f13d084 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -1196,6 +1196,32 @@
"cloudHome.filesLink": "Udostępniaj foldery Chmurze w Plikach",
"cloudHome.connectFailed": "Nie udało się otworzyć Chmury. Spróbuj ponownie za chwilę.",
"cloudHome.waking": "Budzenie Chmury…",
+ "cloudWork.update": "Aktualizowanie My Cloud do najnowszej wersji",
+ "cloudWork.updateNamed": "Aktualizowanie {name} do najnowszej wersji",
+ "cloudWork.resizeUp": "My Cloud dostaje więcej mocy",
+ "cloudWork.resizeUpNamed": "{name} dostaje więcej mocy",
+ "cloudWork.resize": "Dopasowywanie rozmiaru My Cloud do planu",
+ "cloudWork.resizeNamed": "Dopasowywanie rozmiaru {name} do planu",
+ "cloudWork.move": "Przenoszenie My Cloud na nowy serwer",
+ "cloudWork.moveNamed": "Przenoszenie {name} na nowy serwer",
+ "cloudWork.disk": "Przenoszenie My Cloud na nowy dysk",
+ "cloudWork.diskNamed": "Przenoszenie {name} na nowy dysk",
+ "cloudWork.restore": "Przywracanie My Cloud z kopii zapasowej",
+ "cloudWork.restoreNamed": "Przywracanie {name} z kopii zapasowej",
+ "cloudWork.start": "Ponowne uruchamianie My Cloud",
+ "cloudWork.startNamed": "Ponowne uruchamianie {name}",
+ "cloudWork.other": "My Cloud uruchamia się ponownie",
+ "cloudWork.otherNamed": "{name} uruchamia się ponownie",
+ "cloudWork.backup": "Ta aktualizacja najpierw robi kopię zapasową wszystkiego, więc duża Chmura trwa dłużej.",
+ "cloudWork.backSoon": "Wróci za minutę lub dwie.",
+ "cloudWork.backMinutes": "Wróci za kilka minut.",
+ "cloudWork.backAround": "Powinna wrócić około {time}.",
+ "cloudWork.backWhenDone": "Wróci sama, gdy skończy.",
+ "cloudWork.longer": "Trwa to nieco dłużej niż zwykle.",
+ "cloudWork.late": "Trwa to dłużej niż zwykle i już nas powiadomiono.",
+ "cloudWork.reconnects": "To okno połączy się ponownie samo.",
+ "cloudWork.bots": "Niedokończona praca botów zacznie się ponownie sama, gdy tylko wróci.",
+ "cloudWork.notSent": "Twoja wiadomość nie została wysłana i nadal jest w polu.",
"cloudHome.unreachableHost": "Nasz dostawca hostingu uruchamia ponownie maszynę, na której działa Chmura. Chmura i jej pliki są bezpieczne; wróci sama, zwykle w ciągu około 20 minut.",
"cloudHome.unreachable": "Chmura nie odpowiada od kilku minut. Nic nie zostało utracone, a my zostaliśmy o tym powiadomieni.",
"lending.activity.title": "Aktywność na tym komputerze",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 59fefc28b9..d5e63a9ffb 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -1481,6 +1481,32 @@
"cloudHome.filesLink": "Compartilhar pastas com o Cloud em “Arquivos”",
"cloudHome.connectFailed": "Não foi possível abrir o Cloud. Tente novamente daqui a pouco.",
"cloudHome.waking": "Acordando o Cloud…",
+ "cloudWork.update": "Atualizando o Cloud para a versão mais recente",
+ "cloudWork.updateNamed": "Atualizando {name} para a versão mais recente",
+ "cloudWork.resizeUp": "Dando mais potência ao Cloud",
+ "cloudWork.resizeUpNamed": "Dando mais potência a {name}",
+ "cloudWork.resize": "Ajustando o tamanho do Cloud ao plano",
+ "cloudWork.resizeNamed": "Ajustando o tamanho de {name} ao plano",
+ "cloudWork.move": "Movendo o Cloud para um novo servidor",
+ "cloudWork.moveNamed": "Movendo {name} para um novo servidor",
+ "cloudWork.disk": "Movendo o Cloud para um novo disco",
+ "cloudWork.diskNamed": "Movendo {name} para um novo disco",
+ "cloudWork.restore": "Restaurando o Cloud de um backup",
+ "cloudWork.restoreNamed": "Restaurando {name} de um backup",
+ "cloudWork.start": "Iniciando o Cloud de novo",
+ "cloudWork.startNamed": "Iniciando {name} de novo",
+ "cloudWork.other": "O Cloud está reiniciando",
+ "cloudWork.otherNamed": "{name} está reiniciando",
+ "cloudWork.backup": "Esta atualização primeiro faz backup de tudo, então um Cloud grande demora mais.",
+ "cloudWork.backSoon": "Volta em um ou dois minutos.",
+ "cloudWork.backMinutes": "Volta em alguns minutos.",
+ "cloudWork.backAround": "Previsão de volta por volta das {time}.",
+ "cloudWork.backWhenDone": "Ele volta sozinho quando terminar.",
+ "cloudWork.longer": "Está demorando um pouco mais que o normal.",
+ "cloudWork.late": "Está demorando mais que o normal, e já fomos avisados.",
+ "cloudWork.reconnects": "Esta janela se reconecta sozinha.",
+ "cloudWork.bots": "O trabalho inacabado dos bots recomeça sozinho assim que ele voltar.",
+ "cloudWork.notSent": "Sua mensagem não foi enviada e continua na caixa.",
"cloudHome.unreachableHost": "Nosso provedor de hospedagem está reiniciando a máquina onde o Cloud roda. O Cloud e os arquivos dele estão seguros, e ele volta sozinho, normalmente em cerca de 20 minutos.",
"cloudHome.unreachable": "O Cloud não responde há alguns minutos. Nada foi perdido, e já fomos avisados.",
"lending.activity.title": "Atividade neste computador",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 6588e9948a..15c295f760 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -1202,6 +1202,32 @@
"cloudHome.filesLink": "Поделиться папками с облаком в разделе «Файлы»",
"cloudHome.connectFailed": "Не удалось открыть облако. Попробуйте ещё раз чуть позже.",
"cloudHome.waking": "Пробуждаем облако…",
+ "cloudWork.update": "Обновляем My Cloud до последней версии",
+ "cloudWork.updateNamed": "Обновляем {name} до последней версии",
+ "cloudWork.resizeUp": "Даём My Cloud больше мощности",
+ "cloudWork.resizeUpNamed": "Даём {name} больше мощности",
+ "cloudWork.resize": "Меняем размер My Cloud под тариф",
+ "cloudWork.resizeNamed": "Меняем размер {name} под тариф",
+ "cloudWork.move": "Переносим My Cloud на новый сервер",
+ "cloudWork.moveNamed": "Переносим {name} на новый сервер",
+ "cloudWork.disk": "Переносим My Cloud на новый диск",
+ "cloudWork.diskNamed": "Переносим {name} на новый диск",
+ "cloudWork.restore": "Восстанавливаем My Cloud из резервной копии",
+ "cloudWork.restoreNamed": "Восстанавливаем {name} из резервной копии",
+ "cloudWork.start": "Снова запускаем My Cloud",
+ "cloudWork.startNamed": "Снова запускаем {name}",
+ "cloudWork.other": "My Cloud перезапускается",
+ "cloudWork.otherNamed": "{name} перезапускается",
+ "cloudWork.backup": "Это обновление сначала делает резервную копию всего содержимого, поэтому большое облако обновляется дольше.",
+ "cloudWork.backSoon": "Вернётся через минуту-другую.",
+ "cloudWork.backMinutes": "Вернётся через несколько минут.",
+ "cloudWork.backAround": "Ожидаем возвращения примерно к {time}.",
+ "cloudWork.backWhenDone": "Вернётся само, когда всё закончится.",
+ "cloudWork.longer": "Занимает чуть больше времени, чем обычно.",
+ "cloudWork.late": "Это занимает больше времени, чем обычно, и мы уже в курсе.",
+ "cloudWork.reconnects": "Это окно переподключится само.",
+ "cloudWork.bots": "Незаконченная работа ботов сама начнётся заново, как только оно вернётся.",
+ "cloudWork.notSent": "Сообщение не отправлено и осталось в поле ввода.",
"cloudHome.unreachableHost": "Наш хостинг-провайдер перезагружает машину, на которой работает Cloud. Cloud и его файлы в безопасности, и он вернётся сам, обычно примерно в течение 20 минут.",
"cloudHome.unreachable": "Cloud не отвечает уже несколько минут. Ничего не потеряно, нас уже уведомили.",
"lending.activity.title": "Активность на этом компьютере",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index c59064bfc8..d7de48dfda 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -789,6 +789,32 @@
"cloudHome.filesLink": "Dosyalar bölümünde klasörleri Cloud ile paylaşın",
"cloudHome.connectFailed": "Cloud açılamadı. Birazdan tekrar deneyin.",
"cloudHome.waking": "Cloud uyandırılıyor…",
+ "cloudWork.update": "Cloud'um en son sürüme güncelleniyor",
+ "cloudWork.updateNamed": "{name} en son sürüme güncelleniyor",
+ "cloudWork.resizeUp": "Cloud'uma daha fazla güç veriliyor",
+ "cloudWork.resizeUpNamed": "{name} için daha fazla güç veriliyor",
+ "cloudWork.resize": "Cloud'umun boyutu planına göre değiştiriliyor",
+ "cloudWork.resizeNamed": "{name} boyutu planına göre değiştiriliyor",
+ "cloudWork.move": "Cloud'um yeni bir sunucuya taşınıyor",
+ "cloudWork.moveNamed": "{name} yeni bir sunucuya taşınıyor",
+ "cloudWork.disk": "Cloud'um yeni bir diske taşınıyor",
+ "cloudWork.diskNamed": "{name} yeni bir diske taşınıyor",
+ "cloudWork.restore": "Cloud'um bir yedekten geri yükleniyor",
+ "cloudWork.restoreNamed": "{name} bir yedekten geri yükleniyor",
+ "cloudWork.start": "Cloud'um yeniden başlatılıyor",
+ "cloudWork.startNamed": "{name} yeniden başlatılıyor",
+ "cloudWork.other": "Cloud'um yeniden başlıyor",
+ "cloudWork.otherNamed": "{name} yeniden başlıyor",
+ "cloudWork.backup": "Bu güncelleme önce üzerindeki her şeyi yedekler, bu yüzden büyük bir Cloud'da daha uzun sürer.",
+ "cloudWork.backSoon": "Bir iki dakikaya geri döner.",
+ "cloudWork.backMinutes": "Birkaç dakikaya geri döner.",
+ "cloudWork.backAround": "Saat {time} civarında dönmesi bekleniyor.",
+ "cloudWork.backWhenDone": "Bitince kendiliğinden geri gelir.",
+ "cloudWork.longer": "Her zamankinden biraz uzun sürüyor.",
+ "cloudWork.late": "Bu her zamankinden uzun sürüyor ve bize haber verildi.",
+ "cloudWork.reconnects": "Bu pencere kendiliğinden yeniden bağlanır.",
+ "cloudWork.bots": "Botların bitmemiş işleri, geri döndüğünde kendiliğinden yeniden başlar.",
+ "cloudWork.notSent": "Mesajın gönderilmedi ve hâlâ kutuda.",
"cloudHome.unreachableHost": "Barındırma sağlayıcımız, Cloud'un çalıştığı makineyi yeniden başlatıyor. Cloud ve dosyaları güvende; genellikle yaklaşık 20 dakika içinde kendiliğinden geri gelir.",
"cloudHome.unreachable": "Cloud birkaç dakikadır yanıt vermiyor. Hiçbir şey kaybolmadı ve bize haber verildi.",
"lending.activity.title": "Bu bilgisayardaki etkinlik",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 9a406dd48b..7c2020bd6b 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -607,6 +607,32 @@
"cloudHome.filesLink": "Поділитися папками з Cloud у розділі «Файли»",
"cloudHome.connectFailed": "Не вдалося відкрити Cloud. Спробуйте ще раз за мить.",
"cloudHome.waking": "Будимо Cloud…",
+ "cloudWork.update": "Оновлюємо My Cloud до останньої версії",
+ "cloudWork.updateNamed": "Оновлюємо {name} до останньої версії",
+ "cloudWork.resizeUp": "Даємо My Cloud більше потужності",
+ "cloudWork.resizeUpNamed": "Даємо {name} більше потужності",
+ "cloudWork.resize": "Змінюємо розмір My Cloud під тариф",
+ "cloudWork.resizeNamed": "Змінюємо розмір {name} під тариф",
+ "cloudWork.move": "Переносимо My Cloud на новий сервер",
+ "cloudWork.moveNamed": "Переносимо {name} на новий сервер",
+ "cloudWork.disk": "Переносимо My Cloud на новий диск",
+ "cloudWork.diskNamed": "Переносимо {name} на новий диск",
+ "cloudWork.restore": "Відновлюємо My Cloud з резервної копії",
+ "cloudWork.restoreNamed": "Відновлюємо {name} з резервної копії",
+ "cloudWork.start": "Знову запускаємо My Cloud",
+ "cloudWork.startNamed": "Знову запускаємо {name}",
+ "cloudWork.other": "My Cloud перезапускається",
+ "cloudWork.otherNamed": "{name} перезапускається",
+ "cloudWork.backup": "Це оновлення спершу робить резервну копію всього вмісту, тож велика хмара оновлюється довше.",
+ "cloudWork.backSoon": "Повернеться за хвилину-дві.",
+ "cloudWork.backMinutes": "Повернеться за кілька хвилин.",
+ "cloudWork.backAround": "Очікуємо повернення приблизно о {time}.",
+ "cloudWork.backWhenDone": "Повернеться саме, щойно все завершиться.",
+ "cloudWork.longer": "Триває трохи довше, ніж зазвичай.",
+ "cloudWork.late": "Це триває довше, ніж зазвичай, і ми вже знаємо.",
+ "cloudWork.reconnects": "Це вікно перепідключиться саме.",
+ "cloudWork.bots": "Незавершена робота ботів сама почнеться знову, щойно воно повернеться.",
+ "cloudWork.notSent": "Повідомлення не надіслано, і воно залишилося в полі введення.",
"cloudHome.unreachableHost": "Наш хостинг-провайдер перезапускає машину, на якій працює Cloud. Cloud і його файли в безпеці, і він повернеться сам, зазвичай приблизно за 20 хвилин.",
"cloudHome.unreachable": "Cloud не відповідає вже кілька хвилин. Нічого не втрачено, і нас уже сповіщено.",
"lending.activity.empty": "Поки нічого. Тут буде кожен запит від ботів звідти, зокрема відхилені.",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 34be691bdd..f7228258fb 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -789,6 +789,32 @@
"cloudHome.filesLink": "Chia sẻ thư mục với Cloud trong mục Tệp",
"cloudHome.connectFailed": "Không thể mở Cloud. Hãy thử lại sau giây lát.",
"cloudHome.waking": "Đang đánh thức Cloud…",
+ "cloudWork.update": "Đang cập nhật My Cloud lên phiên bản mới nhất",
+ "cloudWork.updateNamed": "Đang cập nhật {name} lên phiên bản mới nhất",
+ "cloudWork.resizeUp": "Đang tăng sức mạnh cho My Cloud",
+ "cloudWork.resizeUpNamed": "Đang tăng sức mạnh cho {name}",
+ "cloudWork.resize": "Đang đổi kích thước My Cloud theo gói",
+ "cloudWork.resizeNamed": "Đang đổi kích thước {name} theo gói",
+ "cloudWork.move": "Đang chuyển My Cloud sang máy chủ mới",
+ "cloudWork.moveNamed": "Đang chuyển {name} sang máy chủ mới",
+ "cloudWork.disk": "Đang chuyển My Cloud sang ổ đĩa mới",
+ "cloudWork.diskNamed": "Đang chuyển {name} sang ổ đĩa mới",
+ "cloudWork.restore": "Đang khôi phục My Cloud từ bản sao lưu",
+ "cloudWork.restoreNamed": "Đang khôi phục {name} từ bản sao lưu",
+ "cloudWork.start": "Đang khởi động lại My Cloud",
+ "cloudWork.startNamed": "Đang khởi động lại {name}",
+ "cloudWork.other": "My Cloud đang khởi động lại",
+ "cloudWork.otherNamed": "{name} đang khởi động lại",
+ "cloudWork.backup": "Bản cập nhật này sao lưu mọi thứ trước, nên Cloud lớn sẽ mất nhiều thời gian hơn.",
+ "cloudWork.backSoon": "Sẽ trở lại sau một hai phút.",
+ "cloudWork.backMinutes": "Sẽ trở lại sau vài phút.",
+ "cloudWork.backAround": "Dự kiến trở lại vào khoảng {time}.",
+ "cloudWork.backWhenDone": "Nó sẽ tự trở lại khi xong.",
+ "cloudWork.longer": "Đang lâu hơn bình thường một chút.",
+ "cloudWork.late": "Việc này đang lâu hơn bình thường và chúng tôi đã được báo.",
+ "cloudWork.reconnects": "Cửa sổ này sẽ tự kết nối lại.",
+ "cloudWork.bots": "Công việc dang dở của bot sẽ tự bắt đầu lại ngay khi nó trở lại.",
+ "cloudWork.notSent": "Tin nhắn của bạn chưa được gửi và vẫn còn trong ô soạn.",
"cloudHome.unreachableHost": "Nhà cung cấp dịch vụ lưu trữ của chúng tôi đang khởi động lại máy chạy Cloud. Cloud và các tệp vẫn an toàn, và Cloud sẽ tự hoạt động trở lại, thường trong khoảng 20 phút.",
"cloudHome.unreachable": "Cloud không phản hồi trong vài phút. Không có gì bị mất, và chúng tôi đã được thông báo.",
"lending.activity.title": "Hoạt động trên máy tính này",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 57ab2b79f2..caf982ae5c 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -1449,6 +1449,32 @@
"cloudHome.filesLink": "在「檔案」中與 Cloud 共用資料夾",
"cloudHome.connectFailed": "無法開啟 Cloud。請稍後再試。",
"cloudHome.waking": "正在喚醒 Cloud…",
+ "cloudWork.update": "正在將 My Cloud 更新到最新版本",
+ "cloudWork.updateNamed": "正在將 {name} 更新到最新版本",
+ "cloudWork.resizeUp": "正在為 My Cloud 提升效能",
+ "cloudWork.resizeUpNamed": "正在為 {name} 提升效能",
+ "cloudWork.resize": "正在依方案調整 My Cloud 的規格",
+ "cloudWork.resizeNamed": "正在依方案調整 {name} 的規格",
+ "cloudWork.move": "正在將 My Cloud 移到新伺服器",
+ "cloudWork.moveNamed": "正在將 {name} 移到新伺服器",
+ "cloudWork.disk": "正在將 My Cloud 移到新磁碟",
+ "cloudWork.diskNamed": "正在將 {name} 移到新磁碟",
+ "cloudWork.restore": "正在從備份還原 My Cloud",
+ "cloudWork.restoreNamed": "正在從備份還原 {name}",
+ "cloudWork.start": "正在重新啟動 My Cloud",
+ "cloudWork.startNamed": "正在重新啟動 {name}",
+ "cloudWork.other": "My Cloud 正在重新啟動",
+ "cloudWork.otherNamed": "{name} 正在重新啟動",
+ "cloudWork.backup": "這次更新會先備份上面的所有內容,所以 Cloud 越大花的時間越久。",
+ "cloudWork.backSoon": "一兩分鐘後回來。",
+ "cloudWork.backMinutes": "幾分鐘後回來。",
+ "cloudWork.backAround": "預計在 {time} 左右回來。",
+ "cloudWork.backWhenDone": "完成後會自動回來。",
+ "cloudWork.longer": "比平常稍久一些。",
+ "cloudWork.late": "比平常久了不少,我們已收到通知。",
+ "cloudWork.reconnects": "此視窗會自動重新連線。",
+ "cloudWork.bots": "機器人未完成的工作會在回來後自動重新開始。",
+ "cloudWork.notSent": "你的訊息沒有送出,仍在輸入框中。",
"cloudHome.unreachableHost": "我們的託管服務供應商正在重新啟動 Cloud 所在的機器。Cloud 和它的檔案都很安全,通常約 20 分鐘內就會自動恢復。",
"cloudHome.unreachable": "Cloud 已有幾分鐘沒有回應。沒有遺失任何內容,我們也已收到通知。",
"lending.activity.title": "這台電腦上的活動",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 69beecbcd9..392eecd86b 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -1589,6 +1589,32 @@
"cloudHome.filesLink": "在「文件」中与 Cloud 共享文件夹",
"cloudHome.connectFailed": "无法打开 Cloud。请稍后重试。",
"cloudHome.waking": "正在唤醒 Cloud…",
+ "cloudWork.update": "正在将 My Cloud 更新到最新版本",
+ "cloudWork.updateNamed": "正在将 {name} 更新到最新版本",
+ "cloudWork.resizeUp": "正在为 My Cloud 提升性能",
+ "cloudWork.resizeUpNamed": "正在为 {name} 提升性能",
+ "cloudWork.resize": "正在按套餐调整 My Cloud 的规格",
+ "cloudWork.resizeNamed": "正在按套餐调整 {name} 的规格",
+ "cloudWork.move": "正在将 My Cloud 迁移到新服务器",
+ "cloudWork.moveNamed": "正在将 {name} 迁移到新服务器",
+ "cloudWork.disk": "正在将 My Cloud 迁移到新磁盘",
+ "cloudWork.diskNamed": "正在将 {name} 迁移到新磁盘",
+ "cloudWork.restore": "正在从备份恢复 My Cloud",
+ "cloudWork.restoreNamed": "正在从备份恢复 {name}",
+ "cloudWork.start": "正在重新启动 My Cloud",
+ "cloudWork.startNamed": "正在重新启动 {name}",
+ "cloudWork.other": "My Cloud 正在重启",
+ "cloudWork.otherNamed": "{name} 正在重启",
+ "cloudWork.backup": "此次更新会先备份其中的所有内容,所以 Cloud 越大用时越长。",
+ "cloudWork.backSoon": "一两分钟后恢复。",
+ "cloudWork.backMinutes": "几分钟后恢复。",
+ "cloudWork.backAround": "预计在 {time} 左右恢复。",
+ "cloudWork.backWhenDone": "完成后会自动恢复。",
+ "cloudWork.longer": "比平时稍慢一些。",
+ "cloudWork.late": "比平时慢了不少,我们已收到通知。",
+ "cloudWork.reconnects": "此窗口会自动重新连接。",
+ "cloudWork.bots": "机器人未完成的工作会在恢复后自动重新开始。",
+ "cloudWork.notSent": "你的消息没有发送,仍在输入框中。",
"cloudHome.unreachableHost": "我们的托管服务商正在重启 Cloud 所在的机器。Cloud 及其文件都很安全,通常会在大约 20 分钟内自动恢复。",
"cloudHome.unreachable": "Cloud 已有几分钟没有响应。没有丢失任何内容,我们也已收到通知。",
"lending.activity.title": "这台电脑上的活动",