Unified Professor Oak Tracker hub (ORAS and Luminescent Platinum) with Docker and Unraid setup

This commit is contained in:
FaroeGames committed 2026-11-17 15:14:41 -07:00
commit f86f5d8bef
61 files changed
+58805

No files matched your search

+257
View File
@@ -0,0 +1,257 @@
:root {
--bg-page: #0c0c10;
--bg-surface: #14141a;
--bg-elevated: #1c1c24;
--border: #2a2a36;
--border-subtle: #20202a;
--text-main: #f4f4f6;
--text-muted: #9ca3af;
--sapphire: #3b82f6;
--ruby: #ef4444;
--platinum: #38bdf8;
--mint: #34d399;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.14), transparent 45%),
radial-gradient(circle at 82% 14%, rgba(56, 189, 248, 0.12), transparent 45%),
var(--bg-page);
color: var(--text-main);
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
line-height: 1.5;
}
.hub-shell {
max-width: 1120px;
margin: 0 auto;
padding: 44px 20px 36px;
}
.hub-hero {
text-align: center;
margin-bottom: 34px;
}
.hub-eyebrow {
display: inline-block;
padding: 4px 12px;
border-radius: 999px;
background: rgba(56, 189, 248, 0.1);
border: 1px solid rgba(56, 189, 248, 0.3);
color: #bae6fd;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 12px;
}
.hub-title {
margin: 0 0 10px;
font-size: clamp(26px, 4vw, 38px);
font-weight: 800;
letter-spacing: -0.02em;
}
.hub-lead {
margin: 0 auto;
max-width: 680px;
color: var(--text-muted);
font-size: 15px;
}
.cards-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}
@media (max-width: 820px) {
.cards-grid {
grid-template-columns: 1fr;
}
}
.game-card {
display: flex;
flex-direction: column;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 14px;
padding: 22px;
transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover {
transform: translateY(-2px);
}
.card-oras {
border-top: 3px solid var(--sapphire);
}
.card-oras:hover {
border-color: rgba(59, 130, 246, 0.55);
}
.card-lumi {
border-top: 3px solid var(--platinum);
}
.card-lumi:hover {
border-color: rgba(56, 189, 248, 0.55);
}
.card-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 10px;
}
.card-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.version-badge,
.platform-badge {
font-size: 11px;
font-weight: 700;
padding: 2px 8px;
border-radius: 999px;
}
.badge-as {
background: rgba(59, 130, 246, 0.16);
border: 1px solid rgba(59, 130, 246, 0.45);
color: #93c5fd;
}
.badge-or {
background: rgba(239, 68, 68, 0.16);
border: 1px solid rgba(239, 68, 68, 0.45);
color: #fca5a5;
}
.badge-plat {
background: rgba(56, 189, 248, 0.16);
border: 1px solid rgba(56, 189, 248, 0.45);
color: #7dd3fc;
}
.platform-badge {
background: var(--bg-elevated);
border: 1px solid var(--border);
color: var(--text-muted);
}
.card-sprites {
display: flex;
align-items: center;
gap: 2px;
flex-shrink: 0;
}
.card-sprites img {
object-fit: contain;
}
.card-title {
margin: 0 0 8px;
font-size: 22px;
font-weight: 800;
}
.card-desc {
margin: 0 0 14px;
font-size: 13.5px;
color: var(--text-muted);
}
.feature-list {
margin: 0 0 18px;
padding-left: 18px;
font-size: 13px;
color: #d1d5db;
display: flex;
flex-direction: column;
gap: 5px;
flex: 1;
}
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
padding-top: 14px;
border-top: 1px solid var(--border-subtle);
}
.save-pill {
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
}
.save-pill.has-save {
color: var(--mint);
}
.launch-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 9px 16px;
border-radius: 8px;
font-size: 13.5px;
font-weight: 700;
text-decoration: none;
color: #ffffff;
transition: filter 0.15s ease;
}
.launch-btn:hover {
filter: brightness(1.1);
}
.btn-oras {
background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.btn-lumi {
background: linear-gradient(135deg, #0284c7, #0369a1);
}
.hub-footer {
margin-top: 28px;
padding: 14px 18px;
border-radius: 10px;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
text-align: center;
color: var(--text-muted);
font-size: 12.5px;
}
.hub-footer p {
margin: 0;
}
.hub-footer code {
background: var(--bg-elevated);
padding: 1px 5px;
border-radius: 4px;
color: #e5e7eb;
}
+60
View File
@@ -0,0 +1,60 @@
function readSaveSummary(storage, prefix, defaultGameId, gameLabels) {
try {
if (!storage) return null;
const rawMeta = storage.getItem(`${prefix}app-meta`);
const meta = rawMeta ? JSON.parse(rawMeta) : null;
const gameId = meta?.activeGameId || defaultGameId;
const gameMeta = meta?.gameProfiles?.[gameId];
const profileId = gameMeta?.activeProfileId || 'default';
const profileName =
gameMeta?.profiles?.find((p) => p.id === profileId)?.name || 'Default';
const profileCount = gameMeta?.profiles?.length || 1;
const saveKey = profileId === 'default' ? `${prefix}${gameId}` : `${prefix}${gameId}:${profileId}`;
const rawSave = storage.getItem(saveKey);
if (!rawSave) return null;
const parsed = JSON.parse(rawSave);
const caughtCount = Array.isArray(parsed?.caught) ? parsed.caught.length : 0;
const gameLabel = gameLabels[gameId] || gameId;
return {
gameLabel,
profileName,
profileCount,
caughtCount,
};
} catch {
return null;
}
}
export function renderSavePills(doc = globalThis.document, storage = globalThis.localStorage) {
const orasEl = doc?.getElementById('oras-save-badge');
if (orasEl) {
const info = readSaveSummary(storage, 'poc-tracker:v1:', 'alpha-sapphire', {
'alpha-sapphire': 'Alpha Sapphire',
'omega-ruby': 'Omega Ruby',
});
if (info) {
orasEl.textContent = `Saved (${info.gameLabel} · ${info.profileName}): ${info.caughtCount} caught`;
orasEl.classList.add('has-save');
} else {
orasEl.textContent = 'Ready for a new run';
}
}
const lumiEl = doc?.getElementById('lumi-save-badge');
if (lumiEl) {
const info = readSaveSummary(storage, 'lumi-poc-tracker:v1:', 'luminescent-platinum', {
'luminescent-platinum': 'Luminescent Platinum',
});
if (info) {
lumiEl.textContent = `Saved (${info.profileName}): ${info.caughtCount} caught`;
lumiEl.classList.add('has-save');
} else {
lumiEl.textContent = 'Ready for a new run';
}
}
}
if (typeof globalThis.document !== 'undefined') {
renderSavePills();
}