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:
1 parent
5b1b23d392
commit
376a2ee7a0
15 files changed
+456
-15
No files matched your search
@@ -32,6 +32,8 @@ try {
|
||||
aria-selected="false" aria-controls="recommendView" tabindex="-1">Рекомендации</button>
|
||||
<button class="tab" id="tabHltb" role="tab" data-view="hltb"
|
||||
aria-selected="false" aria-controls="hltbView" tabindex="-1">HLTB</button>
|
||||
<button class="tab" id="tabFriends" role="tab" data-view="friends"
|
||||
aria-selected="false" aria-controls="friendsView" tabindex="-1">Друзья</button>
|
||||
<button class="tab" id="tabServices" role="tab" data-view="services"
|
||||
aria-selected="false" aria-controls="servicesView" tabindex="-1">Сервисы</button>
|
||||
</nav>
|
||||
@@ -390,6 +392,22 @@ try {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="friendsView" class="hidden" role="tabpanel" aria-labelledby="tabFriends">
|
||||
<div class="friends-page">
|
||||
<div class="hltb-head">
|
||||
<h1>Друзья</h1>
|
||||
<div class="muted" id="friendsSummary"></div>
|
||||
</div>
|
||||
<div class="friends-manual">
|
||||
<input id="friendSteamId" type="text" inputmode="numeric" autocomplete="off"
|
||||
placeholder="SteamID64 друга" aria-label="SteamID64 друга">
|
||||
<button id="friendCompareBtn" class="ghost" type="button">сравнить</button>
|
||||
</div>
|
||||
<div id="friendsList" class="friends-list"></div>
|
||||
<div id="friendCompare" class="friend-compare hidden" aria-live="polite"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="servicesView" class="hidden" role="tabpanel" aria-labelledby="tabServices">
|
||||
<div class="services-page">
|
||||
<h1>Сервисы</h1>
|
||||
|
||||
Reference in new issue
Block a user