@rocket.chat/houston 0.27.0-next.3 → 2.1.8
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/LICENSE +1 -1
- package/README.md +108 -15
- package/bin/houston +62 -0
- package/data/docs/ARCHITECTURE.md +387 -0
- package/data/docs/automation.md +107 -0
- package/data/docs/e2ee.md +76 -0
- package/data/docs/eks.md +258 -0
- package/data/docs/gui.md +282 -0
- package/data/docs/guide.md +669 -0
- package/data/docs/kubernetes.md +138 -0
- package/data/docs/troubleshooting.md +193 -0
- package/data/docs/upgrading.md +84 -0
- package/data/docs/voice.md +253 -0
- package/data/iam/engineer-policy.json +11 -0
- package/data/iam/engineer-rbac.yaml +42 -0
- package/data/iam/operator-policy.json +211 -0
- package/data/loadtest/badbot.js +22 -0
- package/data/loadtest/common.js +168 -0
- package/data/loadtest/custom.js +20 -0
- package/data/loadtest/journey.js +58 -0
- package/data/loadtest/login.js +18 -0
- package/data/loadtest/messages.js +13 -0
- package/data/loadtest/mixed.js +39 -0
- package/data/loadtest/read.js +12 -0
- package/data/loadtest/webhook.js +20 -0
- package/data/monitoring/houston-logs.json +98 -0
- package/data/monitoring/k6-loadtest.json +610 -0
- package/data/monitoring/mongodb-exporter.json +3007 -0
- package/data/monitoring/node-exporter-full.json +16114 -0
- package/data/monitoring/rocketchat-metrics.json +6471 -0
- package/data/presets/airgapped.yaml +16 -0
- package/data/presets/default.yaml +9 -0
- package/data/seed/avatar-0.png +0 -0
- package/data/seed/avatar-1.png +0 -0
- package/data/seed/avatar-2.png +0 -0
- package/data/seed/avatar-3.png +0 -0
- package/data/seed/avatar-4.png +0 -0
- package/data/seed/avatar-5.png +0 -0
- package/data/seed/avatar-6.png +0 -0
- package/data/seed/avatar-7.png +0 -0
- package/data/seed/seed-metrics.csv +3 -0
- package/data/seed/seed-preview.png +0 -0
- package/data/seed/seed-report.pdf +32 -0
- package/data/seed/seed-runbook.txt +3 -0
- package/data/skill/SKILL.md +399 -0
- package/data/versions.yaml +55 -0
- package/data/voice/freeswitch/drachtio.xml +52 -0
- package/data/voice/freeswitch/public.xml +87 -0
- package/data/webui/app.css +2003 -0
- package/data/webui/index.html +678 -0
- package/data/webui/js/api.js +561 -0
- package/data/webui/js/boot.js +44 -0
- package/data/webui/js/clusters-tail.js +1377 -0
- package/data/webui/js/clusters.js +896 -0
- package/data/webui/js/create.js +276 -0
- package/data/webui/js/detail.js +507 -0
- package/data/webui/js/jobs.js +636 -0
- package/data/webui/js/logs.js +634 -0
- package/data/webui/js/main.js +14 -0
- package/data/webui/js/options.js +408 -0
- package/data/webui/js/people.js +438 -0
- package/data/webui/js/perf.js +303 -0
- package/data/webui/js/render.js +438 -0
- package/data/webui/js/shared.js +3 -0
- package/data/webui/js/state.js +583 -0
- package/data/webui/js/theme.js +123 -0
- package/data/webui/js/util.js +584 -0
- package/dist/cli/app.js +593 -0
- package/dist/cli/capabilities.js +76 -0
- package/dist/cli/cell-widths.js +495 -0
- package/dist/cli/entry.js +10 -0
- package/dist/cli/error-panel.js +492 -0
- package/dist/cli/handlers/actor.js +84 -0
- package/dist/cli/handlers/https.js +614 -0
- package/dist/cli/handlers/prompt.js +299 -0
- package/dist/cli/handlers/users.js +226 -0
- package/dist/cli/handlers.js +3678 -0
- package/dist/cli/help.js +183 -0
- package/dist/cli/index.js +15 -0
- package/dist/cli/perf.js +810 -0
- package/dist/cli/render.js +254 -0
- package/dist/cli/serve.js +858 -0
- package/dist/cli/spec-data.js +2593 -0
- package/dist/cli/spec-types.js +8 -0
- package/dist/cli/usage-error.js +520 -0
- package/dist/cli/wire.js +70 -0
- package/dist/core/audit.js +346 -0
- package/dist/core/backup-compat.js +85 -0
- package/dist/core/backup.js +1639 -0
- package/dist/core/cluster.js +1398 -0
- package/dist/core/configimport.js +344 -0
- package/dist/core/data.js +267 -0
- package/dist/core/database-of.js +82 -0
- package/dist/core/diagnose.js +159 -0
- package/dist/core/doctor.js +1518 -0
- package/dist/core/edge/acme.js +338 -0
- package/dist/core/edge/engine.js +500 -0
- package/dist/core/edge/networks.js +174 -0
- package/dist/core/edge/paths.js +107 -0
- package/dist/core/edge/routes.js +251 -0
- package/dist/core/edge/routeyml.js +195 -0
- package/dist/core/edge/runtime.js +493 -0
- package/dist/core/edge/spec.js +305 -0
- package/dist/core/edge/types.js +202 -0
- package/dist/core/eks-docs.js +135 -0
- package/dist/core/eks.js +2240 -0
- package/dist/core/envvars.js +562 -0
- package/dist/core/eventlog.js +541 -0
- package/dist/core/firstrun.js +153 -0
- package/dist/core/journal.js +691 -0
- package/dist/core/kube/ask.js +231 -0
- package/dist/core/kube/capabilities.js +269 -0
- package/dist/core/kube/certmanager.js +452 -0
- package/dist/core/kube/chart.js +413 -0
- package/dist/core/kube/cluster.js +196 -0
- package/dist/core/kube/context.js +545 -0
- package/dist/core/kube/endpoints.js +448 -0
- package/dist/core/kube/exec.js +195 -0
- package/dist/core/kube/forward.js +732 -0
- package/dist/core/kube/grafana-ingress.js +110 -0
- package/dist/core/kube/ingress.js +218 -0
- package/dist/core/kube/manifests.js +361 -0
- package/dist/core/kube/monitoring.js +768 -0
- package/dist/core/kube/names.js +237 -0
- package/dist/core/kube/namespace.js +678 -0
- package/dist/core/kube/operator.js +941 -0
- package/dist/core/kube/probe.js +202 -0
- package/dist/core/kube/reachability.js +163 -0
- package/dist/core/kube/release.js +439 -0
- package/dist/core/kube/replicaset.js +180 -0
- package/dist/core/kube/scale.js +398 -0
- package/dist/core/kube/status.js +633 -0
- package/dist/core/kube/tools.js +238 -0
- package/dist/core/kube/transfer.js +173 -0
- package/dist/core/kube/workspace.js +423 -0
- package/dist/core/lifecycle/admin.js +64 -0
- package/dist/core/lifecycle/create-docker.js +1533 -0
- package/dist/core/lifecycle/create-k8s.js +939 -0
- package/dist/core/lifecycle/destroy.js +339 -0
- package/dist/core/lifecycle/inspect.js +635 -0
- package/dist/core/lifecycle/naming.js +298 -0
- package/dist/core/lifecycle/notes.js +726 -0
- package/dist/core/lifecycle/ownership.js +313 -0
- package/dist/core/lifecycle/payload.js +401 -0
- package/dist/core/lifecycle/ports.js +388 -0
- package/dist/core/lifecycle/preconditions.js +367 -0
- package/dist/core/lifecycle/pruning.js +551 -0
- package/dist/core/lifecycle/ready.js +753 -0
- package/dist/core/lifecycle/request.js +525 -0
- package/dist/core/lifecycle/seeding.js +281 -0
- package/dist/core/lifecycle/sizing.js +392 -0
- package/dist/core/lifecycle/state.js +286 -0
- package/dist/core/lifecycle/tlsplan.js +704 -0
- package/dist/core/lifecycle/types.js +232 -0
- package/dist/core/loadtest.js +995 -0
- package/dist/core/migrate.js +612 -0
- package/dist/core/monitor.js +494 -0
- package/dist/core/postready.js +969 -0
- package/dist/core/promote.js +804 -0
- package/dist/core/rcapi.js +1285 -0
- package/dist/core/recovery.js +75 -0
- package/dist/core/runner/engine.js +394 -0
- package/dist/core/runner/host.js +298 -0
- package/dist/core/runner/locks.js +129 -0
- package/dist/core/runner/paths.js +173 -0
- package/dist/core/runner/ports.js +172 -0
- package/dist/core/runner/queries.js +612 -0
- package/dist/core/runner/record.js +563 -0
- package/dist/core/scaleseed.js +271 -0
- package/dist/core/seed-db.js +208 -0
- package/dist/core/sessions.js +472 -0
- package/dist/core/skill.js +326 -0
- package/dist/core/sso-identities.js +172 -0
- package/dist/core/sso.js +703 -0
- package/dist/core/tls-local.js +311 -0
- package/dist/core/tls.js +878 -0
- package/dist/core/topology.js +482 -0
- package/dist/core/upgrade.js +868 -0
- package/dist/core/users.js +739 -0
- package/dist/lib/audit.js +100 -0
- package/dist/lib/close-matches.js +238 -0
- package/dist/lib/compose.js +672 -0
- package/dist/lib/config.js +1398 -0
- package/dist/lib/context.js +18 -0
- package/dist/lib/errors.js +305 -0
- package/dist/lib/events.js +208 -0
- package/dist/lib/float-text.js +126 -0
- package/dist/lib/format.js +1320 -0
- package/dist/lib/home.js +325 -0
- package/dist/lib/journal.js +122 -0
- package/dist/lib/json-text.js +733 -0
- package/dist/lib/jsonout.js +382 -0
- package/dist/lib/lock.js +516 -0
- package/dist/lib/login-name.js +202 -0
- package/dist/lib/map-limit.js +29 -0
- package/dist/lib/mkdir-parents.js +90 -0
- package/dist/lib/mongo-kernel.js +67 -0
- package/dist/lib/monitoring.js +492 -0
- package/dist/lib/platform-name.js +59 -0
- package/dist/lib/presets/common.js +390 -0
- package/dist/lib/presets/composite.js +326 -0
- package/dist/lib/presets/e2ee.js +143 -0
- package/dist/lib/presets/email.js +172 -0
- package/dist/lib/presets/guides.js +27 -0
- package/dist/lib/presets/index.js +490 -0
- package/dist/lib/presets/keycloak.js +369 -0
- package/dist/lib/presets/ldap.js +1285 -0
- package/dist/lib/presets/livechat.js +220 -0
- package/dist/lib/presets/multi-instance.js +124 -0
- package/dist/lib/presets/oidc.js +161 -0
- package/dist/lib/presets/public.js +496 -0
- package/dist/lib/presets/registry.js +64 -0
- package/dist/lib/presets/s3-minio.js +300 -0
- package/dist/lib/presets/saml.js +149 -0
- package/dist/lib/presets/scenario.js +51 -0
- package/dist/lib/presets/types.js +86 -0
- package/dist/lib/presets/voice-pbx.js +320 -0
- package/dist/lib/presets/voice.js +345 -0
- package/dist/lib/presets/webhooks.js +182 -0
- package/dist/lib/redact.js +106 -0
- package/dist/lib/seed-options.js +68 -0
- package/dist/lib/seed-profiles.js +59 -0
- package/dist/lib/targz.js +1383 -0
- package/dist/lib/teammode.js +25 -0
- package/dist/lib/tempdir.js +162 -0
- package/dist/lib/unicode-tables.js +2335 -0
- package/dist/lib/version-spec.js +357 -0
- package/dist/lib/versions.js +463 -0
- package/dist/lib/yaml-dump.js +1361 -0
- package/dist/perf/baseline.js +168 -0
- package/dist/perf/constrain.js +296 -0
- package/dist/perf/k6.js +235 -0
- package/dist/perf/mongoprof.js +171 -0
- package/dist/perf/rcmetrics.js +178 -0
- package/dist/perf/report.js +386 -0
- package/dist/perf/resources.js +224 -0
- package/dist/perf/slo.js +111 -0
- package/dist/perf/timeline.js +187 -0
- package/dist/perf/timings.js +85 -0
- package/dist/perf/verdict.js +201 -0
- package/dist/seams/aws-cli.js +126 -0
- package/dist/seams/docker-cli.js +280 -0
- package/dist/seams/exec.js +861 -0
- package/dist/seams/fs/lock.js +528 -0
- package/dist/seams/kubectl.js +83 -0
- package/dist/seams/rc-http.js +921 -0
- package/dist/seed/apply.js +190 -0
- package/dist/seed/assets.js +76 -0
- package/dist/seed/check.js +391 -0
- package/dist/seed/client.js +172 -0
- package/dist/seed/executor.js +726 -0
- package/dist/seed/history.js +281 -0
- package/dist/seed/kinds.js +91 -0
- package/dist/seed/plan.js +432 -0
- package/dist/seed/receipt.js +339 -0
- package/dist/seed/repairs.js +75 -0
- package/dist/seed/verification.js +363 -0
- package/dist/seed/wording.js +248 -0
- package/dist/web/app.js +326 -0
- package/dist/web/jobs.js +510 -0
- package/dist/web/route-deps.js +211 -0
- package/dist/web/route-table.js +213 -0
- package/dist/web/routes/backup.js +244 -0
- package/dist/web/routes/clusters.js +303 -0
- package/dist/web/routes/data.js +187 -0
- package/dist/web/routes/edge.js +82 -0
- package/dist/web/routes/index.js +63 -0
- package/dist/web/routes/jobs.js +95 -0
- package/dist/web/routes/logs.js +297 -0
- package/dist/web/routes/meta.js +191 -0
- package/dist/web/routes/people.js +151 -0
- package/dist/web/routes/perf.js +95 -0
- package/dist/web/routes/repros.js +550 -0
- package/dist/web/routes/session.js +361 -0
- package/dist/web/routes/spa.js +198 -0
- package/dist/web/security.js +475 -0
- package/dist/web/signin.js +246 -0
- package/package.json +67 -32
- package/.eslintrc +0 -94
- package/.swcrc +0 -18
- package/dist/bin.js +0 -3
- package/dist/cli.js +0 -184
- package/dist/commands/createBranch.js +0 -194
- package/dist/outputCI.js +0 -59
- package/src/bin.js +0 -4
- package/src/cli.ts +0 -25
- package/src/commands/createBranch.ts +0 -28
- package/src/outputCI.ts +0 -12
- package/src-old/logs.js +0 -323
- package/src-old/md.js +0 -191
- package/src-old/release-table.js +0 -60
- package/src-old/set-version.js +0 -614
- package/src-old/utils.js +0 -15
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { ctx } from "./shared.js";
|
|
2
|
+
|
|
3
|
+
// ---- activity (jobs) --------------------------------------------------------
|
|
4
|
+
// A job outlives the dialog that started it AND a page refresh, but nothing could
|
|
5
|
+
// list one: a 20-minute capacity search whose dialog got closed finished server-side
|
|
6
|
+
// with its result unreachable. The manager already retains them (MAX_JOBS), so
|
|
7
|
+
// this only needed somewhere to look.
|
|
8
|
+
// A seed job had NO result renderer, so the browser saw the progress lines and
|
|
9
|
+
// then nothing -- while the CLI printed a table. That mattered less when the result
|
|
10
|
+
// was four counts; it carries the room breakdown and the readback verdict now, and
|
|
11
|
+
// the verdict is the whole reason to look: it is the difference between "the seeder
|
|
12
|
+
// says it made 283 messages" and "283 messages are in there".
|
|
13
|
+
function renderSeedResult(r) {
|
|
14
|
+
const pre = ctx.$("#job-log");
|
|
15
|
+
const box = ctx.el("div", { class: "result" });
|
|
16
|
+
const kv = (k, v, cls = "") => ctx.el("div", { class: cls }, ctx.el("b", {}, k + ": "), v);
|
|
17
|
+
box.append(ctx.el("div", { html: "<hr>" }));
|
|
18
|
+
box.append(kv("Seeded", `${r.users || 0} users · ${r.messages || 0} messages · `
|
|
19
|
+
+ `${r.threads || 0} in threads · ${r.rooms_total || 0} rooms`));
|
|
20
|
+
const planned = r.planned;
|
|
21
|
+
if (planned) box.append(kv("Planned", `${planned.users} users · ${planned.rooms_total} rooms · `
|
|
22
|
+
+ `${planned.messages} messages · ${planned.threads} thread replies · ${planned.files} files`));
|
|
23
|
+
const kinds = Object.entries(r.rooms || {}).sort();
|
|
24
|
+
if (kinds.length) box.append(kv("Rooms", kinds.map(([k, n]) => `${k} ${n}`).join(" · ")));
|
|
25
|
+
if (r.files) box.append(kv("Files", `${r.files} packaged samples`));
|
|
26
|
+
if (r.scenarios && r.scenarios.length) box.append(kv("Scenarios", r.scenarios.join(" · ")));
|
|
27
|
+
if (r.history) box.append(kv("Synthetic history", `${r.history.days} days · ${r.history.oldest} to ${r.history.latest}`));
|
|
28
|
+
if (r.history && r.history.constrained && r.history.constrained.length)
|
|
29
|
+
box.append(kv("History range", `${r.history.constrained.length} room(s) constrained by existing discussion anchors`, "hint"));
|
|
30
|
+
if (Array.isArray(r.created)) {
|
|
31
|
+
const locations = ctx.el("details", {}, ctx.el("summary", {}, "Feature locations and personal star accounts"));
|
|
32
|
+
for (const room of r.created) {
|
|
33
|
+
const details = [];
|
|
34
|
+
if (room.starred_by && room.starred_by.length) details.push(`personal stars: sign in as ${room.starred_by.join(", ")}`);
|
|
35
|
+
if (room.files && room.files.length) details.push(`files: ${room.files.join(", ")}`);
|
|
36
|
+
if (room.kind === "discussion") details.push(`discussion in ${room.parent}`);
|
|
37
|
+
if (details.length) locations.append(kv(room.name, details.join(" · ")));
|
|
38
|
+
}
|
|
39
|
+
if (locations.children.length > 1) box.append(locations);
|
|
40
|
+
}
|
|
41
|
+
const v = r.verification;
|
|
42
|
+
if (v) {
|
|
43
|
+
if (v.features) {
|
|
44
|
+
const rows = [["files", "files", "files"], ["thread_parents", "thread_parents", "thread roots"],
|
|
45
|
+
["reactions", "reaction_actions", "reactions"], ["pins", "pins", "pins"], ["stars", "stars", "stars"],
|
|
46
|
+
["mentions", "mentions", "mentions"], ["edits", "edits", "edits"]];
|
|
47
|
+
box.append(kv("Features (read/planned)", rows.map(([actual, expected, label]) =>
|
|
48
|
+
`${v.features[actual] || 0}/${planned && planned[expected] || 0} ${label}`).join(" · ")));
|
|
49
|
+
}
|
|
50
|
+
const faults = v.faults || [], extra = v.extra || [], unread = v.unreadable || [];
|
|
51
|
+
if (v.ok === true && !faults.length && !unread.length && !extra.length) {
|
|
52
|
+
// Green because it is confirmed, not merely finished.
|
|
53
|
+
box.append(kv("Readback", `${v.checked} rooms match the plan`, "green"));
|
|
54
|
+
} else {
|
|
55
|
+
if (v.ok === null || v.ok === undefined) box.append(kv("Readback", "Incomplete: some checks could not run", "hint"));
|
|
56
|
+
if (faults.length) {
|
|
57
|
+
box.append(kv("Readback", `${faults.length} mismatch(es)`, "bad"));
|
|
58
|
+
for (const f of faults.slice(0, 6)) {
|
|
59
|
+
box.append(ctx.el("div", { class: "hint" },
|
|
60
|
+
`· ${f.room || "users"}: wanted ${f.want}, found ${f.got}`));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// Amber, not red, and stated as what it is: seeding only ever adds, so more
|
|
64
|
+
// than planned means the room had content already.
|
|
65
|
+
if (extra.length) {
|
|
66
|
+
box.append(ctx.el("div", { class: "hint" },
|
|
67
|
+
`· ${extra.length} room(s) hold more than this run planned — they had `
|
|
68
|
+
+ `content already (a re-seed, a preset, a restore). Not a fault.`));
|
|
69
|
+
}
|
|
70
|
+
for (const u of unread.slice(0, 4)) {
|
|
71
|
+
box.append(ctx.el("div", { class: "hint" },
|
|
72
|
+
`· ${u.what} could not be read back (${u.why}) — a gap in the check, not a fault`));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
pre.append(box);
|
|
77
|
+
pre.scrollTop = pre.scrollHeight;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const JOB_RESULT_RENDERER = {
|
|
81
|
+
create: ctx.renderCreateResult, up: ctx.renderCreateResult,
|
|
82
|
+
monitor: ctx.renderCreateResult, "monitor-off": ctx.renderCreateResult,
|
|
83
|
+
seed: renderSeedResult,
|
|
84
|
+
loadtest: ctx.renderPerfResult, capacity: ctx.renderCapResult,
|
|
85
|
+
// Lazily: the cluster module loads after this one.
|
|
86
|
+
"cluster-create": (r) => ctx.renderClusterCreateResult(r),
|
|
87
|
+
"cluster-delete": (r) => ctx.renderClusterDeleteResult(r),
|
|
88
|
+
"cluster-sweep": (r) => ctx.renderClusterSweepResult(r),
|
|
89
|
+
};
|
|
90
|
+
// A job named with the GUI's own verbs, not its kind (`teardown`, `state`). A take down and
|
|
91
|
+
// a delete are one kind, and Stop, Start and Restart another: the job's `verb` says which,
|
|
92
|
+
// and a job from a server without it says both, rather than guess.
|
|
93
|
+
const VERB_NAME = { delete: "Delete", "take down": "Take down", stop: "Stop", start: "Start",
|
|
94
|
+
restart: "Restart" };
|
|
95
|
+
const JOB_NAME = {
|
|
96
|
+
create: "Create", up: "Bring up", state: "Stop, start or restart",
|
|
97
|
+
teardown: "Take down or delete", ready: "Wait until ready", env: "Change env vars",
|
|
98
|
+
backup: "Back up", restore: "Restore", upgrade: "Upgrade", rollback: "Roll back",
|
|
99
|
+
seed: "Add sample data", scale: "Add bulk test data", "clear-scale": "Remove bulk test data",
|
|
100
|
+
"config-import": "Import settings", loadtest: "Load test", capacity: "Find capacity",
|
|
101
|
+
monitor: "Attach monitoring", "monitor-off": "Detach monitoring",
|
|
102
|
+
prune: "Delete taken-down workspaces", "cluster-create": "Build cluster",
|
|
103
|
+
"cluster-delete": "Delete cluster", "cluster-prepare": "Prepare cluster",
|
|
104
|
+
"cluster-sweep": "Look for clusters",
|
|
105
|
+
};
|
|
106
|
+
// An audit line's kind in the same words: the job kinds above, and what the service records
|
|
107
|
+
// itself. A kind not listed here (an older release's) shows as it was written. `up` is only
|
|
108
|
+
// ever the GUI's Bring up; the CLI records none.
|
|
109
|
+
const AUDIT_NAME = {
|
|
110
|
+
down: "Take down", "down-volumes": "Delete", "up-fresh": "Re-create with empty data",
|
|
111
|
+
"volumes-removed": "Delete a dropped preset's data", "upgrade-rollback": "Roll back an upgrade",
|
|
112
|
+
chown: "Hand over", pat: "Create an API token", "api-call": "Call the REST API",
|
|
113
|
+
"logs-open": "Open logs", "job-stop": "Stop a job", "edge-delete-host": "Delete an HTTPS name",
|
|
114
|
+
"me-passwd": "Change own password", "user-add": "Add person", "user-passwd": "Reset a password",
|
|
115
|
+
"user-remove": "Remove person", "user-role": "Change a role", signin: "Sign in",
|
|
116
|
+
"first-run": "Create the first account", "sso-link": "Link Okta sign-in",
|
|
117
|
+
"sso-provision": "Create an account from Okta", "sso-approve": "Approve an Okta link",
|
|
118
|
+
"sso-unlink": "Turn off an Okta link", "cluster-connect": "Connect an EKS cluster",
|
|
119
|
+
"cluster-approve": "Approve an AWS account for spending", denied: "Refused",
|
|
120
|
+
};
|
|
121
|
+
const auditName = (kind) => AUDIT_NAME[kind] || JOB_NAME[kind] || kind;
|
|
122
|
+
const jobTitle = (j) => {
|
|
123
|
+
const what = VERB_NAME[j.verb] || JOB_NAME[j.kind] || j.kind;
|
|
124
|
+
return j.label ? `${what}: ${j.label}` : what;
|
|
125
|
+
};
|
|
126
|
+
function jobAge(j) {
|
|
127
|
+
const end = j.finished_at || Date.now() / 1000;
|
|
128
|
+
const s = Math.max(0, Math.round(end - j.started_at));
|
|
129
|
+
const dur = s >= 60 ? `${Math.floor(s / 60)}m${s % 60}s` : `${s}s`;
|
|
130
|
+
if (j.status === "queued") return "waiting for a slot";
|
|
131
|
+
return j.status === "running" ? `${dur} and counting` : dur;
|
|
132
|
+
}
|
|
133
|
+
let ACT_TAB = "running";
|
|
134
|
+
|
|
135
|
+
async function openJobs(tab) {
|
|
136
|
+
if (tab) ACT_TAB = tab;
|
|
137
|
+
ctx.setView("activity");
|
|
138
|
+
ctx.$(".panes").classList.add("no-detail");
|
|
139
|
+
ctx.$("#actpane").innerHTML = "";
|
|
140
|
+
const panel = ctx.$("#detail");
|
|
141
|
+
panel.innerHTML = "";
|
|
142
|
+
const head = ctx.el("div", { class: "home-head" }, ctx.el("h1", {}, "Activity"),
|
|
143
|
+
ctx.el("p", {}, "What is running right now, and everything that has happened on this server."));
|
|
144
|
+
const tabs = ctx.el("div", { class: "tabs", id: "act-tabs" },
|
|
145
|
+
ctx.el("button", { class: "tab" + (ACT_TAB === "running" ? " active" : ""), id: "act-tab-running",
|
|
146
|
+
onclick: () => openJobs("running") }, "In progress"),
|
|
147
|
+
ctx.el("button", { class: "tab" + (ACT_TAB === "history" ? " active" : ""), id: "act-tab-history",
|
|
148
|
+
onclick: () => openJobs("history") }, "History"));
|
|
149
|
+
head.append(tabs);
|
|
150
|
+
const body = ctx.el("div", { class: "home-body" });
|
|
151
|
+
const card = ctx.el("div", { class: "hcard" });
|
|
152
|
+
const cardhead = ctx.el("div", { class: "jobs-head" });
|
|
153
|
+
cardhead.append(ctx.el("p", { class: "hint", id: "jobs-hint" }, ACT_TAB === "running"
|
|
154
|
+
? "Jobs keep running on the server after you leave this page — including across "
|
|
155
|
+
+ "a refresh. Click one to reopen its output."
|
|
156
|
+
: (ctx.canAdmin()
|
|
157
|
+
? "Everything anyone has done on this server. Refusals are recorded too."
|
|
158
|
+
: "Everything you have done on this server. Admins see everyone's.")));
|
|
159
|
+
const filter = ctx.el("div", { id: "jobs-filter", class: "row2" },
|
|
160
|
+
ctx.el("input", { id: "act-grep", class: "input", placeholder: "filter by action or target…",
|
|
161
|
+
"aria-label": "filter activity",
|
|
162
|
+
oninput: () => { if (ACT_TAB === "history") renderHistory(ctx.$("#jobs-list")); } }),
|
|
163
|
+
ctx.el("label", { class: "toggle" },
|
|
164
|
+
ctx.el("input", { type: "checkbox", id: "act-denied",
|
|
165
|
+
onchange: () => { if (ACT_TAB === "history") renderHistory(ctx.$("#jobs-list")); } }),
|
|
166
|
+
"refusals only"));
|
|
167
|
+
filter.hidden = ACT_TAB !== "history";
|
|
168
|
+
cardhead.append(filter);
|
|
169
|
+
const box = ctx.el("div", { id: "jobs-list", class: "jobs" });
|
|
170
|
+
box.append(ctx.el("p", { class: "empty" }, "loading…"));
|
|
171
|
+
card.append(cardhead, box);
|
|
172
|
+
body.append(card);
|
|
173
|
+
panel.append(head, body);
|
|
174
|
+
if (ACT_TAB === "running") return renderRunning(box);
|
|
175
|
+
return renderHistory(box);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
async function renderRunning(box) {
|
|
179
|
+
let rows;
|
|
180
|
+
try { rows = (await ctx.api("/api/jobs")).jobs; }
|
|
181
|
+
catch (e) { box.innerHTML = ""; box.append(ctx.el("p", { class: "empty" }, e.message)); return; }
|
|
182
|
+
box.innerHTML = "";
|
|
183
|
+
// FILTERED. The tab is labelled "In progress" and rendered every retained job, so
|
|
184
|
+
// finished and failed ones sat under it -- which makes the one question this view
|
|
185
|
+
// exists to answer, "is anything running right now", unanswerable. History is the
|
|
186
|
+
// other tab and already shows all of them.
|
|
187
|
+
const all = rows.length;
|
|
188
|
+
rows = rows.filter((j) => ctx.jobActive(j.status));
|
|
189
|
+
if (!rows.length) {
|
|
190
|
+
box.append(ctx.el("div", { class: "empty" }, all
|
|
191
|
+
? `Nothing running. ${all} finished job${all === 1 ? "" : "s"} in History.`
|
|
192
|
+
: "No jobs yet."));
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
for (const j of rows) {
|
|
196
|
+
// The API has returned `actor` since accounts landed and this dropped it on
|
|
197
|
+
// the floor -- which is most of why the shared box could not answer "who?".
|
|
198
|
+
const who = ctx.el("span", { class: "jmeta" });
|
|
199
|
+
if (j.actor) who.append(ctx.el("span", { class: "jactor" }, j.actor));
|
|
200
|
+
box.append(ctx.el("button", {
|
|
201
|
+
class: "jobrow", type: "button", onclick: () => reopenJob(j),
|
|
202
|
+
title: "Reopen this job's output",
|
|
203
|
+
},
|
|
204
|
+
ctx.el("span", { class: "jstatus " + j.status }, j.status),
|
|
205
|
+
ctx.el("span", { class: "jkind" }, jobTitle(j)),
|
|
206
|
+
who,
|
|
207
|
+
ctx.el("span", { class: "jage" }, jobAge(j))));
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
async function renderHistory(box) {
|
|
212
|
+
const q = ctx.$("#act-grep").value.trim();
|
|
213
|
+
const denied = ctx.$("#act-denied").checked;
|
|
214
|
+
let res, jobs;
|
|
215
|
+
try {
|
|
216
|
+
[res, jobs] = await Promise.all([
|
|
217
|
+
ctx.api("/api/audit?limit=200" + (q ? `&q=${encodeURIComponent(q)}` : "")),
|
|
218
|
+
ctx.api("/api/jobs"),
|
|
219
|
+
]);
|
|
220
|
+
}
|
|
221
|
+
catch (e) { box.innerHTML = ""; box.append(ctx.el("p", { class: "empty" }, e.message)); return; }
|
|
222
|
+
const rows = (res.lines || []).filter((r) => !denied || r.outcome === "denied");
|
|
223
|
+
const finished = denied ? [] : (jobs.jobs || []).filter((j) => !ctx.jobActive(j.status)
|
|
224
|
+
&& (!q || `${j.kind} ${jobTitle(j)}`.toLowerCase().includes(q.toLowerCase())));
|
|
225
|
+
box.innerHTML = "";
|
|
226
|
+
if (finished.length) {
|
|
227
|
+
box.append(ctx.el("div", { class: "section-label" }, "Recent job output"));
|
|
228
|
+
for (const j of finished) {
|
|
229
|
+
const who = ctx.el("span", { class: "jmeta" }, j.actor || "");
|
|
230
|
+
const status = j.error_kind === "Stopped" ? "stopped" : j.status === "error" ? "failed" : "done";
|
|
231
|
+
const target = ctx.el("span", { class: "jkind" }, jobTitle(j));
|
|
232
|
+
if (j.result_dropped) target.append(ctx.el("span", { class: "hint", style: "display:block" },
|
|
233
|
+
"Full output has expired; retained progress is still available."));
|
|
234
|
+
box.append(ctx.el("button", { class: "jobrow", type: "button", "data-job-id": j.id,
|
|
235
|
+
onclick: () => reopenJob(j), title: "Reopen this job's output" },
|
|
236
|
+
ctx.el("span", { class: "jstatus " + j.status }, status), target, who,
|
|
237
|
+
ctx.el("span", { class: "jage" }, jobAge(j))));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
if (!rows.length && !finished.length) { box.append(ctx.el("p", { class: "empty" }, "Nothing recorded yet.")); return; }
|
|
241
|
+
if (rows.length && !denied) {
|
|
242
|
+
box.append(ctx.el("div", { class: "section-label" }, "Recorded activity"),
|
|
243
|
+
ctx.el("p", { class: "hint" }, "Recent jobs can be reopened above. Older job output is no longer retained, "
|
|
244
|
+
+ "and is cleared when this server restarts; these activity entries remain."));
|
|
245
|
+
}
|
|
246
|
+
for (const r of rows) {
|
|
247
|
+
const who = ctx.el("span", { class: "jmeta" });
|
|
248
|
+
if (r.actor && r.actor !== "-") who.append(ctx.el("span", { class: "jactor" }, r.actor));
|
|
249
|
+
// Origin is only shown when it is NOT a checked session: that is the common,
|
|
250
|
+
// trustworthy case, and a column saying "session" on every line teaches
|
|
251
|
+
// nothing. It rides inside the actor cell so the row keeps four columns.
|
|
252
|
+
if (r.origin && r.origin !== "session") {
|
|
253
|
+
who.append(ctx.el("span", { class: "pill small", title: "how this identity was established" },
|
|
254
|
+
r.origin));
|
|
255
|
+
}
|
|
256
|
+
const outcome = ["accepted", "done", "error", "stopped", "denied"].includes(r.outcome) ? r.outcome : null;
|
|
257
|
+
const tone = outcome === "error" || outcome === "denied" ? "error" : outcome === "accepted" ? "queued" : "done";
|
|
258
|
+
// A line with no outcome (`ok`, and every line earlier releases wrote) says it was recorded:
|
|
259
|
+
// for a job that was its acceptance, not that it finished.
|
|
260
|
+
box.append(ctx.el("div", { class: "jobrow" + (r.outcome === "denied" ? " denied" : "") },
|
|
261
|
+
ctx.el("span", { class: "jstatus " + tone }, outcome === "error" ? "failed" : outcome || "recorded"),
|
|
262
|
+
ctx.el("span", { class: "jkind" }, `${auditName(r.kind)}: ${r.label}`),
|
|
263
|
+
who,
|
|
264
|
+
ctx.el("span", { class: "jage" }, (r.ts || "").slice(0, 19).replace("T", " "))));
|
|
265
|
+
}
|
|
266
|
+
if (res.truncated) {
|
|
267
|
+
box.append(ctx.el("p", { class: "hint" },
|
|
268
|
+
"Stopped early — the log is large. Filter it, or ship it somewhere with an index."));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// since=0, so the retained events replay from the start; the terminal event is
|
|
272
|
+
// among them, which is what re-renders a finished job's result table.
|
|
273
|
+
async function reopenJob(j) {
|
|
274
|
+
let state;
|
|
275
|
+
try { state = await ctx.api(`/api/jobs/${j.id}`); }
|
|
276
|
+
catch (e) {
|
|
277
|
+
if (e.status !== 404) { ctx.toast(e.message); return; }
|
|
278
|
+
ctx.closeJobStream(); ctx.openJob(jobTitle(j));
|
|
279
|
+
ctx.$("#job-title").textContent = "Output unavailable";
|
|
280
|
+
ctx.logLine({ level: "warn", message: "This job's output is no longer retained. Its recorded activity remains in History." });
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
ctx.streamJob(j.id, jobTitle(j), JOB_RESULT_RENDERER[j.kind]);
|
|
284
|
+
if (state.result_dropped) ctx.logLine({ level: "warn", message:
|
|
285
|
+
"This job's full output has expired. The retained progress below is what remains." });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// ---- create dialog ----------------------------------------------------------
|
|
289
|
+
let PRESETS = [];
|
|
290
|
+
let ACME_EMAIL_REMEMBERED = false;
|
|
291
|
+
// Who may set rc_image / reg_token / bind / license, and which fields those are -- both
|
|
292
|
+
// from the server, which owns the policy (gui.create_policy). Defaulting to false means a
|
|
293
|
+
// failed /api/settings disables them rather than offering fields the create would reject.
|
|
294
|
+
let MAY_SET_PRIVILEGED = false;
|
|
295
|
+
let PRIVILEGED_FIELDS = ["rc_image", "reg_token", "bind"];
|
|
296
|
+
// The box's own default, from the server -- not a guess and not a constant written
|
|
297
|
+
// here. Starts at the shipped default so the notice is right before /api/settings
|
|
298
|
+
// has answered.
|
|
299
|
+
let DEFAULT_BIND_HOST = "127.0.0.1";
|
|
300
|
+
|
|
301
|
+
function seedChoices(catalogue) {
|
|
302
|
+
if (!catalogue || !Array.isArray(catalogue.profiles) || !Array.isArray(catalogue.scenarios)) return;
|
|
303
|
+
for (const select of [ctx.$("#create-form").seed_profile, ctx.$("#seed-form").profile]) {
|
|
304
|
+
const selected = select.value; select.replaceChildren();
|
|
305
|
+
for (const p of catalogue.profiles) select.append(ctx.el("option", {value: p.name}, `${p.name} — ${p.users} users, ${p.rooms} rooms`));
|
|
306
|
+
if (catalogue.profiles.some((p) => p.name === selected)) select.value = selected;
|
|
307
|
+
}
|
|
308
|
+
for (const area of document.querySelectorAll(".seed-scenarios")) {
|
|
309
|
+
area.replaceChildren();
|
|
310
|
+
for (const s of catalogue.scenarios) area.append(ctx.el("label", {},
|
|
311
|
+
ctx.el("input", {type: "checkbox", name: area.dataset.prefix + "scenarios", value: s.name}), ` ${s.title} `,
|
|
312
|
+
ctx.el("span", {class: "opt"}, s.description)));
|
|
313
|
+
}
|
|
314
|
+
for (const input of document.querySelectorAll('[name="history_days"], [name="seed_history_days"]')) {
|
|
315
|
+
if (catalogue.history) { input.min = catalogue.history.minimum; input.max = catalogue.history.maximum; }
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
async function loadSeedChoices() { try { seedChoices((await ctx.api("/api/settings")).seed_options); } catch (e) { ctx.toast(e.message); } }
|
|
319
|
+
function seedRequest(form, prefix = "") {
|
|
320
|
+
const toggle = form.elements.namedItem(prefix + "history"), days = form.elements.namedItem(prefix + "history_days");
|
|
321
|
+
const out = {scenarios: Array.from(form.querySelectorAll(`input[name="${prefix}scenarios"]:checked`)).map((c) => c.value)};
|
|
322
|
+
if (toggle.checked) {
|
|
323
|
+
const value = Number(days.value);
|
|
324
|
+
if (!Number.isSafeInteger(value) || value < Number(days.min) || value > Number(days.max)) {
|
|
325
|
+
ctx.toast(`history days must be an integer from ${days.min} to ${days.max}`); days.focus(); return null;
|
|
326
|
+
}
|
|
327
|
+
out.history_days = value;
|
|
328
|
+
}
|
|
329
|
+
return out;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// `dest` preselects a place ("docker", "k8s:<context>", "eks:<context>") and opens on
|
|
333
|
+
// the details, which is what "Create here" on the Clusters page means.
|
|
334
|
+
async function openCreate(preset, { dest = "" } = {}) {
|
|
335
|
+
try { PRESETS = (await ctx.api("/api/presets")).presets; } catch (e) { ctx.toast(e.message); return; }
|
|
336
|
+
// Whether `config set acme.email` has been run: the email field is optional only if it has.
|
|
337
|
+
try {
|
|
338
|
+
const s = await ctx.api("/api/settings");
|
|
339
|
+
seedChoices(s.seed_options);
|
|
340
|
+
ACME_EMAIL_REMEMBERED = s.acme_email_remembered;
|
|
341
|
+
MAY_SET_PRIVILEGED = !!s.may_set_privileged;
|
|
342
|
+
if (s.default_bind_host) DEFAULT_BIND_HOST = s.default_bind_host;
|
|
343
|
+
if (Array.isArray(s.privileged_fields) && s.privileged_fields.length) {
|
|
344
|
+
PRIVILEGED_FIELDS = s.privileged_fields;
|
|
345
|
+
}
|
|
346
|
+
// Rebuilt every open: a cluster can appear or go away while the tab is up. ROWS, not
|
|
347
|
+
// names -- which one costs money is the service's decision. The GUI offers local
|
|
348
|
+
// Kubernetes and EKS; every other kubeconfig context stays a command-line choice,
|
|
349
|
+
// and is kept here only so the box default can be described truthfully.
|
|
350
|
+
ctx.ALL_KUBE_CLUSTERS = Array.isArray(s.kube_clusters) ? s.kube_clusters : [];
|
|
351
|
+
// Not a cluster still being built: it is not a place to run anything yet.
|
|
352
|
+
ctx.KUBE_CLUSTERS = ctx.ALL_KUBE_CLUSTERS.filter((c) => c.where !== "elsewhere" && !ctx.clBuilding(c));
|
|
353
|
+
const csel = ctx.$("#context-select");
|
|
354
|
+
if (csel) {
|
|
355
|
+
csel.innerHTML = "";
|
|
356
|
+
csel.append(ctx.el("option", { value: "" }, "the server's default"));
|
|
357
|
+
for (const c of ctx.KUBE_CLUSTERS) csel.append(ctx.el("option", { value: c.context }, ctx.clusterLabel(c)));
|
|
358
|
+
}
|
|
359
|
+
if (Array.isArray(s.runtimes) && s.runtimes.length) ctx.RUNTIMES = s.runtimes;
|
|
360
|
+
} catch (_) { ACME_EMAIL_REMEMBERED = false; MAY_SET_PRIVILEGED = false; }
|
|
361
|
+
// What this machine has left, on the cards for the places that are on it. `up`
|
|
362
|
+
// REFUSES without headroom, so the room belongs at the moment of choosing.
|
|
363
|
+
ctx.api("/api/machine").then((cap) => {
|
|
364
|
+
if (!cap || !cap.known) return;
|
|
365
|
+
ctx.MACHINE_ROOM = cap;
|
|
366
|
+
if (ctx.$("#create-dialog").open) ctx.renderDestinations();
|
|
367
|
+
}).catch(() => {});
|
|
368
|
+
// EVERY OPEN STARTS EMPTY. Only the presets were reset, so a second "+ New workspace"
|
|
369
|
+
// came up holding the last create's name, port and image -- and with "If the name
|
|
370
|
+
// already exists" on its default, Reuse it, Create quietly started (and re-seeded)
|
|
371
|
+
// the earlier workspace instead of building the one on screen.
|
|
372
|
+
ctx.$("#create-form").reset();
|
|
373
|
+
ctx.syncCreateSeed();
|
|
374
|
+
// These decide what CODE runs, where it listens and what it may do, and the server
|
|
375
|
+
// refuses them from whoever `gui.create_policy` says. Shown to everyone -- members create
|
|
376
|
+
// workspaces too -- and disabled with the reason when the policy keeps them to admins.
|
|
377
|
+
// `context` is the place cards' business; `license` is the license row's (options.js).
|
|
378
|
+
for (const name of PRIVILEGED_FIELDS) {
|
|
379
|
+
if (name === "context" || name === "license") continue;
|
|
380
|
+
const input = ctx.$("#create-form")[name];
|
|
381
|
+
if (input && input.closest("label")) {
|
|
382
|
+
input.closest("label").hidden = false;
|
|
383
|
+
input.disabled = !MAY_SET_PRIVILEGED;
|
|
384
|
+
if (!MAY_SET_PRIVILEGED) input.value = "";
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
ctx.$("#adv-policy").hidden = MAY_SET_PRIVILEGED;
|
|
388
|
+
ctx.initOptions(preset);
|
|
389
|
+
syncBindHint();
|
|
390
|
+
ctx.$("#create-dialog").showModal();
|
|
391
|
+
ctx.startCreate({ dest, step: dest ? 2 : 1 });
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// The one thing a browser-only user on a shared server cannot find out any other
|
|
395
|
+
// way: a workspace publishes on 127.0.0.1 by default, so the one they are about to
|
|
396
|
+
// create will answer on the server and nowhere else -- including not in the browser
|
|
397
|
+
// they are creating it from. Shown only when that is actually true: not on a laptop
|
|
398
|
+
// (loopback browser), and not on a box whose default bind host has already been
|
|
399
|
+
// widened, where it would be noise about a problem that no longer exists.
|
|
400
|
+
function syncBindHint() {
|
|
401
|
+
const hint = ctx.$("#create-bind-hint");
|
|
402
|
+
if (!hint) return;
|
|
403
|
+
const remote = ctx.remoteHost();
|
|
404
|
+
const wide = ctx.WIDE_BINDS.includes(String(DEFAULT_BIND_HOST || ""));
|
|
405
|
+
if (!remote || wide) { hint.hidden = true; hint.textContent = ""; return; }
|
|
406
|
+
hint.hidden = false;
|
|
407
|
+
// ONE LINE, above a form somebody is already filling in: only the decision. HTTPS
|
|
408
|
+
// first -- it goes through the same front door as this GUI -- and 0.0.0.0 second, with
|
|
409
|
+
// what it exposes: the workspace and its scenario's consoles, to anyone.
|
|
410
|
+
hint.textContent =
|
|
411
|
+
`Workspaces bind ${DEFAULT_BIND_HOST}, so they will not answer from your browser: choose `
|
|
412
|
+
+ (MAY_SET_PRIVILEGED
|
|
413
|
+
? `HTTPS with Let's Encrypt below, or Bind host 0.0.0.0 (open to anyone who can reach the server).`
|
|
414
|
+
: `HTTPS with Let's Encrypt below, or ask an admin to set bind_host.`);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
Object.defineProperties(ctx, {
|
|
418
|
+
"renderSeedResult": { enumerable: true, get: () => renderSeedResult },
|
|
419
|
+
"seedChoices": { enumerable: true, get: () => seedChoices },
|
|
420
|
+
"loadSeedChoices": { enumerable: true, get: () => loadSeedChoices },
|
|
421
|
+
"seedRequest": { enumerable: true, get: () => seedRequest },
|
|
422
|
+
"JOB_RESULT_RENDERER": { enumerable: true, get: () => JOB_RESULT_RENDERER },
|
|
423
|
+
"jobTitle": { enumerable: true, get: () => jobTitle },
|
|
424
|
+
"jobAge": { enumerable: true, get: () => jobAge },
|
|
425
|
+
"ACT_TAB": { enumerable: true, get: () => ACT_TAB, set: value => { ACT_TAB = value; } },
|
|
426
|
+
"openJobs": { enumerable: true, get: () => openJobs },
|
|
427
|
+
"renderRunning": { enumerable: true, get: () => renderRunning },
|
|
428
|
+
"renderHistory": { enumerable: true, get: () => renderHistory },
|
|
429
|
+
"reopenJob": { enumerable: true, get: () => reopenJob },
|
|
430
|
+
"PRESETS": { enumerable: true, get: () => PRESETS, set: value => { PRESETS = value; } },
|
|
431
|
+
"ACME_EMAIL_REMEMBERED": { enumerable: true, get: () => ACME_EMAIL_REMEMBERED, set: value => { ACME_EMAIL_REMEMBERED = value; } },
|
|
432
|
+
"MAY_SET_PRIVILEGED": { enumerable: true, get: () => MAY_SET_PRIVILEGED, set: value => { MAY_SET_PRIVILEGED = value; } },
|
|
433
|
+
"PRIVILEGED_FIELDS": { enumerable: true, get: () => PRIVILEGED_FIELDS, set: value => { PRIVILEGED_FIELDS = value; } },
|
|
434
|
+
"DEFAULT_BIND_HOST": { enumerable: true, get: () => DEFAULT_BIND_HOST, set: value => { DEFAULT_BIND_HOST = value; } },
|
|
435
|
+
"openCreate": { enumerable: true, get: () => openCreate },
|
|
436
|
+
"syncBindHint": { enumerable: true, get: () => syncBindHint },
|
|
437
|
+
});
|
|
438
|
+
export { renderSeedResult, JOB_RESULT_RENDERER, jobTitle, jobAge, ACT_TAB, openJobs, renderRunning, renderHistory, reopenJob, PRESETS, ACME_EMAIL_REMEMBERED, MAY_SET_PRIVILEGED, PRIVILEGED_FIELDS, DEFAULT_BIND_HOST, openCreate, syncBindHint };
|