Fix: P/Z-Badges komplett aus allen Welt-Views entfernt (SW by-v924)
- _renderJetzt: false,false statt f.pro/_isRoleBasedPro/f.role=breeder - _openAllChips: P-Badge entfernt - _isRoleBasedPro() nur noch als ungenutzte Funktion (bleibt für Kompatibilität)
This commit is contained in:
parent
1081466704
commit
a27b8ea5b4
4 changed files with 4 additions and 5 deletions
|
|
@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request):
|
||||||
raise _HE(404, "Nicht gefunden.")
|
raise _HE(404, "Nicht gefunden.")
|
||||||
return _media_response(filepath)
|
return _media_response(filepath)
|
||||||
|
|
||||||
APP_VER = "923" # muss mit APP_VER in app.js übereinstimmen
|
APP_VER = "924" # muss mit APP_VER in app.js übereinstimmen
|
||||||
|
|
||||||
@app.get("/.well-known/assetlinks.json")
|
@app.get("/.well-known/assetlinks.json")
|
||||||
async def assetlinks():
|
async def assetlinks():
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
Router, State-Management, Navigation, Initialisierung.
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const APP_VER = '923'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '924'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||||
|
|
|
||||||
|
|
@ -347,7 +347,6 @@ window.Worlds = (() => {
|
||||||
<div style="display:grid;grid-template-columns:repeat(4,1fr);gap:8px">
|
<div style="display:grid;grid-template-columns:repeat(4,1fr);gap:8px">
|
||||||
${chips.map(c => `
|
${chips.map(c => `
|
||||||
<button class="all-chip-btn w3-chip-btn" data-page="${c.page}" style="position:relative">
|
<button class="all-chip-btn w3-chip-btn" data-page="${c.page}" style="position:relative">
|
||||||
${c.pro && _isRoleBasedPro() ? `<span style="position:absolute;top:2px;left:3px;font-size:8px;font-weight:800;color:#fff;background:#92400e;border-radius:3px;padding:0 3px;line-height:14px">P</span>` : ''}
|
|
||||||
<svg class="ph-icon" style="width:1.4rem;height:1.4rem;color:var(--c-primary)">
|
<svg class="ph-icon" style="width:1.4rem;height:1.4rem;color:var(--c-primary)">
|
||||||
<use href="/icons/phosphor.svg#${c.icon}"></use>
|
<use href="/icons/phosphor.svg#${c.icon}"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
@ -1159,7 +1158,7 @@ window.Worlds = (() => {
|
||||||
<div class="world-bottom">
|
<div class="world-bottom">
|
||||||
<div class="world-section-label">Deine Bereiche</div>
|
<div class="world-section-label">Deine Bereiche</div>
|
||||||
<div class="world-chips-grid">
|
<div class="world-chips-grid">
|
||||||
${features.map(f => _chip(f.icon, f.label, f.page, false, f.pro && _isRoleBasedPro(), f.role === 'breeder')).join('')}
|
${features.map(f => _chip(f.icon, f.label, f.page, false, false, false)).join('')}
|
||||||
</div>
|
</div>
|
||||||
<div class="world-footer-links">
|
<div class="world-footer-links">
|
||||||
<span data-wnav="impressum">Impressum</span>
|
<span data-wnav="impressum">Impressum</span>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v923';
|
const CACHE_VERSION = 'by-v924';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue