6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
3.2 KiB
3.2 KiB
AAMOS Admin v2 — Deploy-instruktioner
Vad som är byggt
Backend (Go)
- Ny fil:
backend/handlers/external.go— Unified dashboard med data från:- quiXzoom (SQLite:
/opt/amos/data/quixzoom-missions.db) - LandveX (filbaserad intelligence)
- Economy (aamos-ledger port 3250 / SIE-filer)
- CRM (grundläggande data)
- Service Health (Docker + systemd)
- quiXzoom (SQLite:
- Nya endpoints:
GET /api/v1/unified-dashboard— Komplett dashboard med alla systemGET /api/v1/service-health— Docker/systemd service status
- Uppdaterad:
backend/main.go— nya routes registrerade
Frontend (HTML/JS/CSS)
- unified-dashboard.html — Huvuddashboard med:
- Alerts (moms, kravbrev)
- System cards (quiXzoom, LandveX, Economy, CRM)
- Service health overview
- users.html — Full användarhantering:
- Lista med pagination, sök
- Skapa/redigera/ta bort användare
- Roller: admin, finance, operations, viewer
- modules.html — Modulhantering:
- 10 Ouroboros-moduler
- Toggle on/off
- Status indicators
- audit.html — Audit log:
- Filtering (user, action, resource)
- Export till CSV
- Pagination
- settings.html — Systeminställningar:
- General (maintenance mode, timezone)
- Security (login attempts, session timeout)
- Integrations (Stripe, Fortnox, Slack, Mailu)
- quiXzoom settings (payout schedule, auto-payout)
- Economy settings (fiscal year, base currency)
- quixzoom.html — quiXzoom-översikt
- landvex.html — LandveX-översikt
- economy.html — Ekonomi-översikt
- crm.html — CRM-översikt
API-klient
- assets/api.js — Uppdaterad med nya endpoints:
getUnifiedDashboard()getServiceHealth()toggleModule()(PUT istället för POST)- Alla paths nu med
/api/v1/prefix
Deploy-steg
1. Kopiera till servern (kräver root)
# Som root eller med sudo:
mkdir -p /opt/amos/public/admin-v2
rsync -a --delete /home/bernt/.openclaw/workspace/aamos-admin-upgrade/web/ /opt/amos/public/admin-v2/
cp /home/bernt/.openclaw/workspace/aamos-admin-upgrade/backend/bin/aamos-admin /opt/aamos-admin/backend/bin/aamos-admin
2. Lägg till route i AMOS server
I /opt/amos/scripts/server.mjs, lägg till:
app.get('/admin-v2', requirePageAuth, requireAdminRole, (req, res) =>
res.sendFile(join(__dirname, '../public/admin-v2/index.html')));
app.get('/admin-v2/*', requirePageAuth, requireAdminRole, (req, res) =>
res.sendFile(join(__dirname, '../public/admin-v2/index.html')));
3. Starta backend
cd /opt/aamos-admin/backend
export PORT=9090
export DB_URL="postgres://..."
export JWT_SECRET="..."
export AMOS_BASE_URL="http://localhost:9000"
./bin/aamos-admin
4. Eller kör som systemd-tjänst
sudo systemctl restart aamos-admin
Åtkomst
- Dashboard:
https://landvex.com/admin-v2/ - Backend:
http://localhost:9090
Nästa steg (föreslagna)
- Autentisering: Koppla till existerande auth-system (quixzoom-auth på port 8082)
- Riktig data: Koppla quiXzoom SQLite, LandveX intelligence, aamos-ledger
- WebSocket: Real-time uppdateringar av dashboard
- Mobilappar: Uppdatera iOS/Android med nya endpoints
- Tester: Enhetstester för nya handlers