Load the key from STEAMBASE_STEAM_API_KEY or data/steam_api_key.txt, expose GET /api/steam/achievements/{appid} with a 15-minute in-memory cache, show progress in the game card, and report steam_api in /api/meta. The key is never logged or returned to clients.
This commit is contained in:
1 parent
fc113b8794
commit
5b1b23d392
16 files changed
+423
-8
No files matched your search
@@ -1010,6 +1010,41 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 16px; font-size: 13px; color: var(--muted); }
|
||||
.modal-meta b { color: var(--text); font-weight: 600; }
|
||||
|
||||
.achievements-block { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
|
||||
.achievements-block h3 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .08em;
|
||||
color: var(--muted);
|
||||
}
|
||||
.achievement-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 7px;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
margin-top: 10px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
.ach { display: flex; align-items: center; gap: 9px; opacity: .5; }
|
||||
.ach.done { opacity: 1; }
|
||||
.ach img, .ach-icon {
|
||||
flex: 0 0 32px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 7px;
|
||||
background: var(--bg-2);
|
||||
object-fit: cover;
|
||||
}
|
||||
.ach-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
||||
.ach-text b { font-size: 13px; font-weight: 600; }
|
||||
.ach-text span { font-size: 12px; }
|
||||
|
||||
.similar-block { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
|
||||
.similar-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
|
||||
.similar-row {
|
||||
|
||||
Reference in new issue
Block a user