Major overhaul of db -> hypertable conversion, updated GUI, added inventory
This commit is contained in:
parent
fdf9f04bc6
commit
f218350959
8 changed files with 1565 additions and 210 deletions
165
static/style.css
165
static/style.css
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
/* CSS Custom Properties for theme colors and sizing */
|
||||
:root {
|
||||
--sidebar-width: 280px;
|
||||
--sidebar-width: 340px;
|
||||
--bg-main: #111;
|
||||
--bg-side: #1a1a1a;
|
||||
--card: #222;
|
||||
|
|
@ -43,27 +43,68 @@ body {
|
|||
.sort-buttons {
|
||||
/* Container for sorting controls; uses flex layout to distribute buttons equally */
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
gap: 2px;
|
||||
margin: 12px 16px 8px;
|
||||
}
|
||||
.sort-buttons .btn {
|
||||
/* Base styling for each sort button: color, padding, border */
|
||||
/* Compact styling for sort buttons to fit 6 options */
|
||||
flex: 1;
|
||||
padding: 6px 8px;
|
||||
background: #222;
|
||||
color: #eee;
|
||||
border: 1px solid #555;
|
||||
border-radius: 4px;
|
||||
padding: 4px 6px;
|
||||
background: #333;
|
||||
color: #ccc;
|
||||
border: 1px solid #666;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.15s;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sort-buttons .btn:hover {
|
||||
background: #444;
|
||||
color: #fff;
|
||||
border-color: #777;
|
||||
}
|
||||
|
||||
.sort-buttons .btn.active {
|
||||
/* Active sort button highlighted with accent color */
|
||||
background: var(--accent);
|
||||
color: #111;
|
||||
border-color: var(--accent);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sort-buttons .btn.active:hover {
|
||||
background: var(--accent);
|
||||
color: #111;
|
||||
}
|
||||
|
||||
/* Sort direction indicators */
|
||||
.sort-buttons .btn.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 3px solid transparent;
|
||||
border-right: 3px solid transparent;
|
||||
}
|
||||
|
||||
/* Most sorts are descending (down arrow) */
|
||||
.sort-buttons .btn.active::after {
|
||||
border-top: 4px solid #111;
|
||||
}
|
||||
|
||||
/* Name and KPR are ascending (up arrow) */
|
||||
.sort-buttons .btn.active[data-value="name"]::after,
|
||||
.sort-buttons .btn.active[data-value="kpr"]::after {
|
||||
border-top: none;
|
||||
border-bottom: 4px solid #111;
|
||||
}
|
||||
|
||||
/* ---------- sidebar --------------------------------------------- */
|
||||
|
|
@ -178,6 +219,22 @@ body {
|
|||
white-space: nowrap;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
/* ---------- coordinate display ---------------------------------- */
|
||||
.coordinates {
|
||||
position: absolute;
|
||||
display: none;
|
||||
background: rgba(0, 50, 100, 0.9);
|
||||
color: #fff;
|
||||
padding: 3px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.75rem;
|
||||
font-family: monospace;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
z-index: 999;
|
||||
border: 1px solid rgba(100, 150, 200, 0.5);
|
||||
}
|
||||
/* make each row a flex container */
|
||||
/* 2-column flex layout for each player row */
|
||||
/* make each row a flex container */
|
||||
|
|
@ -185,13 +242,13 @@ body {
|
|||
/* make each player row into a 3×2 grid */
|
||||
#playerList li {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
grid-template-columns: 1fr auto auto auto auto auto;
|
||||
grid-template-rows: auto auto auto auto;
|
||||
grid-template-areas:
|
||||
"name loc"
|
||||
"kills kph"
|
||||
"rares meta"
|
||||
"onlinetime deaths";
|
||||
"name name name name name name"
|
||||
"kills totalkills kph kph kph kph"
|
||||
"rares kpr meta meta meta meta"
|
||||
"onlinetime deaths tapers tapers tapers tapers";
|
||||
gap: 4px 8px;
|
||||
margin: 6px 0;
|
||||
padding: 8px 10px;
|
||||
|
|
@ -203,14 +260,17 @@ body {
|
|||
|
||||
/* assign each span into its grid cell */
|
||||
.player-name { grid-area: name; font-weight: 600; color: var(--text); }
|
||||
.player-loc { grid-area: loc; font-size: 0.75rem; color: #aaa; }
|
||||
.coordinates-inline { font-size: 0.75rem; color: #aaa; font-weight: 400; margin-left: 8px; }
|
||||
|
||||
.stat.kills { grid-area: kills; }
|
||||
.stat.total-kills { grid-area: totalkills; }
|
||||
.stat.kph { grid-area: kph; }
|
||||
.stat.rares { grid-area: rares; }
|
||||
.stat.kpr { grid-area: kpr; }
|
||||
.stat.meta { grid-area: meta; }
|
||||
.stat.onlinetime { grid-area: onlinetime; }
|
||||
.stat.deaths { grid-area: deaths; }
|
||||
.stat.tapers { grid-area: tapers; }
|
||||
|
||||
/* pill styling */
|
||||
#playerList li .stat {
|
||||
|
|
@ -224,9 +284,13 @@ body {
|
|||
}
|
||||
|
||||
/* icons & suffixes */
|
||||
.stat.kills::before { content: "⚔️ "; }
|
||||
.stat.kph::after { content: " KPH"; font-size:0.7em; color:#aaa; }
|
||||
.stat.rares::after { content: " Rares"; font-size:0.7em; color:#aaa; }
|
||||
.stat.kills::before { content: "⚔️ "; }
|
||||
.stat.total-kills::before { content: "🏆 "; }
|
||||
.stat.kph::after { content: " KPH"; font-size:0.7em; color:#aaa; }
|
||||
.stat.rares::before { content: "💎 "; }
|
||||
.stat.rares::after { content: " Rares"; font-size:0.7em; color:#aaa; }
|
||||
.stat.kpr::before { content: "📊 "; }
|
||||
.stat.kpr::after { content: " KPR"; font-size:0.7em; color:#aaa; }
|
||||
/* metastate pill colors are assigned dynamically: green for “good” states, red otherwise */
|
||||
#playerList li .stat.meta {
|
||||
/* fallback */
|
||||
|
|
@ -245,7 +309,7 @@ body {
|
|||
}
|
||||
|
||||
/* ---------- chat window styling ------------------------------- */
|
||||
.chat-btn, .stats-btn {
|
||||
.chat-btn, .stats-btn, .inventory-btn {
|
||||
margin-top: 4px;
|
||||
padding: 2px 6px;
|
||||
background: var(--accent);
|
||||
|
|
@ -256,7 +320,7 @@ body {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.chat-window, .stats-window {
|
||||
.chat-window, .stats-window, .inventory-window {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
/* position window to start just right of the sidebar */
|
||||
|
|
@ -326,6 +390,17 @@ body.noselect, body.noselect * {
|
|||
}
|
||||
.stat.onlinetime::before { content: "🕑 "}
|
||||
.stat.deaths::before { content: "💀 "}
|
||||
.stat.tapers::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-image: url('prismatic-taper-icon.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 4px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
/* hover & selected states */
|
||||
#playerList li:hover { background: var(--card-hov); }
|
||||
|
|
@ -365,3 +440,53 @@ body.noselect, body.noselect * {
|
|||
height: 200px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* ---------- stats window time controls --------------------------- */
|
||||
.stats-controls {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 10px 15px;
|
||||
background: #333;
|
||||
border-bottom: 1px solid #555;
|
||||
}
|
||||
|
||||
.time-range-btn {
|
||||
padding: 6px 12px;
|
||||
background: #444;
|
||||
color: #ccc;
|
||||
border: 1px solid #666;
|
||||
border-radius: 4px;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.time-range-btn:hover {
|
||||
background: #555;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.time-range-btn.active {
|
||||
background: var(--accent);
|
||||
color: #111;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* ---------- inventory window styling ----------------------------- */
|
||||
.inventory-content {
|
||||
flex: 1;
|
||||
padding: 15px;
|
||||
background: var(--card);
|
||||
color: var(--text);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.inventory-placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 1.1rem;
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue