Bugfixes, Dating angefangen
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled

This commit is contained in:
2026-04-01 22:06:46 +02:00
parent 912718fc40
commit 87c85b1b17
123 changed files with 28977 additions and 462 deletions

View File

@@ -444,6 +444,12 @@
</div>
</div>
<!-- Vorlieben (inline, zwischen allgemeinen Angaben und Freunden) -->
<div id="vorliebenSection" style="display:none; margin-top:1rem;">
<div class="section-label">Vorlieben</div>
<div id="vorliebenDisplay"></div>
</div>
<!-- Freunde -->
<div id="friendsSection" style="display:none; margin-top:1rem;">
<div class="section-label">Freunde <span id="friendsCount" style="font-weight:400;color:var(--color-muted);font-size:0.85rem;"></span></div>
@@ -455,11 +461,10 @@
</div>
</div>
<!-- Tabs: Feed | Pinnwand | Vorlieben | Spielhistorie | Keyholder-Angebote -->
<!-- Tabs: Feed | Pinnwand | Spielhistorie | Keyholder-Angebote -->
<div class="profil-tabs" style="margin-top:1.25rem;">
<button class="profil-tab-btn active" id="tabBtnPosts" onclick="switchProfilTab('posts', this)">Feed</button>
<button class="profil-tab-btn" id="tabBtnPinnwand" onclick="switchProfilTab('pinnwand', this)">Pinnwand</button>
<button class="profil-tab-btn" id="tabBtnVorlieben" onclick="switchProfilTab('vorlieben', this)" style="display:none;">Vorlieben</button>
<button class="profil-tab-btn" id="tabBtnGameHistory" onclick="switchProfilTab('gamehistory', this)">Spielhistorie</button>
<button class="profil-tab-btn" id="tabBtnKhOffers" onclick="switchProfilTab('khoffers', this)">Keyholder-Angebote</button>
</div>
@@ -480,11 +485,6 @@
<div id="pinnwandList"></div>
</div>
<!-- Vorlieben Tab -->
<div class="profil-tab-panel" id="tab-vorlieben">
<div id="vorliebenDisplay" style="margin-top:0.75rem;"></div>
</div>
<!-- Spielhistorie Tab -->
<div class="profil-tab-panel" id="tab-gamehistory">
<div id="gameHistoryList" style="margin-top:0.75rem;"></div>
@@ -593,6 +593,11 @@
profileData = profile;
allImages = images;
// Profilbesuch tracken (nur fremde Profile, kein Preview-Modus)
if (!isOwnProfile && !previewMode && myUserId) {
fetch('/social/profile-visits/' + targetUserId, { method: 'POST' }).catch(() => {});
}
// ── Preview-Modus: friendStatus simulieren ──
if (previewMode) {
profile.friendStatus = (previewMode === 'FREUND') ? 'FRIEND' : 'NONE';
@@ -716,12 +721,11 @@
const btnFeed = document.getElementById('tabBtnPosts');
const btnPinnwand = document.getElementById('tabBtnPinnwand');
const btnHistory = document.getElementById('tabBtnGameHistory');
const btnVorlieben = document.getElementById('tabBtnVorlieben');
if (!showFeed) { btnFeed.style.display = 'none'; document.getElementById('tab-posts').classList.remove('active'); }
if (!showPinnwand) { btnPinnwand.style.display = 'none'; }
if (!showHistory) { btnHistory.style.display = 'none'; }
if (showVorlieben) { btnVorlieben.style.display = ''; loadVorlieben(); }
if (showVorlieben) { document.getElementById('vorliebenSection').style.display = ''; loadVorlieben(); }
// Ersten sichtbaren Tab aktivieren
if (!showFeed) {
@@ -735,6 +739,7 @@
document.getElementById('tab-gamehistory').classList.add('active');
}
}
}
// ── Vorlieben anzeigen ──