feat(boc): Complete Business Operations Center v1.0

- Go backend API with full CRUD for all modules (CRM, Sales, Finance, HR, Legal, Marketing, Support, Purchase, Inventory, Projects, Automation, Analytics)
- Rust analytics service with parallel report generation
- C runtime with POSIX shared memory IPC
- PostgreSQL schema with 30+ tables, full migrations
- Redis cache, sessions, pub/sub
- Kafka event streaming with Zookeeper
- WebSocket hub for real-time updates
- Automation engine with cron jobs, workflows, event triggers
- JWT authentication, multi-tenant from start
- Docker Compose with all services
- Nginx reverse proxy with rate limiting
- Integration tests passing
- Feature gap analysis against Fortnox/Odoo/Visma

Refs: BOC-001
This commit is contained in:
Bernt
2026-07-12 12:41:35 +00:00
parent 4789a7fb48
commit 58ca4e68db
26666 changed files with 575891 additions and 2074516 deletions
+63 -41
View File
@@ -2,65 +2,87 @@
/* quiXzoom locale-data.js — Sprint 1 */
(function(){
window.QX_LOCALES = {
"SE": {
"sv-se": {
lang:"sv", currency:"EUR", symbol:"€", missionCurrency:"EUR",
flag:"🇸🇪", name:"Sweden", status:"Beta from Aug 1",
exampleMission:{ title:"Fasadinventering", addr:"Storgatan 14, Stockholm", reward:"24", time:"3 foton · ~12 min" },
mapCenter:[18.0686, 59.3293], exampleCity:"Stockholm",
taxNote:"Sweden: Grundavdrag ~17,500 SEK/year"
},
"DE": {
lang:"de", currency:"EUR", symbol:"€", missionCurrency:"EUR",
exampleMission:{ title:"Fassadeninspektion", addr:"Maximilianstraße 12, München", reward:"24", time:"3 photos · ~12 min" },
mapCenter:[11.5820, 48.1351], exampleCity:"München",
taxNote:"Germany: Kleinunternehmer threshold €22,000/year"
},
"US": {
lang:"en", currency:"USD", symbol:"$", missionCurrency:"USD",
exampleMission:{ title:"Facade Survey", addr:"1234 Main St, Houston TX", reward:"28", time:"3 photos · ~12 min" },
mapCenter:[-95.3698, 29.7604], exampleCity:"Houston",
taxNote:"US: Self-employment tax applies above $400/year"
},
"GB": {
lang:"en", currency:"GBP", symbol:"£", missionCurrency:"GBP",
exampleMission:{ title:"Facade Inspection", addr:"42 High Street, London", reward:"22", time:"3 photos · ~12 min" },
mapCenter:[-0.1278, 51.5074], exampleCity:"London",
taxNote:"UK: Personal allowance £12,570/year"
},
"TH": {
lang:"en", currency:"THB", symbol:"฿", missionCurrency:"THB",
exampleMission:{ title:"Shop Sign Survey", addr:"123 Sukhumvit Rd, Bangkok", reward:"320", time:"3 photos · ~12 min" },
mapCenter:[100.5018, 13.7563], exampleCity:"Bangkok",
taxNote:"Thailand: Income tax applies above ฿150,000/year"
},
"NL": {
lang:"en", currency:"EUR", symbol:"€", missionCurrency:"EUR",
"nl-nl": {
lang:"nl", currency:"EUR", symbol:"€", missionCurrency:"EUR",
flag:"🇳🇱", name:"Netherlands", status:"Coming soon",
exampleMission:{ title:"Gevel Inspectie", addr:"Herengracht 52, Amsterdam", reward:"22", time:"3 fotos · ~12 min" },
mapCenter:[4.9041, 52.3676], exampleCity:"Amsterdam",
taxNote:"Netherlands: Zelfstandigenaftrek applies"
},
"FR": {
lang:"en", currency:"EUR", symbol:"€", missionCurrency:"EUR",
"de-de": {
lang:"de", currency:"EUR", symbol:"€", missionCurrency:"EUR",
flag:"🇩🇪", name:"Germany", status:"Coming soon",
exampleMission:{ title:"Fassadeninspektion", addr:"Maximilianstraße 12, München", reward:"24", time:"3 Fotos · ~12 min" },
mapCenter:[11.5820, 48.1351], exampleCity:"München",
taxNote:"Germany: Kleinunternehmer threshold €22,000/year"
},
"fr-fr": {
lang:"fr", currency:"EUR", symbol:"€", missionCurrency:"EUR",
flag:"🇫🇷", name:"France", status:"Coming soon",
exampleMission:{ title:"Inspection de Façade", addr:"12 Rue de Rivoli, Paris", reward:"22", time:"3 photos · ~12 min" },
mapCenter:[2.3522, 48.8566], exampleCity:"Paris",
taxNote:"France: Auto-entrepreneur regime for freelance income"
},
"AE": {
lang:"en", currency:"AED", symbol:"AED", missionCurrency:"AED",
exampleMission:{ title:"Building Survey", addr:"Al Wasl Road, Jumeirah, Dubai", reward:"95", time:"3 photos · ~12 min" },
mapCenter:[55.2708, 25.2048], exampleCity:"Dubai",
taxNote:"UAE: No personal income tax"
"it-it": {
lang:"it", currency:"EUR", symbol:"", missionCurrency:"EUR",
flag:"🇮🇹", name:"Italy", status:"Coming soon",
exampleMission:{ title:"Ispezione Facciata", addr:"Via Roma 15, Milano", reward:"22", time:"3 foto · ~12 min" },
mapCenter:[9.1900, 45.4642], exampleCity:"Milano",
taxNote:"Italy: Regime forfettario for freelance income"
},
"es-es": {
lang:"es", currency:"EUR", symbol:"€", missionCurrency:"EUR",
flag:"🇪🇸", name:"Spain", status:"Coming soon",
exampleMission:{ title:"Inspección de Fachada", addr:"Calle Mayor 8, Madrid", reward:"22", time:"3 fotos · ~12 min" },
mapCenter:[-3.7038, 40.4168], exampleCity:"Madrid",
taxNote:"Spain: Autónomo regime for self-employed"
},
"th": {
lang:"th", currency:"THB", symbol:"฿", missionCurrency:"THB",
flag:"🇹🇭", name:"Thailand", status:"Coming soon",
exampleMission:{ title:"Shop Sign Survey", addr:"123 Sukhumvit Rd, Bangkok", reward:"320", time:"3 photos · ~12 min" },
mapCenter:[100.5018, 13.7563], exampleCity:"Bangkok",
taxNote:"Thailand: Income tax applies above ฿150,000/year"
},
"ja": {
lang:"ja", currency:"JPY", symbol:"¥", missionCurrency:"JPY",
flag:"🇯🇵", name:"Japan", status:"Coming soon",
exampleMission:{ title:"建物調査", addr:"東京都渋谷区道玄坂1-2-3", reward:"1200", time:"3枚の写真 · ~12分" },
mapCenter:[139.6917, 35.6895], exampleCity:"Tokyo",
taxNote:"Japan: Income tax applies for freelance work"
},
"ko": {
lang:"ko", currency:"KRW", symbol:"₩", missionCurrency:"KRW",
flag:"🇰🇷", name:"Korea", status:"Coming soon",
exampleMission:{ title:"걸물 조사", addr:"서울특별시 강남구 테헤란로 123", reward:"15000", time:"3장의 사진 · ~12분" },
mapCenter:[126.9780, 37.5665], exampleCity:"Seoul",
taxNote:"Korea: VAT applies for freelance income above ₩30M"
},
"zh-cn": {
lang:"zh", currency:"CNY", symbol:"¥", missionCurrency:"CNY",
flag:"🇨🇳", name:"China", status:"Coming soon",
exampleMission:{ title:"建筑调查", addr:"北京市朝阳区建国路88号", reward:"80", time:"3张照片 · ~12分钟" },
mapCenter:[116.4074, 39.9042], exampleCity:"Beijing",
taxNote:"China: IIT applies for freelance income"
}
};
/* Detect market from cookie > URL path > GeoIP hint (meta tag) > default EN */
function getMarket(){
var m = document.cookie.match(/(?:^|;)\s*qx_market=([A-Z]{2})/);
if(m) return m[1];
var p = location.pathname.match(/\/markets\/([a-z]{2})\//i);
if(p) return p[1].toUpperCase();
var m = document.cookie.match(/(?:^|;)\s*qx_market=([a-z]{2}-[a-z]{2}|[a-z]{2})/);
if(m) return m[1].toLowerCase();
var p = location.pathname.match(/\/([a-z]{2}-[a-z]{2}|[a-z]{2})\//i);
if(p) return p[1].toLowerCase();
var meta = document.querySelector('meta[name="qx-market"]')
if(meta) return meta.content.toUpperCase();
return 'SE'; /* launch market default — update to null after global launch */
if(meta) return meta.content.toLowerCase();
return 'sv-se'; /* launch market default — update to null after global launch */
}
function setMarket(code){
@@ -71,7 +93,7 @@
}
function applyMarket(code){
var d = window.QX_LOCALES[code] || window.QX_LOCALES['SE'];
var d = window.QX_LOCALES[code] || window.QX_LOCALES['sv-se'];
var m = d.exampleMission;
/* Floating card in hero */