Fix: KI-Notiz-Assistent Toggle nur für Pro-Nutzer sichtbar (SW by-v927)
This commit is contained in:
parent
3b37c14600
commit
2a3afa0604
4 changed files with 14 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 = "926" # muss mit APP_VER in app.js übereinstimmen
|
APP_VER = "927" # 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 = '926'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '927'; // ← 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
|
||||||
|
|
|
||||||
|
|
@ -613,7 +613,15 @@ window.Page_settings = (() => {
|
||||||
• Vollbild: <em>Einstellungen → Display → Navigationsleiste → Wischgesten</em> aktivieren.
|
• Vollbild: <em>Einstellungen → Display → Navigationsleiste → Wischgesten</em> aktivieren.
|
||||||
</div>` : ''}
|
</div>` : ''}
|
||||||
|
|
||||||
<!-- KI-Notiz-Assistent -->
|
<!-- KI-Notiz-Assistent (nur Pro) -->
|
||||||
|
${(() => {
|
||||||
|
const tier = u.subscription_tier || 'standard';
|
||||||
|
const hasPro = ['pro','breeder'].includes(tier) ||
|
||||||
|
u.rolle === 'admin' || u.rolle === 'moderator' ||
|
||||||
|
u.is_moderator || u.is_social_media ||
|
||||||
|
tier.endsWith('_test');
|
||||||
|
if (!hasPro) return '';
|
||||||
|
return `
|
||||||
<div class="settings-toggle-row">
|
<div class="settings-toggle-row">
|
||||||
<svg class="ph-icon" aria-hidden="true" style="width:1.25rem;height:1.25rem"><use href="/icons/phosphor.svg#brain"></use></svg>
|
<svg class="ph-icon" aria-hidden="true" style="width:1.25rem;height:1.25rem"><use href="/icons/phosphor.svg#brain"></use></svg>
|
||||||
<div class="settings-toggle-label">
|
<div class="settings-toggle-label">
|
||||||
|
|
@ -635,7 +643,8 @@ window.Page_settings = (() => {
|
||||||
background:#fff;transition:.2s;
|
background:#fff;transition:.2s;
|
||||||
box-shadow:0 1px 3px rgba(0,0,0,.3)"></span>
|
box-shadow:0 1px 3px rgba(0,0,0,.3)"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>`;
|
||||||
|
})()}
|
||||||
|
|
||||||
<!-- Goldene Gassi-Stunde -->
|
<!-- Goldene Gassi-Stunde -->
|
||||||
<div class="settings-toggle-row" style="border-bottom:none">
|
<div class="settings-toggle-row" style="border-bottom:none">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v926';
|
const CACHE_VERSION = 'by-v927';
|
||||||
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