macbot 0.1.0__py3-none-any.whl
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.
- macbot/__init__.py +3 -0
- macbot/cameras/__init__.py +239 -0
- macbot/cameras/swift/uvc_stream.swift +83 -0
- macbot/cli.py +179 -0
- macbot/collect/__init__.py +0 -0
- macbot/collect/checks.py +36 -0
- macbot/collect/server.py +371 -0
- macbot/config.py +56 -0
- macbot/data/__init__.py +0 -0
- macbot/data/export.py +116 -0
- macbot/data/health.py +67 -0
- macbot/default.yaml +55 -0
- macbot/doctor.py +86 -0
- macbot/i18n.py +10 -0
- macbot/policy/__init__.py +0 -0
- macbot/policy/bench.py +28 -0
- macbot/policy/executors.py +222 -0
- macbot/policy/gripper.py +47 -0
- macbot/policy/models.py +158 -0
- macbot/policy/runner.py +345 -0
- macbot/robot/__init__.py +3 -0
- macbot/robot/fake.py +63 -0
- macbot/robot/gravity.py +108 -0
- macbot/robot/rebot.py +223 -0
- macbot/system.py +97 -0
- macbot/viz/__init__.py +0 -0
- macbot/viz/replay.py +113 -0
- macbot/viz/video.py +83 -0
- macbot/web/__init__.py +85 -0
- macbot/web/static/common.js +139 -0
- macbot/web/static/fonts/JetBrainsMono.ttf +0 -0
- macbot/web/static/fonts/OFL-JetBrainsMono.txt +93 -0
- macbot/web/static/logo-dark.svg +1 -0
- macbot/web/static/logo-mark.svg +1 -0
- macbot/web/static/logo.svg +1 -0
- macbot/web/static/theme.css +200 -0
- macbot/web/templates/_head.html +5 -0
- macbot/web/templates/collect.html +223 -0
- macbot/web/templates/replay.html +132 -0
- macbot/web/templates/run.html +124 -0
- macbot-0.1.0.dist-info/METADATA +183 -0
- macbot-0.1.0.dist-info/RECORD +46 -0
- macbot-0.1.0.dist-info/WHEEL +5 -0
- macbot-0.1.0.dist-info/entry_points.txt +2 -0
- macbot-0.1.0.dist-info/licenses/LICENSE +202 -0
- macbot-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// Shared helpers for the macbot pages.
|
|
2
|
+
const $ = id => document.getElementById(id);
|
|
3
|
+
const esc = x => String(x).replace(/[&<>"]/g, m => ({ "&": "&", "<": "<", ">": ">", '"': """ }[m]));
|
|
4
|
+
// ---------- language (EN / 中文), remembered per browser
|
|
5
|
+
const I18N = {
|
|
6
|
+
en: {
|
|
7
|
+
quit: "Quit & home", collect: "collect", run: "run", replay: "replay", instruction: "instruction",
|
|
8
|
+
record: "Record", save: "Save", discard: "Discard", set_ins: "Set instruction", progress: "progress",
|
|
9
|
+
joints: "joints", joints_hint: "bar = command · line = measured", episodes: "episodes",
|
|
10
|
+
th_len: "length", th_frames: "frames", th_ins: "instruction", th_saved: "saved", th_check: "check",
|
|
11
|
+
no_eps: "no episodes yet", play: "Play", pause: "Pause", back_live: "Back to live", del: "Delete",
|
|
12
|
+
rec: "rec", ready: "ready", simulated: "simulated", not_ready: "not ready", connecting: "connecting",
|
|
13
|
+
disconnected: "disconnected", saving: "saving…", live: "live", no_signal: "no signal", frames: "frames",
|
|
14
|
+
saved_n: n => `${n} saved`, eps_of: (a, b, f) => `${a} / ${b} episodes · ${f} fps`, data: "data",
|
|
15
|
+
crop: "crop", full: "full frame", ok: "ok", warn: "warn", fail: "fail",
|
|
16
|
+
confirm_del: i => `Delete episode ${i}? The file moves to deleted/.`,
|
|
17
|
+
confirm_quit: "Quit? The follower returns to zero slowly, then disables.",
|
|
18
|
+
legend: "solid = measured · dashed = command", tagline: "real-robot learning on a MacBook",
|
|
19
|
+
replay_title: (i, s) => `replay · episode ${i} · ${s} s`,
|
|
20
|
+
start: "Start", hold: "Pause", home: "Home", succ: "Success", failb: "Failure", drop: "Discard run",
|
|
21
|
+
running: "running", paused: "paused", homing: "homing", status: "status", chunks: "chunks",
|
|
22
|
+
infer: "inference", run_time: "this run", next: "next", executor: "executor", speed: "speed",
|
|
23
|
+
policy: "policy", trials: "trials", no_trials: "no trials yet", success: "success", failure: "failure",
|
|
24
|
+
rollouts: "rollouts", replay_btn: "Replay", result: "result", length: "length", no_rollouts: "no rollouts in this folder",
|
|
25
|
+
chunk_marks: "ticks = new chunk", recent: "recent 15 s",
|
|
26
|
+
},
|
|
27
|
+
zh: {
|
|
28
|
+
quit: "结束并回零", collect: "采集", run: "跑策略", replay: "回放", instruction: "语言指令",
|
|
29
|
+
record: "开始录制", save: "保存", discard: "丢弃", set_ins: "保存指令", progress: "进度",
|
|
30
|
+
joints: "关节", joints_hint: "色块 = 指令 · 竖线 = 实测", episodes: "已采数据",
|
|
31
|
+
th_len: "时长", th_frames: "帧数", th_ins: "指令", th_saved: "保存时间", th_check: "检查",
|
|
32
|
+
no_eps: "还没有保存的数据", play: "播放", pause: "暂停", back_live: "回到实时画面", del: "删除",
|
|
33
|
+
rec: "录制中", ready: "待机", simulated: "模拟", not_ready: "未就绪", connecting: "连接中",
|
|
34
|
+
disconnected: "已断开", saving: "保存中…", live: "实时", no_signal: "没有画面", frames: "帧",
|
|
35
|
+
saved_n: n => `共 ${n} 条`, eps_of: (a, b, f) => `${a} / ${b} 条 · ${f} fps`, data: "数据",
|
|
36
|
+
crop: "裁剪", full: "全幅", ok: "通过", warn: "注意", fail: "不通过",
|
|
37
|
+
confirm_del: i => `删除第 ${i} 条?文件会移到 deleted/。`,
|
|
38
|
+
confirm_quit: "结束程序?从臂会先慢速回零,再失能。",
|
|
39
|
+
legend: "实线 = 实测 · 虚线 = 指令", tagline: "一台 MacBook 搞定真机学习",
|
|
40
|
+
replay_title: (i, s) => `回放 · 第 ${i} 条 · ${s} 秒`,
|
|
41
|
+
start: "开始", hold: "暂停", home: "回起始姿态", succ: "存为成功", failb: "存为失败", drop: "丢弃这次",
|
|
42
|
+
running: "运行中", paused: "已暂停", homing: "回起始姿态", status: "运行信息", chunks: "推理块数",
|
|
43
|
+
infer: "推理耗时", run_time: "本次已运行", next: "下一条", executor: "执行方式", speed: "速度",
|
|
44
|
+
policy: "策略", trials: "已保存的试验", no_trials: "还没有试验", success: "成功", failure: "失败",
|
|
45
|
+
rollouts: "试验记录", replay_btn: "回放", result: "结果", length: "时长", no_rollouts: "这个文件夹里没有试验记录",
|
|
46
|
+
chunk_marks: "刻度 = 换块", recent: "最近 15 秒",
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
let LANG = (() => { try { return localStorage.getItem("macbot.lang") || ((navigator.language || "").toLowerCase().startsWith("zh") ? "zh" : "en"); } catch (e) { return "en"; } })();
|
|
50
|
+
const t = (k, ...a) => { const v = (I18N[LANG] || I18N.en)[k] ?? I18N.en[k] ?? k; return typeof v === "function" ? v(...a) : v; };
|
|
51
|
+
const L = m => (m && typeof m === "object") ? (m[LANG] || m.en || "") : (m ?? ""); // server messages {en, zh}
|
|
52
|
+
const CAM_LABEL = { zh: { top: "俯视", wrist: "腕部", front: "前视", side: "侧视" } };
|
|
53
|
+
const camLabel = c => (CAM_LABEL[LANG] || {})[c] || c;
|
|
54
|
+
|
|
55
|
+
function applyI18n() {
|
|
56
|
+
document.documentElement.lang = LANG === "zh" ? "zh-CN" : "en";
|
|
57
|
+
document.querySelectorAll("[data-i18n]").forEach(el => { el.textContent = t(el.dataset.i18n); });
|
|
58
|
+
const b = document.getElementById("lang");
|
|
59
|
+
if (b) b.textContent = LANG === "zh" ? "EN" : "中文";
|
|
60
|
+
}
|
|
61
|
+
function setLang(l) {
|
|
62
|
+
LANG = l;
|
|
63
|
+
try { localStorage.setItem("macbot.lang", l); } catch (e) { /* private mode */ }
|
|
64
|
+
applyI18n();
|
|
65
|
+
if (typeof window.onLang === "function") window.onLang();
|
|
66
|
+
}
|
|
67
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
68
|
+
applyI18n();
|
|
69
|
+
const b = document.getElementById("lang");
|
|
70
|
+
if (b) b.onclick = () => setLang(LANG === "zh" ? "en" : "zh");
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const JOINT_LABELS = {
|
|
74
|
+
en: { shoulder_pan: "pan", shoulder_lift: "lift", elbow_flex: "elbow", wrist_flex: "w.flex", wrist_yaw: "w.yaw", wrist_roll: "w.roll", gripper: "gripper" },
|
|
75
|
+
zh: { shoulder_pan: "肩转", shoulder_lift: "肩抬", elbow_flex: "肘", wrist_flex: "腕俯仰", wrist_yaw: "腕偏航", wrist_roll: "腕滚转", gripper: "夹爪" },
|
|
76
|
+
};
|
|
77
|
+
const jointLabel = n => (JOINT_LABELS[LANG] || JOINT_LABELS.en)[n] || n;
|
|
78
|
+
const JOINT_COLORS = ["#F2701A", "#1BA9A0", "#6E5BE8", "#D93C3C", "#D9A21B", "#1F9D63", "#8A8597"];
|
|
79
|
+
const fmtTime = t => `${Math.floor(t / 60)}:${(t % 60).toFixed(1).padStart(4, "0")}`;
|
|
80
|
+
|
|
81
|
+
async function post(url, body) {
|
|
82
|
+
const r = await fetch(url, { method: "POST", body: JSON.stringify(body) });
|
|
83
|
+
return r.json();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Joint meters: thick bar = command, thin line = measured, scaled to the joint limits.
|
|
87
|
+
// Camera views share one row at equal height: each view's width follows its own aspect ratio,
|
|
88
|
+
// so a square top view and a 16:9 wrist view line up without cropping or empty space.
|
|
89
|
+
function layoutViews(el, names, sizeOf) {
|
|
90
|
+
el.innerHTML = names.map(c => {
|
|
91
|
+
const [w, h] = sizeOf(c) || [4, 3];
|
|
92
|
+
return `<div class="view" style="--ar:${(w / h).toFixed(4)}"><img id="cam-${c}" alt="${c}">` +
|
|
93
|
+
`<span class="tag" id="tag-${c}">${camLabel(c)}</span><span class="age" id="age-${c}"></span></div>`;
|
|
94
|
+
}).join("");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function renderJoints(el, names, q, cmd, limits) {
|
|
98
|
+
el.innerHTML = names.map((n, i) => {
|
|
99
|
+
const [lo, hi] = (limits && limits[n]) || [-180, 180];
|
|
100
|
+
const p = v => Math.max(0, Math.min(100, 100 * (v - lo) / (hi - lo)));
|
|
101
|
+
return `<div class="joint"><span class="name">${jointLabel(n)}</span><div class="meter">` +
|
|
102
|
+
`<span class="cmd" style="left:${p(cmd[i])}%"></span><span class="meas" style="left:${p(q[i])}%"></span></div>` +
|
|
103
|
+
`<span class="val num">${q[i].toFixed(1)}°</span></div>`;
|
|
104
|
+
}).join("");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Segmented progress bar (25 cells).
|
|
108
|
+
function renderHP(el, frac) {
|
|
109
|
+
const on = Math.round(25 * Math.max(0, Math.min(1, frac)));
|
|
110
|
+
el.innerHTML = Array.from({ length: 25 }, (_, i) => `<i class="${i < on ? "on" : ""}"></i>`).join("");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Joint traces for one episode: solid = measured, dashed = command, each joint scaled on its own.
|
|
114
|
+
function drawTraces(svg, legend, qpos, action, names, extra = "") {
|
|
115
|
+
const n = qpos.length, W = 1000, H = 190, x = i => (W * i / Math.max(n - 1, 1)).toFixed(1);
|
|
116
|
+
let s = "";
|
|
117
|
+
for (let j = 0; j < names.length; j++) {
|
|
118
|
+
const v = qpos.map(r => r[j]), a = action.map(r => r[j]);
|
|
119
|
+
const lo = Math.min(...v, ...a), hi = Math.max(...v, ...a), span = Math.max(hi - lo, 1);
|
|
120
|
+
const y = val => (H - 10 - (H - 20) * (val - lo) / span).toFixed(1);
|
|
121
|
+
s += `<polyline points="${a.map((val, i) => `${x(i)},${y(val)}`).join(" ")}" fill="none" stroke="${JOINT_COLORS[j]}" stroke-width="1.2" stroke-dasharray="5 4" opacity=".55" vector-effect="non-scaling-stroke"/>`;
|
|
122
|
+
s += `<polyline points="${v.map((val, i) => `${x(i)},${y(val)}`).join(" ")}" fill="none" stroke="${JOINT_COLORS[j]}" stroke-width="2" vector-effect="non-scaling-stroke"/>`;
|
|
123
|
+
}
|
|
124
|
+
s += extra + `<line id="cursor" x1="0" x2="0" y1="0" y2="${H}" stroke="currentColor" stroke-width="2" vector-effect="non-scaling-stroke"/>`;
|
|
125
|
+
svg.innerHTML = s;
|
|
126
|
+
legend.innerHTML = names.map((nm, j) => `<span style="--c:${JOINT_COLORS[j]}">${jointLabel(nm)}</span>`).join("") +
|
|
127
|
+
`<span style="--c:transparent">${t("legend")}</span>`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function moveCursor(svg, k, n) {
|
|
131
|
+
const c = svg.querySelector("#cursor"), cx = 1000 * k / Math.max(n - 1, 1);
|
|
132
|
+
if (c) { c.setAttribute("x1", cx); c.setAttribute("x2", cx); }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function camTag(el, label, age, stall) {
|
|
136
|
+
const dead = age === null || age === undefined || age > stall;
|
|
137
|
+
el.textContent = `${camLabel(label)} · ${t(dead ? "no_signal" : "live")}`;
|
|
138
|
+
el.classList.toggle("bad", dead);
|
|
139
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 432 112" width="432" height="112" shape-rendering="crispEdges" role="img" aria-label="macbot"><title>macbot</title><rect x="8" y="0" width="112" height="8" fill="#4A4878"/><rect x="8" y="8" width="8" height="8" fill="#4A4878"/><rect x="16" y="8" width="96" height="8" fill="#2B2A4C"/><rect x="112" y="8" width="8" height="8" fill="#4A4878"/><rect x="8" y="16" width="8" height="8" fill="#4A4878"/><rect x="16" y="16" width="96" height="8" fill="#35345E"/><rect x="112" y="16" width="8" height="8" fill="#4A4878"/><rect x="8" y="24" width="8" height="8" fill="#4A4878"/><rect x="16" y="24" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="24" width="8" height="8" fill="#FFC93C"/><rect x="40" y="24" width="56" height="8" fill="#FF7A1A"/><rect x="96" y="24" width="16" height="8" fill="#2B2A4C"/><rect x="112" y="24" width="8" height="8" fill="#4A4878"/><rect x="8" y="32" width="8" height="8" fill="#4A4878"/><rect x="16" y="32" width="16" height="8" fill="#35345E"/><rect x="32" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="32" width="40" height="8" fill="#35345E"/><rect x="80" y="32" width="16" height="8" fill="#FF7A1A"/><rect x="96" y="32" width="16" height="8" fill="#35345E"/><rect x="112" y="32" width="8" height="8" fill="#4A4878"/><rect x="8" y="40" width="8" height="8" fill="#4A4878"/><rect x="16" y="40" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="40" width="32" height="8" fill="#2B2A4C"/><rect x="72" y="40" width="32" height="8" fill="#FFC93C"/><rect x="104" y="40" width="8" height="8" fill="#2B2A4C"/><rect x="112" y="40" width="8" height="8" fill="#4A4878"/><rect x="8" y="48" width="8" height="8" fill="#4A4878"/><rect x="16" y="48" width="16" height="8" fill="#35345E"/><rect x="32" y="48" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="48" width="32" height="8" fill="#35345E"/><rect x="72" y="48" width="8" height="8" fill="#FFC93C"/><rect x="80" y="48" width="16" height="8" fill="#35345E"/><rect x="96" y="48" width="8" height="8" fill="#FFC93C"/><rect x="104" y="48" width="8" height="8" fill="#35345E"/><rect x="112" y="48" width="8" height="8" fill="#4A4878"/><rect x="8" y="56" width="8" height="8" fill="#4A4878"/><rect x="16" y="56" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="56" width="8" height="8" fill="#FFC93C"/><rect x="40" y="56" width="40" height="8" fill="#2B2A4C"/><rect x="80" y="56" width="16" height="8" fill="#2EC4B6"/><rect x="96" y="56" width="16" height="8" fill="#2B2A4C"/><rect x="112" y="56" width="8" height="8" fill="#4A4878"/><rect x="8" y="64" width="8" height="8" fill="#4A4878"/><rect x="16" y="64" width="8" height="8" fill="#35345E"/><rect x="24" y="64" width="24" height="8" fill="#FF7A1A"/><rect x="48" y="64" width="32" height="8" fill="#35345E"/><rect x="80" y="64" width="16" height="8" fill="#2EC4B6"/><rect x="96" y="64" width="16" height="8" fill="#35345E"/><rect x="112" y="64" width="8" height="8" fill="#4A4878"/><rect x="8" y="72" width="8" height="8" fill="#4A4878"/><rect x="16" y="72" width="40" height="8" fill="#FF7A1A"/><rect x="56" y="72" width="56" height="8" fill="#2B2A4C"/><rect x="112" y="72" width="8" height="8" fill="#4A4878"/><rect x="8" y="80" width="112" height="8" fill="#4A4878"/><rect x="0" y="88" width="8" height="8" fill="#4A4878"/><rect x="8" y="88" width="112" height="8" fill="#C9C3B6"/><rect x="120" y="88" width="8" height="8" fill="#4A4878"/><rect x="0" y="96" width="8" height="8" fill="#4A4878"/><rect x="8" y="96" width="112" height="8" fill="#9E978A"/><rect x="120" y="96" width="8" height="8" fill="#4A4878"/><rect x="8" y="104" width="112" height="8" fill="#4A4878"/><rect x="152" y="48" width="16" height="8" fill="#FFF4DC"/><rect x="176" y="48" width="8" height="8" fill="#FFF4DC"/><rect x="208" y="48" width="24" height="8" fill="#FFF4DC"/><rect x="256" y="48" width="24" height="8" fill="#FFF4DC"/><rect x="152" y="56" width="8" height="8" fill="#FFF4DC"/><rect x="168" y="56" width="8" height="8" fill="#FFF4DC"/><rect x="184" y="56" width="8" height="8" fill="#FFF4DC"/><rect x="232" y="56" width="8" height="8" fill="#FFF4DC"/><rect x="248" y="56" width="8" height="8" fill="#FFF4DC"/><rect x="152" y="64" width="8" height="8" fill="#FFF4DC"/><rect x="168" y="64" width="8" height="8" fill="#FFF4DC"/><rect x="184" y="64" width="8" height="8" fill="#FFF4DC"/><rect x="208" y="64" width="32" height="8" fill="#FFF4DC"/><rect x="248" y="64" width="8" height="8" fill="#FFF4DC"/><rect x="152" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="168" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="184" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="200" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="232" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="248" y="72" width="8" height="8" fill="#FFF4DC"/><rect x="152" y="80" width="8" height="8" fill="#FFF4DC"/><rect x="168" y="80" width="8" height="8" fill="#FFF4DC"/><rect x="184" y="80" width="8" height="8" fill="#FFF4DC"/><rect x="208" y="80" width="32" height="8" fill="#FFF4DC"/><rect x="256" y="80" width="24" height="8" fill="#FFF4DC"/><rect x="296" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="48" width="32" height="8" fill="#FF7A1A"/><rect x="352" y="48" width="24" height="8" fill="#FF7A1A"/><rect x="392" y="48" width="32" height="8" fill="#FF7A1A"/><rect x="296" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="80" width="32" height="8" fill="#FF7A1A"/><rect x="352" y="80" width="24" height="8" fill="#FF7A1A"/><rect x="408" y="80" width="16" height="8" fill="#FF7A1A"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14" width="16" height="14" shape-rendering="crispEdges" role="img" aria-label="macbot"><title>macbot</title><rect x="1" y="0" width="14" height="1" fill="#1B1A2E"/><rect x="1" y="1" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="1" width="12" height="1" fill="#2B2A4C"/><rect x="14" y="1" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="2" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="2" width="12" height="1" fill="#35345E"/><rect x="14" y="2" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="3" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="3" width="2" height="1" fill="#2B2A4C"/><rect x="4" y="3" width="1" height="1" fill="#FFC93C"/><rect x="5" y="3" width="7" height="1" fill="#FF7A1A"/><rect x="12" y="3" width="2" height="1" fill="#2B2A4C"/><rect x="14" y="3" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="4" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="4" width="2" height="1" fill="#35345E"/><rect x="4" y="4" width="1" height="1" fill="#FF7A1A"/><rect x="5" y="4" width="5" height="1" fill="#35345E"/><rect x="10" y="4" width="2" height="1" fill="#FF7A1A"/><rect x="12" y="4" width="2" height="1" fill="#35345E"/><rect x="14" y="4" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="5" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="5" width="2" height="1" fill="#2B2A4C"/><rect x="4" y="5" width="1" height="1" fill="#FF7A1A"/><rect x="5" y="5" width="4" height="1" fill="#2B2A4C"/><rect x="9" y="5" width="4" height="1" fill="#FFC93C"/><rect x="13" y="5" width="1" height="1" fill="#2B2A4C"/><rect x="14" y="5" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="6" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="6" width="2" height="1" fill="#35345E"/><rect x="4" y="6" width="1" height="1" fill="#FF7A1A"/><rect x="5" y="6" width="4" height="1" fill="#35345E"/><rect x="9" y="6" width="1" height="1" fill="#FFC93C"/><rect x="10" y="6" width="2" height="1" fill="#35345E"/><rect x="12" y="6" width="1" height="1" fill="#FFC93C"/><rect x="13" y="6" width="1" height="1" fill="#35345E"/><rect x="14" y="6" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="7" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="7" width="2" height="1" fill="#2B2A4C"/><rect x="4" y="7" width="1" height="1" fill="#FFC93C"/><rect x="5" y="7" width="5" height="1" fill="#2B2A4C"/><rect x="10" y="7" width="2" height="1" fill="#2EC4B6"/><rect x="12" y="7" width="2" height="1" fill="#2B2A4C"/><rect x="14" y="7" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="8" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="8" width="1" height="1" fill="#35345E"/><rect x="3" y="8" width="3" height="1" fill="#FF7A1A"/><rect x="6" y="8" width="4" height="1" fill="#35345E"/><rect x="10" y="8" width="2" height="1" fill="#2EC4B6"/><rect x="12" y="8" width="2" height="1" fill="#35345E"/><rect x="14" y="8" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="9" width="1" height="1" fill="#1B1A2E"/><rect x="2" y="9" width="5" height="1" fill="#FF7A1A"/><rect x="7" y="9" width="7" height="1" fill="#2B2A4C"/><rect x="14" y="9" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="10" width="14" height="1" fill="#1B1A2E"/><rect x="0" y="11" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="11" width="14" height="1" fill="#C9C3B6"/><rect x="15" y="11" width="1" height="1" fill="#1B1A2E"/><rect x="0" y="12" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="12" width="14" height="1" fill="#9E978A"/><rect x="15" y="12" width="1" height="1" fill="#1B1A2E"/><rect x="1" y="13" width="14" height="1" fill="#1B1A2E"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 432 112" width="432" height="112" shape-rendering="crispEdges" role="img" aria-label="macbot"><title>macbot</title><rect x="8" y="0" width="112" height="8" fill="#1B1A2E"/><rect x="8" y="8" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="8" width="96" height="8" fill="#2B2A4C"/><rect x="112" y="8" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="16" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="16" width="96" height="8" fill="#35345E"/><rect x="112" y="16" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="24" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="24" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="24" width="8" height="8" fill="#FFC93C"/><rect x="40" y="24" width="56" height="8" fill="#FF7A1A"/><rect x="96" y="24" width="16" height="8" fill="#2B2A4C"/><rect x="112" y="24" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="32" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="32" width="16" height="8" fill="#35345E"/><rect x="32" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="32" width="40" height="8" fill="#35345E"/><rect x="80" y="32" width="16" height="8" fill="#FF7A1A"/><rect x="96" y="32" width="16" height="8" fill="#35345E"/><rect x="112" y="32" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="40" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="40" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="40" width="32" height="8" fill="#2B2A4C"/><rect x="72" y="40" width="32" height="8" fill="#FFC93C"/><rect x="104" y="40" width="8" height="8" fill="#2B2A4C"/><rect x="112" y="40" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="48" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="48" width="16" height="8" fill="#35345E"/><rect x="32" y="48" width="8" height="8" fill="#FF7A1A"/><rect x="40" y="48" width="32" height="8" fill="#35345E"/><rect x="72" y="48" width="8" height="8" fill="#FFC93C"/><rect x="80" y="48" width="16" height="8" fill="#35345E"/><rect x="96" y="48" width="8" height="8" fill="#FFC93C"/><rect x="104" y="48" width="8" height="8" fill="#35345E"/><rect x="112" y="48" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="56" width="16" height="8" fill="#2B2A4C"/><rect x="32" y="56" width="8" height="8" fill="#FFC93C"/><rect x="40" y="56" width="40" height="8" fill="#2B2A4C"/><rect x="80" y="56" width="16" height="8" fill="#2EC4B6"/><rect x="96" y="56" width="16" height="8" fill="#2B2A4C"/><rect x="112" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="64" width="8" height="8" fill="#35345E"/><rect x="24" y="64" width="24" height="8" fill="#FF7A1A"/><rect x="48" y="64" width="32" height="8" fill="#35345E"/><rect x="80" y="64" width="16" height="8" fill="#2EC4B6"/><rect x="96" y="64" width="16" height="8" fill="#35345E"/><rect x="112" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="16" y="72" width="40" height="8" fill="#FF7A1A"/><rect x="56" y="72" width="56" height="8" fill="#2B2A4C"/><rect x="112" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="80" width="112" height="8" fill="#1B1A2E"/><rect x="0" y="88" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="88" width="112" height="8" fill="#C9C3B6"/><rect x="120" y="88" width="8" height="8" fill="#1B1A2E"/><rect x="0" y="96" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="96" width="112" height="8" fill="#9E978A"/><rect x="120" y="96" width="8" height="8" fill="#1B1A2E"/><rect x="8" y="104" width="112" height="8" fill="#1B1A2E"/><rect x="152" y="48" width="16" height="8" fill="#1B1A2E"/><rect x="176" y="48" width="8" height="8" fill="#1B1A2E"/><rect x="208" y="48" width="24" height="8" fill="#1B1A2E"/><rect x="256" y="48" width="24" height="8" fill="#1B1A2E"/><rect x="152" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="168" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="184" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="232" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="248" y="56" width="8" height="8" fill="#1B1A2E"/><rect x="152" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="168" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="184" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="208" y="64" width="32" height="8" fill="#1B1A2E"/><rect x="248" y="64" width="8" height="8" fill="#1B1A2E"/><rect x="152" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="168" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="184" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="200" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="232" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="248" y="72" width="8" height="8" fill="#1B1A2E"/><rect x="152" y="80" width="8" height="8" fill="#1B1A2E"/><rect x="168" y="80" width="8" height="8" fill="#1B1A2E"/><rect x="184" y="80" width="8" height="8" fill="#1B1A2E"/><rect x="208" y="80" width="32" height="8" fill="#1B1A2E"/><rect x="256" y="80" width="24" height="8" fill="#1B1A2E"/><rect x="296" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="32" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="40" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="48" width="32" height="8" fill="#FF7A1A"/><rect x="352" y="48" width="24" height="8" fill="#FF7A1A"/><rect x="392" y="48" width="32" height="8" fill="#FF7A1A"/><rect x="296" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="56" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="64" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="328" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="344" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="376" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="400" y="72" width="8" height="8" fill="#FF7A1A"/><rect x="296" y="80" width="32" height="8" fill="#FF7A1A"/><rect x="352" y="80" width="24" height="8" fill="#FF7A1A"/><rect x="408" y="80" width="16" height="8" fill="#FF7A1A"/></svg>
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* macbot console theme, shared by the collect, run and replay pages.
|
|
2
|
+
The pixel style belongs to the logo only; the console itself stays quiet and legible. */
|
|
3
|
+
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; }
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--bg: #F6F5F2; --panel: #FFFFFF; --sunk: #F2F0EB; --hover: #F8F7F4;
|
|
7
|
+
--ink: #18171F; --mid: #6B6A75; --faint: #A09EA8; --line: #E7E4DD; --line-strong: #D5D1C7;
|
|
8
|
+
--brand: #F2701A; --brand-hover: #DD6110; --brand-soft: #FFF0E4; --brand-ink: #B4500B;
|
|
9
|
+
--ok: #1F9D63; --ok-soft: #E6F5EC; --warn: #B7740C; --warn-soft: #FCF2DF; --bad: #D93C3C; --bad-soft: #FCEBEB;
|
|
10
|
+
--screen: #101018;
|
|
11
|
+
--radius: 12px; --radius-sm: 8px;
|
|
12
|
+
--shadow: 0 1px 2px rgba(24, 23, 31, .04), 0 4px 14px rgba(24, 23, 31, .05);
|
|
13
|
+
--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
|
14
|
+
--sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
|
|
15
|
+
color-scheme: light;
|
|
16
|
+
}
|
|
17
|
+
@media (prefers-color-scheme: dark) {
|
|
18
|
+
:root:not([data-theme="light"]) {
|
|
19
|
+
--bg: #0F0F14; --panel: #17171E; --sunk: #1E1E26; --hover: #1C1C24;
|
|
20
|
+
--ink: #ECEBF0; --mid: #A2A1AC; --faint: #6C6B76; --line: #27272F; --line-strong: #34343F;
|
|
21
|
+
--brand-soft: rgba(242, 112, 26, .15); --brand-ink: #FF9A52;
|
|
22
|
+
--ok-soft: rgba(31, 157, 99, .17); --warn-soft: rgba(183, 116, 12, .2); --bad-soft: rgba(217, 60, 60, .17);
|
|
23
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
:root[data-theme="dark"] {
|
|
27
|
+
--bg: #0F0F14; --panel: #17171E; --sunk: #1E1E26; --hover: #1C1C24;
|
|
28
|
+
--ink: #ECEBF0; --mid: #A2A1AC; --faint: #6C6B76; --line: #27272F; --line-strong: #34343F;
|
|
29
|
+
--brand-soft: rgba(242, 112, 26, .15); --brand-ink: #FF9A52;
|
|
30
|
+
--ok-soft: rgba(31, 157, 99, .17); --warn-soft: rgba(183, 116, 12, .2); --bad-soft: rgba(217, 60, 60, .17);
|
|
31
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
* { box-sizing: border-box; }
|
|
35
|
+
html, body { margin: 0; }
|
|
36
|
+
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
|
|
37
|
+
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .93em; }
|
|
38
|
+
|
|
39
|
+
/* ---------- top bar */
|
|
40
|
+
.topbar {
|
|
41
|
+
position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
|
|
42
|
+
padding: 10px 24px; background: color-mix(in srgb, var(--panel) 86%, transparent);
|
|
43
|
+
backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
|
|
44
|
+
border-bottom: 1px solid var(--line);
|
|
45
|
+
}
|
|
46
|
+
.brand { display: flex; align-items: center; text-decoration: none; }
|
|
47
|
+
.brand img { height: 28px; width: auto; image-rendering: pixelated; display: block; }
|
|
48
|
+
.brand .logo-dark { display: none; }
|
|
49
|
+
@media (prefers-color-scheme: dark) {
|
|
50
|
+
:root:not([data-theme="light"]) .brand .logo-light { display: none; }
|
|
51
|
+
:root:not([data-theme="light"]) .brand .logo-dark { display: block; }
|
|
52
|
+
}
|
|
53
|
+
:root[data-theme="dark"] .brand .logo-light { display: none; }
|
|
54
|
+
:root[data-theme="dark"] .brand .logo-dark { display: block; }
|
|
55
|
+
.crumb { font-size: 13px; color: var(--mid); padding-left: 14px; border-left: 1px solid var(--line-strong); }
|
|
56
|
+
.spacer { flex: 1; }
|
|
57
|
+
.chip { font: 12px var(--mono); color: var(--mid); background: var(--sunk); border-radius: 999px; padding: 3px 10px; }
|
|
58
|
+
.lang { padding: 5px 10px; font-size: 12px; }
|
|
59
|
+
|
|
60
|
+
/* ---------- status badge */
|
|
61
|
+
.badge {
|
|
62
|
+
display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 9px; border-radius: 999px;
|
|
63
|
+
font-size: 12px; font-weight: 600; background: var(--sunk); color: var(--mid);
|
|
64
|
+
}
|
|
65
|
+
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
66
|
+
.badge.live, .badge.run { background: var(--ok-soft); color: var(--ok); }
|
|
67
|
+
.badge.rec { background: var(--bad-soft); color: var(--bad); }
|
|
68
|
+
.badge.warn { background: var(--warn-soft); color: var(--warn); }
|
|
69
|
+
.badge.rec::before, .badge.run::before { animation: pulse 1.2s ease-in-out infinite; }
|
|
70
|
+
@keyframes pulse { 50% { opacity: .25; } }
|
|
71
|
+
#timer { color: var(--mid); }
|
|
72
|
+
|
|
73
|
+
/* ---------- layout */
|
|
74
|
+
.wrap { max-width: 1440px; margin: 0 auto; padding: 20px 24px 28px; }
|
|
75
|
+
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
|
|
76
|
+
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } }
|
|
77
|
+
@media (max-width: 600px) { .wrap { padding: 16px; } .topbar { padding: 10px 16px; } }
|
|
78
|
+
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
|
|
79
|
+
|
|
80
|
+
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
|
|
81
|
+
.card > h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
|
|
82
|
+
.card > h2[data-i18n], .card > h2 > span[data-i18n]:first-child, .view .tag, .badge, th[data-i18n] { text-transform: capitalize; }
|
|
83
|
+
.card > h2 .hint { text-transform: none; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--faint); }
|
|
84
|
+
|
|
85
|
+
/* ---------- camera views: one row, equal height, widths follow each camera's aspect ratio */
|
|
86
|
+
.views { display: flex; gap: 16px; }
|
|
87
|
+
@media (max-width: 760px) { .views { flex-direction: column; } }
|
|
88
|
+
.view {
|
|
89
|
+
position: relative; flex: var(--ar, 1.333) 1 0; min-width: 0; aspect-ratio: var(--ar, 1.333);
|
|
90
|
+
background: var(--screen); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s;
|
|
91
|
+
}
|
|
92
|
+
@media (max-width: 760px) { .view { flex: none; width: 100%; } }
|
|
93
|
+
.view img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
94
|
+
.view .tag {
|
|
95
|
+
position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
|
|
96
|
+
background: rgba(16, 16, 24, .6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
|
97
|
+
}
|
|
98
|
+
.view .tag.bad { background: var(--bad); }
|
|
99
|
+
.view .age:empty { display: none; }
|
|
100
|
+
.view .age {
|
|
101
|
+
position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; font: 11px var(--mono);
|
|
102
|
+
background: rgba(16, 16, 24, .6); color: #fff;
|
|
103
|
+
}
|
|
104
|
+
.views.hot .view { box-shadow: 0 0 0 2px var(--bad), var(--shadow); }
|
|
105
|
+
.views.go .view { box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
|
|
106
|
+
|
|
107
|
+
/* ---------- buttons */
|
|
108
|
+
button, select {
|
|
109
|
+
font: 500 13px var(--sans); color: var(--ink); background: var(--panel); cursor: pointer;
|
|
110
|
+
border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 14px;
|
|
111
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
112
|
+
transition: background .12s, border-color .12s, color .12s;
|
|
113
|
+
}
|
|
114
|
+
button:hover:not(:disabled) { background: var(--hover); border-color: var(--faint); }
|
|
115
|
+
button:active:not(:disabled) { transform: translateY(1px); }
|
|
116
|
+
button:disabled { opacity: .45; cursor: not-allowed; }
|
|
117
|
+
button:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
|
|
118
|
+
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
|
|
119
|
+
button.primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
|
|
120
|
+
button.go { background: var(--ok); border-color: var(--ok); color: #fff; }
|
|
121
|
+
button.go:hover:not(:disabled) { background: #1A8754; border-color: #1A8754; }
|
|
122
|
+
button.stop { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
|
|
123
|
+
button.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
|
|
124
|
+
button.danger:hover:not(:disabled) { background: var(--bad); border-color: var(--bad); color: #fff; }
|
|
125
|
+
button.ghost { background: transparent; border-color: transparent; color: var(--mid); }
|
|
126
|
+
button.ghost:hover:not(:disabled) { background: var(--sunk); border-color: transparent; color: var(--ink); }
|
|
127
|
+
select { padding: 6px 10px; }
|
|
128
|
+
kbd { font: 11px var(--mono); padding: 0 5px; border-radius: 4px; line-height: 17px; background: rgba(127, 127, 127, .14); color: inherit; }
|
|
129
|
+
button.primary kbd, button.go kbd { background: rgba(255, 255, 255, .22); }
|
|
130
|
+
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
|
131
|
+
.btn-grid .wide { grid-column: 1 / -1; }
|
|
132
|
+
.btn-grid button { padding: 10px 14px; }
|
|
133
|
+
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
|
|
134
|
+
|
|
135
|
+
textarea, input[type=text] {
|
|
136
|
+
width: 100%; font: 14px var(--sans); color: var(--ink); background: var(--sunk); padding: 10px 12px;
|
|
137
|
+
border: 1px solid var(--line); border-radius: var(--radius-sm); resize: vertical; min-height: 64px;
|
|
138
|
+
}
|
|
139
|
+
textarea:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--panel); }
|
|
140
|
+
input[type=range] { accent-color: var(--brand); }
|
|
141
|
+
|
|
142
|
+
/* ---------- message strip */
|
|
143
|
+
.msg {
|
|
144
|
+
margin-top: 14px; padding: 10px 12px; min-height: 42px; background: var(--sunk); border-radius: var(--radius-sm);
|
|
145
|
+
font-size: 13px; color: var(--mid); border-left: 3px solid var(--brand);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ---------- progress */
|
|
149
|
+
.hp { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; margin: 4px 0 8px; }
|
|
150
|
+
.hp i { height: 8px; border-radius: 2px; background: var(--sunk); }
|
|
151
|
+
.hp i.on { background: var(--brand); }
|
|
152
|
+
|
|
153
|
+
/* ---------- joint meters */
|
|
154
|
+
.joint { display: grid; grid-template-columns: 80px 1fr 64px; gap: 12px; align-items: center; margin: 10px 0; font-size: 12px; }
|
|
155
|
+
.joint .name { color: var(--mid); }
|
|
156
|
+
.meter { position: relative; height: 6px; background: var(--sunk); border-radius: 999px; }
|
|
157
|
+
.meter .cmd {
|
|
158
|
+
position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
|
|
159
|
+
background: var(--panel); border: 2px solid var(--brand);
|
|
160
|
+
}
|
|
161
|
+
.meter .meas { position: absolute; top: -5px; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
|
|
162
|
+
.joint .val { text-align: right; }
|
|
163
|
+
|
|
164
|
+
/* ---------- key-value list */
|
|
165
|
+
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
|
|
166
|
+
.kv dt { color: var(--mid); }
|
|
167
|
+
.kv dd { margin: 0; font-family: var(--mono); font-size: 12px; word-break: break-all; }
|
|
168
|
+
|
|
169
|
+
/* ---------- stat tiles */
|
|
170
|
+
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
|
|
171
|
+
.tile { background: var(--sunk); border-radius: var(--radius-sm); padding: 10px 12px; }
|
|
172
|
+
.tile .k { font-size: 11px; color: var(--mid); }
|
|
173
|
+
.tile .v { font: 600 19px var(--mono); margin-top: 2px; }
|
|
174
|
+
.tile .v small { font-size: 11px; color: var(--mid); font-weight: 400; }
|
|
175
|
+
|
|
176
|
+
/* ---------- tables */
|
|
177
|
+
.table-wrap { overflow: auto; max-height: 460px; margin: 0 -18px -16px; padding: 0 18px 8px; }
|
|
178
|
+
.table-wrap thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
|
|
179
|
+
table { width: 100%; border-collapse: collapse; }
|
|
180
|
+
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
|
|
181
|
+
th { font-size: 12px; font-weight: 500; color: var(--mid); white-space: nowrap; }
|
|
182
|
+
tbody tr:last-child td { border-bottom: 0; }
|
|
183
|
+
tbody tr:hover td { background: var(--hover); }
|
|
184
|
+
tr.sel td { background: var(--brand-soft); }
|
|
185
|
+
td.ins { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mid); }
|
|
186
|
+
td.acts { text-align: right; white-space: nowrap; }
|
|
187
|
+
td button { padding: 4px 10px; font-size: 12px; }
|
|
188
|
+
.pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
|
|
189
|
+
.pill.ok { background: var(--ok-soft); color: var(--ok); }
|
|
190
|
+
.pill.warn { background: var(--warn-soft); color: var(--warn); }
|
|
191
|
+
.pill.bad { background: var(--bad-soft); color: var(--bad); }
|
|
192
|
+
td small { color: var(--mid); }
|
|
193
|
+
.empty { color: var(--faint); text-align: center; padding: 28px; }
|
|
194
|
+
|
|
195
|
+
/* ---------- plots */
|
|
196
|
+
svg.plot { width: 100%; height: 200px; display: block; background: var(--sunk); border-radius: var(--radius-sm); cursor: crosshair; color: var(--ink); }
|
|
197
|
+
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--mid); }
|
|
198
|
+
.legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; background: var(--c); }
|
|
199
|
+
|
|
200
|
+
footer { text-align: center; padding: 4px 0 24px; font-size: 12px; color: var(--faint); }
|