diff --git a/ExoMy_Software-master/gui/admin-motor-test.css b/ExoMy_Software-master/gui/admin-motor-test.css new file mode 100644 index 0000000..e181027 --- /dev/null +++ b/ExoMy_Software-master/gui/admin-motor-test.css @@ -0,0 +1,183 @@ +:root { + --bg: #05080F; + --pri: #0088FF; + --sec: #FF8C00; + --ok: #00ff91; + --txt: rgba(0,255,145,.8); + --txt2: rgba(0,210,130,.38); + --mono: "Consolas","Cascadia Code","Cascadia Mono","Courier New",monospace; +} +* { margin:0; padding:0; box-sizing:border-box; } +html { height:100%; } +body { + font-family:var(--mono); + background-color:var(--bg); + background-image: + linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px), + linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px); + background-size:32px 32px; + color:var(--txt); + display:flex; flex-direction:column; height:100%; overflow:hidden; +} + +/* ── HEADER ─────────────────────────────────────── */ +header { + height:52px; + background:linear-gradient(135deg, #060D1A 0%, #0C1C38 100%); + border-bottom:2px solid var(--pri); + box-shadow:0 2px 24px rgba(0,136,255,.28); + display:flex; align-items:center; padding:0 16px; gap:14px; flex-shrink:0; z-index:10; +} +.hdr-icon { width:32px; height:32px; flex-shrink:0; } +.hdr-title { font-weight:700; font-size:14px; color:#fff; letter-spacing:5px; text-transform:uppercase; white-space:nowrap; } +.hdr-title em { font-style:normal; color:var(--pri); } +.hdr-div { width:1px; height:28px; background:rgba(255,255,255,.12); flex-shrink:0; } +.hdr-badge { font-size:7px; color:var(--pri); border:1px solid rgba(0,136,255,.5); padding:2px 8px; letter-spacing:2.5px; text-transform:uppercase; white-space:nowrap; } +.hdr-gap { flex:1; } +.hdr-status { font-size:8px; color:rgba(0,255,145,.55); letter-spacing:2px; text-transform:uppercase; white-space:nowrap; } +.hdr-back { color:rgba(0,255,145,.45); text-decoration:none; font-size:8px; letter-spacing:2px; text-transform:uppercase; } +.hdr-back:hover { color:rgba(0,255,145,.8); } +.hdr-clk { display:flex; flex-direction:column; align-items:flex-end; } +.hdr-clk-lbl { font-size:7px; color:rgba(255,255,255,.35); letter-spacing:2px; text-transform:uppercase; } +.hdr-clk-val { font-weight:700; font-size:14px; color:#fff; letter-spacing:3px; line-height:1.1; } + +/* ── PANEL ──────────────────────────────────────── */ +.panel { + position:relative; + background: + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat, + #070D18; + border:1px solid rgba(0,255,145,.1); + box-shadow:0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018); +} +.p-hdr { + display:flex; align-items:center; gap:7px; padding:7px 12px; + border-bottom:1px solid rgba(0,255,145,.08); + background:linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%); +} +.p-dot { width:5px; height:5px; border-radius:50%; background:var(--ok); box-shadow:0 0 6px var(--ok); flex-shrink:0; } +.p-lbl { font-size:8px; letter-spacing:3px; color:rgba(0,255,145,.7); text-transform:uppercase; font-weight:bold; } +.p-tag { margin-left:auto; font-size:7px; color:rgba(0,255,145,.25); letter-spacing:1px; } + +/* ── STATUS ROWS ────────────────────────────────── */ +.sr { display:flex; align-items:center; padding:5px 12px; gap:8px; border-bottom:1px solid rgba(0,255,145,.04); } +.sr:last-child { border-bottom:none; } +.sr-led { width:6px; height:6px; border-radius:50%; flex-shrink:0; border:1px solid rgba(0,255,145,.15); background:#0a1408; } +.sr-led.led-ok { background:#00ff91; border-color:#00ff91; box-shadow:0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); } +.sr-led.led-blue { background:#0088FF; border-color:#0088FF; box-shadow:0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); } +.sr-led.led-off { background:#0d1208; border-color:rgba(0,255,145,.08); } +.sr-key { font-size:7px; letter-spacing:2px; color:rgba(0,210,130,.4); text-transform:uppercase; min-width:80px; flex-shrink:0; } +.sr-val { font-size:9px; font-weight:700; letter-spacing:.8px; margin-left:auto; color:rgba(0,255,145,.85); } +.state_active { color:#00ff91; } +.state_inactive { color:#FF3333; } +.state_unknown { color:#FF8C00; } + +/* ── MAIN LAYOUT ────────────────────────────────── */ +.admin-main { + flex:1; min-height:0; overflow-y:auto; + display:flex; flex-direction:column; gap:12px; + padding:12px; width:100%; +} +.admin-col { display:flex; flex-direction:column; gap:12px; } + +/* ── RESPONSIVE ─────────────────────────────────── */ +@media (min-width:640px) { + .admin-main { flex-direction:row; overflow:hidden; max-width:1200px; margin:0 auto; } + .admin-col { flex:1; min-width:0; overflow-y:auto; min-height:0; } + .admin-col:first-child { flex:0 0 320px; } +} +@media (min-width:1024px) { + .admin-main { padding:16px; gap:16px; } + .admin-col:first-child { flex:0 0 380px; } +} +@media (max-width:479px) { + .hdr-badge, .hdr-clk { display:none; } +} + +/* ── BUTTONS ────────────────────────────────────── */ +.button { + font-family:var(--mono); font-size:8px; letter-spacing:1.5px; text-transform:uppercase; + padding:9px 12px; border:1px solid rgba(0,255,145,.2); background:rgba(0,255,145,.03); + color:rgba(0,255,145,.6); cursor:pointer; transition:all .15s; +} +.button:hover { background:rgba(0,255,145,.08); color:var(--ok); } +.button:disabled { opacity:.3; cursor:not-allowed; } +.buttonA { border-color:rgba(0,136,255,.4); background:rgba(0,136,255,.06); color:rgba(0,136,255,.8); } +.buttonA:hover { background:rgba(0,136,255,.14); color:#55AAFF; border-color:rgba(0,136,255,.7); } +.buttonA:disabled { opacity:.3; } +.buttonX { border-color:rgba(0,255,145,.3); background:rgba(0,255,145,.04); color:rgba(0,255,145,.7); } +.buttonX:hover { background:rgba(0,255,145,.1); color:var(--ok); } +.buttonWarm { border-color:rgba(255,140,0,.35); background:rgba(255,140,0,.04); color:rgba(255,140,0,.7); } +.buttonWarm:hover { background:rgba(255,140,0,.12); color:#FF8C00; } +.buttonWarm:disabled { opacity:.3; } +.buttonDanger { border-color:rgba(255,51,51,.35); background:rgba(255,51,51,.04); color:rgba(255,51,51,.7); } +.buttonDanger:hover { background:rgba(255,51,51,.12); color:#FF3333; } + +/* ── CONTAINER CONTROL ──────────────────────────── */ +.container-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px; } +.container-grid .button { padding:10px 8px; } + +/* ── COPY TEXT ──────────────────────────────────── */ +.copy-text { font-size:8px; color:rgba(0,210,130,.45); letter-spacing:.5px; line-height:1.6; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); } + +/* ── TAB BAR ────────────────────────────────────── */ +.tab-bar { display:flex; gap:2px; padding:10px 12px 0; } +.motor_test_tab_button { + font-family:var(--mono); font-size:8px; letter-spacing:1.5px; text-transform:uppercase; + padding:7px 16px; border:1px solid rgba(0,255,145,.15); border-bottom:none; + background:transparent; color:rgba(0,255,145,.3); cursor:pointer; transition:all .15s; +} +.motor_test_tab_button:hover { color:rgba(0,255,145,.6); border-color:rgba(0,255,145,.35); } +.motor_test_tab_button.is_active { background:rgba(0,255,145,.06); color:#00ff91; border-color:rgba(0,255,145,.4); } +.tab-content-wrap { border-top:1px solid rgba(0,255,145,.08); } + +/* ── TAB PANELS ─────────────────────────────────── */ +.motor_test_tab_panel { display:none; } +.motor_test_tab_panel.is_active { display:block; } + +/* ── TWO-COLUMN TAB LAYOUT ──────────────────────── */ +.tab-row { display:grid; grid-template-columns:1fr 1fr; gap:0; } +.tab-box { padding:12px; } +.tab-box + .tab-box { border-left:1px solid rgba(0,255,145,.06); } +.tab-box-lbl { font-size:6px; letter-spacing:4px; color:rgba(0,255,145,.35); text-transform:uppercase; margin-bottom:8px; } + +/* ── WHEEL SELECTOR ─────────────────────────────── */ +.wheel_selector { display:grid; grid-template-columns:1fr 1fr; gap:4px; } +.wheel_option { display:flex; align-items:center; gap:6px; cursor:pointer; padding:6px 8px; border:1px solid rgba(0,255,145,.1); background:rgba(0,255,145,.02); transition:all .12s; } +.wheel_option:hover { border-color:rgba(0,255,145,.3); background:rgba(0,255,145,.05); } +.wheel_option input[type="radio"] { accent-color:var(--ok); width:12px; height:12px; flex-shrink:0; } +.wheel_option span { font-size:8px; letter-spacing:.8px; color:rgba(0,255,145,.6); } +.wheel_option:has(input:checked) { border-color:rgba(0,255,145,.5); background:rgba(0,255,145,.07); } +.wheel_option:has(input:checked) span { color:var(--ok); } + +/* ── MOTOR TEST GRID ────────────────────────────── */ +.motor_test_grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; } +.motor_test_grid .button { padding:12px 8px; } + +/* ── NEUTRAL TOOLBAR ────────────────────────────── */ +.neutral-toolbar { display:flex; gap:6px; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); } +.neutral-toolbar .button { padding:7px 14px; font-size:8px; } + +/* ── NEUTRAL CARDS ──────────────────────────────── */ +.steering_neutral_grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:6px; padding:12px; } +.steering_neutral_card { border:1px solid rgba(0,255,145,.12); background:rgba(0,255,145,.025); padding:10px; } +.steering_neutral_card.is_dirty { border-color:rgba(255,140,0,.4); background:rgba(255,140,0,.03); } +.steering_neutral_compact_row { display:flex; flex-direction:column; gap:8px; } +.steering_neutral_card_header_compact { } +.steering_neutral_title { font-size:8px; letter-spacing:1.5px; color:rgba(0,255,145,.7); text-transform:uppercase; display:block; } +.steering_neutral_value_row_compact { display:flex; align-items:center; gap:6px; } +.steering_neutral_value { font-size:14px; font-weight:700; color:rgba(0,255,145,.9); letter-spacing:2px; flex:1; text-align:center; } +.is_dirty .steering_neutral_value { color:#FF8C00; } +.steering_neutral_adjust { padding:4px 10px !important; font-size:12px !important; letter-spacing:0 !important; } + +/* ── BACK LINKS ─────────────────────────────────── */ +.back-row { display:flex; gap:12px; padding:10px 12px; } +.back-link { font-family:var(--mono); font-size:8px; letter-spacing:1.5px; text-transform:uppercase; color:rgba(0,255,145,.4); text-decoration:none; padding:7px 14px; border:1px solid rgba(0,255,145,.15); transition:all .15s; } +.back-link:hover { color:rgba(0,255,145,.8); border-color:rgba(0,255,145,.4); } diff --git a/ExoMy_Software-master/gui/admin-motor-test.html b/ExoMy_Software-master/gui/admin-motor-test.html index f7ae6b0..274cd86 100644 --- a/ExoMy_Software-master/gui/admin-motor-test.html +++ b/ExoMy_Software-master/gui/admin-motor-test.html @@ -4,191 +4,7 @@ CUNO // Motorentest - + @@ -690,3 +506,4 @@ header { + diff --git a/ExoMy_Software-master/gui/admin.css b/ExoMy_Software-master/gui/admin.css new file mode 100644 index 0000000..963b49f --- /dev/null +++ b/ExoMy_Software-master/gui/admin.css @@ -0,0 +1,211 @@ +:root { + --bg: #05080F; + --pri: #0088FF; + --sec: #FF8C00; + --ok: #00ff91; + --txt: rgba(0,255,145,.8); + --txt2: rgba(0,210,130,.38); + --mono: "Consolas","Cascadia Code","Cascadia Mono","Courier New",monospace; +} +* { margin:0; padding:0; box-sizing:border-box; } +html { height:100%; } +body { + font-family:var(--mono); + background-color:var(--bg); + background-image: + linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px), + linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px); + background-size:32px 32px; + color:var(--txt); + display:flex; + flex-direction:column; + height:100%; + overflow:hidden; +} + +/* ── HEADER ─────────────────────────────────────── */ +header { + height:52px; + background:linear-gradient(135deg, #060D1A 0%, #0C1C38 100%); + border-bottom:2px solid var(--pri); + box-shadow:0 2px 24px rgba(0,136,255,.28); + display:flex; + align-items:center; + padding:0 16px; + gap:14px; + flex-shrink:0; + z-index:10; +} +.hdr-icon { width:32px; height:32px; flex-shrink:0; } +.hdr-title { font-weight:700; font-size:14px; color:#fff; letter-spacing:5px; text-transform:uppercase; white-space:nowrap; } +.hdr-title em { font-style:normal; color:var(--pri); } +.hdr-div { width:1px; height:28px; background:rgba(255,255,255,.12); flex-shrink:0; } +.hdr-badge { font-size:7px; color:var(--pri); border:1px solid rgba(0,136,255,.5); padding:2px 8px; letter-spacing:2.5px; text-transform:uppercase; white-space:nowrap; } +.hdr-gap { flex:1; } +.hdr-status { font-size:8px; color:rgba(0,255,145,.55); letter-spacing:2px; text-transform:uppercase; white-space:nowrap; } +.hdr-back { color:rgba(0,255,145,.45); text-decoration:none; font-size:8px; letter-spacing:2px; text-transform:uppercase; } +.hdr-back:hover { color:rgba(0,255,145,.8); } +.hdr-clk { display:flex; flex-direction:column; align-items:flex-end; } +.hdr-clk-lbl { font-size:7px; color:rgba(255,255,255,.35); letter-spacing:2px; text-transform:uppercase; } +.hdr-clk-val { font-weight:700; font-size:14px; color:#fff; letter-spacing:3px; line-height:1.1; } + +/* ── PANEL ──────────────────────────────────────── */ +.panel { + position:relative; + background: + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat, + #070D18; + border:1px solid rgba(0,255,145,.1); + box-shadow:0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018); +} +.p-hdr { + display:flex; align-items:center; gap:7px; + padding:7px 12px; + border-bottom:1px solid rgba(0,255,145,.08); + background:linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%); +} +.p-dot { width:5px; height:5px; border-radius:50%; background:var(--ok); box-shadow:0 0 6px var(--ok); flex-shrink:0; } +.p-lbl { font-size:8px; letter-spacing:3px; color:rgba(0,255,145,.7); text-transform:uppercase; font-weight:bold; } +.p-tag { margin-left:auto; font-size:7px; color:rgba(0,255,145,.25); letter-spacing:1px; } + +/* ── STATUS ROWS ────────────────────────────────── */ +.sr { display:flex; align-items:center; padding:4px 10px; gap:7px; border-bottom:1px solid rgba(0,255,145,.04); transition:background .1s; } +.sr:last-child { border-bottom:none; } +.sr:hover { background:rgba(0,255,145,.02); } +.sr-led { width:6px; height:6px; border-radius:50%; flex-shrink:0; border:1px solid rgba(0,255,145,.15); background:#0a1408; } +.sr-led.led-ok { background:#00ff91; border-color:#00ff91; box-shadow:0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); } +.sr-led.led-warn { background:#FF8C00; border-color:#FF8C00; box-shadow:0 0 5px #FF8C00, 0 0 12px rgba(255,140,0,.5); } +.sr-led.led-blue { background:#0088FF; border-color:#0088FF; box-shadow:0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); } +.sr-led.led-off { background:#0d1208; border-color:rgba(0,255,145,.08); box-shadow:none; } +.sr-key { font-size:7px; letter-spacing:2px; color:rgba(0,210,130,.4); text-transform:uppercase; min-width:60px; flex-shrink:0; } +.sr-val { font-size:9px; font-weight:700; letter-spacing:.8px; margin-left:auto; color:rgba(0,255,145,.85); text-align:right; } + +/* ── SERVICE STATE ──────────────────────────────── */ +.state_active { color:#00ff91; } +.state_inactive { color:#FF3333; } +.state_unknown { color:#FF8C00; } +@keyframes statusBlink { 0%,100%{opacity:1} 50%{opacity:.1} } + +/* ── SECTION DIVIDER ────────────────────────────── */ +.ss-hdr { + display:flex; align-items:center; gap:7px; + padding:5px 10px 4px; + background:rgba(0,255,145,.035); + border-top:1px solid rgba(0,255,145,.1); + border-bottom:1px solid rgba(0,255,145,.05); +} +.ss-hdr-line { flex:1; height:1px; background:repeating-linear-gradient(90deg, rgba(0,255,145,.22) 0, rgba(0,255,145,.22) 3px, transparent 3px, transparent 6px); } +.ss-hdr-txt { font-size:6px; letter-spacing:4px; color:rgba(0,255,145,.45); text-transform:uppercase; } + +/* ── GAUGE ──────────────────────────────────────── */ +.sr-gauge { padding-bottom:6px; } +.gauge { flex:1; height:8px; background:rgba(0,255,145,.04); border:1px solid rgba(0,255,145,.14); position:relative; overflow:hidden; } +.gauge::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(4,8,16,.88) 8px, rgba(4,8,16,.88) 9px); z-index:2; pointer-events:none; } +.gauge-fill { height:100%; width:0%; position:relative; z-index:1; transition:width .6s cubic-bezier(.25,.46,.45,.94); } +.gauge-temp .gauge-fill { background:linear-gradient(90deg, rgba(180,60,0,.7), rgba(255,160,0,.9)); box-shadow:2px 0 14px rgba(255,140,0,.45); } +.gauge-num { font-size:8px; font-weight:700; min-width:52px; text-align:right; letter-spacing:.5px; color:rgba(255,160,0,.8); } + +/* ── MAIN LAYOUT ────────────────────────────────── */ +.admin-main { + flex:1; min-height:0; overflow-y:auto; + display:flex; flex-direction:column; gap:12px; + padding:12px; width:100%; +} +.admin-col { display:flex; flex-direction:column; gap:12px; } + +/* ── RESPONSIVE ─────────────────────────────────── */ +@media (min-width:640px) { + .admin-main { flex-direction:row; overflow:hidden; max-width:1100px; margin:0 auto; } + .admin-col { flex:1; min-width:0; overflow-y:auto; min-height:0; } +} +@media (min-width:1024px) { + .admin-main { padding:16px; gap:16px; } +} +@media (max-width:479px) { + .hdr-badge, .hdr-clk { display:none; } +} + +/* ── ACTION BUTTONS ─────────────────────────────── */ +.act-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px; } +.act-btn { + font-family:var(--mono); font-size:8px; letter-spacing:1.5px; text-transform:uppercase; + padding:10px 8px; border:1px solid rgba(0,255,145,.2); background:rgba(0,255,145,.03); + color:rgba(0,255,145,.6); cursor:pointer; transition:all .15s; +} +.act-btn:hover { background:rgba(0,255,145,.08); color:var(--ok); border-color:rgba(0,255,145,.5); } +.act-btn.warm { border-color:rgba(255,140,0,.35); color:rgba(255,140,0,.7); background:rgba(255,140,0,.04); } +.act-btn.warm:hover { background:rgba(255,140,0,.12); color:#FF8C00; border-color:rgba(255,140,0,.7); } +.act-btn.danger { border-color:rgba(255,51,51,.35); color:rgba(255,51,51,.7); background:rgba(255,51,51,.04); } +.act-btn.danger:hover { background:rgba(255,51,51,.12); color:#FF3333; border-color:rgba(255,51,51,.7); } +.act-btn.full { grid-column:span 2; } +.act-btn.subtle { border-color:rgba(0,255,145,.1); color:rgba(0,255,145,.3); } +.act-btn.subtle:hover { color:rgba(0,255,145,.6); border-color:rgba(0,255,145,.35); } + +/* ── LINK CARD ──────────────────────────────────── */ +.link-card { display:flex; align-items:center; gap:12px; padding:10px 12px; } +.link-card-text strong { display:block; font-size:9px; letter-spacing:1.5px; color:rgba(0,255,145,.8); margin-bottom:3px; text-transform:uppercase; } +.link-card-text p { font-size:8px; color:rgba(0,210,130,.45); letter-spacing:.5px; } +.link-card-action { margin-left:auto; flex-shrink:0; } +.link-btn { + font-family:var(--mono); font-size:8px; letter-spacing:1.5px; text-transform:uppercase; + padding:8px 14px; border:1px solid rgba(0,136,255,.4); background:rgba(0,136,255,.06); + color:rgba(0,136,255,.8); cursor:pointer; text-decoration:none; display:inline-block; transition:all .15s; +} +.link-btn:hover { background:rgba(0,136,255,.14); color:#55AAFF; border-color:rgba(0,136,255,.7); } + +/* ── DROPDOWN CONTROL ───────────────────────────── */ +.dropdown-row { display:flex; align-items:center; gap:10px; padding:10px 12px; } +.dropdown-row label { font-size:7px; letter-spacing:2px; color:rgba(0,210,130,.4); text-transform:uppercase; min-width:40px; } +.ctrl-select { + font-family:var(--mono); font-size:8px; letter-spacing:1px; + color:rgba(0,255,145,.8); background:#050A14; + border:1px solid rgba(0,255,145,.2); padding:6px 8px; + cursor:pointer; outline:none; flex:1; +} +.ctrl-select:focus { border-color:rgba(0,255,145,.5); } +.ctrl-status { font-size:7px; letter-spacing:1.5px; color:rgba(0,255,145,.45); white-space:nowrap; min-width:50px; text-align:right; } + +/* ── AUTH OVERLAY ───────────────────────────────── */ +.auth-overlay { + position:fixed; inset:0; background:rgba(5,8,15,.93); + display:flex; align-items:center; justify-content:center; + z-index:1000; backdrop-filter:blur(4px); +} +.auth-box { + width:320px; display:flex; flex-direction:column; gap:14px; padding:28px 24px; + background: + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat, + #070D18; + border:1px solid rgba(0,255,145,.12); + box-shadow:0 0 60px rgba(0,0,0,.8), 0 0 40px rgba(0,136,255,.08); +} +.auth-eyebrow { font-size:7px; letter-spacing:3px; color:rgba(0,210,130,.5); text-transform:uppercase; } +.auth-title { font-size:20px; font-weight:700; color:#fff; letter-spacing:4px; text-transform:uppercase; } +.auth-sub { font-size:8px; color:rgba(0,255,145,.35); letter-spacing:1px; } +.auth-input { + font-family:var(--mono); font-size:16px; background:#050A14; + border:1px solid rgba(0,255,145,.2); color:var(--ok); + padding:10px 12px; outline:none; letter-spacing:6px; width:100%; +} +.auth-input:focus { border-color:rgba(0,255,145,.5); } +.auth-error { font-size:8px; color:#FF3333; letter-spacing:1px; min-height:12px; } +.auth-submit { + font-family:var(--mono); font-size:9px; letter-spacing:2px; text-transform:uppercase; + padding:11px; border:1px solid rgba(0,136,255,.5); background:rgba(0,136,255,.1); + color:rgba(0,136,255,.9); cursor:pointer; transition:all .15s; width:100%; +} +.auth-submit:hover { background:rgba(0,136,255,.22); color:#55AAFF; } diff --git a/ExoMy_Software-master/gui/admin.html b/ExoMy_Software-master/gui/admin.html index 69c6dc9..f288ad3 100644 --- a/ExoMy_Software-master/gui/admin.html +++ b/ExoMy_Software-master/gui/admin.html @@ -4,219 +4,7 @@ CUNO // Admin - + @@ -370,7 +158,7 @@ header {
Hardware
Temp -
+
--
@@ -597,3 +385,4 @@ header { + diff --git a/ExoMy_Software-master/gui/index.css b/ExoMy_Software-master/gui/index.css new file mode 100644 index 0000000..7d3d2aa --- /dev/null +++ b/ExoMy_Software-master/gui/index.css @@ -0,0 +1,668 @@ +:root { + --bg: #05080F; + --pri: #0088FF; + --sec: #FF8C00; + --ok: #00ff91; + --warn: #FFB300; + --txt: rgba(0,255,145,.8); + --txt2: rgba(0,210,130,.38); + --panel: #070D18; + --border: rgba(0,255,145,.12); + --mono: "Consolas", "Cascadia Code", "Cascadia Mono", "Courier New", monospace; + --disp: "Consolas", "Cascadia Code", "Cascadia Mono", "Courier New", monospace; +} + +* { margin: 0; padding: 0; box-sizing: border-box; } +html, body { height: 100%; overflow: hidden; } + +body { + font-family: var(--mono); + background-color: var(--bg); + background-image: + linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px), + linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px); + background-size: 32px 32px; + color: var(--txt); + display: flex; + flex-direction: column; +} + +header { + height: 52px; + background: linear-gradient(135deg, #060D1A 0%, #0C1C38 100%); + border-bottom: 2px solid var(--pri); + box-shadow: 0 2px 24px rgba(0,136,255,.28); + display: flex; + align-items: center; + padding: 0 16px; + gap: 14px; + flex-shrink: 0; + z-index: 100; +} + +.hdr-icon { width: 32px; height: 32px; flex-shrink: 0; } +.hdr-title { + font-family: var(--disp); + font-weight: 700; + font-size: 14px; + color: #fff; + letter-spacing: 5px; + text-transform: uppercase; + white-space: nowrap; +} +.hdr-title em { font-style: normal; color: var(--pri); } +.hdr-div { width: 1px; height: 28px; background: rgba(255,255,255,.12); flex-shrink: 0; } +.hdr-badge { + font-size: 7px; + color: var(--pri); + border: 1px solid rgba(0,136,255,.5); + padding: 2px 8px; + letter-spacing: 2.5px; + text-transform: uppercase; + white-space: nowrap; +} +.hdr-gap { flex: 1; } +.mission-ok { + display: flex; + align-items: center; + gap: 6px; + font-size: 8px; + color: var(--ok); + letter-spacing: 2px; + text-transform: uppercase; +} +.pulse-dot { + width: 7px; + height: 7px; + border-radius: 50%; + background: var(--ok); + animation: pdot 2s ease-in-out infinite; + box-shadow: 0 0 0 0 rgba(0,200,83,.5); +} +@keyframes pdot { + 0% { box-shadow: 0 0 0 0 rgba(0,200,83,.5); } + 70% { box-shadow: 0 0 0 7px rgba(0,200,83,0); } + 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); } +} + +.hdr-clocks { display: flex; gap: 16px; } +.hdr-clk { display: flex; flex-direction: column; align-items: flex-end; } +.hdr-clk-lbl { + font-size: 7px; + color: rgba(255,255,255,.35); + letter-spacing: 2px; + text-transform: uppercase; +} +.hdr-clk-val { + font-family: var(--disp); + font-weight: 700; + font-size: 14px; + color: #fff; + letter-spacing: 3px; + line-height: 1.1; +} +.hdr-clk-val.ora { color: var(--sec); } + +.panel { + position: relative; + background: + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0 / 14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0 / 1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0 / 14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0 / 1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100% / 14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100% / 1px 14px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100% / 14px 1px no-repeat, + linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100% / 1px 14px no-repeat, + #070D18; + border: 1px solid rgba(0,255,145,.1); + box-shadow: 0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018); +} + +.p-hdr { + display: flex; + align-items: center; + gap: 7px; + padding: 7px 12px; + border-bottom: 1px solid rgba(0,255,145,.08); + background: linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%); +} +.p-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); flex-shrink: 0; } +.p-lbl { font-size: 8px; letter-spacing: 3px; color: rgba(0,255,145,.7); text-transform: uppercase; font-weight: bold; } +.p-tag { margin-left: auto; font-size: 7px; color: rgba(0,255,145,.25); letter-spacing: 1px; } + +.main { + flex: 1; + display: grid; + grid-template-columns: 1fr clamp(230px, 28vw, 330px); + gap: clamp(6px, 1vw, 12px); + padding: clamp(6px, 1vw, 12px); + min-height: 0; + overflow: hidden; +} + +.col-l, .col-r { + display: flex; + flex-direction: column; + gap: clamp(6px, 1vw, 12px); + min-height: 0; +} + +#stat-panel { flex-shrink: 0; } + +.drive-btns { display: flex; gap: 8px; padding: 10px 12px; } +.dbtn { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + padding: 12px 6px; + border: 1px solid rgba(0,255,145,.18); + background: rgba(0,255,145,.03); + color: rgba(0,255,145,.35); + font-family: var(--mono); + font-size: 11px; + letter-spacing: 2px; + text-transform: uppercase; + cursor: pointer; + transition: all .18s ease; +} +.dbtn:hover { + border-color: rgba(0,255,145,.5); + color: rgba(0,255,145,.8); + background: rgba(0,255,145,.07); +} +.dbtn.active { + border-color: rgba(0,255,145,.7); + background: rgba(0,255,145,.1); + color: #00ff91; + box-shadow: 0 0 20px rgba(0,255,145,.25), inset 0 0 14px rgba(0,255,145,.06); +} +@keyframes mode-flash { + 0% { box-shadow: 0 0 0px rgba(0,255,145,0), background-color: var(--pri); } + 30% { box-shadow: 0 0 28px rgba(0,255,145,.9), background-color: #00ff91; } + 100% { box-shadow: 0 0 24px rgba(0,136,255,.45), background-color: var(--pri); } +} +.dbtn.flash { animation: mode-flash .5s ease-out forwards; } + +#cam-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; } +.cam-port { + flex: 1; + position: relative; + overflow: hidden; + background: #0C0E14; + min-height: 0; +} +.cam-frame { + --cam-scale: 1; + position: absolute; + left: 0; + top: 0; + overflow: hidden; + background: #05070d; + z-index: 1; +} +#video_output { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: contain; + object-position: center; + background: #05070d; + z-index: 1; +} +.c-vignette { + position: absolute; + inset: 0; + pointer-events: none; + z-index: 6; + background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.58) 100%); +} +.c-xhair { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: calc(180px * var(--cam-scale)); + height: calc(180px * var(--cam-scale)); + z-index: 10; + pointer-events: none; +} +@keyframes xh-spin { to { transform: rotate(360deg); } } +@keyframes xh-pulse { + 0% { transform: scale(1); opacity: .7; } + 100% { transform: scale(2.8); opacity: 0; } +} +.xh-rot { animation: xh-spin 14s linear infinite; transform-box: fill-box; transform-origin: center; } +.xh-rot-rev { animation: xh-spin 8s linear infinite reverse; transform-box: fill-box; transform-origin: center; } +.xh-pulse { animation: xh-pulse 2.5s ease-out infinite; transform-box: fill-box; transform-origin: center; } +.c-rec { + position: absolute; + top: calc(13px * var(--cam-scale)); + left: 50%; + transform: translateX(-50%); + display: flex; + align-items: center; + gap: calc(5px * var(--cam-scale)); + font-size: calc(8px * var(--cam-scale)); + color: rgba(255,55,55,.9); + letter-spacing: calc(2px * var(--cam-scale)); + z-index: 10; +} +.c-rec-dot { + width: calc(6px * var(--cam-scale)); + height: calc(6px * var(--cam-scale)); + border-radius: 50%; + background: #FF3333; + animation: blink 1.1s step-end infinite; +} +@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } } +.c-tl, .c-tr, .c-bl, .c-br { + position: absolute; + z-index: 10; + font-size: calc(9px * var(--cam-scale)); + color: rgba(0,255,145,.72); + letter-spacing: calc(1px * var(--cam-scale)); + line-height: 1.9; + pointer-events: none; +} +.c-tl { top: calc(13px * var(--cam-scale)); left: calc(13px * var(--cam-scale)); } +.c-tr { top: calc(13px * var(--cam-scale)); right: calc(13px * var(--cam-scale)); text-align: right; } +.c-bl { bottom: calc(13px * var(--cam-scale)); left: calc(13px * var(--cam-scale)); } +.c-br { bottom: calc(13px * var(--cam-scale)); right: calc(13px * var(--cam-scale)); text-align: right; } + +/* ── STAT PANEL ─────────────────────────────────────── */ +.stat-list { + display: flex; + flex-direction: column; + background: #040810; + position: relative; + overflow: hidden; +} +.stat-list::before { + content: ""; + position: absolute; + inset: 0; + background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,255,145,.012) 3px, rgba(0,255,145,.012) 4px); + pointer-events: none; + z-index: 0; +} +.ss-hdr { + display: flex; + align-items: center; + gap: 7px; + padding: 5px 10px 4px; + background: rgba(0,255,145,.035); + border-top: 1px solid rgba(0,255,145,.1); + border-bottom: 1px solid rgba(0,255,145,.05); + position: relative; + z-index: 1; +} +.ss-hdr-line { + flex: 1; + height: 1px; + background: repeating-linear-gradient(90deg, rgba(0,255,145,.22) 0, rgba(0,255,145,.22) 3px, transparent 3px, transparent 6px); +} +.ss-hdr-txt { + font-size: 6px; + letter-spacing: 4px; + color: rgba(0,255,145,.45); + text-transform: uppercase; +} +.sr { + display: flex; + align-items: center; + padding: 4px 10px; + gap: 7px; + border-bottom: 1px solid rgba(0,255,145,.04); + position: relative; + z-index: 1; + transition: background .1s; +} +.sr:hover { background: rgba(0,255,145,.02); } +.sr-led { + width: 6px; + height: 6px; + border-radius: 50%; + flex-shrink: 0; + border: 1px solid rgba(0,255,145,.15); + background: #0a1408; +} +.sr-led.led-ok { background: #00ff91; border-color: #00ff91; box-shadow: 0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); } +.sr-led.led-warn { background: #FF8C00; border-color: #FF8C00; box-shadow: 0 0 5px #FF8C00, 0 0 12px rgba(255,140,0,.5); } +.sr-led.led-blue { background: #0088FF; border-color: #0088FF; box-shadow: 0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); } +.sr-led.led-off { background: #0d1208; border-color: rgba(0,255,145,.08); box-shadow: none; } +.sr-key { + font-size: 7px; + letter-spacing: 2px; + color: rgba(0,210,130,.4); + text-transform: uppercase; + min-width: 52px; + flex-shrink: 0; +} +.sr-val { + font-size: 9px; + font-weight: 700; + letter-spacing: .8px; + margin-left: auto; + color: rgba(0,255,145,.85); + text-align: right; +} +.sr-val.b { color: #55CCFF; } +.sr-val.g { color: #00ff91; } +.sr-val.o { color: #FF8C00; } +.sr-val.alert { color: #FF3333; animation: uv-blink .9s step-end infinite; } +.sr-val.warntext { color: #FF8C00; } +/* legacy compat */ +.sval.g { color: var(--ok); } +.sval.o { color: var(--sec); } +.sval.b { color: var(--pri); } +.sval.alert { color: #D50000; animation: uv-blink .9s step-end infinite; } +.sval.warntext { color: var(--sec); } +.sval-conn { display: flex; align-items: center; gap: 5px; color: rgba(0,255,145,.85); font-size: 9px; } +/* Gauge rows */ +.sr-gauge { padding-bottom: 6px; } +.gauge { + flex: 1; + height: 8px; + background: rgba(0,255,145,.04); + border: 1px solid rgba(0,255,145,.14); + position: relative; + overflow: hidden; +} +.gauge::after { + content: ""; + position: absolute; + inset: 0; + background: repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(4,8,16,.88) 8px, rgba(4,8,16,.88) 9px); + z-index: 2; + pointer-events: none; +} +.gauge-fill { + height: 100%; + width: 0%; + position: relative; + z-index: 1; + transition: width .6s cubic-bezier(.25,.46,.45,.94); +} +.gauge-cpu .gauge-fill { background: linear-gradient(90deg, rgba(0,160,90,.65), rgba(0,255,145,.9)); box-shadow: 2px 0 14px rgba(0,255,145,.45); } +.gauge-temp .gauge-fill { background: linear-gradient(90deg, rgba(180,60,0,.7), rgba(255,160,0,.9)); box-shadow: 2px 0 14px rgba(255,140,0,.45); } +.gauge-mem .gauge-fill { background: linear-gradient(90deg, rgba(0,70,180,.65), rgba(0,160,255,.9)); box-shadow: 2px 0 14px rgba(0,136,255,.45); } +.gauge-num { + font-size: 8px; + font-weight: 700; + min-width: 36px; + text-align: right; + letter-spacing: .5px; +} +.gauge-cpu .gauge-num { color: rgba(0,255,145,.7); } +.gauge-temp .gauge-num { color: rgba(255,160,0,.8); } +.gauge-mem .gauge-num { color: rgba(0,180,255,.8); } +@keyframes uv-blink { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.2; } +} + +#joy-panel .p-hdr { padding: 14px 12px; } +.mode-toggle { display: flex; gap: 2px; margin-left: auto; } +.mtbtn { + font-family: var(--mono); + font-size: 8px; + letter-spacing: 1.5px; + padding: 6px 14px; + border: 1px solid rgba(0,255,145,.18); + background: transparent; + color: rgba(0,255,145,.35); + cursor: pointer; + transition: all .15s; + text-transform: uppercase; +} +.mtbtn.active { background: rgba(0,255,145,.1); color: #00ff91; border-color: rgba(0,255,145,.5); box-shadow: 0 0 12px rgba(0,255,145,.2); } + +.drive-inline { + display: flex; + gap: 6px; + padding: 8px 12px 0; + flex-wrap: wrap; +} +.drive-inline .dbtn { + flex: 1; + min-width: 0; + min-height: 34px; + padding: 8px 4px; + font-size: 9px; + letter-spacing: 1px; +} + +#joy-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; } +.joy-area, +.dpad-wrap { + flex: 1; + align-items: center; + justify-content: center; + gap: 10px; + padding: 12px; + min-height: 0; + overflow: hidden; +} +.joy-area { display: flex; flex-direction: column; } +.joy-base { + width: min(calc(100% - 28px), 40vh, 200px); + height: min(calc(100% - 28px), 40vh, 200px); + border-radius: 50%; + background: radial-gradient(circle, rgba(0,255,145,.06) 0%, rgba(0,255,145,.01) 60%, rgba(0,255,145,.03) 100%); + border: 1.5px solid rgba(0,255,145,.22); + box-shadow: inset 0 0 32px rgba(0,255,145,.04), 0 0 20px rgba(0,0,0,.4); + position: relative; + touch-action: none; + user-select: none; + cursor: grab; +} +.joy-base:active { cursor: grabbing; } +.jg-h, .jg-v { position: absolute; background: rgba(0,255,145,.1); } +.jg-h { top: 50%; left: 11%; right: 11%; height: 1px; transform: translateY(-50%); } +.jg-v { left: 50%; top: 11%; bottom: 11%; width: 1px; transform: translateX(-50%); } +.jring { + position: absolute; + border-radius: 50%; + border: 1px solid rgba(0,255,145,.09); + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +.jr1 { width: 58px; height: 58px; } +.jr2 { width: 116px; height: 116px; } +.joy-thumb { + position: absolute; + width: 58px; + height: 58px; + border-radius: 50%; + background: radial-gradient(circle at 36% 32%, rgba(0,255,145,.9), rgba(0,180,100,.7), rgba(0,80,40,.8)); + border: 2px solid rgba(0,255,145,.5); + box-shadow: 0 4px 20px rgba(0,255,145,.4), 0 0 0 4px rgba(0,255,145,.08); + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + pointer-events: none; +} +.joy-thumb::after { + content: ""; + position: absolute; + top: 9px; + left: 9px; + width: 9px; + height: 9px; + border-radius: 50%; + background: rgba(255,255,255,.35); +} + +.dpad-wrap { display: none; flex-direction: column; } +.dpad-wrap.visible { display: flex; } +.dpad-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-template-rows: repeat(3, 1fr); + gap: 5px; + width: min(156px, calc(100% - 28px)); + aspect-ratio: 1; +} +.dpad-btn { + background: rgba(0,255,145,.03); + border: 1px solid rgba(0,255,145,.15); + color: rgba(0,255,145,.35); + font-size: 15px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all .1s; + touch-action: none; + user-select: none; + border-radius: 2px; +} +.dpad-btn:hover { border-color: rgba(0,255,145,.45); color: rgba(0,255,145,.8); background: rgba(0,255,145,.07); } +.dpad-btn.pressed { + background: rgba(0,255,145,.12); + border-color: rgba(0,255,145,.7); + color: #00ff91; + box-shadow: 0 0 16px rgba(0,255,145,.3); +} +.dpad-mid { + background: rgba(0,255,145,.02); + border: 1px solid rgba(0,255,145,.08); + border-radius: 2px; +} +.dpad-diag { font-size: 12px; opacity: .75; } +.dpad-diag:hover { opacity: 1; } +.dpad-diag.pressed { opacity: 1; } + +.joy-vals { display: flex; gap: 22px; } +.joy-ax { display: flex; flex-direction: column; align-items: center; gap: 2px; } +.joy-ax-n { font-size: 7px; letter-spacing: 2px; color: rgba(0,255,145,.35); text-transform: uppercase; } +.joy-ax-v { + font-family: var(--disp); + font-weight: 700; + font-size: 14px; + color: rgba(0,255,145,.8); + min-width: 56px; + text-align: center; + letter-spacing: 2px; +} + +.admin-link { + color: rgba(0,255,145,.35); + text-decoration: none; + font-size: 8px; + letter-spacing: 2px; + text-transform: uppercase; +} +.admin-link:hover { color: rgba(0,255,145,.8); } + +@media (max-width: 1366px), (hover: none) and (pointer: coarse) { + body { overflow-y: auto; } + html, body { overflow-x: hidden; } + .main { + grid-template-columns: 1fr; + overflow: visible; + } + #stat-panel { display: none; } + .drive-btns { flex-direction: column; } +} + +@media (max-width: 1366px) and (orientation: landscape), (hover: none) and (pointer: coarse) and (orientation: landscape) { + html, body { + height: 100%; + overflow: hidden; + } + body { + min-height: 100dvh; + } + header { + height: 40px; + padding: 0 10px; + gap: 8px; + } + .hdr-icon { width: 24px; height: 24px; } + .hdr-title { font-size: 11px; letter-spacing: 3px; } + .hdr-badge, + .mission-ok, + .hdr-clocks, + .admin-link, + .hdr-div { + display: none; + } + .main { + grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); + gap: 8px; + padding: 8px; + overflow: hidden; + } + .col-l, + .col-r { + min-height: 0; + overflow: hidden; + } + #cam-panel, + #joy-panel { + flex: 1 1 auto; + min-height: 0; + } + .p-hdr, + #joy-panel .p-hdr { + padding: 6px 10px; + } + .p-lbl { font-size: 7px; letter-spacing: 2px; } + .p-tag { font-size: 6px; } + .drive-inline { + gap: 4px; + padding: 6px 10px 0; + } + .drive-inline .dbtn { + min-height: 30px; + font-size: 8px; + letter-spacing: .8px; + padding: 6px 3px; + } + .cam-port { + min-height: 0; + } + .joy-area, + .dpad-wrap { + padding: 8px; + gap: 8px; + } + .joy-base { + width: min(calc(100% - 16px), 32vh, 160px); + height: min(calc(100% - 16px), 32vh, 160px); + } + .jr1 { width: 46px; height: 46px; } + .jr2 { width: 92px; height: 92px; } + .joy-thumb { + width: 44px; + height: 44px; + } + .joy-thumb::after { + top: 6px; + left: 6px; + width: 7px; + height: 7px; + } + .dpad-grid { + width: min(136px, calc(100% - 16px)); + gap: 4px; + } + .dpad-btn { + font-size: 13px; + } + .dpad-diag { + font-size: 11px; + } + .joy-vals { + gap: 14px; + } + .joy-ax-v { + font-size: 12px; + min-width: 48px; + } +} diff --git a/ExoMy_Software-master/gui/index.html b/ExoMy_Software-master/gui/index.html index 48617d1..8327f6e 100644 --- a/ExoMy_Software-master/gui/index.html +++ b/ExoMy_Software-master/gui/index.html @@ -5,554 +5,7 @@ ExoMy // Ground Control - +
@@ -592,20 +45,6 @@ header {
-
-
-
- Fahrmodus - Mode Select -
-
- - - - -
-
-
@@ -613,6 +52,7 @@ header { Live Stream
+
Kamerabild vom ExoMy
LIVE
@@ -666,8 +106,8 @@ header {
-
+
@@ -708,17 +148,17 @@ header {
CPU -
+
--
Temp -
+
--
RAM -
+
--
@@ -762,6 +202,12 @@ header {
+
+ + + + +
@@ -1139,6 +585,34 @@ function clearDpad() { resetAxes(); } +function updateCameraFrameLayout() { + var port = document.querySelector(".cam-port"); + var frame = document.getElementById("video_frame"); + var video = document.getElementById("video_output"); + if (!port || !frame) return; + + var portWidth = port.clientWidth; + var portHeight = port.clientHeight; + if (!portWidth || !portHeight) return; + + var videoWidth = (video && video.naturalWidth) || 1280; + var videoHeight = (video && video.naturalHeight) || 720; + var aspectRatio = videoWidth / videoHeight; + + var frameWidth = portWidth; + var frameHeight = frameWidth / aspectRatio; + if (frameHeight > portHeight) { + frameHeight = portHeight; + frameWidth = frameHeight * aspectRatio; + } + + frame.style.width = frameWidth + "px"; + frame.style.height = frameHeight + "px"; + frame.style.left = ((portWidth - frameWidth) / 2) + "px"; + frame.style.top = ((portHeight - frameHeight) / 2) + "px"; + frame.style.setProperty("--cam-scale", Math.max(0.55, Math.min(1.1, frameWidth / 640)).toFixed(3)); +} + window.addEventListener("load", function () { setText("cam-host", hostUrl); updateModeDisplay(); @@ -1155,10 +629,16 @@ window.addEventListener("load", function () { video.src = "//" + hostUrl + ":8083/stream.mjpg"; video.addEventListener("load", function () { setText("cam-state", "Online"); + updateCameraFrameLayout(); }); video.addEventListener("error", function () { setText("cam-state", "Fehler"); }); + updateCameraFrameLayout(); + window.addEventListener("resize", updateCameraFrameLayout); + window.addEventListener("orientationchange", function () { + window.setTimeout(updateCameraFrameLayout, 80); + }); ros = new ROSLIB.Ros({ url: "ws://" + hostUrl + ":9090" @@ -1293,3 +773,4 @@ window.addEventListener("load", function () { +