feat: add Steam friends and library comparison
CI / test (push) Successful in 37s

Add GET /api/steam/friends and /api/steam/friends/{steamid}, a Friends tab with manual SteamID entry for private profiles, and one-hour caching for friend lists and owned games.
This commit is contained in:
strsv committed 2026-11-07 01:31:44 +03:00
1 parent 5b1b23d392
commit 376a2ee7a0
15 files changed
+456 -15

No files matched your search

+48 -2
View File
@@ -919,6 +919,52 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
.compare-score { margin-left: 6px; font-size: 12px; color: var(--accent-2); }
.compare-jaccard { margin-bottom: 4px; font-size: 13px; color: var(--text); }
.friends-page { display: flex; flex-direction: column; gap: 18px; }
.friends-manual { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.friends-manual input { flex: 1 1 220px; max-width: 320px; }
.friends-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.friend-card {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--panel);
text-align: left;
color: inherit;
transition: .15s;
}
.friend-card:hover { border-color: var(--accent); }
.friend-card img, .friend-avatar {
width: 48px;
height: 48px;
border-radius: 10px;
background: var(--bg-2);
object-fit: cover;
}
.friend-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friend-info b { font-size: 14px; }
.friend-compare {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
border: 1px solid var(--border);
border-radius: 16px;
background: var(--panel);
}
.friend-compare[hidden] { display: none; }
.friend-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.friend-head img { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-2); }
.friend-title { flex: 1 1 200px; }
.friend-title h2 { margin: 0 0 2px; font-size: 20px; }
.friend-head #friendClose { margin-left: auto; }
.friend-columns { display: flex; flex-wrap: wrap; gap: 18px; }
.friend-columns .compare-col { flex: 1 1 260px; min-width: 220px; }
.friend-columns ul { max-height: 360px; overflow-y: auto; }
.friend-columns li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.reco-actions[hidden] { display: none; }
.reco-actions .ghost { flex: 0 0 auto; padding: 7px 12px; }
@@ -1275,8 +1321,8 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
@media (max-width: 720px) {
.topbar { position: relative; flex-wrap: wrap; gap: 12px; padding: 12px 68px 12px 16px; }
.theme-toggle { position: absolute; top: 12px; right: 16px; }
.tabs { gap: 2px; padding: 3px; }
.tab { padding: 6px 9px; font-size: 12px; }
.tabs { gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; }
.tab { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.stats { width: 100%; justify-content: flex-start; }
main { padding: 18px 16px 60px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }