@intentius/behold 0.30.1 → 0.31.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/AGENTS.md +475 -16
- package/README.md +25 -19
- package/demos.json +14 -9
- package/dist/cli.js +54900 -26771
- package/example-carve/README.md +19 -23
- package/example-carve/app/package.json +1 -1
- package/example-carve/app/src/carved.ts +3 -3
- package/example-carve/carve-report.json +1 -1
- package/example-carve/{legacy-tf → tf-root}/terraform.tfstate +1 -1
- package/example-choudoufu-estate/README.md +7 -0
- package/example-choudoufu-estate/chant.workspace.json +1 -1
- package/example-choudoufu-estate/scripts/choudoufu-down.sh +2 -1
- package/example-choudoufu-estate/scripts/choudoufu-up.sh +10 -3
- package/example-terraform-estate/README.md +32 -5
- package/example-terraform-estate/chant.workspace.json +1 -1
- package/example-terraform-estate/recorded/adoption/platform.json +72 -0
- package/example-terraform-estate/recorded/adoption/prod.json +224 -0
- package/example-terralith/README.md +1 -1
- package/example-three-cloud/README.md +111 -18
- package/example-three-cloud/aws/Pulumi.yaml +15 -0
- package/example-three-cloud/aws/index.ts +174 -0
- package/example-three-cloud/aws/package-lock.json +2725 -0
- package/example-three-cloud/aws/package.json +14 -0
- package/example-three-cloud/aws/tsconfig.json +17 -0
- package/example-three-cloud/azure/main.tf +48 -0
- package/example-three-cloud/azure/site.tf +104 -0
- package/example-three-cloud/chant.config.json +9 -0
- package/example-three-cloud/chant.workspace.json +30 -4
- package/example-three-cloud/dns/chant.config.ts +26 -1
- package/example-three-cloud/dns/src/records.component.ts +32 -6
- package/example-three-cloud/package-lock.json +48 -27
- package/example-three-cloud/package.json +8 -6
- package/example-three-cloud/scripts/emulators-up.sh +28 -1
- package/example-three-cloud/scripts/front-door.ts +679 -86
- package/package.json +13 -6
- package/web/adopt-pulumi.js +114 -0
- package/web/adopt-pulumi.test.js +28 -0
- package/web/adopt.js +203 -0
- package/web/adopt.test.js +27 -0
- package/web/app.js +614 -19
- package/web/carve-steps.js +1 -1
- package/web/carve-steps.test.js +2 -2
- package/web/change-set-overlay.js +12 -5
- package/web/change-set-overlay.test.js +22 -0
- package/web/drift-stream.js +241 -0
- package/web/drift-stream.test.js +146 -0
- package/web/edge-weight.d.ts +1 -1
- package/web/edge-weight.js +5 -1
- package/web/edge-weight.test.js +19 -0
- package/web/embed.js +2 -2
- package/web/event-help-modal.js +18 -12
- package/web/event-help-modal.test.js +28 -1
- package/web/graph-query.js +180 -0
- package/web/graph-query.test.js +49 -0
- package/web/graph.html +107 -0
- package/web/index-diff.js +109 -0
- package/web/index-diff.test.js +39 -0
- package/web/index.html +55 -0
- package/web/kiosk-ask-layout.js +85 -0
- package/web/kiosk-ask-layout.test.js +83 -0
- package/web/kiosk-ask-tips.js +477 -0
- package/web/kiosk-ask-tips.test.js +372 -0
- package/web/kiosk-ask.js +774 -0
- package/web/kiosk-ask.test.js +593 -0
- package/web/kiosk-banner.js +108 -0
- package/web/kiosk-banner.test.js +72 -0
- package/web/kiosk-center-cards.test.js +110 -0
- package/web/kiosk-estate-scene.js +267 -0
- package/web/kiosk-estate-scene.test.js +21 -0
- package/web/kiosk-event-help.js +4 -1
- package/web/kiosk-graph-pane.js +63 -0
- package/web/kiosk-graph-pane.test.js +105 -0
- package/web/kiosk-light-frame.js +197 -0
- package/web/kiosk-light.js +547 -0
- package/web/kiosk-light.test.js +297 -0
- package/web/kiosk-member-kind.test.js +140 -0
- package/web/kiosk-metrics.js +7 -4
- package/web/kiosk-modal-sticky.test.js +2 -1
- package/web/kiosk-popover.js +4 -1
- package/web/kiosk-refit.test.js +81 -0
- package/web/kiosk-reset.js +49 -0
- package/web/kiosk-reset.test.js +11 -0
- package/web/kiosk-shot.js +40 -2
- package/web/kiosk-shot.test.js +23 -1
- package/web/kiosk-side.js +296 -0
- package/web/kiosk-side.test.js +249 -0
- package/web/kiosk-vendor.js +85 -7
- package/web/kiosk-vendor.test.js +9 -9
- package/web/kiosk-watch.js +20 -4
- package/web/kiosk-watch.test.js +15 -1
- package/web/kiosk.html +153 -1
- package/web/kiosk.js +252 -27
- package/web/kiosk.test.js +25 -1
- package/web/member-kind.js +31 -0
- package/web/small-stage.test.js +4 -0
- package/web/template-apps.js +245 -0
- package/web/template-apps.test.js +252 -0
- package/web/templates.js +285 -0
- package/web/templates.test.js +155 -0
- package/web/terragucci-change.js +30 -13
- package/web/terragucci-lifecycle.js +112 -62
- package/web/terragucci-lifecycle.test.js +29 -1
- package/web/terragucci-timeline.js +39 -2
- package/web/terragucci-timeline.test.js +42 -1
- package/web/tool-mark.js +4 -4
- package/web/tool-mark.test.js +1 -1
- package/web/vendors/atmos.svg +1 -0
- package/web/vendors/chant.svg +1 -0
- package/web/vendors/choudoufu.svg +1 -0
- package/web/vendors/terragrunt.svg +9 -0
- package/web/vendors/terragucci.svg +1 -0
- package/example-three-cloud/aws/chant.config.ts +0 -8
- package/example-three-cloud/aws/site.component.ts +0 -13
- package/example-three-cloud/aws/src/site.ts +0 -27
- package/example-three-cloud/azure/chant.config.ts +0 -1
- package/example-three-cloud/azure/src/site.component.ts +0 -13
- package/example-three-cloud/azure/src/site.ts +0 -18
- package/web/vendors/choudoufu-128.png +0 -0
- package/web/vendors/choudoufu-64.png +0 -0
- /package/example-carve/{legacy-tf → tf-root}/cdn.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/compute.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/floci-override.tf.disabled +0 -0
- /package/example-carve/{legacy-tf → tf-root}/modules/cdn/main.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/naming.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/network.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/observability.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/outputs.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/storage.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/versions.tf +0 -0
|
@@ -126,6 +126,53 @@ export function laneGateCards(lane, now = new Date()) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
const ACTION_TITLE = {
|
|
130
|
+
waiting: (a) => `${a.name} on ${a.root} waits for an approval${a.requester ? ` by someone other than ${a.requester}` : ""}`,
|
|
131
|
+
expired: (a) => `${a.name} on ${a.root}: the request for an approval expired`,
|
|
132
|
+
approved: (a) => `${a.name} on ${a.root} approved by ${a.approval.by}, not run yet`,
|
|
133
|
+
applied: (a) => (a.applied && a.applied.result ? `${a.name} on ${a.root} ran: ${a.applied.result}` : `${a.name} on ${a.root} ran (outcome not recorded)`),
|
|
134
|
+
failed: (a) => `${a.name} on ${a.root} failed`,
|
|
135
|
+
refused: (a) => `${a.name} on ${a.root} refused: an approval stands for another plan`,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const ACTION_NOTE = "An action runs only once a person other than the one who asked approves its plan digest: that person runs the line at their shell. behold does not approve, and does not run the action.";
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* behold#1037: each day-2 action's gate as a card, in the shape of a wave's:
|
|
142
|
+
* who asked, its state, the digest, who approved and how the run ended, and
|
|
143
|
+
* while it waits the `terragucci approve action` line a second person runs.
|
|
144
|
+
* `root` keeps one app's. No button but Copy.
|
|
145
|
+
*/
|
|
146
|
+
export function laneActionCards(lane, now = new Date(), { root = null } = {}) {
|
|
147
|
+
if (!lane || !lane.found || !Array.isArray(lane.actions)) return [];
|
|
148
|
+
return lane.actions
|
|
149
|
+
.filter((a) => !root || a.root === root)
|
|
150
|
+
.map((a) => {
|
|
151
|
+
const facts = [];
|
|
152
|
+
if (a.pending) facts.push(`asked${a.requester ? ` by ${a.requester}` : ""} ${clock(a.pending.timestamp, now)}, ${ago(a.pending.timestamp, now)}`);
|
|
153
|
+
if (a.approval) facts.push(`${a.state === "refused" ? `approved for plan ${short(a.refused && a.refused.digest) || "(none)"} by` : "approved by"} ${approvalWords(a.approval, now)}`);
|
|
154
|
+
if (a.applied) facts.push(`${a.applied.result === "failed" ? "failed" : "ran"} ${clock(a.applied.finished || a.applied.at, now)}, ${ago(a.applied.finished || a.applied.at, now)}${typeof a.applied.exit === "number" ? `, exit ${a.applied.exit}` : ""}`);
|
|
155
|
+
if (a.digest) facts.push(`plan ${short(a.digest)}`);
|
|
156
|
+
facts.push(a.address);
|
|
157
|
+
if (modeWords(a)) facts.push(modeWords(a));
|
|
158
|
+
const uncounted = (a.uncounted || []).map((u) => `${u.approval.by}'s approval of this plan does not count: ${u.reason}`);
|
|
159
|
+
const job = a.pending && a.pending.url ? a.pending.url : null;
|
|
160
|
+
return {
|
|
161
|
+
gate: a.gate,
|
|
162
|
+
root: a.root,
|
|
163
|
+
name: a.name,
|
|
164
|
+
state: a.state,
|
|
165
|
+
tone: a.state === "waiting" ? "wave" : a.state === "failed" || a.state === "refused" ? "failed" : a.state === "expired" ? "none" : "ok",
|
|
166
|
+
title: ACTION_TITLE[a.state] ? ACTION_TITLE[a.state](a) : `${a.name} on ${a.root}: ${a.state}`,
|
|
167
|
+
facts: facts.join(" · "),
|
|
168
|
+
...(uncounted.length ? { uncounted } : {}),
|
|
169
|
+
source: sourceWords(a.source, now),
|
|
170
|
+
...(a.command ? { command: a.command, note: ACTION_NOTE } : {}),
|
|
171
|
+
...(job ? { job } : {}),
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
129
176
|
/** Each locked root: who holds it and since when, and the commit it was read from. */
|
|
130
177
|
export function laneLockRows(lane, now = new Date()) {
|
|
131
178
|
if (!lane || !lane.found) return [];
|
|
@@ -158,68 +205,7 @@ export function renderLane(host, lane, polled, now, ui) {
|
|
|
158
205
|
e.textContent = `the reports' index could not be checked: ${polled.reports.error}`;
|
|
159
206
|
host.appendChild(e);
|
|
160
207
|
}
|
|
161
|
-
for (const g of laneGateCards(lane, now))
|
|
162
|
-
const box = document.createElement("div");
|
|
163
|
-
box.className = `ws-gate tg-lane-gate tg-${g.tone}`;
|
|
164
|
-
const title = document.createElement("div");
|
|
165
|
-
title.className = "ws-gate-title";
|
|
166
|
-
title.textContent = g.title;
|
|
167
|
-
const facts = document.createElement("div");
|
|
168
|
-
facts.className = "ws-gate-facts";
|
|
169
|
-
facts.textContent = g.facts;
|
|
170
|
-
const src = document.createElement("div");
|
|
171
|
-
src.className = "ws-gate-note";
|
|
172
|
-
src.textContent = `from ${g.source}`;
|
|
173
|
-
box.append(title, facts);
|
|
174
|
-
for (const u of g.uncounted || []) {
|
|
175
|
-
const why = document.createElement("div");
|
|
176
|
-
why.className = "ws-gate-note";
|
|
177
|
-
why.textContent = u;
|
|
178
|
-
box.appendChild(why);
|
|
179
|
-
}
|
|
180
|
-
box.appendChild(src);
|
|
181
|
-
for (const o of g.overrides || []) {
|
|
182
|
-
const what = document.createElement("div");
|
|
183
|
-
what.className = "ws-gate-note";
|
|
184
|
-
what.textContent = o.text;
|
|
185
|
-
const cmd = document.createElement("code");
|
|
186
|
-
cmd.className = "tg-command";
|
|
187
|
-
cmd.textContent = o.command;
|
|
188
|
-
const copy = ui.button("Copy", "", () => ui.copy(o.command, copy));
|
|
189
|
-
copy.title = "Copy the line. Run it at your shell, with your reason: the override is yours.";
|
|
190
|
-
box.append(what, cmd, copy);
|
|
191
|
-
if (o.job) {
|
|
192
|
-
const links = document.createElement("div");
|
|
193
|
-
links.className = "ws-gate-note";
|
|
194
|
-
links.appendChild(ui.link("job", o.job));
|
|
195
|
-
box.appendChild(links);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
if (g.overrideNote) {
|
|
199
|
-
const n = document.createElement("div");
|
|
200
|
-
n.className = "ws-gate-note";
|
|
201
|
-
n.textContent = g.overrideNote;
|
|
202
|
-
box.appendChild(n);
|
|
203
|
-
}
|
|
204
|
-
if (g.command) {
|
|
205
|
-
const cmd = document.createElement("code");
|
|
206
|
-
cmd.className = "tg-command";
|
|
207
|
-
cmd.textContent = g.command;
|
|
208
|
-
const copy = ui.button("Copy", "", () => ui.copy(g.command, copy));
|
|
209
|
-
copy.title = "Copy the line. Run it at your shell: the approval or answer is yours.";
|
|
210
|
-
const note = document.createElement("div");
|
|
211
|
-
note.className = "ws-gate-note";
|
|
212
|
-
note.textContent = g.note;
|
|
213
|
-
box.append(cmd, copy, note);
|
|
214
|
-
}
|
|
215
|
-
if (g.job) {
|
|
216
|
-
const links = document.createElement("div");
|
|
217
|
-
links.className = "ws-gate-note";
|
|
218
|
-
links.appendChild(ui.link("job", g.job));
|
|
219
|
-
box.appendChild(links);
|
|
220
|
-
}
|
|
221
|
-
host.appendChild(box);
|
|
222
|
-
}
|
|
208
|
+
for (const g of [...laneGateCards(lane, now), ...laneActionCards(lane, now)]) host.appendChild(gateCardElement(g, ui));
|
|
223
209
|
for (const l of laneLockRows(lane, now)) {
|
|
224
210
|
const row = document.createElement("div");
|
|
225
211
|
row.className = "tg-root tg-lock";
|
|
@@ -233,3 +219,67 @@ export function renderLane(host, lane, polled, now, ui) {
|
|
|
233
219
|
host.appendChild(row);
|
|
234
220
|
}
|
|
235
221
|
}
|
|
222
|
+
|
|
223
|
+
/** One card from laneGateCards or laneActionCards as DOM: title, facts, source, and the line to copy. `doc` is the document (a test hands in its own). */
|
|
224
|
+
export function gateCardElement(g, ui, doc = document) {
|
|
225
|
+
const box = doc.createElement("div");
|
|
226
|
+
box.className = `ws-gate tg-lane-gate tg-${g.tone}`;
|
|
227
|
+
const title = doc.createElement("div");
|
|
228
|
+
title.className = "ws-gate-title";
|
|
229
|
+
title.textContent = g.title;
|
|
230
|
+
const facts = doc.createElement("div");
|
|
231
|
+
facts.className = "ws-gate-facts";
|
|
232
|
+
facts.textContent = g.facts;
|
|
233
|
+
const src = doc.createElement("div");
|
|
234
|
+
src.className = "ws-gate-note";
|
|
235
|
+
src.textContent = `from ${g.source}`;
|
|
236
|
+
box.append(title, facts);
|
|
237
|
+
for (const u of g.uncounted || []) {
|
|
238
|
+
const why = doc.createElement("div");
|
|
239
|
+
why.className = "ws-gate-note";
|
|
240
|
+
why.textContent = u;
|
|
241
|
+
box.appendChild(why);
|
|
242
|
+
}
|
|
243
|
+
box.appendChild(src);
|
|
244
|
+
for (const o of g.overrides || []) {
|
|
245
|
+
const what = doc.createElement("div");
|
|
246
|
+
what.className = "ws-gate-note";
|
|
247
|
+
what.textContent = o.text;
|
|
248
|
+
const cmd = doc.createElement("code");
|
|
249
|
+
cmd.className = "tg-command";
|
|
250
|
+
cmd.textContent = o.command;
|
|
251
|
+
const copy = ui.button("Copy", "", () => ui.copy(o.command, copy));
|
|
252
|
+
copy.title = "Copy the line. Run it at your shell, with your reason: the override is yours.";
|
|
253
|
+
box.append(what, cmd, copy);
|
|
254
|
+
if (o.job) {
|
|
255
|
+
const links = doc.createElement("div");
|
|
256
|
+
links.className = "ws-gate-note";
|
|
257
|
+
links.appendChild(ui.link("job", o.job));
|
|
258
|
+
box.appendChild(links);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (g.overrideNote) {
|
|
262
|
+
const n = doc.createElement("div");
|
|
263
|
+
n.className = "ws-gate-note";
|
|
264
|
+
n.textContent = g.overrideNote;
|
|
265
|
+
box.appendChild(n);
|
|
266
|
+
}
|
|
267
|
+
if (g.command) {
|
|
268
|
+
const cmd = doc.createElement("code");
|
|
269
|
+
cmd.className = "tg-command";
|
|
270
|
+
cmd.textContent = g.command;
|
|
271
|
+
const copy = ui.button("Copy", "", () => ui.copy(g.command, copy));
|
|
272
|
+
copy.title = "Copy the line. Run it at your shell: the approval or answer is yours.";
|
|
273
|
+
const note = doc.createElement("div");
|
|
274
|
+
note.className = "ws-gate-note";
|
|
275
|
+
note.textContent = g.note;
|
|
276
|
+
box.append(cmd, copy, note);
|
|
277
|
+
}
|
|
278
|
+
if (g.job) {
|
|
279
|
+
const links = doc.createElement("div");
|
|
280
|
+
links.className = "ws-gate-note";
|
|
281
|
+
links.appendChild(ui.link("job", g.job));
|
|
282
|
+
box.appendChild(links);
|
|
283
|
+
}
|
|
284
|
+
return box;
|
|
285
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
|
-
import { holderWords, laneGateCards, laneLegend, laneLockRows, sourceWords } from "./terragucci-lifecycle.js";
|
|
2
|
+
import { holderWords, laneActionCards, laneGateCards, laneLegend, laneLockRows, sourceWords } from "./terragucci-lifecycle.js";
|
|
3
3
|
|
|
4
4
|
const NOW = new Date("2026-10-09T12:00:00Z");
|
|
5
5
|
const source = { branch: "chant/lifecycle", commit: "1a2b3c4d5e6f7a8b", committed: "2026-10-09T10:00:00Z", path: "_gates/tf-apply.jsonl" };
|
|
@@ -93,3 +93,31 @@ describe("the chant/lifecycle lane, dated (#505)", () => {
|
|
|
93
93
|
expect(l.title).toContain("chant/lifecycle 1a2b3c4d5e6f");
|
|
94
94
|
});
|
|
95
95
|
});
|
|
96
|
+
|
|
97
|
+
describe("a day-2 action's gate card (behold#1037)", () => {
|
|
98
|
+
const DA = `sha256:${"a".repeat(64)}`;
|
|
99
|
+
const base = { op: "tf-action", gate: "apps/orders:module.app.action.aws_lambda_invoke.rotate", root: "apps/orders", address: "module.app.action.aws_lambda_invoke.rotate", name: "rotate", requester: "lee", digest: DA, approvalMode: { mode: "ledger", from: "base" }, source: { ...source, path: "_gates/tf-action.jsonl" } };
|
|
100
|
+
const waiting = { ...base, state: "waiting", pending: { timestamp: "2026-10-09T10:00:00Z", expiresAt: "2099-01-01T00:00:00Z", url: "https://github.com/acme/shop/actions/runs/401" }, command: `npx terragucci approve action apps/orders --plan ${DA}`, uncounted: [{ approval: { by: "lee", at: "2026-10-09T10:30:00Z", signed: false }, reason: "the requester's own approval never counts" }] };
|
|
101
|
+
const applied = { ...base, gate: "apps/search:module.app.action.aws_lambda_invoke.rotate", root: "apps/search", state: "applied", approval: { by: "dana", at: "2026-10-09T11:00:00Z", signed: false }, applied: { at: "2026-10-09T11:05:00Z", approvedAt: "2026-10-09T11:00:00Z", approvedBy: "dana", result: "ok", finished: "2026-10-09T11:06:00Z", exit: 0 } };
|
|
102
|
+
|
|
103
|
+
it("shows the digest, the waiting state and the approve line for a second person, with no button but Copy", () => {
|
|
104
|
+
const [c] = laneActionCards(lane({ actions: [waiting, applied] }), NOW, { root: "apps/orders" });
|
|
105
|
+
expect(c.title).toBe("rotate on apps/orders waits for an approval by someone other than lee");
|
|
106
|
+
expect(c.tone).toBe("wave");
|
|
107
|
+
expect(c.command).toBe(`npx terragucci approve action apps/orders --plan ${DA}`);
|
|
108
|
+
expect(c.note).toContain("a person other than the one who asked");
|
|
109
|
+
expect(c.facts).toContain(`plan ${"a".repeat(12)}`);
|
|
110
|
+
expect(c.uncounted).toEqual(["lee's approval of this plan does not count: the requester's own approval never counts"]);
|
|
111
|
+
expect(c.job).toBe("https://github.com/acme/shop/actions/runs/401");
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it("shows a finished run's ok, and nothing for a lane without actions", () => {
|
|
115
|
+
const cards = laneActionCards(lane({ actions: [waiting, applied] }), NOW);
|
|
116
|
+
expect(cards.map((c) => c.root)).toEqual(["apps/orders", "apps/search"]);
|
|
117
|
+
expect(cards[1]).toMatchObject({ title: "rotate on apps/search ran: ok", tone: "ok" });
|
|
118
|
+
expect(cards[1].command).toBeUndefined();
|
|
119
|
+
expect(cards[1].facts).toContain("ran 11:06 UTC, 54m ago, exit 0");
|
|
120
|
+
expect(laneActionCards(lane(), NOW)).toEqual([]);
|
|
121
|
+
expect(laneActionCards(lane({ found: false, actions: [waiting] }), NOW)).toEqual([]);
|
|
122
|
+
});
|
|
123
|
+
});
|
|
@@ -24,18 +24,54 @@ const KIND_WORDS = {
|
|
|
24
24
|
"state-export": "state exported",
|
|
25
25
|
"ephemeral-apply": "ephemeral copy applied",
|
|
26
26
|
"ephemeral-destroy": "ephemeral copy destroyed",
|
|
27
|
+
"unrecorded-write": "write no run recorded",
|
|
28
|
+
"agent-run": "agent run",
|
|
29
|
+
request: "app requested",
|
|
30
|
+
"action-requested": "action requested",
|
|
31
|
+
action: "action",
|
|
27
32
|
};
|
|
28
33
|
|
|
34
|
+
/** behold#1037: an action entry's name, root and address, from its detail, else its gate `<root>:<address>`. */
|
|
35
|
+
export function actionOf(entry) {
|
|
36
|
+
const d = entry.detail || {};
|
|
37
|
+
const gate = String(entry.what || "");
|
|
38
|
+
const address = typeof d.address === "string" ? d.address : gate.slice(gate.indexOf(":") + 1);
|
|
39
|
+
const root = typeof d.root === "string" ? d.root : gate.endsWith(`:${address}`) ? gate.slice(0, -address.length - 1) : (entry.roots || [])[0] || "";
|
|
40
|
+
return { name: address.split(".").pop() || address, root, address };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The page of the CI run behind an entry, when the record names its run id
|
|
45
|
+
* and its ledger commit is on a forge page: `<repo>/actions/runs/<id>`, as
|
|
46
|
+
* GitHub and Forgejo both lay it out.
|
|
47
|
+
*/
|
|
48
|
+
export function runUrlOf(entry) {
|
|
49
|
+
const id = entry.run && entry.run.run_id;
|
|
50
|
+
const url = entry.evidence && entry.evidence.url;
|
|
51
|
+
if (!id || !/^\d+$/.test(String(id)) || typeof url !== "string") return null;
|
|
52
|
+
const m = /^(https?:\/\/[^/]+\/[^/]+\/[^/]+)\/commit\/[0-9a-f]+$/i.exec(url);
|
|
53
|
+
return m ? `${m[1]}/actions/runs/${id}` : null;
|
|
54
|
+
}
|
|
55
|
+
|
|
29
56
|
/** The tone an entry is drawn in: a refusal or a failure stands out, a wait is pending, the rest is quiet. */
|
|
30
57
|
export function toneOf(entry) {
|
|
31
58
|
if (entry.kind === "refused" || entry.result === "failed" || entry.result === "denied") return "failed";
|
|
32
|
-
if (entry.result === "waiting" || entry.kind === "approval-requested" || entry.kind === "override-requested") return "wave";
|
|
59
|
+
if (entry.result === "waiting" || entry.kind === "approval-requested" || entry.kind === "override-requested" || entry.kind === "action-requested") return "wave";
|
|
33
60
|
if (entry.kind.endsWith("-revoked")) return "drift";
|
|
34
61
|
return "ok";
|
|
35
62
|
}
|
|
36
63
|
|
|
37
|
-
/** One entry as a line: "approved wave-2 by dana · plan 4be1…". */
|
|
64
|
+
/** One entry as a line: "approved wave-2 by dana · plan 4be1…", or for an action "rotate on apps/orders, approved by dana, ok". */
|
|
38
65
|
export function entryLine(entry) {
|
|
66
|
+
if (entry.kind === "action") {
|
|
67
|
+
const a = actionOf(entry);
|
|
68
|
+
return `${a.name} on ${a.root}${entry.who ? `, approved by ${entry.who}` : ""}${entry.result ? `, ${entry.result}` : ""}`;
|
|
69
|
+
}
|
|
70
|
+
if (entry.kind === "action-requested") {
|
|
71
|
+
const a = actionOf(entry);
|
|
72
|
+
const digest = entry.digest ? ` · plan ${entry.digest.replace(/^(jcs1-)?sha256:/, "").slice(0, 12)}` : "";
|
|
73
|
+
return `${a.name} on ${a.root} requested${entry.who ? ` by ${entry.who}` : ""}${entry.result ? `, ${entry.result}` : ""}${digest}`;
|
|
74
|
+
}
|
|
39
75
|
const what = KIND_WORDS[entry.kind] || entry.kind;
|
|
40
76
|
const by = entry.who ? ` by ${entry.who}` : "";
|
|
41
77
|
// Signing is opt-in: an unsigned approval is the normal case and goes unmarked.
|
|
@@ -63,6 +99,7 @@ export function laneRows(answer, { root = null, now = new Date() } = {}) {
|
|
|
63
99
|
const links = [];
|
|
64
100
|
if (e.run && e.run.report) links.push({ text: "report", href: hrefOf(answer, e.run.report) });
|
|
65
101
|
if (e.run && e.run.job_url) links.push({ text: "job", href: e.run.job_url });
|
|
102
|
+
else if (runUrlOf(e)) links.push({ text: "run", href: runUrlOf(e) });
|
|
66
103
|
if (e.evidence && e.evidence.source === "ledger" && /^https?:\/\//.test(e.evidence.url || "")) links.push({ text: "ledger commit", href: e.evidence.url });
|
|
67
104
|
return {
|
|
68
105
|
id: e.id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
|
-
import { entryLine, laneLegend, laneRows, rootOfCard, toneOf } from "./terragucci-timeline.js";
|
|
2
|
+
import { actionOf, entryLine, laneLegend, laneRows, rootOfCard, runUrlOf, toneOf } from "./terragucci-timeline.js";
|
|
3
3
|
|
|
4
4
|
// #506: the lane's words, from answers shaped like /api/terragucci/timeline.
|
|
5
5
|
const NOW = new Date("2026-10-08T13:31:00Z");
|
|
@@ -54,3 +54,44 @@ describe("the timeline lane (#506)", () => {
|
|
|
54
54
|
expect(laneLegend({ error: "audit.jsonl in /r, line 2, is not JSON.", code: "terragucci-report" })).toContain("line 2");
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
+
|
|
58
|
+
describe("a day-2 action's history (behold#1037)", () => {
|
|
59
|
+
const GATE = "apps/orders:module.app.action.aws_lambda_invoke.rotate";
|
|
60
|
+
const DIGEST = `sha256:${"a1".repeat(32)}`;
|
|
61
|
+
const action = {
|
|
62
|
+
id: "act",
|
|
63
|
+
kind: "action",
|
|
64
|
+
at: "2026-10-08T10:30:00.000Z",
|
|
65
|
+
who: "dana",
|
|
66
|
+
what: GATE,
|
|
67
|
+
digest: DIGEST,
|
|
68
|
+
result: "ok",
|
|
69
|
+
roots: ["apps/orders"],
|
|
70
|
+
run: { run_id: "402" },
|
|
71
|
+
evidence: { source: "ledger", path: "_gates/tf-action/applied.jsonl", url: `https://github.com/acme/shop/commit/${"b".repeat(40)}` },
|
|
72
|
+
detail: { root: "apps/orders", address: "module.app.action.aws_lambda_invoke.rotate", approved_by: "dana", requester: "lee" },
|
|
73
|
+
};
|
|
74
|
+
const asked = { ...action, id: "ask", kind: "action-requested", at: "2026-10-08T10:00:00.000Z", who: "lee", result: "waiting", run: { run_id: "401" }, evidence: { ...action.evidence, path: "_gates/tf-action.jsonl" } };
|
|
75
|
+
|
|
76
|
+
it("renders an action entry as its name on its root, who approved it and how it ended, with its run link", () => {
|
|
77
|
+
expect(entryLine(action)).toBe("rotate on apps/orders, approved by dana, ok");
|
|
78
|
+
const rows = laneRows({ ...answer, entries: [action, asked] }, { root: "apps/orders", now: NOW });
|
|
79
|
+
expect(rows[0].text).toBe("rotate on apps/orders, approved by dana, ok");
|
|
80
|
+
expect(rows[0].tone).toBe("ok");
|
|
81
|
+
expect(rows[0].links).toEqual([
|
|
82
|
+
{ text: "run", href: "https://github.com/acme/shop/actions/runs/402" },
|
|
83
|
+
{ text: "ledger commit", href: action.evidence.url },
|
|
84
|
+
]);
|
|
85
|
+
expect(runUrlOf(action)).toBe("https://github.com/acme/shop/actions/runs/402");
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("renders the request as who asked, waiting, with its digest, and a failed run as failed", () => {
|
|
89
|
+
expect(entryLine(asked)).toBe(`rotate on apps/orders requested by lee, waiting · plan ${"a1".repeat(6)}`);
|
|
90
|
+
expect(toneOf(asked)).toBe("wave");
|
|
91
|
+
expect(toneOf({ ...action, result: "failed" })).toBe("failed");
|
|
92
|
+
expect(entryLine({ ...action, result: "failed" })).toBe("rotate on apps/orders, approved by dana, failed");
|
|
93
|
+
// An entry with no detail still reads from its gate.
|
|
94
|
+
expect(actionOf({ what: GATE, roots: [] })).toEqual({ name: "rotate", root: "apps/orders", address: "module.app.action.aws_lambda_invoke.rotate" });
|
|
95
|
+
expect(runUrlOf({ ...action, evidence: { source: "ledger" } })).toBeNull();
|
|
96
|
+
});
|
|
97
|
+
});
|
package/web/tool-mark.js
CHANGED
|
@@ -48,10 +48,10 @@ export const TOOLS = {
|
|
|
48
48
|
// colors or proportions". A job label implies no endorsement, and the
|
|
49
49
|
// colours and geometry are Cloud Posse's.
|
|
50
50
|
atmos: { name: "Atmos", kind: "orchestrator", icon: { viewBox: "0 0 192 191.999996", fill: { dark: "#ffffff", light: "rgb(10,25,34)" }, shapes: [{"tag": "path", "d": "M 117.269531 58.875 L 119.5 50.671875 L 127.792969 48.460938 L 119.5 46.253906 L 117.269531 38.050781 L 115.035156 46.253906 L 106.742188 48.460938 L 115.035156 50.671875 Z M 117.269531 58.875 ", "fill-rule": "nonzero"}, {"tag": "path", "d": "M 163.125 79.195312 L 161.351562 85.703125 L 154.777344 87.453125 L 161.351562 89.207031 L 163.125 95.714844 L 164.894531 89.207031 L 171.472656 87.453125 L 164.894531 85.703125 Z M 163.125 79.195312 ", "fill-rule": "nonzero"}, {"tag": "path", "d": "M 181.980469 51.519531 L 180.484375 46.019531 L 178.988281 51.519531 L 173.429688 53 L 178.988281 54.480469 L 180.484375 59.980469 L 181.980469 54.480469 L 187.539062 53 Z M 181.980469 51.519531 ", "fill-rule": "nonzero"}, {"tag": "path", "d": "M 151.78125 101.105469 L 151.8125 101.078125 C 148.183594 95.535156 143.296875 91.1875 137.667969 88.285156 C 138.976562 85.765625 140.238281 83.152344 141.453125 80.441406 C 142.304688 80.308594 143.433594 79.996094 144.757812 79.296875 L 149.492188 85.363281 C 149.585938 85.480469 149.730469 85.546875 149.878906 85.535156 C 150.03125 85.523438 150.164062 85.4375 150.238281 85.304688 L 154.171875 78.21875 C 154.21875 78.136719 154.238281 78.042969 154.226562 77.949219 L 153.242188 70.554688 C 154.359375 68.753906 155.421875 66.730469 156.410156 64.542969 C 162.089844 51.9375 160.945312 43.84375 159.753906 40.140625 C 159.363281 38.921875 158.996094 38.296875 158.984375 38.269531 C 158.890625 38.113281 158.714844 38.03125 158.535156 38.054688 C 158.070312 38.117188 147.082031 39.8125 137.78125 57.585938 C 137.769531 57.609375 136.578125 59.976562 135.484375 63.113281 L 129.105469 67.238281 C 129.027344 67.289062 128.96875 67.359375 128.933594 67.441406 L 125.855469 74.933594 C 125.816406 75.03125 125.8125 75.136719 125.84375 75.234375 C 125.859375 75.273438 125.878906 75.3125 125.902344 75.351562 C 125.988281 75.472656 126.132812 75.546875 126.28125 75.542969 L 134.003906 75.355469 C 134.359375 76.632812 134.980469 77.679688 135.828125 78.484375 C 134.65625 81.074219 133.441406 83.578125 132.179688 85.984375 C 128.554688 84.8125 124.710938 84.191406 120.765625 84.191406 C 119.742188 84.191406 118.667969 84.242188 117.574219 84.335938 L 116.347656 84.441406 L 115.863281 83.316406 C 109.441406 68.316406 93.898438 58.242188 77.1875 58.242188 C 54.109375 58.242188 35.335938 76.433594 35.335938 98.792969 L 35.335938 100.597656 L 33.765625 100.714844 C 32.863281 100.785156 31.941406 100.894531 31.027344 101.046875 C 27.207031 101.625 23.507812 102.984375 20.21875 105.007812 L 20.222656 105.011719 L 18.957031 105.933594 C 11.15625 111.320312 6.5 120.046875 6.5 129.285156 C 6.5 145.082031 19.753906 157.933594 36.046875 157.933594 L 119.867188 157.933594 C 140.816406 157.933594 157.863281 141.414062 157.863281 121.105469 C 157.863281 114.453125 156 107.929688 152.480469 102.234375 Z M 146.242188 55.753906 C 148.613281 55.007812 151.148438 56.304688 151.902344 58.652344 C 152.65625 61 151.34375 63.503906 148.972656 64.25 C 146.597656 64.996094 144.066406 63.699219 143.3125 61.351562 C 142.558594 59.003906 143.871094 56.5 146.242188 55.753906 Z M 36.046875 151.210938 C 23.5 151.210938 13.296875 141.375 13.296875 129.285156 C 13.296875 118.742188 21.09375 109.683594 31.835938 107.738281 C 33.078125 107.542969 34.195312 107.449219 35.285156 107.449219 C 41.074219 107.449219 46.480469 109.699219 50.546875 113.648438 C 51.171875 114.433594 52.132812 114.941406 53.21875 114.941406 C 55.097656 114.941406 56.625 113.417969 56.625 111.535156 C 56.625 110.34375 56.015625 109.300781 55.089844 108.691406 C 51.796875 105.558594 47.816406 103.214844 43.402344 101.90625 L 42.253906 101.566406 L 42.179688 100.128906 C 42.15625 99.679688 42.132812 99.230469 42.132812 98.792969 C 42.132812 80.140625 57.855469 64.964844 77.1875 64.964844 C 90.570312 64.964844 102.980469 72.515625 108.800781 84.207031 L 109.628906 85.867188 L 107.878906 86.523438 C 100.277344 89.367188 93.84375 94.667969 89.496094 101.464844 C 88.996094 102.054688 88.691406 102.820312 88.691406 103.65625 C 88.691406 105.535156 90.210938 107.054688 92.085938 107.054688 C 93.375 107.054688 94.496094 106.335938 95.070312 105.28125 C 95.074219 105.285156 95.078125 105.289062 95.082031 105.292969 C 100.070312 97.289062 108.429688 91.972656 117.898438 91.066406 C 118.59375 91.023438 119.230469 91 119.867188 91 C 122.933594 91 125.894531 91.4375 128.695312 92.234375 C 112.875 118.917969 91.886719 133.214844 75.910156 140.714844 C 56.324219 149.90625 39.992188 151.113281 38.371094 151.210938 Z M 119.867188 151.210938 L 65.675781 151.210938 C 69.613281 149.855469 73.824219 148.195312 78.210938 146.144531 C 95.222656 138.207031 117.613281 122.976562 134.285156 94.421875 C 144.25 99.453125 151.066406 109.523438 151.066406 121.105469 C 151.066406 137.707031 137.070312 151.210938 119.867188 151.210938 Z M 119.867188 151.210938 ", "fill-rule": "nonzero"}] } },
|
|
51
|
-
// chant: ours. Its
|
|
52
|
-
// (https://github.com/INTENTIUS/chant/blob/main/docs/public/brand/
|
|
51
|
+
// chant: ours. Its face from chant's docs
|
|
52
|
+
// (https://github.com/INTENTIUS/chant/blob/main/docs/public/brand/logo.svg),
|
|
53
53
|
// in the gold chant's site draws it in (styles/chant.css `--ch-gold`).
|
|
54
|
-
chant: { name: "chant", kind: "orchestrator", icon: { viewBox: "
|
|
54
|
+
chant: { name: "chant", kind: "orchestrator", icon: { viewBox: "-1 -1 40 23", fill: { dark: "#c9a96e", light: "#9a7b3f" }, attrs: { "shape-rendering": "crispEdges" }, shapes: [{"tag": "rect", "x": 2, "y": 0, "width": 2, "height": 1}, {"tag": "rect", "x": 7, "y": 0, "width": 2, "height": 1}, {"tag": "rect", "x": 12, "y": 0, "width": 2, "height": 1}, {"tag": "rect", "x": 17, "y": 0, "width": 2, "height": 1}, {"tag": "rect", "x": 22, "y": 0, "width": 2, "height": 1}, {"tag": "rect", "x": 1, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 4, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 6, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 9, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 11, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 14, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 16, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 19, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 21, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 1, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 3, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 3, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 4, "width": 1, "height": 1}, {"tag": "rect", "x": 5, "y": 4, "width": 5, "height": 1}, {"tag": "rect", "x": 16, "y": 4, "width": 5, "height": 1}, {"tag": "rect", "x": 24, "y": 4, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 4, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 10, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 15, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 21, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 5, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 3, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 6, "y": 6, "width": 3, "height": 1}, {"tag": "rect", "x": 11, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 14, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 17, "y": 6, "width": 3, "height": 1}, {"tag": "rect", "x": 22, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 6, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 3, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 5, "y": 7, "width": 5, "height": 1}, {"tag": "rect", "x": 11, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 14, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 16, "y": 7, "width": 5, "height": 1}, {"tag": "rect", "x": 22, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 7, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 3, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 5, "y": 8, "width": 5, "height": 1}, {"tag": "rect", "x": 11, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 14, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 16, "y": 8, "width": 5, "height": 1}, {"tag": "rect", "x": 22, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 8, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 3, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 6, "y": 9, "width": 3, "height": 1}, {"tag": "rect", "x": 11, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 14, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 17, "y": 9, "width": 3, "height": 1}, {"tag": "rect", "x": 22, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 9, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 4, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 10, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 15, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 21, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 10, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 11, "width": 1, "height": 1}, {"tag": "rect", "x": 5, "y": 11, "width": 5, "height": 1}, {"tag": "rect", "x": 16, "y": 11, "width": 5, "height": 1}, {"tag": "rect", "x": 24, "y": 11, "width": 1, "height": 1}, {"tag": "rect", "x": 33, "y": 11, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 12, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 12, "width": 1, "height": 1}, {"tag": "rect", "x": 30, "y": 12, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 12, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 13, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 13, "width": 1, "height": 1}, {"tag": "rect", "x": 27, "y": 13, "width": 1, "height": 1}, {"tag": "rect", "x": 31, "y": 13, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 13, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 14, "width": 1, "height": 1}, {"tag": "rect", "x": 11, "y": 14, "width": 6, "height": 1}, {"tag": "rect", "x": 24, "y": 14, "width": 1, "height": 1}, {"tag": "rect", "x": 28, "y": 14, "width": 1, "height": 1}, {"tag": "rect", "x": 31, "y": 14, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 14, "width": 1, "height": 1}, {"tag": "rect", "x": 1, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 10, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 17, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 24, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 28, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 31, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 15, "width": 1, "height": 1}, {"tag": "rect", "x": 2, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 10, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 17, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 23, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 28, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 31, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 16, "width": 1, "height": 1}, {"tag": "rect", "x": 3, "y": 17, "width": 3, "height": 1}, {"tag": "rect", "x": 11, "y": 17, "width": 6, "height": 1}, {"tag": "rect", "x": 20, "y": 17, "width": 3, "height": 1}, {"tag": "rect", "x": 27, "y": 17, "width": 1, "height": 1}, {"tag": "rect", "x": 31, "y": 17, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 17, "width": 1, "height": 1}, {"tag": "rect", "x": 30, "y": 18, "width": 1, "height": 1}, {"tag": "rect", "x": 34, "y": 18, "width": 1, "height": 1}, {"tag": "rect", "x": 33, "y": 19, "width": 1, "height": 1}] } },
|
|
55
55
|
// OpenTofu: the color icon from cncf/artwork,
|
|
56
56
|
// https://github.com/cncf/artwork/blob/bd7f51052b704482f03f7dcb40b09a02b2cc9e7f/projects/opentofu/icon/color/opentofu-icon-color.svg,
|
|
57
57
|
// geometry and colours as published (the classes inlined as fills). "All
|
|
@@ -68,7 +68,7 @@ export const TOOLS = {
|
|
|
68
68
|
// marketing division." A job label is another use, so no logo.
|
|
69
69
|
terraform: { name: "Terraform", kind: "engine", icon: null },
|
|
70
70
|
// choudoufu: ours, the PNG the kiosk's choudoufu page already shows. Relative, so a static export finds it.
|
|
71
|
-
choudoufu: { name: "choudoufu", kind: "engine", icon: { image: "vendors/choudoufu
|
|
71
|
+
choudoufu: { name: "choudoufu", kind: "engine", icon: { image: "vendors/choudoufu.svg" } },
|
|
72
72
|
// SQL Yodeler: ours, its cowboy hat from SQL Yodeler's docs
|
|
73
73
|
// (sql-yodeler docs-site/public/brand/hat-small.png and hat-160.png), served
|
|
74
74
|
// as /vendors/sql-yodeler-44.png and -160.png; the larger one draws the mark. After
|
package/web/tool-mark.test.js
CHANGED
|
@@ -80,6 +80,6 @@ describe("the marks", () => {
|
|
|
80
80
|
// Inline geometry, or the PNG behold ships; never an external URL.
|
|
81
81
|
expect(JSON.stringify(t.icon)).not.toMatch(/https?:/);
|
|
82
82
|
}
|
|
83
|
-
expect(TOOLS.choudoufu.icon.image).toBe("vendors/choudoufu
|
|
83
|
+
expect(TOOLS.choudoufu.icon.image).toBe("vendors/choudoufu.svg");
|
|
84
84
|
});
|
|
85
85
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="128" viewBox="0 0 438 504" width="111" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><radialGradient id="a" cx="0" cy="0" gradientTransform="matrix(174.9364 0 0 -174.9364 166.25447 175.30861)" gradientUnits="userSpaceOnUse" r="1" spreadMethod="pad"><stop offset="0" stop-color="#60e862"/><stop offset=".129032" stop-color="#60e862"/><stop offset=".38959409" stop-color="#60e862"/><stop offset=".876344" stop-color="#42b14c"/><stop offset="1" stop-color="#29a54c"/></radialGradient><linearGradient id="b"><stop offset="0" stop-color="#60e862"/><stop offset="1" stop-color="#97f597"/></linearGradient><linearGradient id="c" gradientTransform="matrix(.1348185 -16.058933 -16.058933 -.1348185 165.23708 50.704102)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#b" y1="0" y2="0"/><linearGradient id="d"><stop offset="0" stop-color="#97f597"/><stop offset=".317204" stop-color="#60e862"/><stop offset=".55527157" stop-color="#60e862"/><stop offset="1" stop-color="#42b14c"/></linearGradient><linearGradient id="e" gradientTransform="matrix(1.1007249 -303.78912 -303.78912 -1.1007249 164.35597 299.25729)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#d" y1="0" y2="0"/><radialGradient id="f" cx="0" cy="0" gradientTransform="matrix(60.911285 0 0 -63.112213 85.29335 136.38768)" gradientUnits="userSpaceOnUse" r="1" spreadMethod="pad" xlink:href="#b"/><clipPath id="g"><path d="m0 378.618h328.516v-378.618h-328.516z"/></clipPath><linearGradient id="h"><stop offset="0" stop-color="#6d6e71"/><stop offset=".36374018" stop-color="#231f20"/><stop offset=".943462" stop-color="#231f20"/><stop offset="1" stop-color="#231f20"/></linearGradient><linearGradient id="i" gradientTransform="matrix(-75.499992 86.000069 86.000069 75.499992 134.14973 80.55349)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#h" y1="0" y2="0"/><radialGradient id="j" cx="0" cy="0" gradientTransform="matrix(20.2197 0 0 -20.2197 164.19638 37.690399)" gradientUnits="userSpaceOnUse" r="1" spreadMethod="pad"><stop offset="0" stop-color="#376d2c"/><stop offset=".49082" stop-color="#27572c"/><stop offset="1" stop-color="#132707"/></radialGradient><clipPath id="k"><path d="m0 378.618h328.516v-378.618h-328.516z"/></clipPath><radialGradient id="l" cx="0" cy="0" gradientTransform="matrix(-60.911041 0 0 -63.111961 243.23613 136.35455)" gradientUnits="userSpaceOnUse" r="1" spreadMethod="pad" xlink:href="#b"/><linearGradient id="m" gradientTransform="matrix(75.499397 85.999397 -85.999397 75.499397 194.38023 80.520729)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#h" y1="0" y2="0"/><clipPath id="n"><path d="m0 378.618h328.516v-378.618h-328.516z"/></clipPath><linearGradient id="o"><stop offset="0" stop-color="#231f20"/><stop offset=".0565383" stop-color="#231f20"/><stop offset=".20179413" stop-color="#231f20"/><stop offset=".66129" stop-color="#5c5c5f"/><stop offset=".994624" stop-color="#dadbdc"/><stop offset="1" stop-color="#dadbdc"/></linearGradient><linearGradient id="p" gradientTransform="matrix(46.251404 45.729973 45.729973 -46.251404 236.02533 126.24284)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#o" y1="0" y2="0"/><linearGradient id="q" gradientTransform="matrix(9.3421087 10.832795 10.832795 -9.3421087 94.390717 40.683426)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#d" y1="0" y2="0"/><linearGradient id="r" gradientTransform="matrix(-7.7736073 9.0140133 -9.0140133 -7.7736073 237.12341 43.467983)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#d" y1="0" y2="0"/><linearGradient id="s" gradientTransform="matrix(4.0239291 -110.17229 -102.81268 -4.3430362 159.78651 338.7294)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-color="#c7ffba"/><stop offset="1" stop-color="#60e862"/></linearGradient><linearGradient id="t"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#adafb2"/></linearGradient><linearGradient id="u" gradientTransform="matrix(-4.0771885 -12.773058 -12.773058 4.0771885 270.96481 176.85367)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#t" y1="0" y2="0"/><linearGradient id="v" gradientTransform="matrix(-47.899815 47.359798 -47.359798 -47.899815 95.013794 123.7486)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#o" y1="0" y2="0"/><linearGradient id="w" gradientTransform="matrix(4.0771885 -12.773058 12.773058 4.0771885 59.238491 175.18736)" gradientUnits="userSpaceOnUse" spreadMethod="pad" x1="0" x2="1" xlink:href="#t" y1="0" y2="0"/><g transform="matrix(1.3333333 0 0 -1.3333333 0 504.824)"><path d="m123.677 371.723c-23.54-5.355-44.956-16.061-64.416-32.122-6.203-5.27-11.981-11.219-17.505-17.762-28.214-34.331-41.302-76.652-39.262-127.046 2.719-26.769 10.708-51.754 24.051-74.955 21.075-35.264 45.549-64.156 73.422-86.848 13.936-10.961 29.488-19.887 46.654-26.937 12.493-4.844 24.22-5.013 35.266-.426 17.082 7.222 32.633 16.402 46.656 27.363 27.872 22.692 52.348 51.584 73.421 86.848 13.343 23.201 21.33 48.186 24.051 74.955 2.039 50.394-11.046 92.715-39.262 127.046-17.589 20.905-38.155 35.521-61.78 43.851-20.161 7.079-40.477 10.628-60.909 10.628-13.416 0-26.881-1.53-40.387-4.595" fill="url(#a)"/><path d="m136.159 56.307c4.306-9.042 21.085-25.129 29.417-25.666 7.75-.5 31.333 22.832 28.833 27.582-.227.431-1.092 2.117-7.25-1.167-12.501-6.665-24.499-12.083-47.834 2.085-.235.143-.75.256-1.317.256-1.357 0-3.012-.648-1.849-3.09" fill="url(#c)"/><path d="m20.242 194.224c0-102.468 62.845 0 140 0 77.152 0 149-105.468 149-3.001 0 102.469-66.387 166-143.54 166-77.154 0-145.46-60.532-145.46-162.999" fill="url(#e)"/><path d="m28.318 186.385c-7.555-9.641-8.06-22.967-1.499-39.616 6.469-16.274 18.016-31.408 34.317-44.97 16.286-13.635 33.476-22 51.095-24.862 5.785-.91 10.892-1.37 15.18-1.37h.004c9.405 0 15.385 2.152 18.29 6.593 3.934 6.274 3.465 18.588-1.441 37.651-4.898 18.671-15.166 35.382-30.517 49.67-15.4 14.34-31.684 23.262-48.402 26.515-4.238.809-8.201 1.213-11.878 1.213-11.04 0-19.507-3.634-25.149-10.824" fill="url(#f)"/><g clip-path="url(#g)"><path d="m0 0c-2.683-26.381-10.673-51.288-23.738-74.006-20.77-34.758-45.291-63.772-72.863-86.219-13.962-10.912-29.482-20.014-46.122-27.049-10.353-4.301-21.717-4.144-33.509.426-17.035 6.998-32.543 15.951-46.078 26.598-27.598 22.464-52.122 51.476-72.881 86.208-13.082 22.75-21.073 47.639-23.746 73.903-2.004 49.55 11.027 91.768 38.722 125.469 5.721 6.778 11.357 12.497 17.214 17.472 19.107 15.771 40.459 26.421 63.46 31.653 13.267 3.011 26.684 4.538 39.877 4.538 20.073 0 40.309-3.532 60.144-10.498 23.083-8.139 43.533-22.658 60.77-43.142 27.709-33.716 40.744-75.916 38.75-125.353m-35.214 128.293c-17.786 21.138-38.907 36.123-62.778 44.54-20.33 7.139-41.079 10.759-61.672 10.759-13.536 0-27.295-1.565-40.897-4.653-23.709-5.393-45.706-16.362-65.394-32.612-6.072-5.158-11.889-11.059-17.794-18.054-28.451-34.621-41.834-77.91-39.772-128.739 2.746-27.029 10.939-52.56 24.363-75.902 21.05-35.22 45.933-64.646 73.974-87.474 13.891-10.926 29.779-20.1 47.246-27.276 6.687-2.593 13.269-3.908 19.561-3.908 5.963 0 11.826 1.18 17.433 3.51 17.025 7.199 32.903 16.512 47.211 27.697 28.021 22.813 52.902 52.24 73.962 87.486 13.408 23.311 21.6 48.858 24.355 76.007 2.051 50.716-11.336 93.986-39.798 128.619" fill="#093309" transform="translate(323.7281 195.0259)"/></g><path d="m34.617 178.138c-6.628-8.159-6.968-19.463-1.105-33.824 5.949-14.443 16.486-27.788 31.614-39.939 15.041-12.152 30.763-19.549 46.993-22.096 16.232-2.464 26.005-1.189 29.403 3.825 3.314 5.099 2.806 15.89-1.614 32.462-4.504 16.573-13.852 31.274-28.043 44.02-14.277 12.832-29.064 20.65-44.445 23.539-3.913.721-7.546 1.082-10.895 1.083-9.671 0-16.985-3.011-21.908-9.07" fill="url(#i)"/><path d="m165.446 47.268h-.17c-8.752 0-17.758 3.144-27.022 9.518 7.563-10.624 15.126-17.76 22.859-21.417 1.445-.679 2.805-1.02 4.163-1.105h.17c1.361.085 2.721.426 4.165 1.105 7.735 3.657 15.299 10.793 22.861 21.417-9.264-6.374-18.272-9.518-27.026-9.518" fill="url(#j)"/><g clip-path="url(#k)"><path d="m0 0c-5.786-6.953-11.464-11.691-17.306-14.453-1.209-.57-2.387-.885-3.577-.961-1.213.076-2.39.391-3.598.961-5.846 2.764-11.524 7.504-17.308 14.455 7.056-3.656 14.102-5.51 20.978-5.51 6.78 0 13.77 1.852 20.811 5.508m7.32 6.646c-.514.522-1.372.606-1.982.192-8.917-6.135-17.773-9.246-26.318-9.246-8.431 0-17.227 3.111-26.146 9.246-.603.412-1.462.33-1.982-.192-.528-.537-.594-1.373-.157-1.986 7.818-10.978 15.493-18.148 23.461-21.916 1.568-.74 3.136-1.15 4.824-1.254h.169l.1.002c1.611.104 3.158.512 4.728 1.252 7.969 3.768 15.644 10.938 23.462 21.916.437.613.371 1.449-.159 1.986" transform="translate(186.2564 51.2246)"/><path d="m0 0c-1.864-2.748-6.494-4.143-13.763-4.143-3.831 0-8.417.403-13.628 1.194-15.814 2.48-31.299 9.769-46.026 21.668-14.765 11.859-25.194 25.019-30.999 39.115-5.549 13.59-5.281 24.273.796 31.758 4.482 5.515 11.317 8.312 20.317 8.312 3.205 0 6.745-.353 10.517-1.048 14.941-2.805 29.56-10.559 43.454-23.049 13.818-12.411 23.048-26.887 27.433-43.022 5.267-19.752 3.934-27.652 1.899-30.785m-26.593 76.857c-14.459 12.997-29.747 21.081-45.444 24.029-15.924 2.935-27.704-.023-34.764-8.709-7.094-8.736-7.568-20.812-1.408-35.898 6.074-14.748 16.915-28.459 32.22-40.752 15.29-12.353 31.429-19.933 47.973-22.527 5.432-.824 10.227-1.242 14.253-1.242h.003c8.831 0 14.445 1.949 17.174 5.974 3.693 5.686 3.251 16.844-1.355 34.12-4.599 16.918-14.238 32.06-28.652 45.005" transform="translate(139.8267 87.2539)"/></g><path d="m263.183 195.963c-16.716-3.253-33-12.176-48.402-26.516-15.35-14.287-25.616-30.998-30.515-49.67-4.906-19.062-5.375-31.376-1.441-37.65 2.905-4.442 8.885-6.594 18.29-6.594h.003c4.288 0 9.396.461 15.181 1.371 17.618 2.861 34.808 11.227 51.093 24.862 16.301 13.562 27.849 28.695 34.319 44.97 6.56 16.649 6.054 29.975-1.501 39.615-5.64 7.19-14.111 10.825-25.15 10.825-3.677 0-7.639-.403-11.877-1.213" fill="url(#l)"/><path d="m261.109 186.092c-15.381-2.889-30.168-10.707-44.443-23.539-14.192-12.746-23.54-27.448-28.043-44.019-4.42-16.573-4.929-27.364-1.616-32.463 3.399-5.014 13.172-6.29 29.403-3.824 16.23 2.546 31.953 9.943 46.994 22.095 15.127 12.15 25.664 25.496 31.613 39.94 5.864 14.361 5.524 25.663-1.105 33.822-4.923 6.059-12.236 9.071-21.908 9.07-3.349 0-6.982-.361-10.895-1.082" fill="url(#m)"/><g clip-path="url(#n)"><path d="m0 0c4.384 16.135 13.614 30.611 27.433 43.021 13.892 12.491 28.513 20.245 43.453 23.049 3.773.696 7.312 1.049 10.517 1.049 9 0 15.836-2.797 20.317-8.312 6.078-7.485 6.345-18.168.797-31.758-5.805-14.096-16.235-27.256-31-39.115-14.727-11.899-30.211-19.188-46.026-21.668-5.211-.791-9.797-1.194-13.627-1.194-7.269 0-11.899 1.395-13.762 4.143-2.036 3.133-3.37 11.033 1.898 30.785m-3.958 1.066c-4.606-17.275-5.048-28.433-1.354-34.119 2.728-4.025 8.342-5.974 17.172-5.974h.004c4.026 0 8.821.418 14.252 1.242 16.543 2.594 32.684 10.174 47.973 22.527 15.305 12.293 26.146 26.004 32.221 40.752 6.16 15.086 5.685 27.162-1.409 35.897-7.06 8.687-18.839 11.645-34.763 8.709-15.698-2.948-30.985-11.032-45.446-24.028-14.412-12.945-24.051-28.088-28.65-45.006" transform="translate(190.6021 118.0059)"/></g><path d="m249.937 173.328c-21.313-13.58-21.445-22.105-7.028-37.44 11.642-12.382 20.31-20.427 37.759-1.272 8.98 9.855 15.808 27.644 8.668 37.739-3.466 4.901-10.212 6.956-17.516 6.956-7.742.001-16.112-2.307-21.883-5.983" fill="url(#p)"/><path d="m48.742 95.723c-5.716-1.428 31.353-41.565 49.5-57.166 18.148-15.602 58.636-36.923 60.5-31.334s-39.019 21.398-57.166 36.999c-18.065 15.53-51.196 51.504-52.813 51.503-.008 0-.015 0-.021-.002" fill="url(#q)"/><path d="m229.648 46.557c-18.147-15.601-54.656-38.335-54.656-38.335 1.863-5.587 39.842 17.067 57.99 32.669 18.148 15.601 55.217 55.738 49.5 57.166-.006.001-.013.002-.02.002-1.618 0-34.749-35.972-52.814-51.502" fill="url(#r)"/><path d="m70.876 295.378c-.052-25.743 53.501-2.737 91.145-1.836 11.524.276 23.936-.924 35.739-2.124 28.675-2.914 53.758-5.828 53.795 12.41.053 25.745-52.326 46.975-89.977 47.052-.048 0-.096 0-.145 0-37.642 0-90.506-29.789-90.557-55.502" fill="url(#s)"/><path d="m268.117 178.723c-17.125-1.25-28.001-13.75-26.876-13.75s13.971 9.54 25.875 10.5c12.642 1.02 18.476-3.937 21.203-8.892 2.621-4.763 2.375-9.526 2.547-8.983 3.436 10.778-4.657 21.223-20.115 21.223-.856 0-1.734-.032-2.634-.098" fill="url(#u)"/><path d="m40.867 170.688c-7.14-10.094-.312-27.883 8.669-37.741 17.449-19.154 26.117-11.107 37.759 1.275 14.417 15.335 14.284 23.858-7.029 37.439-5.771 3.676-14.141 5.985-21.882 5.984-7.305 0-14.05-2.056-17.517-6.957" fill="url(#v)"/><path d="m39.336 155.931c.173-.542-.074 4.22 2.547 8.984 2.728 4.955 8.561 9.912 21.203 8.892 11.905-.961 25.875-10.5 25.875-10.5 1.125 0-9.749 12.5-26.874 13.75-.899.066-1.778.098-2.633.098-15.461.001-23.553-10.444-20.118-21.224" fill="url(#w)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 40 23" width="40" height="23" shape-rendering="crispEdges"><g fill="#c9a96e"><rect x="2" y="0" width="2" height="1"/><rect x="7" y="0" width="2" height="1"/><rect x="12" y="0" width="2" height="1"/><rect x="17" y="0" width="2" height="1"/><rect x="22" y="0" width="2" height="1"/><rect x="1" y="1" width="1" height="1"/><rect x="4" y="1" width="1" height="1"/><rect x="6" y="1" width="1" height="1"/><rect x="9" y="1" width="1" height="1"/><rect x="11" y="1" width="1" height="1"/><rect x="14" y="1" width="1" height="1"/><rect x="16" y="1" width="1" height="1"/><rect x="19" y="1" width="1" height="1"/><rect x="21" y="1" width="1" height="1"/><rect x="24" y="1" width="1" height="1"/><rect x="1" y="3" width="1" height="1"/><rect x="24" y="3" width="1" height="1"/><rect x="1" y="4" width="1" height="1"/><rect x="5" y="4" width="5" height="1"/><rect x="16" y="4" width="5" height="1"/><rect x="24" y="4" width="1" height="1"/><rect x="1" y="5" width="1" height="1"/><rect x="4" y="5" width="1" height="1"/><rect x="10" y="5" width="1" height="1"/><rect x="15" y="5" width="1" height="1"/><rect x="21" y="5" width="1" height="1"/><rect x="24" y="5" width="1" height="1"/><rect x="1" y="6" width="1" height="1"/><rect x="3" y="6" width="1" height="1"/><rect x="6" y="6" width="3" height="1"/><rect x="11" y="6" width="1" height="1"/><rect x="14" y="6" width="1" height="1"/><rect x="17" y="6" width="3" height="1"/><rect x="22" y="6" width="1" height="1"/><rect x="24" y="6" width="1" height="1"/><rect x="1" y="7" width="1" height="1"/><rect x="3" y="7" width="1" height="1"/><rect x="5" y="7" width="5" height="1"/><rect x="11" y="7" width="1" height="1"/><rect x="14" y="7" width="1" height="1"/><rect x="16" y="7" width="5" height="1"/><rect x="22" y="7" width="1" height="1"/><rect x="24" y="7" width="1" height="1"/><rect x="1" y="8" width="1" height="1"/><rect x="3" y="8" width="1" height="1"/><rect x="5" y="8" width="5" height="1"/><rect x="11" y="8" width="1" height="1"/><rect x="14" y="8" width="1" height="1"/><rect x="16" y="8" width="5" height="1"/><rect x="22" y="8" width="1" height="1"/><rect x="24" y="8" width="1" height="1"/><rect x="1" y="9" width="1" height="1"/><rect x="3" y="9" width="1" height="1"/><rect x="6" y="9" width="3" height="1"/><rect x="11" y="9" width="1" height="1"/><rect x="14" y="9" width="1" height="1"/><rect x="17" y="9" width="3" height="1"/><rect x="22" y="9" width="1" height="1"/><rect x="24" y="9" width="1" height="1"/><rect x="1" y="10" width="1" height="1"/><rect x="4" y="10" width="1" height="1"/><rect x="10" y="10" width="1" height="1"/><rect x="15" y="10" width="1" height="1"/><rect x="21" y="10" width="1" height="1"/><rect x="24" y="10" width="1" height="1"/><rect x="1" y="11" width="1" height="1"/><rect x="5" y="11" width="5" height="1"/><rect x="16" y="11" width="5" height="1"/><rect x="24" y="11" width="1" height="1"/><rect x="33" y="11" width="1" height="1"/><rect x="1" y="12" width="1" height="1"/><rect x="24" y="12" width="1" height="1"/><rect x="30" y="12" width="1" height="1"/><rect x="34" y="12" width="1" height="1"/><rect x="1" y="13" width="1" height="1"/><rect x="24" y="13" width="1" height="1"/><rect x="27" y="13" width="1" height="1"/><rect x="31" y="13" width="1" height="1"/><rect x="34" y="13" width="1" height="1"/><rect x="1" y="14" width="1" height="1"/><rect x="11" y="14" width="6" height="1"/><rect x="24" y="14" width="1" height="1"/><rect x="28" y="14" width="1" height="1"/><rect x="31" y="14" width="1" height="1"/><rect x="34" y="14" width="1" height="1"/><rect x="1" y="15" width="1" height="1"/><rect x="10" y="15" width="1" height="1"/><rect x="17" y="15" width="1" height="1"/><rect x="24" y="15" width="1" height="1"/><rect x="28" y="15" width="1" height="1"/><rect x="31" y="15" width="1" height="1"/><rect x="34" y="15" width="1" height="1"/><rect x="2" y="16" width="1" height="1"/><rect x="10" y="16" width="1" height="1"/><rect x="17" y="16" width="1" height="1"/><rect x="23" y="16" width="1" height="1"/><rect x="28" y="16" width="1" height="1"/><rect x="31" y="16" width="1" height="1"/><rect x="34" y="16" width="1" height="1"/><rect x="3" y="17" width="3" height="1"/><rect x="11" y="17" width="6" height="1"/><rect x="20" y="17" width="3" height="1"/><rect x="27" y="17" width="1" height="1"/><rect x="31" y="17" width="1" height="1"/><rect x="34" y="17" width="1" height="1"/><rect x="30" y="18" width="1" height="1"/><rect x="34" y="18" width="1" height="1"/><rect x="33" y="19" width="1" height="1"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" shape-rendering="crispEdges"><path fill="#0a0908" d="M15 0h2v1h-2zM13 1h2v1h-2zM17 1h2v1h-2zM11 2h2v1h-2zM19 2h2v1h-2zM9 3h2v1h-2zM21 3h2v1h-2zM7 4h2v1h-2zM23 4h2v1h-2zM5 5h2v1h-2zM25 5h2v1h-2zM3 6h2v1h-2zM27 6h2v1h-2zM1 7h2v1h-2zM29 7h2v1h-2zM0 8h1v1h-1zM31 8h1v1h-1zM0 9h1v1h-1zM31 9h1v1h-1zM0 10h1v1h-1zM31 10h1v1h-1zM0 11h1v1h-1zM31 11h1v1h-1zM0 12h1v1h-1zM31 12h1v1h-1zM0 13h1v1h-1zM31 13h1v1h-1zM0 14h1v1h-1zM31 14h1v1h-1zM0 15h1v1h-1zM31 15h1v1h-1zM0 16h1v1h-1zM31 16h1v1h-1zM0 17h1v1h-1zM31 17h1v1h-1zM0 18h1v1h-1zM31 18h1v1h-1zM0 19h1v1h-1zM31 19h1v1h-1zM0 20h1v1h-1zM31 20h1v1h-1zM0 21h1v1h-1zM31 21h1v1h-1zM0 22h1v1h-1zM31 22h1v1h-1zM1 23h2v1h-2zM29 23h2v1h-2zM3 24h2v1h-2zM27 24h2v1h-2zM5 25h2v1h-2zM25 25h2v1h-2zM7 26h2v1h-2zM23 26h2v1h-2zM9 27h2v1h-2zM21 27h2v1h-2zM11 28h2v1h-2zM19 28h2v1h-2zM13 29h2v1h-2zM17 29h2v1h-2zM15 30h2v1h-2z"/><path fill="#cbbfae" d="M1 8h2v1h-2zM29 8h2v1h-2zM3 9h2v1h-2zM27 9h2v1h-2zM5 10h2v1h-2zM25 10h2v1h-2zM7 11h2v1h-2zM23 11h2v1h-2zM9 12h2v1h-2zM21 12h2v1h-2zM11 13h2v1h-2zM19 13h2v1h-2zM13 14h2v1h-2zM17 14h2v1h-2zM15 15h2v1h-2z"/><path fill="#b3a797" d="M15 16h1v1h-1zM15 17h1v1h-1zM15 18h1v1h-1zM15 19h1v1h-1zM15 20h1v1h-1zM15 21h1v1h-1zM15 22h1v1h-1zM15 23h1v1h-1zM15 24h1v1h-1zM15 25h1v1h-1zM15 26h1v1h-1zM15 27h1v1h-1zM15 28h1v1h-1zM15 29h1v1h-1z"/><path fill="#5d544a" d="M15 1h2v1h-2zM13 2h6v1h-6zM11 3h3v1h-3zM16 3h5v1h-5zM9 4h2v1h-2zM12 4h2v1h-2zM16 4h7v1h-7zM7 5h13v1h-13zM22 5h3v1h-3zM5 6h4v1h-4zM10 6h10v1h-10zM22 6h5v1h-5zM3 7h26v1h-26zM3 8h3v1h-3zM8 8h8v1h-8zM17 8h8v1h-8zM26 8h3v1h-3zM5 9h1v1h-1zM8 9h8v1h-8zM17 9h8v1h-8zM26 9h1v1h-1zM7 10h5v1h-5zM13 10h9v1h-9zM23 10h2v1h-2zM9 11h10v1h-10zM20 11h3v1h-3zM11 12h6v1h-6zM18 12h3v1h-3zM13 13h6v1h-6zM15 14h2v1h-2z"/><path fill="#857a6e" d="M14 3h2v1h-2zM11 4h1v1h-1zM20 5h2v1h-2zM9 6h1v1h-1zM6 8h2v1h-2zM16 8h1v1h-1zM25 8h1v1h-1zM12 10h1v1h-1zM22 10h1v1h-1zM19 11h1v1h-1zM17 12h1v1h-1z"/><path fill="#4a423a" d="M14 4h2v1h-2zM20 6h2v1h-2zM6 9h2v1h-2zM16 9h1v1h-1zM25 9h1v1h-1z"/><path fill="#3b352f" d="M1 9h2v1h-2zM1 10h4v1h-4zM1 11h6v1h-6zM1 12h8v1h-8zM1 13h10v1h-10zM1 14h3v1h-3zM6 14h7v1h-7zM1 15h11v1h-11zM13 15h2v1h-2zM1 16h14v1h-14zM1 17h14v1h-14zM1 18h8v1h-8zM10 18h5v1h-5zM1 19h12v1h-12zM14 19h1v1h-1zM1 20h2v1h-2zM4 20h9v1h-9zM14 20h1v1h-1zM1 21h6v1h-6zM8 21h7v1h-7zM1 22h14v1h-14zM3 23h8v1h-8zM12 23h3v1h-3zM5 24h10v1h-10zM7 25h8v1h-8zM9 26h6v1h-6zM11 27h4v1h-4zM13 28h2v1h-2z"/><path fill="#5a5249" d="M4 14h2v1h-2zM12 15h1v1h-1zM9 18h1v1h-1zM13 19h1v1h-1zM3 20h1v1h-1zM13 20h1v1h-1zM7 21h1v1h-1zM11 23h1v1h-1z"/><path fill="#2a2522" d="M29 9h2v1h-2zM27 10h4v1h-4zM25 11h6v1h-6zM23 12h8v1h-8zM21 13h10v1h-10zM19 14h8v1h-8zM29 14h2v1h-2zM17 15h4v1h-4zM22 15h9v1h-9zM16 16h15v1h-15zM16 17h1v1h-1zM18 17h13v1h-13zM16 18h15v1h-15zM16 19h9v1h-9zM26 19h5v1h-5zM16 20h2v1h-2zM19 20h9v1h-9zM29 20h2v1h-2zM16 21h15v1h-15zM16 22h15v1h-15zM16 23h13v1h-13zM16 24h6v1h-6zM24 24h3v1h-3zM16 25h9v1h-9zM16 26h3v1h-3zM20 26h3v1h-3zM16 27h5v1h-5zM16 28h3v1h-3zM16 29h1v1h-1z"/><path fill="#433c36" d="M27 14h2v1h-2zM21 15h1v1h-1zM17 17h1v1h-1zM25 19h1v1h-1zM18 20h1v1h-1zM28 20h1v1h-1zM22 24h2v1h-2zM19 26h1v1h-1z"/></svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5308 0.98291L18.3467 5.48291V14.4829L10.5308 18.9829L2.71484 14.4829V5.48291L10.5308 0.98291ZM17.503 5.9687L10.5308 1.95448L3.55859 5.9687V13.9971L10.5308 18.0113L17.503 13.9971V5.9687Z" fill="white"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5308 18.0114V13.9971V9.98293L7.04468 7.97582L3.55859 5.96871V9.98293V13.9971L10.5308 18.0114Z" fill="white"/>
|
|
4
|
+
<path d="M14.0169 16.0042L17.503 13.9971L14.0169 11.99L10.5308 13.9971V18.0114L14.0169 16.0042Z" fill="#87E0E1"/>
|
|
5
|
+
<path d="M10.5308 9.98293V13.9971L14.0169 11.99L10.5308 9.98293Z" fill="#4F2FD0"/>
|
|
6
|
+
<path d="M14.0169 7.97582L10.5308 9.98293L14.0169 11.99L17.503 9.98293L14.0169 7.97582Z" fill="#7B5AFF"/>
|
|
7
|
+
<path d="M14.0169 3.96161L10.5308 1.9545L7.04468 3.96161L3.55859 5.96871L7.04468 7.97582L10.5308 5.96871L14.0169 7.97582L17.503 5.96871L14.0169 3.96161Z" fill="#F9DB4E"/>
|
|
8
|
+
<path d="M10.5308 9.98293L14.0169 7.97582L10.5308 5.96871L7.04468 7.97582L10.5308 9.98293Z" fill="#E94A5D"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 31" width="51" height="31" shape-rendering="crispEdges"><path fill="#09b6ba" d="M24 10h1v1h-1zM28 10h1v1h-1zM29 11h1v1h-1zM33 11h1v1h-1zM30 12h1v1h-1zM32 12h1v1h-1zM21 13h1v1h-1zM31 13h1v1h-1zM21 14h1v1h-1zM31 14h1v1h-1zM34 14h1v1h-1zM21 15h1v1h-1zM31 15h1v1h-1zM16 16h6v1h-6zM31 16h6v1h-6zM30 17h1v1h-1zM33 17h3v1h-3zM18 18h2v1h-2zM29 18h1v1h-1zM33 18h2v1h-2zM19 19h4v1h-4zM24 19h5v1h-5zM30 19h4v1h-4zM20 20h3v1h-3zM30 20h3v1h-3zM21 21h2v1h-2zM29 21h3v1h-3zM22 22h1v1h-1zM29 22h2v1h-2zM23 23h1v1h-1zM29 23h1v1h-1zM28 24h1v1h-1z"/><path fill="#2a2222" d="M18 0h4v1h-4zM24 0h4v1h-4zM31 0h3v1h-3zM13 1h5v1h-5zM22 1h2v1h-2zM28 1h1v1h-1zM30 1h1v1h-1zM34 1h1v1h-1zM12 2h1v1h-1zM17 2h1v1h-1zM28 2h3v1h-3zM35 2h4v1h-4zM8 3h5v1h-5zM39 3h1v1h-1zM7 4h1v1h-1zM39 4h1v1h-1zM6 5h3v1h-3zM40 5h1v1h-1zM5 6h1v1h-1zM40 6h2v1h-2zM4 7h1v1h-1zM42 7h2v1h-2zM4 8h1v1h-1zM44 8h1v1h-1zM3 9h1v1h-1zM19 9h14v1h-14zM44 9h1v1h-1zM46 9h2v1h-2zM3 10h1v1h-1zM18 10h1v1h-1zM33 10h1v1h-1zM44 10h2v1h-2zM48 10h1v1h-1zM3 11h1v1h-1zM17 11h1v1h-1zM34 11h1v1h-1zM48 11h1v1h-1zM2 12h2v1h-2zM16 12h1v1h-1zM35 12h1v1h-1zM48 12h1v1h-1zM1 13h1v1h-1zM4 13h2v1h-2zM15 13h1v1h-1zM36 13h1v1h-1zM47 13h1v1h-1zM0 14h1v1h-1zM14 14h1v1h-1zM37 14h1v1h-1zM48 14h1v1h-1zM0 15h1v1h-1zM3 15h1v1h-1zM14 15h1v1h-1zM38 15h1v1h-1zM49 15h1v1h-1zM0 16h1v1h-1zM15 16h1v1h-1zM37 16h1v1h-1zM49 16h1v1h-1zM1 17h1v1h-1zM16 17h1v1h-1zM36 17h1v1h-1zM49 17h1v1h-1zM2 18h2v1h-2zM17 18h1v1h-1zM35 18h1v1h-1zM48 18h2v1h-2zM1 19h1v1h-1zM18 19h1v1h-1zM34 19h1v1h-1zM47 19h1v1h-1zM50 19h1v1h-1zM0 20h1v1h-1zM19 20h1v1h-1zM33 20h1v1h-1zM47 20h1v1h-1zM50 20h1v1h-1zM0 21h1v1h-1zM3 21h1v1h-1zM20 21h1v1h-1zM32 21h1v1h-1zM47 21h1v1h-1zM50 21h1v1h-1zM0 22h1v1h-1zM3 22h1v1h-1zM21 22h1v1h-1zM31 22h1v1h-1zM48 22h1v1h-1zM50 22h1v1h-1zM0 23h1v1h-1zM3 23h1v1h-1zM22 23h1v1h-1zM30 23h1v1h-1zM48 23h1v1h-1zM50 23h1v1h-1zM0 24h1v1h-1zM3 24h1v1h-1zM23 24h1v1h-1zM29 24h1v1h-1zM48 24h1v1h-1zM50 24h1v1h-1zM0 25h1v1h-1zM3 25h1v1h-1zM24 25h1v1h-1zM28 25h1v1h-1zM48 25h1v1h-1zM50 25h1v1h-1zM0 26h1v1h-1zM3 26h1v1h-1zM25 26h1v1h-1zM27 26h1v1h-1zM48 26h1v1h-1zM50 26h1v1h-1zM1 27h1v1h-1zM3 27h1v1h-1zM26 27h1v1h-1zM49 27h1v1h-1zM2 28h1v1h-1zM48 28h1v1h-1zM3 29h1v1h-1zM47 29h1v1h-1zM4 30h43v1h-43z"/><path fill="#363c25" d="M9 5h1v1h-1z"/><path fill="#5a3413" d="M17 4h15v1h-15zM17 5h2v1h-2zM32 5h3v1h-3zM11 6h2v1h-2zM15 6h2v1h-2zM35 6h2v1h-2zM10 7h1v1h-1zM13 7h2v1h-2zM37 7h1v1h-1zM8 8h1v1h-1zM13 8h1v1h-1zM38 8h2v1h-2zM8 9h1v1h-1zM11 9h2v1h-2zM40 9h2v1h-2zM7 10h1v1h-1zM10 10h2v1h-2zM41 10h1v1h-1zM7 11h4v1h-4zM42 11h2v1h-2zM8 12h1v1h-1zM43 12h1v1h-1zM46 12h1v1h-1zM7 13h1v1h-1zM44 13h2v1h-2zM44 14h1v1h-1zM6 15h1v1h-1zM5 16h1v1h-1zM45 16h1v1h-1zM5 17h1v1h-1zM46 17h1v1h-1zM5 18h1v1h-1zM46 18h1v1h-1zM4 19h1v1h-1zM4 20h1v1h-1zM4 21h1v1h-1z"/><path fill="#5d8c0a" d="M19 2h2v1h-2zM14 3h1v1h-1zM16 3h6v1h-6zM24 3h1v1h-1zM28 3h3v1h-3zM32 3h1v1h-1zM14 4h1v1h-1zM16 4h1v1h-1zM32 4h1v1h-1zM35 4h2v1h-2zM13 5h4v1h-4zM36 5h2v1h-2zM10 6h1v1h-1zM13 6h2v1h-2zM37 6h3v1h-3zM43 10h1v1h-1zM5 11h2v1h-2zM44 11h3v1h-3zM6 12h2v1h-2zM44 12h2v1h-2zM47 12h1v1h-1zM6 13h1v1h-1zM4 14h3v1h-3zM5 15h1v1h-1z"/><path fill="#64d3d3" d="M19 10h5v1h-5zM29 10h4v1h-4zM18 11h2v1h-2zM23 11h1v1h-1zM32 11h1v1h-1zM17 12h1v1h-1zM20 12h3v1h-3zM31 12h1v1h-1zM34 12h1v1h-1zM16 13h1v1h-1zM35 13h1v1h-1zM15 14h1v1h-1zM17 14h1v1h-1zM36 14h1v1h-1zM37 15h1v1h-1zM17 17h3v1h-3zM22 17h1v1h-1zM31 17h2v1h-2zM20 18h4v1h-4zM30 18h3v1h-3zM29 19h1v1h-1zM23 20h1v1h-1zM29 20h1v1h-1zM23 21h1v1h-1zM23 22h1v1h-1zM28 22h1v1h-1zM28 23h1v1h-1zM24 24h1v1h-1zM27 24h1v1h-1zM27 25h1v1h-1z"/><path fill="#7d2a11" d="M9 8h1v1h-1zM9 9h1v1h-1z"/><path fill="#8a4b19" d="M36 9h1v1h-1zM15 10h1v1h-1zM7 21h1v1h-1zM1 23h1v1h-1zM2 24h1v1h-1zM2 25h1v1h-1zM2 26h1v1h-1zM6 26h1v1h-1z"/><path fill="#926e3e" d="M9 12h1v1h-1z"/><path fill="#96e1e3" d="M22 16h1v1h-1z"/><path fill="#a36723" d="M12 18h1v1h-1zM44 25h1v1h-1zM4 28h1v1h-1zM21 28h1v1h-1zM46 28h1v1h-1z"/><path fill="#a5ca10" d="M18 1h4v1h-4zM24 1h4v1h-4zM31 1h3v1h-3zM18 2h1v1h-1zM21 2h7v1h-7zM31 2h4v1h-4zM15 3h1v1h-1zM22 3h2v1h-2zM25 3h3v1h-3zM31 3h1v1h-1zM33 3h6v1h-6zM12 4h2v1h-2zM15 4h1v1h-1zM33 4h2v1h-2zM37 4h2v1h-2zM10 5h3v1h-3zM35 5h1v1h-1zM38 5h2v1h-2zM8 6h2v1h-2zM6 7h4v1h-4zM41 7h1v1h-1zM6 8h2v1h-2zM41 8h3v1h-3zM5 9h3v1h-3zM42 9h2v1h-2zM5 10h2v1h-2zM42 10h1v1h-1zM46 10h2v1h-2zM47 11h1v1h-1zM5 12h1v1h-1zM3 13h1v1h-1zM2 14h2v1h-2zM2 15h1v1h-1zM4 15h1v1h-1zM2 16h3v1h-3zM3 17h2v1h-2zM4 18h1v1h-1z"/><path fill="#b4e9e7" d="M32 13h2v1h-2zM32 14h2v1h-2zM30 15h1v1h-1zM29 16h2v1h-2zM29 17h1v1h-1z"/><path fill="#b84a48" d="M12 7h1v1h-1z"/><path fill="#bc1a0e" d="M9 10h1v1h-1z"/><path fill="#d4ef6e" d="M13 2h4v1h-4zM13 3h1v1h-1zM8 4h4v1h-4zM6 6h2v1h-2zM5 7h1v1h-1zM39 7h2v1h-2zM5 8h1v1h-1zM40 8h1v1h-1zM4 9h1v1h-1zM4 10h1v1h-1zM4 11h1v1h-1zM4 12h1v1h-1zM2 13h1v1h-1zM1 14h1v1h-1zM1 15h1v1h-1zM1 16h1v1h-1zM2 17h1v1h-1z"/><path fill="#d69b40" d="M17 6h1v1h-1zM15 7h1v1h-1zM20 7h1v1h-1zM30 7h1v1h-1zM18 8h1v1h-1zM39 9h1v1h-1zM40 10h1v1h-1zM41 11h1v1h-1zM42 12h1v1h-1zM43 13h1v1h-1zM7 14h1v1h-1zM44 15h1v1h-1zM6 16h1v1h-1zM38 16h2v1h-2zM6 17h1v1h-1zM37 17h2v1h-2zM36 18h2v1h-2zM35 19h3v1h-3zM41 19h1v1h-1zM34 20h2v1h-2zM33 21h2v1h-2zM32 22h3v1h-3zM47 22h1v1h-1zM10 23h1v1h-1zM18 23h1v1h-1zM31 23h2v1h-2zM45 23h1v1h-1zM47 23h1v1h-1zM30 24h2v1h-2zM47 24h1v1h-1zM29 25h2v1h-2zM36 25h1v1h-1zM47 25h1v1h-1zM28 26h2v1h-2zM47 26h1v1h-1zM27 27h2v1h-2zM47 27h2v1h-2zM3 28h1v1h-1zM5 28h16v1h-16zM22 28h24v1h-24zM47 28h1v1h-1zM4 29h43v1h-43z"/><path fill="#d9f6f6" d="M20 11h3v1h-3zM30 11h2v1h-2zM18 12h2v1h-2zM33 12h1v1h-1zM17 13h2v1h-2zM23 13h1v1h-1zM34 13h1v1h-1zM16 14h1v1h-1zM22 14h1v1h-1zM35 14h1v1h-1zM15 15h4v1h-4zM22 15h1v1h-1zM32 15h5v1h-5zM20 17h2v1h-2zM23 17h1v1h-1zM23 19h1v1h-1zM24 20h5v1h-5zM24 21h5v1h-5zM24 22h4v1h-4zM24 23h4v1h-4zM25 24h2v1h-2zM25 25h2v1h-2zM26 26h1v1h-1z"/><path fill="#dbaa58" d="M38 7h1v1h-1z"/><path fill="#dc0f08" d="M10 8h3v1h-3zM10 9h1v1h-1zM8 10h1v1h-1zM46 13h1v1h-1zM45 14h1v1h-1zM47 14h1v1h-1zM45 15h3v1h-3zM46 16h1v1h-1zM2 19h2v1h-2zM1 20h2v1h-2zM1 21h2v1h-2zM1 22h2v1h-2zM2 23h1v1h-1z"/><path fill="#e78f82" d="M11 7h1v1h-1zM46 14h1v1h-1zM3 20h1v1h-1z"/><path fill="#e7c12a" d="M49 22h1v1h-1z"/><path fill="#f4950a" d="M48 15h1v1h-1zM47 18h1v1h-1z"/><path fill="#f4c26a" d="M22 6h10v1h-10zM19 7h1v1h-1zM21 7h9v1h-9zM31 7h3v1h-3zM19 8h16v1h-16zM16 9h3v1h-3zM33 9h3v1h-3zM37 9h1v1h-1zM14 10h1v1h-1zM16 10h2v1h-2zM34 10h6v1h-6zM13 11h4v1h-4zM35 11h6v1h-6zM12 12h4v1h-4zM36 12h6v1h-6zM11 13h4v1h-4zM37 13h6v1h-6zM11 14h3v1h-3zM38 14h6v1h-6zM10 15h4v1h-4zM39 15h5v1h-5zM9 16h6v1h-6zM40 16h5v1h-5zM8 17h8v1h-8zM39 17h7v1h-7zM8 18h4v1h-4zM13 18h4v1h-4zM38 18h8v1h-8zM8 19h10v1h-10zM38 19h3v1h-3zM42 19h5v1h-5zM7 20h12v1h-12zM36 20h11v1h-11zM6 21h1v1h-1zM8 21h12v1h-12zM35 21h12v1h-12zM6 22h1v1h-1zM8 22h13v1h-13zM35 22h12v1h-12zM5 23h5v1h-5zM11 23h7v1h-7zM19 23h3v1h-3zM33 23h12v1h-12zM46 23h1v1h-1zM5 24h13v1h-13zM19 24h4v1h-4zM32 24h15v1h-15zM5 25h19v1h-19zM31 25h5v1h-5zM37 25h7v1h-7zM45 25h2v1h-2zM5 26h1v1h-1zM7 26h18v1h-18zM30 26h17v1h-17zM6 27h20v1h-20zM29 27h18v1h-18z"/><path fill="#f6d69b" d="M19 5h13v1h-13zM18 6h4v1h-4zM32 6h3v1h-3zM16 7h3v1h-3zM34 7h3v1h-3zM14 8h4v1h-4zM35 8h3v1h-3zM13 9h3v1h-3zM38 9h1v1h-1zM12 10h2v1h-2zM11 11h2v1h-2zM10 12h2v1h-2zM8 13h3v1h-3zM8 14h3v1h-3zM7 15h3v1h-3zM7 16h2v1h-2zM7 17h1v1h-1zM6 18h2v1h-2zM5 19h3v1h-3zM5 20h2v1h-2zM5 21h1v1h-1zM4 22h2v1h-2zM7 22h1v1h-1zM4 23h1v1h-1zM49 23h1v1h-1zM1 24h1v1h-1zM4 24h1v1h-1zM18 24h1v1h-1zM49 24h1v1h-1zM1 25h1v1h-1zM4 25h1v1h-1zM49 25h1v1h-1zM1 26h1v1h-1zM4 26h1v1h-1zM49 26h1v1h-1zM2 27h1v1h-1zM4 27h2v1h-2z"/><path fill="#f6d907" d="M47 16h2v1h-2zM47 17h2v1h-2zM48 19h2v1h-2zM48 20h2v1h-2zM48 21h2v1h-2z"/><path fill="#f7f7f7" d="M25 10h3v1h-3zM24 11h5v1h-5zM23 12h7v1h-7zM19 13h2v1h-2zM22 13h1v1h-1zM24 13h7v1h-7zM18 14h3v1h-3zM23 14h8v1h-8zM19 15h2v1h-2zM23 15h7v1h-7zM23 16h6v1h-6zM24 17h5v1h-5zM24 18h5v1h-5z"/></svg>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// The aws member's stack is named for the workspace, so it doesn't share the
|
|
2
|
-
// stack named after the environment ("local") with the dns member.
|
|
3
|
-
export default {
|
|
4
|
-
lexicons: ["aws"],
|
|
5
|
-
sourceDir: "src",
|
|
6
|
-
environments: [{ name: "local", endpoint: "http://localhost:4566" }],
|
|
7
|
-
stacks: [{ name: "three-cloud-aws", src: "src" }],
|
|
8
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { phase, type Component } from "@intentius/chant/components";
|
|
2
|
-
|
|
3
|
-
// The aws member as one component: build its template, then apply it as the
|
|
4
|
-
// stack three-cloud-aws, the name the dns member reads its output from.
|
|
5
|
-
export const site: Component = {
|
|
6
|
-
name: "site",
|
|
7
|
-
archetype: "infra",
|
|
8
|
-
dependsOn: [],
|
|
9
|
-
deploy: [
|
|
10
|
-
phase("Build", [{ kind: "shell", cmd: "npx chant build src -o dist/site.json", reason: "the template cfn-deploy applies is this member's own build" }]),
|
|
11
|
-
phase("Apply", [{ kind: "cfn-deploy", stack: "three-cloud-aws", template: "dist/site.json" }]),
|
|
12
|
-
],
|
|
13
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FargateAlb, VpcDefault, output } from "@intentius/chant-lexicon-aws";
|
|
2
|
-
|
|
3
|
-
// The website on ECS Fargate in us-east-1, behind its own load balancer: the
|
|
4
|
-
// ALB's DNS name is the stable hostname Route 53 points at. The network is
|
|
5
|
-
// declared here as production has it: a VPC across two zones, public subnets
|
|
6
|
-
// for the load balancer and private ones for the tasks, which reach out
|
|
7
|
-
// through a NAT gateway.
|
|
8
|
-
export const network = VpcDefault({
|
|
9
|
-
cidr: "10.20.0.0/16",
|
|
10
|
-
publicSubnet1Cidr: "10.20.0.0/24",
|
|
11
|
-
publicSubnet2Cidr: "10.20.1.0/24",
|
|
12
|
-
privateSubnet1Cidr: "10.20.10.0/24",
|
|
13
|
-
privateSubnet2Cidr: "10.20.11.0/24",
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export const web = FargateAlb({
|
|
17
|
-
image: "traefik/whoami:v1.10",
|
|
18
|
-
containerPort: 80,
|
|
19
|
-
desiredCount: 1,
|
|
20
|
-
vpcId: network.vpc.VpcId,
|
|
21
|
-
publicSubnetIds: [network.publicSubnet1.SubnetId, network.publicSubnet2.SubnetId],
|
|
22
|
-
privateSubnetIds: [network.privateSubnet1.SubnetId, network.privateSubnet2.SubnetId],
|
|
23
|
-
logRetentionDays: 7,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
// The dns member reads this as its `awsEndpoint` parameter.
|
|
27
|
-
export const awsEndpoint = output(web.alb.DNSName, "awsEndpoint");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default { lexicons: ["azure"], sourceDir: "src", environments: [{ name: "local", endpoint: "http://localhost:4577" }] };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { phase, type Component } from "@intentius/chant/components";
|
|
2
|
-
|
|
3
|
-
// The azure member as one component: build its ARM template, then deploy it
|
|
4
|
-
// into the resource group named after the environment.
|
|
5
|
-
export const site: Component = {
|
|
6
|
-
name: "site",
|
|
7
|
-
archetype: "infra",
|
|
8
|
-
dependsOn: [],
|
|
9
|
-
deploy: [
|
|
10
|
-
phase("Build", [{ kind: "shell", cmd: "npx chant build src -o dist/site.json", reason: "the template arm-deploy applies is this member's own build" }]),
|
|
11
|
-
phase("Apply", [{ kind: "arm-deploy", template: "dist/site.json", resourceGroup: "local", location: "westeurope", noRollback: "a failed deploy is fixed forward by deploying the template again" }]),
|
|
12
|
-
],
|
|
13
|
-
};
|