Added Phase‑1 continuation work across deep links, offline moderation queue, and admin push.
resources/js/admin/mobile/lib.
- Admin push is end‑to‑end: new backend model/migration/service/job + API endpoints, admin runtime config, push‑aware
service worker, and a settings toggle via useAdminPushSubscription. Notifications now auto‑refresh on push.
- New PHP/JS tests: admin push API feature test and queue/haptics unit tests
Added admin-specific PWA icon assets and wired them into the admin manifest, service worker, and admin shell, plus a
new “Device & permissions” card in mobile Settings with a persistent storage action and translations.
Details: public/manifest.json, public/admin-sw.js, resources/views/admin.blade.php, new icons in public/; new hook
resources/js/admin/mobile/hooks/useDevicePermissions.ts, helpers/tests in resources/js/admin/mobile/lib/
devicePermissions.ts + resources/js/admin/mobile/lib/devicePermissions.test.ts, and Settings UI updates in resources/
js/admin/mobile/SettingsPage.tsx with copy in resources/js/admin/i18n/locales/en/management.json and resources/js/
admin/i18n/locales/de/management.json.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<meta name="theme-color" content="#f43f5e">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<link rel="apple-touch-icon" href="/admin-apple-touch-icon.png">
|
||||
@viteReactRefresh
|
||||
@vite(['resources/css/app.css', 'resources/js/admin/main.tsx'])
|
||||
@php
|
||||
@@ -22,9 +22,16 @@
|
||||
'siteId' => (string) $matomoConfig['site_id_admin'],
|
||||
]
|
||||
: ['enabled' => false];
|
||||
$adminRuntimeConfig = [
|
||||
'push' => [
|
||||
'enabled' => config('push.enabled', false),
|
||||
'vapidPublicKey' => config('push.vapid.public_key'),
|
||||
],
|
||||
];
|
||||
@endphp
|
||||
<script nonce="{{ $cspNonce }}">
|
||||
window.__MATOMO_ADMIN__ = {!! json_encode($matomoAdmin) !!};
|
||||
window.__ADMIN_RUNTIME_CONFIG__ = {!! json_encode($adminRuntimeConfig) !!};
|
||||
</script>
|
||||
<style nonce="{{ $cspStyleNonce }}">
|
||||
#root { min-height: 100vh; }
|
||||
|
||||
Reference in New Issue
Block a user