Add function Language
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-16 16:44:04 +07:00
parent 1156e1ab29
commit a2e87aeb29
11 changed files with 1790 additions and 474 deletions

View File

@@ -24,102 +24,184 @@ body {
.shell {
display: grid;
grid-template-columns: 260px 1fr;
grid-template-columns: auto 1fr;
min-height: 100vh;
}
.sidebar {
/* —— MiR 3-column navigation (rail + flyout + content) —— */
.mirNavShell {
display: flex;
height: 100vh;
position: sticky;
top: 0;
height: 100vh;
background: linear-gradient(180deg, #0b1220, #0b1220);
color: #e8eefc;
padding: 16px 14px;
border-right: 1px solid rgba(255, 255, 255, 0.08);
z-index: 35;
flex-shrink: 0;
}
.brand {
display: grid;
grid-template-columns: 40px 1fr;
gap: 10px;
align-items: center;
padding: 10px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
.mirNavShell--flyout-collapsed .mirNavFlyout {
width: 0;
min-width: 0;
padding: 0;
border: none;
overflow: hidden;
opacity: 0;
pointer-events: none;
}
.brandIcon {
width: 40px;
height: 40px;
border-radius: 12px;
display: grid;
place-items: center;
background: rgba(37, 99, 235, 0.22);
border: 1px solid rgba(37, 99, 235, 0.35);
font-weight: 800;
}
.brandTitle { font-weight: 800; font-size: 13px; letter-spacing: 0.2px; }
.brandSub { color: rgba(232,238,252,0.75); font-size: 12px; margin-top: 2px; }
.navTitle {
margin-top: 16px;
padding: 0 10px;
font-size: 11px;
color: rgba(232,238,252,0.65);
letter-spacing: 0.12em;
.mirNavRail {
width: 76px;
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: stretch;
background: linear-gradient(180deg, #1a3d66 0%, #122d4f 55%, #0f2744 100%);
color: rgba(255, 255, 255, 0.92);
border-right: 1px solid rgba(0, 0, 0, 0.28);
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}
.nav { margin-top: 8px; display: grid; gap: 6px; }
.navItem {
.mirNavBackBtn {
flex-shrink: 0;
margin: 8px 8px 4px;
height: 32px;
border: none;
border-radius: 8px;
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.85);
font-size: 18px;
line-height: 1;
cursor: pointer;
}
.mirNavBackBtn:hover { background: rgba(255, 255, 255, 0.14); }
.mirNavRailItems {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 2px;
padding: 4px 6px;
overflow-y: auto;
}
.mirNavRailFooter {
padding: 8px 6px 12px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mirNavRailItem {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
min-height: 68px;
padding: 8px 4px;
border: none;
border-radius: 10px;
background: transparent;
color: rgba(255, 255, 255, 0.78);
cursor: pointer;
text-align: center;
}
.mirNavRailItem:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.mirNavRailItem.is-active {
background: rgba(255, 255, 255, 0.14);
color: #fff;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mirNavRailIcon { display: block; opacity: 0.95; }
.mirNavRailLabel {
font-size: 10px;
line-height: 1.15;
letter-spacing: 0.01em;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.mirNavRailItem--logout { color: rgba(255, 200, 200, 0.9); }
.mirNavRailItem--logout:hover { color: #fff; background: rgba(239, 68, 68, 0.22); }
.mirNavFlyout {
width: 248px;
flex-shrink: 0;
display: flex;
flex-direction: column;
background: linear-gradient(180deg, #5a94cf 0%, #4a7fbe 45%, #3d6fa8 100%);
color: #fff;
border-right: 1px solid rgba(0, 0, 0, 0.18);
box-shadow: 4px 0 18px rgba(15, 23, 42, 0.12);
transition: width 0.18s ease, opacity 0.18s ease;
overflow: hidden;
}
.mirNavFlyoutHeader {
padding: 14px 16px 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mirNavFlyoutTitle {
margin: 0;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.02em;
}
.mirNavFlyoutList {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 2px;
padding: 10px 8px;
overflow-y: auto;
}
.mirNavFlyoutItem {
display: block;
width: 100%;
text-align: left;
padding: 11px 14px;
border: none;
border-radius: 8px;
background: transparent;
color: rgba(255, 255, 255, 0.88);
font-size: 14px;
cursor: pointer;
}
.mirNavFlyoutItem:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.mirNavFlyoutItem.is-active {
background: rgba(255, 255, 255, 0.22);
color: #fff;
font-weight: 600;
box-shadow: inset 3px 0 0 #fff;
}
.mirNavFlyoutFooter {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 10px;
border-radius: 12px;
color: rgba(232,238,252,0.85);
text-decoration: none;
border: 1px solid transparent;
gap: 8px;
padding: 10px 14px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.12);
font-size: 12px;
color: rgba(255, 255, 255, 0.85);
}
.navItem:hover { background: rgba(255,255,255,0.05); }
.navItem.active {
background: rgba(37, 99, 235, 0.22);
border-color: rgba(37, 99, 235, 0.30);
color: #ffffff;
}
.navDot {
width: 10px;
height: 10px;
.mirNavStatusLed {
width: 8px;
height: 8px;
border-radius: 999px;
background: rgba(255,255,255,0.25);
background: rgba(16, 185, 129, 0.9);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
flex-shrink: 0;
}
.navItem.active .navDot { background: rgba(37, 99, 235, 1); }
.sidebarFooter {
position: absolute;
left: 14px;
right: 14px;
bottom: 14px;
.mirNavStatusText {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.statusBadge {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.statusLed {
width: 10px;
height: 10px;
border-radius: 999px;
background: rgba(16, 185, 129, 0.85);
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.statusText { color: rgba(232,238,252,0.85); font-size: 12px; }
.body {
display: grid;
grid-template-rows: auto 1fr;
min-width: 0;
background: var(--bg);
box-shadow: -2px 0 12px rgba(15, 23, 42, 0.06);
}
/* —— MiR-style top bar —— */
@@ -1370,8 +1452,10 @@ canvas {
}
@media (max-width: 980px) {
.shell { grid-template-columns: 1fr; }
.sidebar { position: relative; height: auto; }
.shell { grid-template-columns: auto 1fr; }
.mirNavShell { height: auto; position: relative; }
.mirNavShell--flyout-collapsed .mirNavFlyout { display: none; }
.mirNavFlyout { width: 200px; }
.body { grid-template-rows: auto 1fr; }
.content { grid-template-columns: 1fr; height: auto; }
.splitter { display: none; }