Integrates the Dispatch PWA (Vue/Quasar) into the gigafibre-fsm monorepo. Full git history accessible via `git log -- apps/dispatch/`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
1.2 KiB
JavaScript
27 lines
1.2 KiB
JavaScript
// ── ERPNext connection config ────────────────────────────────────────────────
|
|
// To host the app separately from ERPNext (e.g. Nginx, Vercel):
|
|
// - Set BASE_URL to 'https://your-erpnext.example.com'
|
|
// - Add CORS + session/JWT config on the ERPNext side
|
|
// - Update api/auth.js if switching from session cookie to JWT
|
|
// For same-origin (ERPNext serves the app): keep BASE_URL as empty string.
|
|
|
|
// In production, /api/ is proxied to ERPNext via nginx (same-origin, no CORS)
|
|
// In dev (localhost), calls go directly to ERPNext
|
|
export const BASE_URL = window.location.hostname === 'localhost' ? 'https://erp.gigafibre.ca' : ''
|
|
|
|
// Mapbox public token — safe to expose (scope-limited in Mapbox dashboard)
|
|
export const MAPBOX_TOKEN = 'pk.eyJ1IjoidGFyZ29pbnRlcm5ldCIsImEiOiJjbW13Z3lwMXAwdGt1MnVvamsxNWkybzFkIn0.rdYB17XUdfn96czdnnJ6eg'
|
|
|
|
export const TECH_COLORS = [
|
|
'#6366f1', // Indigo
|
|
'#10b981', // Emerald
|
|
'#f59e0b', // Amber
|
|
'#8b5cf6', // Violet
|
|
'#06b6d4', // Cyan
|
|
'#f43f5e', // Rose
|
|
'#f97316', // Orange
|
|
'#14b8a6', // Teal
|
|
'#d946ef', // Fuchsia
|
|
'#3b82f6', // Blue
|
|
]
|