Firebase Cloud Messaging 1. Versuch
This commit is contained in:
1 parent
f1fb926c2f
commit
4c8b11c4d5
25 files changed
+2111
-31
No files matched your search
@@ -50,6 +50,21 @@
|
||||
<div class="header-action-buttons">
|
||||
<button type="button" id="speakerButton" class="icon-button"
|
||||
title="Nachricht an alle senden" aria-label="Nachricht an alle senden">📢</button>
|
||||
<button type="button" id="wakeMobileButton" class="icon-button"
|
||||
title="Offline mobile Clients wecken"
|
||||
aria-label="Offline mobile Clients wecken">
|
||||
<svg viewBox="0 0 24 24" width="22" height="22"
|
||||
aria-hidden="true" focusable="false">
|
||||
<circle cx="12" cy="12" r="8.5" fill="none"
|
||||
stroke="currentColor" stroke-width="1.7"/>
|
||||
<circle cx="12" cy="12" r="4.5" fill="none"
|
||||
stroke="currentColor" stroke-width="1.4" opacity="0.65"/>
|
||||
<path d="M12 12 17.8 6.2" fill="none"
|
||||
stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round"/>
|
||||
<circle cx="12" cy="12" r="1.6" fill="currentColor"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" id="groupAssignmentButton"
|
||||
class="icon-button group-assignment-button"
|
||||
title="Gruppen-Accounts zuordnen"
|
||||
|
||||
@@ -55,6 +55,16 @@
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" id="mobileSettingsBtn" class="mobile-fab mobile-fab-secondary" title="Einstellungen" aria-label="Einstellungen">⚙</button>
|
||||
<button type="button" id="mobileWakeBtn" class="mobile-fab mobile-fab-secondary mobile-fab-wake"
|
||||
title="Mobile Clients wecken" aria-label="Mobile Clients wecken">
|
||||
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true" focusable="false">
|
||||
<circle cx="12" cy="12" r="8.5" fill="none" stroke="currentColor" stroke-width="1.7"/>
|
||||
<circle cx="12" cy="12" r="4.5" fill="none" stroke="currentColor" stroke-width="1.4" opacity="0.65"/>
|
||||
<path d="M12 12 17.8 6.2" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round"/>
|
||||
<circle cx="12" cy="12" r="1.6" fill="currentColor"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" id="mobileWorkBtn" class="mobile-work-btn" title="Straße bearbeiten" aria-label="Straße bearbeiten">Bearbeiten</button>
|
||||
</section>
|
||||
|
||||
@@ -129,6 +139,10 @@
|
||||
<span>Benachrichtigungen</span>
|
||||
<button type="button" id="mobileNotifyBtn" class="secondary mobile-settings-button">Aktivieren</button>
|
||||
</div>
|
||||
<p class="mobile-dialog-hint">
|
||||
Hintergrund-Signale benötigen eine installierte PWA und die
|
||||
Erlaubnis für Benachrichtigungen.
|
||||
</p>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" onclick="closeMobileSettings()">Schließen</button>
|
||||
@@ -150,6 +164,8 @@
|
||||
window.CMBNET_MANIFEST_URL = {{ url_for('views.manifest', tenant=session.tenant_code)|tojson }};
|
||||
window.CMBNET_ICON_URL = {{ url_for('static', filename='img/icon-192.png')|tojson }};
|
||||
window.CMBNET_VIEW_MODE = 'mobile_dispatcher';
|
||||
window.CMBNET_CLIENT_TYPE = 'dispatcher_mobile';
|
||||
window.CMBNET_FCM_CONFIG = {{ fcm_public_config()|tojson }};
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='js/leaflet.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename=str2pl_asset()) }}?v={{ str2pl_asset_version() }}"></script>
|
||||
|
||||
@@ -134,6 +134,10 @@
|
||||
<span>Benachrichtigungen</span>
|
||||
<button type="button" id="mobileNotifyBtn" class="secondary mobile-settings-button">Aktivieren</button>
|
||||
</div>
|
||||
<p class="mobile-dialog-hint">
|
||||
Hintergrund-Signale benötigen eine installierte PWA und die
|
||||
Erlaubnis für Benachrichtigungen.
|
||||
</p>
|
||||
</div>
|
||||
<footer>
|
||||
<button type="button" onclick="closeMobileSettings()">Schließen</button>
|
||||
@@ -155,6 +159,8 @@
|
||||
window.CMBNET_MANIFEST_URL = {{ url_for('views.manifest', tenant=session.tenant_code)|tojson }};
|
||||
window.CMBNET_ICON_URL = {{ url_for('static', filename='img/icon-192.png')|tojson }};
|
||||
window.CMBNET_VIEW_MODE = 'mobile_group';
|
||||
window.CMBNET_CLIENT_TYPE = 'group_view';
|
||||
window.CMBNET_FCM_CONFIG = {{ fcm_public_config()|tojson }};
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='js/leaflet.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename=str2pl_asset()) }}?v={{ str2pl_asset_version() }}"></script>
|
||||
|
||||
Reference in new issue
Block a user