added install script for agent
changed backend to agent
This commit is contained in:
+14
@@ -1011,6 +1011,20 @@
|
||||
"url": "https://github.com/sponsors/rawify"
|
||||
}
|
||||
},
|
||||
"node_modules/fsevents": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
||||
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/function-bind": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||
|
||||
+10
-10
@@ -1,49 +1,49 @@
|
||||
{
|
||||
"hash": "a8485264",
|
||||
"hash": "b0f2c346",
|
||||
"configHash": "52b789fd",
|
||||
"lockfileHash": "19a64c5b",
|
||||
"browserHash": "13a46cf8",
|
||||
"lockfileHash": "36751e9a",
|
||||
"browserHash": "b8a79246",
|
||||
"optimized": {
|
||||
"react": {
|
||||
"src": "../../react/index.js",
|
||||
"file": "react.js",
|
||||
"fileHash": "a70bf382",
|
||||
"fileHash": "f391bff6",
|
||||
"needsInterop": true
|
||||
},
|
||||
"react-dom": {
|
||||
"src": "../../react-dom/index.js",
|
||||
"file": "react-dom.js",
|
||||
"fileHash": "7f4f6530",
|
||||
"fileHash": "da208921",
|
||||
"needsInterop": true
|
||||
},
|
||||
"react/jsx-dev-runtime": {
|
||||
"src": "../../react/jsx-dev-runtime.js",
|
||||
"file": "react_jsx-dev-runtime.js",
|
||||
"fileHash": "29814b4e",
|
||||
"fileHash": "17c0ab6a",
|
||||
"needsInterop": true
|
||||
},
|
||||
"react/jsx-runtime": {
|
||||
"src": "../../react/jsx-runtime.js",
|
||||
"file": "react_jsx-runtime.js",
|
||||
"fileHash": "5bd4a4be",
|
||||
"fileHash": "b72ca820",
|
||||
"needsInterop": true
|
||||
},
|
||||
"axios": {
|
||||
"src": "../../axios/index.js",
|
||||
"file": "axios.js",
|
||||
"fileHash": "1c15dc89",
|
||||
"fileHash": "c11d45d0",
|
||||
"needsInterop": false
|
||||
},
|
||||
"lucide-react": {
|
||||
"src": "../../lucide-react/dist/esm/lucide-react.js",
|
||||
"file": "lucide-react.js",
|
||||
"fileHash": "79ceef1b",
|
||||
"fileHash": "8c52d38a",
|
||||
"needsInterop": false
|
||||
},
|
||||
"react-dom/client": {
|
||||
"src": "../../react-dom/client.js",
|
||||
"file": "react-dom_client.js",
|
||||
"fileHash": "d1dd1258",
|
||||
"fileHash": "0d216239",
|
||||
"needsInterop": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -72,7 +72,7 @@ export function Nodes({ nodes, onChanged }) {
|
||||
<section className="space-y-5">
|
||||
<div className="border-b border-zinc-800 pb-5">
|
||||
<h1 className="text-2xl font-semibold text-zinc-100">Nodes</h1>
|
||||
<p className="mt-2 max-w-3xl text-sm leading-6 text-zinc-500">Register Incus backend agents by URL and token.</p>
|
||||
<p className="mt-2 max-w-3xl text-sm leading-6 text-zinc-500">Register Incus node agents by URL and token.</p>
|
||||
</div>
|
||||
|
||||
{error ? <Notice tone="bad" text={error} /> : null}
|
||||
|
||||
@@ -60,7 +60,7 @@ export function Scheduler({ onChanged, schedules, vms }) {
|
||||
<div className="border-b border-zinc-800 pb-5">
|
||||
<h1 className="text-2xl font-semibold text-zinc-100">Scheduler</h1>
|
||||
<p className="mt-2 max-w-3xl text-sm leading-6 text-zinc-500">
|
||||
Configure automatic backups per VM. Schedules are stored on the backend and run while the backend service is active.
|
||||
Configure automatic backups per VM. Schedules are stored in management and run while the management service is active.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export function Settings({ nodes, onChanged }) {
|
||||
const result = await api.put(`/settings/${encodeURIComponent(nodeId)}`, { values });
|
||||
setFields(result.data.fields || []);
|
||||
setValues(Object.fromEntries((result.data.fields || []).map((field) => [field.key, field.value || ''])));
|
||||
setMessage('Settings saved. Running jobs use the updated values; a changed PORT still needs a backend restart.');
|
||||
setMessage('Settings saved. Running jobs use the updated values; a changed PORT still needs an agent restart.');
|
||||
await onChanged?.();
|
||||
} catch (requestError) {
|
||||
setError(errorMessage(requestError));
|
||||
|
||||
Reference in New Issue
Block a user