5f63c5032c
Adds the four onboarding pieces that were missing:
- flywithlua_present Tauri command + wizard step that checks the plugin and
links the FlyWithLua NG+ download when it's absent.
- Wizard step explaining how to enable X-Plane's Web/REST API (Settings>Network).
- FlyWithLua-Sync status row in the live diagnostics, from /api/health.lua
('N Skripte aktiv' / 'FlyWithLua fehlt' / 'kein X-Plane').
- 4-step guided wizard (X-Plane folder → FlyWithLua → Web-API → install+start)
that auto-opens on first launch and is reachable via the header Einrichten
button; the final step hands off to the normal server start (auto-installs Lua).
Verified the wizard DOM flow + the dLua status against a live bridge.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
134 lines
8.8 KiB
CSS
134 lines
8.8 KiB
CSS
/* macOS-style dark theme: neutral graphite surfaces, SF system font, subtle
|
|
separators, a single green accent for the running/start state. No blue. */
|
|
:root {
|
|
--bg: #1c1c1e; /* system background (dark) */
|
|
--bg2: #2c2c2e; /* elevated surface */
|
|
--bg3: #3a3a3c; /* control fill */
|
|
--line: #48484a; /* separators / borders */
|
|
--line-soft: #38383a;
|
|
--txt: #ffffff;
|
|
--txt2: #ebebf5;
|
|
--mut: #8e8e93; /* secondary label */
|
|
--green: #30d158; /* system green */
|
|
--green-d: #248a3d;
|
|
--amber: #ffd60a;
|
|
--red: #ff453a;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; height: 100%; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--txt);
|
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
|
|
font-size: 13px; user-select: none; -webkit-font-smoothing: antialiased;
|
|
}
|
|
.panel { display: flex; flex-direction: column; height: 100vh; padding: 16px; gap: 14px; }
|
|
.hd { display: flex; align-items: center; justify-content: space-between; }
|
|
.brand { font-weight: 700; letter-spacing: .2px; font-size: 17px; }
|
|
.brand span { color: var(--mut); font-weight: 500; }
|
|
.status { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--bg2); color: var(--txt2); }
|
|
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); transition: background .2s; }
|
|
.status.run .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
|
|
.status.warn .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
|
|
|
|
main { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
|
|
.card { background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
|
|
.lbl { color: var(--mut); font-size: 11px; font-weight: 600; }
|
|
.row { display: flex; gap: 8px; align-items: center; }
|
|
.row.gap { gap: 16px; margin-top: 2px; }
|
|
.field { display: flex; flex-direction: column; gap: 6px; }
|
|
.field input { width: 96px; }
|
|
input[type="text"], input[type="number"] {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--txt);
|
|
border-radius: 7px; padding: 8px 10px; font-size: 13px; font-family: inherit;
|
|
}
|
|
input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(48,209,88,.2); }
|
|
.toggle { display: flex; align-items: center; gap: 8px; color: var(--txt2); cursor: pointer; align-self: flex-end; padding-bottom: 8px; }
|
|
.toggle input { width: 15px; height: 15px; accent-color: var(--green); }
|
|
.hint { font-size: 12px; min-height: 16px; color: var(--mut); }
|
|
.hint.ok { color: var(--green); } .hint.bad { color: var(--amber); }
|
|
.hint a { color: var(--green); }
|
|
|
|
.btn { border: 1px solid var(--line); background: var(--bg3); color: var(--txt); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-family: inherit; cursor: pointer; transition: filter .12s, background .12s; }
|
|
.btn:hover { filter: brightness(1.18); }
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn.ghost { background: transparent; color: var(--txt2); border-color: var(--line); }
|
|
.btn.sm { padding: 5px 10px; font-size: 12px; }
|
|
.btn.big { padding: 13px; font-size: 15px; font-weight: 600; }
|
|
.btn.primary { background: var(--green); color: #042b10; border-color: transparent; font-weight: 600; }
|
|
.btn.big.stop { background: var(--red); color: #2a0603; }
|
|
.btn.ok { background: var(--green); color: #042b10; border-color: transparent; font-weight: 600; }
|
|
.btn:disabled { opacity: .45; cursor: default; }
|
|
|
|
.update-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: rgba(48,209,88,.10); border: 1px solid var(--green-d); border-radius: 12px; padding: 10px 12px; }
|
|
.update-banner.hidden { display: none; }
|
|
.ub-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.ub-text b { color: var(--green); font-size: 13px; }
|
|
.ub-text span { color: var(--mut); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
|
|
.ub-actions { display: flex; gap: 6px; flex: 0 0 auto; }
|
|
|
|
.live.hidden { display: none; }
|
|
.url-row { display: flex; gap: 8px; align-items: center; }
|
|
.url-row code { flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--green); border-radius: 7px; padding: 10px 12px; font-size: 16px; font-weight: 600; letter-spacing: .3px; user-select: text; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
|
|
.quick { display: flex; gap: 6px; }
|
|
.quick .btn { flex: 1; }
|
|
|
|
.diag { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; display: flex; flex-direction: column; gap: 5px; }
|
|
.diag-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--mut); }
|
|
.diag-row b { color: var(--txt2); font-weight: 600; }
|
|
.diag-row b.ok { color: var(--green); } .diag-row b.warn { color: var(--amber); } .diag-row b.bad { color: #ff6b6b; }
|
|
|
|
.log-wrap { background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 12px; }
|
|
.log-wrap summary { color: var(--mut); font-size: 12px; cursor: pointer; padding: 4px 0; }
|
|
#log { margin: 6px 0 2px; max-height: 140px; overflow-y: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--mut); white-space: pre-wrap; }
|
|
|
|
.ft { display: flex; align-items: center; justify-content: space-between; color: var(--mut); font-size: 12px; }
|
|
.link { background: none; border: none; color: var(--green); cursor: pointer; font-size: 12px; font-family: inherit; }
|
|
.link:hover { text-decoration: underline; }
|
|
.link:disabled { color: var(--mut); cursor: default; text-decoration: none; }
|
|
.update-badge { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 6px; box-shadow: 0 0 6px var(--green); vertical-align: middle; }
|
|
|
|
/* airspace region picker (in the live card) */
|
|
.asp-wrap { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
|
|
.asp-wrap > summary { cursor: pointer; color: var(--txt2); font-size: 13px; font-weight: 600; list-style: none; }
|
|
.asp-wrap > summary::-webkit-details-marker { display: none; }
|
|
.asp-wrap > summary::before { content: '▸ '; color: var(--mut); }
|
|
.asp-wrap[open] > summary::before { content: '▾ '; }
|
|
.asp-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
|
|
.asp-note { color: var(--mut); font-size: 12px; line-height: 1.4; margin: 0; }
|
|
.asp-note a { color: var(--green); }
|
|
#aspKey { width: 100%; }
|
|
.asp-list { display: flex; flex-direction: column; gap: 6px; }
|
|
.asp-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
|
|
background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 10px; }
|
|
.asp-name { color: var(--txt2); font-size: 13px; }
|
|
.asp-name em { color: var(--mut); font-style: normal; font-size: 11px; }
|
|
.asp-count { color: var(--mut); font-size: 12px; min-width: 56px; text-align: right; }
|
|
|
|
/* header setup button sits between brand and status */
|
|
.hd { display: flex; align-items: center; gap: 10px; }
|
|
.hd #setupBtn { margin-left: auto; }
|
|
.hd #status { margin-left: 8px; }
|
|
|
|
/* first-run setup wizard */
|
|
.wiz { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
|
|
.wiz.hidden { display: none; }
|
|
.wiz-box { width: min(440px, 92vw); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
|
|
.wiz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
|
|
.wiz-head b { font-size: 15px; }
|
|
.wiz-steps { display: flex; gap: 6px; margin-left: auto; }
|
|
.wiz-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--bg3); color: var(--mut); }
|
|
.wiz-steps span.on { background: var(--green); color: #042b10; font-weight: 700; }
|
|
.wiz-x { background: none; border: none; color: var(--mut); font-size: 16px; cursor: pointer; }
|
|
.wiz-step h3 { margin: 0 0 8px; font-size: 14px; color: var(--txt); }
|
|
.wiz-step p { margin: 0 0 10px; color: var(--txt2); font-size: 13px; line-height: 1.45; }
|
|
.wiz-step .wiz-sub { color: var(--mut); font-size: 12px; }
|
|
.wiz-step a { color: var(--green); }
|
|
.wiz-step code { background: var(--bg3); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
|
|
.wiz-ol { margin: 0 0 10px; padding-left: 20px; color: var(--txt2); font-size: 13px; line-height: 1.6; }
|
|
.wiz-status { background: var(--bg3); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 8px 0; }
|
|
.wiz-status.ok { color: var(--green); border-color: #1d4a2c; }
|
|
.wiz-status.bad { color: #ff6b6b; border-color: #5a2424; }
|
|
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
|
|
.wiz-foot .btn { flex: 1; }
|