Add fleetbase-source: deploy script, patch scripts, AGENTS.md with session notes
- deploy-biibaye.sh: VPS deploy script - patch-index-html.js: post-build HTML patching (title, favicon, meta) - patch-css-colors.js: post-build CSS color replacement (blue -> orange) - patch-index-html.py: Python alternative for host-side HTML patching - console-package.json: snapshot with @biibaye/branding link dependency - AGENTS.md: full session docs for 2026-05-24 and 2026-05-25
This commit is contained in:
15
fleetbase-source/patch-index-html.js
Normal file
15
fleetbase-source/patch-index-html.js
Normal file
@ -0,0 +1,15 @@
|
||||
var fs = require('fs');
|
||||
var p = 'dist/index.html';
|
||||
if (!fs.existsSync(p)) {
|
||||
p = 'app/index.html';
|
||||
}
|
||||
var c = fs.readFileSync(p, 'utf8');
|
||||
c = c.replace('<title>Fleetbase Console</title>', '<title>Biibaye - Delivery System</title>');
|
||||
c = c.replace(/content="#da532c"/g, 'content="#FF4500"');
|
||||
c = c.replace(/content="#ffffff"/g, 'content="#FF4500"');
|
||||
c = c.replace(/href="\/favicon\/apple-touch-icon.png"/g, 'href="/favicon/apple-icon-180x180.png"');
|
||||
c = c.replace(/href="\/favicon\/android-chrome-192x192.png"/g, 'href="/favicon/android-icon-192x192.png"');
|
||||
c = c.replace(/href="\/favicon\/android-chrome-256x256.png"/g, 'href="/favicon/android-icon-144x144.png"');
|
||||
c = c.replace(/color="#5bbad5"/g, 'color="#FF4500"');
|
||||
fs.writeFileSync(p, c);
|
||||
console.log('index.html patched: ' + p);
|
||||
Reference in New Issue
Block a user