chore: initial scaffold (Whitelabel-Fork von Pfandsystem)
- Source-Copy von /root/entwicklung/pfandsystem - docker-compose.yml umgeschrieben: pfandsystem-demo-* Container, Ports 3308/8083/3003 (alle localhost) - Traefik-Label fuer pfandsystem.dockly.de - Erweitertes Multi-Tenant-Schema (tenants, tenant_id auf allen Tabellen) - Neue Tabellen: kunden_bilder, geraete - Neue Spalten: kunden.anlieferungshinweis, kunden.lieferzeit_bis - Rollen: superadmin, admin, user, fahrer - .env.example + README Code-Refactor (Tailwind, Multi-Tenant-Middleware, Erweiterungen) folgt.
This commit is contained in:
16
fix-manifest-link.js
Normal file
16
fix-manifest-link.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Dieses Skript entfernt alle Manifest-Links außer /manifest.webmanifest aus dist/index.html
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const htmlPath = path.join(__dirname, 'dist', 'index.html');
|
||||
let html = fs.readFileSync(htmlPath, 'utf8');
|
||||
|
||||
// Entferne alle Manifest-Links
|
||||
html = html.replace(/<link rel="manifest"[^>]*?>/g, '');
|
||||
// Füge nur den richtigen Manifest-Link ein (falls nicht vorhanden)
|
||||
if (!html.includes('<link rel="manifest" href="/manifest.webmanifest">')) {
|
||||
html = html.replace('</head>', ' <link rel="manifest" href="/manifest.webmanifest">\n</head>');
|
||||
}
|
||||
|
||||
fs.writeFileSync(htmlPath, html, 'utf8');
|
||||
console.log('Manifest-Links in dist/index.html automatisch korrigiert.');
|
||||
Reference in New Issue
Block a user