querysub 0.255.0 → 0.256.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/package.json
CHANGED
|
@@ -35,8 +35,16 @@ export class MachinesListPage extends qreact.Component {
|
|
|
35
35
|
return <div className={css.vbox(16)}>
|
|
36
36
|
<div className={css.hbox(12)}>
|
|
37
37
|
<h2 className={css.flexGrow(1)}>Machines</h2>
|
|
38
|
-
<div
|
|
39
|
-
|
|
38
|
+
<div
|
|
39
|
+
className={css.pad2(12, 8).bord2(200, 30, 70).hsl(200, 20, 95).colorhsl(200, 30, 30).button}
|
|
40
|
+
onClick={() => {
|
|
41
|
+
void navigator.clipboard.writeText("yarn setup-machine 153.34.64.2");
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
💡 Setup new machines with <code
|
|
45
|
+
className={css.pad2(4, 2).bord2(200, 20, 80).hsl(200, 15, 85)}
|
|
46
|
+
title="Click to copy command"
|
|
47
|
+
>yarn setup-machine 153.34.64.2</code>
|
|
40
48
|
</div>
|
|
41
49
|
|
|
42
50
|
{!this.state.isDeleteMode && likelyDeadMachines.length > 0 && (
|
|
@@ -198,12 +198,19 @@ export class DeployMachineButtons extends qreact.Component<{
|
|
|
198
198
|
className={buttonStyle.alignSelf("stretch").hsl(120, 70, 50)}
|
|
199
199
|
onClick={async () => {
|
|
200
200
|
let machineController = MachineController(SocketFunction.browserNodeId());
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
try {
|
|
202
|
+
await Promise.allSettled(outdatedMachines.map(machine => {
|
|
203
|
+
return machineController.deployMachineFromBrowser.promise({
|
|
204
|
+
machineNodeId: machine.applyNodeId,
|
|
205
|
+
gitRef: gitInfo.latestRef,
|
|
206
|
+
});
|
|
207
|
+
}));
|
|
208
|
+
} catch (error) {
|
|
209
|
+
// They should always end with a disconnect (which means the machine updated, so obviously it disconnected from us)
|
|
210
|
+
if (!String(error).includes("disconnected")) {
|
|
211
|
+
throw error;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
207
214
|
}}
|
|
208
215
|
>
|
|
209
216
|
<div>
|