From 66fd4e175ab4a83565fc3be72e1480dd35a3846c Mon Sep 17 00:00:00 2001 From: Ricardo Gonzalez Date: Fri, 22 May 2026 20:18:54 -0500 Subject: [PATCH] =?UTF-8?q?Alpha=20v0.1.0=20=E2=80=94=20KAPPA=20Hub=20inic?= =?UTF-8?q?ial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Auth con KAPPA (login + token Bearer) - Cliente HTTP para 10 endpoints (proyectos, HUs, bitácoras, planeaciones) - Dashboard multi-proyecto con concepto médico Teloprax - Calendario colombiano con 19 feriados (Ley Emiliani + Pascua) - Scheduler tipo cron con Dexie (reglas recurrentes, toasts, log) - Diseño marca Teloprax: Inter, Space Grotesk, #1A1A2E, rojo #E63946 - Stack: Vue 3 + TypeScript + Pinia + Vite + Bun --- .gitignore | 4 + AGENTS.md | 79 +++++++++ bun.lock | 218 ++++++++++++++++++++++++ index.html | 16 ++ package.json | 24 +++ public/favicon.svg | 6 + src/App.vue | 12 ++ src/components/layout/AppShell.vue | 230 +++++++++++++++++++++++++ src/env.d.ts | 7 + src/main.ts | 8 + src/services/calendar.ts | 138 +++++++++++++++ src/services/kappa-api.ts | 128 ++++++++++++++ src/services/scheduler.ts | 201 ++++++++++++++++++++++ src/stores/auth.ts | 40 +++++ src/stores/projects.ts | 36 ++++ src/stores/scheduler.ts | 101 +++++++++++ src/stores/workitems.ts | 25 +++ src/style.css | 60 +++++++ src/types/kappa.ts | 103 ++++++++++++ src/views/CalendarView.vue | 149 ++++++++++++++++ src/views/DashboardView.vue | 145 ++++++++++++++++ src/views/LoginView.vue | 184 ++++++++++++++++++++ src/views/SchedulerView.vue | 261 +++++++++++++++++++++++++++++ tsconfig.json | 21 +++ tsconfig.node.json | 10 ++ vite.config.ts | 21 +++ 26 files changed, 2227 insertions(+) create mode 100644 .gitignore create mode 100644 AGENTS.md create mode 100644 bun.lock create mode 100644 index.html create mode 100644 package.json create mode 100644 public/favicon.svg create mode 100644 src/App.vue create mode 100644 src/components/layout/AppShell.vue create mode 100644 src/env.d.ts create mode 100644 src/main.ts create mode 100644 src/services/calendar.ts create mode 100644 src/services/kappa-api.ts create mode 100644 src/services/scheduler.ts create mode 100644 src/stores/auth.ts create mode 100644 src/stores/projects.ts create mode 100644 src/stores/scheduler.ts create mode 100644 src/stores/workitems.ts create mode 100644 src/style.css create mode 100644 src/types/kappa.ts create mode 100644 src/views/CalendarView.vue create mode 100644 src/views/DashboardView.vue create mode 100644 src/views/LoginView.vue create mode 100644 src/views/SchedulerView.vue create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 vite.config.ts diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd6e803 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +dist/ +*.log +.DS_Store diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..e403bca --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,79 @@ +# KAPPA Hub + +> Asistente multi-proyecto para KAPPA. Semilla de RUMBO. +> POC → validación diaria → lo que funciona migra a RUMBO. + +## Stack + +| Capa | Tecnología | +|------|-----------| +| Frontend | Vue 3 + TypeScript + Vite | +| Runtime | **Bun** (1.3+) | +| Estado | Pinia | +| HTTP | fetch() directo a KAPPA (proxy Vite en dev) | +| Auth | Bearer token (POST /api/users/login/) | +| Almacenamiento | localStorage (token, last project) → Dexie (futuro) | + +## Sincronización entre máquinas (Mac Mini ↔ MacBook Air) + +El proyecto vive en iCloud Drive: `com~apple~CloudDocs/AI/Teloprax/02_productos/kappa-hub/`. + +- **Código**: se sincroniza automáticamente vía iCloud. Solo `bun install` una vez por máquina. +- **Datos de KAPPA**: viven en el servidor (kappa.lambdaanalytics.co). El Hub es solo un cliente. +- **Token**: localStorage del navegador. Loguearse una vez por máquina. +- **Datos locales futuros** (borradores, caché): se guardarán como archivos en `data/` dentro del proyecto, sincronizados vía iCloud. Ver `../rumbo/sincronizacion.md`. + +## APIs KAPPA integradas + +| Endpoint | Método | Uso en el hub | +|----------|--------|--------------| +| `/users/login/` | POST | Auth | +| `/initiatives-all/` | GET | Listar proyectos | +| `/users/all/` | GET | Listar usuarios | +| `/userstorys/create/` | POST | Crear HU desde transcripción | +| `/logbooks_master/create/` | POST | Crear bitácora | +| `/logbooks/create/` | POST | Entrada de bitácora | +| `/plannings_master/create/` | POST | Crear planeación | +| `/plannings/create/` | POST | Entrada de planeación | +| `/business-rules/create/` | POST | Reglas de negocio | +| `/functionalrequirements/create/` | POST | Requisitos funcionales/no funcionales | + +## Estructura + +``` +kappa-hub/ +├── src/ +│ ├── types/kappa.ts # Tipos TypeScript +│ ├── services/kappa-api.ts # Cliente HTTP KAPPA +│ ├── stores/ # Pinia +│ │ ├── auth.ts +│ │ ├── projects.ts +│ │ └── workitems.ts +│ ├── views/ +│ │ ├── LoginView.vue +│ │ └── DashboardView.vue +│ ├── components/layout/ +│ │ └── AppShell.vue +│ ├── App.vue +│ └── main.ts +├── package.json +└── vite.config.ts +``` + +## Cómo ejecutar + +```bash +cd "02_productos/kappa-hub" +bun install # una vez por máquina +bun dev # http://localhost:5173 +``` + +Abre http://localhost:5173. El proxy de Vite redirige `/api/*` a `https://kappa.lambdaanalytics.co`. + +## Próximos pasos + +1. Agregar Dexie.js para cache offline de proyectos y HUs +2. Pipeline de transcripciones (.docx/.vtt/.md → análisis → HU) +3. Dashboard multi-proyecto con resumen unificado +4. Priorizador diario (¿qué hacer hoy?) +5. Generador de reportes de estado diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..4ce430e --- /dev/null +++ b/bun.lock @@ -0,0 +1,218 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "kappa-hub", + "dependencies": { + "dexie": "^4.0.4", + "pinia": "^2.1.7", + "vue": "^3.4.21", + "vue-router": "^4.3.0", + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.0.4", + "typescript": "~5.4.0", + "vite": "^5.2.0", + "vue-tsc": "^2.0.6", + }, + }, + }, + "packages": { + "@babel/helper-string-parser": ["@babel/helper-string-parser@7.27.1", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="], + + "@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="], + + "@babel/parser": ["@babel/parser@7.29.3", "", { "dependencies": { "@babel/types": "^7.29.0" }, "bin": "./bin/babel-parser.js" }, "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA=="], + + "@babel/types": ["@babel/types@7.29.0", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.21.5", "", { "os": "aix", "cpu": "ppc64" }, "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.21.5", "", { "os": "android", "cpu": "arm" }, "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.21.5", "", { "os": "android", "cpu": "arm64" }, "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.21.5", "", { "os": "android", "cpu": "x64" }, "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.21.5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.21.5", "", { "os": "darwin", "cpu": "x64" }, "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.21.5", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.21.5", "", { "os": "freebsd", "cpu": "x64" }, "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.21.5", "", { "os": "linux", "cpu": "arm" }, "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.21.5", "", { "os": "linux", "cpu": "arm64" }, "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.21.5", "", { "os": "linux", "cpu": "ia32" }, "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.21.5", "", { "os": "linux", "cpu": "none" }, "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.21.5", "", { "os": "linux", "cpu": "none" }, "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.21.5", "", { "os": "linux", "cpu": "ppc64" }, "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.21.5", "", { "os": "linux", "cpu": "none" }, "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.21.5", "", { "os": "linux", "cpu": "s390x" }, "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.21.5", "", { "os": "linux", "cpu": "x64" }, "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.21.5", "", { "os": "none", "cpu": "x64" }, "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.21.5", "", { "os": "openbsd", "cpu": "x64" }, "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.21.5", "", { "os": "sunos", "cpu": "x64" }, "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.21.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.21.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.21.5", "", { "os": "win32", "cpu": "x64" }, "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.60.4", "", { "os": "android", "cpu": "arm" }, "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ=="], + + "@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.60.4", "", { "os": "android", "cpu": "arm64" }, "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw=="], + + "@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.60.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA=="], + + "@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.60.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg=="], + + "@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.60.4", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g=="], + + "@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.60.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw=="], + + "@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.60.4", "", { "os": "linux", "cpu": "arm" }, "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA=="], + + "@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.60.4", "", { "os": "linux", "cpu": "arm" }, "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w=="], + + "@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.60.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg=="], + + "@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.60.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A=="], + + "@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.60.4", "", { "os": "linux", "cpu": "none" }, "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ=="], + + "@rollup/rollup-linux-loong64-musl": ["@rollup/rollup-linux-loong64-musl@4.60.4", "", { "os": "linux", "cpu": "none" }, "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw=="], + + "@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.60.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg=="], + + "@rollup/rollup-linux-ppc64-musl": ["@rollup/rollup-linux-ppc64-musl@4.60.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A=="], + + "@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.60.4", "", { "os": "linux", "cpu": "none" }, "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA=="], + + "@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.60.4", "", { "os": "linux", "cpu": "none" }, "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw=="], + + "@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.60.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ=="], + + "@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.60.4", "", { "os": "linux", "cpu": "x64" }, "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ=="], + + "@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.60.4", "", { "os": "linux", "cpu": "x64" }, "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg=="], + + "@rollup/rollup-openbsd-x64": ["@rollup/rollup-openbsd-x64@4.60.4", "", { "os": "openbsd", "cpu": "x64" }, "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA=="], + + "@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.60.4", "", { "os": "none", "cpu": "arm64" }, "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg=="], + + "@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.60.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw=="], + + "@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.60.4", "", { "os": "win32", "cpu": "ia32" }, "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA=="], + + "@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.60.4", "", { "os": "win32", "cpu": "x64" }, "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw=="], + + "@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.60.4", "", { "os": "win32", "cpu": "x64" }, "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw=="], + + "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], + + "@vitejs/plugin-vue": ["@vitejs/plugin-vue@5.2.4", "", { "peerDependencies": { "vite": "^5.0.0 || ^6.0.0", "vue": "^3.2.25" } }, "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA=="], + + "@volar/language-core": ["@volar/language-core@2.4.15", "", { "dependencies": { "@volar/source-map": "2.4.15" } }, "sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA=="], + + "@volar/source-map": ["@volar/source-map@2.4.15", "", {}, "sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg=="], + + "@volar/typescript": ["@volar/typescript@2.4.15", "", { "dependencies": { "@volar/language-core": "2.4.15", "path-browserify": "^1.0.1", "vscode-uri": "^3.0.8" } }, "sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg=="], + + "@vue/compiler-core": ["@vue/compiler-core@3.5.34", "", { "dependencies": { "@babel/parser": "^7.29.3", "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw=="], + + "@vue/compiler-dom": ["@vue/compiler-dom@3.5.34", "", { "dependencies": { "@vue/compiler-core": "3.5.34", "@vue/shared": "3.5.34" } }, "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw=="], + + "@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.34", "", { "dependencies": { "@babel/parser": "^7.29.3", "@vue/compiler-core": "3.5.34", "@vue/compiler-dom": "3.5.34", "@vue/compiler-ssr": "3.5.34", "@vue/shared": "3.5.34", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.14", "source-map-js": "^1.2.1" } }, "sha512-D/ihr6uZeIt6r+pVZf46RWT1fAsLFMbUP7k8G1VkiiWexriED9GrX3echHd4Abbt17zjlfiFJ8z7a3BxZOPNjg=="], + + "@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.34", "", { "dependencies": { "@vue/compiler-dom": "3.5.34", "@vue/shared": "3.5.34" } }, "sha512-cDtTHKibkThKGHH1SP+WdccquNRYQDFH6rRjQCqT9G2ltFAfoR5pUftpab/z+aM5mW9HLLVQW7hfKKQe/1GBeQ=="], + + "@vue/compiler-vue2": ["@vue/compiler-vue2@2.7.16", "", { "dependencies": { "de-indent": "^1.0.2", "he": "^1.2.0" } }, "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A=="], + + "@vue/devtools-api": ["@vue/devtools-api@6.6.4", "", {}, "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g=="], + + "@vue/language-core": ["@vue/language-core@2.2.12", "", { "dependencies": { "@volar/language-core": "2.4.15", "@vue/compiler-dom": "^3.5.0", "@vue/compiler-vue2": "^2.7.16", "@vue/shared": "^3.5.0", "alien-signals": "^1.0.3", "minimatch": "^9.0.3", "muggle-string": "^0.4.1", "path-browserify": "^1.0.1" }, "peerDependencies": { "typescript": "*" }, "optionalPeers": ["typescript"] }, "sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA=="], + + "@vue/reactivity": ["@vue/reactivity@3.5.34", "", { "dependencies": { "@vue/shared": "3.5.34" } }, "sha512-y9XDjCEuBp+98k+UL5dbYkh57AHU4o6cxZedOPXw3bmrZZYLQsVHguGurq7hVrPCSrQtrnz1f9dssyFr+dMXfQ=="], + + "@vue/runtime-core": ["@vue/runtime-core@3.5.34", "", { "dependencies": { "@vue/reactivity": "3.5.34", "@vue/shared": "3.5.34" } }, "sha512-mKeBYvu8tcMSLhypAHBmriUFfWXKTCF/23Z4jiCoYK3UtWepkliViNLuR90V9XOyD62mUxs9p1jsrpK3CCGIzw=="], + + "@vue/runtime-dom": ["@vue/runtime-dom@3.5.34", "", { "dependencies": { "@vue/reactivity": "3.5.34", "@vue/runtime-core": "3.5.34", "@vue/shared": "3.5.34", "csstype": "^3.2.3" } }, "sha512-e8kZzERmCwUnBRVsgSQlAfrfU2rGoy0FFKPBXSlfEjc/O3KfA7QP0t1/2ZylrbchjmIKB4dPTd07A6WPr0eOrg=="], + + "@vue/server-renderer": ["@vue/server-renderer@3.5.34", "", { "dependencies": { "@vue/compiler-ssr": "3.5.34", "@vue/shared": "3.5.34" }, "peerDependencies": { "vue": "3.5.34" } }, "sha512-nHxmJoTrKsmrkbILRhkC9gY1G3moZbJTqCzDd7DOOzG5KH9oeJ0Unqrff5f9v0pW//jES05ZkJcNtfE8JjOIew=="], + + "@vue/shared": ["@vue/shared@3.5.34", "", {}, "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA=="], + + "alien-signals": ["alien-signals@1.0.13", "", {}, "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg=="], + + "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], + + "brace-expansion": ["brace-expansion@2.1.0", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w=="], + + "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], + + "de-indent": ["de-indent@1.0.2", "", {}, "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg=="], + + "dexie": ["dexie@4.4.2", "", {}, "sha512-zMtV8q79EFE5U8FKZvt0Y/77PCU/Hr/RDxv1EDeo228L+m/HTbeN2AjoQm674rhQCX8n3ljK87lajt7UQuZfvw=="], + + "entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], + + "esbuild": ["esbuild@0.21.5", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.21.5", "@esbuild/android-arm": "0.21.5", "@esbuild/android-arm64": "0.21.5", "@esbuild/android-x64": "0.21.5", "@esbuild/darwin-arm64": "0.21.5", "@esbuild/darwin-x64": "0.21.5", "@esbuild/freebsd-arm64": "0.21.5", "@esbuild/freebsd-x64": "0.21.5", "@esbuild/linux-arm": "0.21.5", "@esbuild/linux-arm64": "0.21.5", "@esbuild/linux-ia32": "0.21.5", "@esbuild/linux-loong64": "0.21.5", "@esbuild/linux-mips64el": "0.21.5", "@esbuild/linux-ppc64": "0.21.5", "@esbuild/linux-riscv64": "0.21.5", "@esbuild/linux-s390x": "0.21.5", "@esbuild/linux-x64": "0.21.5", "@esbuild/netbsd-x64": "0.21.5", "@esbuild/openbsd-x64": "0.21.5", "@esbuild/sunos-x64": "0.21.5", "@esbuild/win32-arm64": "0.21.5", "@esbuild/win32-ia32": "0.21.5", "@esbuild/win32-x64": "0.21.5" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw=="], + + "estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "he": ["he@1.2.0", "", { "bin": { "he": "bin/he" } }, "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="], + + "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], + + "minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], + + "muggle-string": ["muggle-string@0.4.1", "", {}, "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ=="], + + "nanoid": ["nanoid@3.3.12", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ=="], + + "path-browserify": ["path-browserify@1.0.1", "", {}, "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "pinia": ["pinia@2.3.1", "", { "dependencies": { "@vue/devtools-api": "^6.6.3", "vue-demi": "^0.14.10" }, "peerDependencies": { "typescript": ">=4.4.4", "vue": "^2.7.0 || ^3.5.11" }, "optionalPeers": ["typescript"] }, "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug=="], + + "postcss": ["postcss@8.5.15", "", { "dependencies": { "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A=="], + + "rollup": ["rollup@4.60.4", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.60.4", "@rollup/rollup-android-arm64": "4.60.4", "@rollup/rollup-darwin-arm64": "4.60.4", "@rollup/rollup-darwin-x64": "4.60.4", "@rollup/rollup-freebsd-arm64": "4.60.4", "@rollup/rollup-freebsd-x64": "4.60.4", "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", "@rollup/rollup-linux-arm-musleabihf": "4.60.4", "@rollup/rollup-linux-arm64-gnu": "4.60.4", "@rollup/rollup-linux-arm64-musl": "4.60.4", "@rollup/rollup-linux-loong64-gnu": "4.60.4", "@rollup/rollup-linux-loong64-musl": "4.60.4", "@rollup/rollup-linux-ppc64-gnu": "4.60.4", "@rollup/rollup-linux-ppc64-musl": "4.60.4", "@rollup/rollup-linux-riscv64-gnu": "4.60.4", "@rollup/rollup-linux-riscv64-musl": "4.60.4", "@rollup/rollup-linux-s390x-gnu": "4.60.4", "@rollup/rollup-linux-x64-gnu": "4.60.4", "@rollup/rollup-linux-x64-musl": "4.60.4", "@rollup/rollup-openbsd-x64": "4.60.4", "@rollup/rollup-openharmony-arm64": "4.60.4", "@rollup/rollup-win32-arm64-msvc": "4.60.4", "@rollup/rollup-win32-ia32-msvc": "4.60.4", "@rollup/rollup-win32-x64-gnu": "4.60.4", "@rollup/rollup-win32-x64-msvc": "4.60.4", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g=="], + + "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], + + "typescript": ["typescript@5.4.5", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ=="], + + "vite": ["vite@5.4.21", "", { "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", "rollup": "^4.20.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || >=20.0.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.4.0" }, "optionalPeers": ["@types/node", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser"], "bin": { "vite": "bin/vite.js" } }, "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw=="], + + "vscode-uri": ["vscode-uri@3.1.0", "", {}, "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ=="], + + "vue": ["vue@3.5.34", "", { "dependencies": { "@vue/compiler-dom": "3.5.34", "@vue/compiler-sfc": "3.5.34", "@vue/runtime-dom": "3.5.34", "@vue/server-renderer": "3.5.34", "@vue/shared": "3.5.34" }, "peerDependencies": { "typescript": "*" }, "optionalPeers": ["typescript"] }, "sha512-WdLBG9gm02OgJIG9axd5Hpx0TFLdzVgfG2evFFu8Rur5O/IoGc5cMjnjh3tPL6GnRGsYvUhBSKVPYVcxRKpMCA=="], + + "vue-demi": ["vue-demi@0.14.10", "", { "peerDependencies": { "@vue/composition-api": "^1.0.0-rc.1", "vue": "^3.0.0-0 || ^2.6.0" }, "optionalPeers": ["@vue/composition-api"], "bin": { "vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-switch": "bin/vue-demi-switch.js" } }, "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg=="], + + "vue-router": ["vue-router@4.6.4", "", { "dependencies": { "@vue/devtools-api": "^6.6.4" }, "peerDependencies": { "vue": "^3.5.0" } }, "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg=="], + + "vue-tsc": ["vue-tsc@2.2.12", "", { "dependencies": { "@volar/typescript": "2.4.15", "@vue/language-core": "2.2.12" }, "peerDependencies": { "typescript": ">=5.0.0" }, "bin": { "vue-tsc": "./bin/vue-tsc.js" } }, "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw=="], + } +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..7f397ea --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + + Teloprax — Alpha + + + + + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..f87f192 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "kappa-hub", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "preview": "vite preview", + "typecheck": "vue-tsc --noEmit" + }, + "dependencies": { + "pinia": "^2.1.7", + "vue": "^3.4.21", + "vue-router": "^4.3.0", + "dexie": "^4.0.4" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.0.4", + "typescript": "~5.4.0", + "vite": "^5.2.0", + "vue-tsc": "^2.0.6" + } +} diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..19c04a7 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..dae0e82 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,12 @@ + + + diff --git a/src/components/layout/AppShell.vue b/src/components/layout/AppShell.vue new file mode 100644 index 0000000..2699377 --- /dev/null +++ b/src/components/layout/AppShell.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..323c78a --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1,7 @@ +/// + +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..283ec2a --- /dev/null +++ b/src/main.ts @@ -0,0 +1,8 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import App from './App.vue' +import './style.css' + +const app = createApp(App) +app.use(createPinia()) +app.mount('#app') diff --git a/src/services/calendar.ts b/src/services/calendar.ts new file mode 100644 index 0000000..6b41362 --- /dev/null +++ b/src/services/calendar.ts @@ -0,0 +1,138 @@ +/** + * Feriados colombianos. + * + * Incluye: + * - Fechas fijas (no se mueven) + * - Fechas sujetas a Ley Emiliani (se trasladan al lunes siguiente) + * - Fechas variables basadas en Pascua + * + * Para RUMBO esto se vuelve multi-país. Por ahora solo Colombia. + */ + +interface HolidayDef { + name: string + /** Si true, si cae entre martes y domingo se mueve al lunes siguiente */ + emiliani: boolean + /** Mes 1-12 */ + month: number + /** Día 1-31 (solo si no es basado en Pascua) */ + day: number + /** Offset desde Pascua en días (solo si es basado en Pascua) */ + easterOffset?: number +} + +const HOLIDAY_DEFS: HolidayDef[] = [ + { name: 'Año Nuevo', emiliani: false, month: 1, day: 1 }, + { name: 'Reyes Magos', emiliani: true, month: 1, day: 6 }, + { name: 'San José', emiliani: true, month: 3, day: 19 }, + { name: 'Jueves Santo', emiliani: false, month: 0, day: 0, easterOffset: -3 }, + { name: 'Viernes Santo', emiliani: false, month: 0, day: 0, easterOffset: -2 }, + { name: 'Domingo de Pascua', emiliani: false, month: 0, day: 0, easterOffset: 0 }, + { name: 'Día del Trabajo', emiliani: false, month: 5, day: 1 }, + { name: 'Ascensión del Señor', emiliani: true, month: 0, day: 0, easterOffset: 43 }, + { name: 'Corpus Christi', emiliani: true, month: 0, day: 0, easterOffset: 64 }, + { name: 'Sagrado Corazón', emiliani: true, month: 0, day: 0, easterOffset: 71 }, + { name: 'San Pedro y San Pablo', emiliani: true, month: 6, day: 29 }, + { name: 'Día de la Independencia',emiliani: false, month: 7, day: 20 }, + { name: 'Batalla de Boyacá', emiliani: false, month: 8, day: 7 }, + { name: 'Asunción de la Virgen', emiliani: true, month: 8, day: 15 }, + { name: 'Día de la Raza', emiliani: true, month: 10, day: 12 }, + { name: 'Todos los Santos', emiliani: true, month: 11, day: 1 }, + { name: 'Indep. de Cartagena', emiliani: true, month: 11, day: 11 }, + { name: 'Inmaculada Concepción', emiliani: false, month: 12, day: 8 }, + { name: 'Navidad', emiliani: false, month: 12, day: 25 }, +] + +/** + * Calcula la fecha de Pascua (Domingo de Resurrección) para un año dado. + * Algoritmo de Butcher (Gregoriano). + */ +function easterSunday(year: number): Date { + const a = year % 19 + const b = Math.floor(year / 100) + const c = year % 100 + const d = Math.floor(b / 4) + const e = b % 4 + const f = Math.floor((b + 8) / 25) + const g = Math.floor((b - f + 1) / 3) + const h = (19 * a + b - d - g + 15) % 30 + const i = Math.floor(c / 4) + const k = c % 4 + const l = (32 + 2 * e + 2 * i - h - k) % 7 + const m = Math.floor((a + 11 * h + 22 * l) / 451) + const month = Math.floor((h + l - 7 * m + 114) / 31) + const day = ((h + l - 7 * m + 114) % 31) + 1 + return new Date(year, month - 1, day) +} + +/** + * Aplica la Ley Emiliani: si la fecha no cae en lunes, la mueve al lunes siguiente. + */ +function applyEmiliani(date: Date): Date { + const dayOfWeek = date.getDay() // 0=dom, 1=lun, ..., 6=sáb + if (dayOfWeek === 1) return date // ya es lunes + const daysUntilMonday = (8 - dayOfWeek) % 7 + const result = new Date(date) + result.setDate(result.getDate() + daysUntilMonday) + return result +} + +function dateFromDayMonth(year: number, month: number, day: number): Date { + return new Date(year, month - 1, day) +} + +export function getColombianHolidays(year: number): { date: Date; name: string }[] { + const easter = easterSunday(year) + const holidays: { date: Date; name: string }[] = [] + + for (const def of HOLIDAY_DEFS) { + let date: Date + + if (def.easterOffset !== undefined) { + date = new Date(easter) + date.setDate(date.getDate() + def.easterOffset) + } else { + date = dateFromDayMonth(year, def.month, def.day) + } + + if (def.emiliani) { + date = applyEmiliani(date) + } + + // Solo agregar si no es domingo ya (los domingos siempre son no laborales) + holidays.push({ date, name: def.name }) + } + + return holidays.sort((a, b) => a.date.getTime() - b.date.getTime()) +} + +export function isHoliday(date: Date): { holiday: boolean; name?: string } { + const year = date.getFullYear() + const holidays = getColombianHolidays(year) + const found = holidays.find(h => + h.date.getFullYear() === date.getFullYear() && + h.date.getMonth() === date.getMonth() && + h.date.getDate() === date.getDate() + ) + return found ? { holiday: true, name: found.name } : { holiday: false } +} + +export function isWorkingDay(date: Date): boolean { + const day = date.getDay() + if (day === 0 || day === 6) return false + return !isHoliday(date).holiday +} + +export function addWorkingDays(date: Date, days: number): Date { + const result = new Date(date) + let added = 0 + while (added < days) { + result.setDate(result.getDate() + 1) + if (isWorkingDay(result)) added++ + } + return result +} + +export function nextWorkingDay(date: Date): Date { + return addWorkingDays(date, 1) +} diff --git a/src/services/kappa-api.ts b/src/services/kappa-api.ts new file mode 100644 index 0000000..9dc3cbd --- /dev/null +++ b/src/services/kappa-api.ts @@ -0,0 +1,128 @@ +import type { + KappaLoginPayload, + KappaLoginResponse, + KappaInitiative, + KappaUserStory, + KappaLogbookMaster, + KappaLogbookEntry, + KappaPlanningMaster, + KappaPlanningEntry, + KappaBusinessRule, + KappaRequirement, +} from '@/types/kappa' + +const BASE = '/api' + +class KappaAPI { + private token: string | null = null + + constructor() { + this.token = localStorage.getItem('kappa_token') + } + + private get headers(): Record { + const h: Record = { + 'Content-Type': 'application/json', + } + if (this.token) { + h['Authorization'] = `Bearer ${this.token}` + } + return h + } + + private async request( + method: string, + path: string, + body?: unknown + ): Promise { + const opts: RequestInit = { + method, + headers: this.headers, + } + if (body && method !== 'GET') { + opts.body = JSON.stringify(body) + } + const res = await fetch(`${BASE}${path}`, opts) + if (!res.ok) { + const text = await res.text() + throw new Error(`KAPPA ${method} ${path}: ${res.status} — ${text.slice(0, 200)}`) + } + return res.json() + } + + // ─── Auth ──────────────────────────────────────────── + + async login(payload: KappaLoginPayload): Promise { + const data = await this.request( + 'POST', + '/users/login/', + payload + ) + this.token = data.access || data.token || data.key || null + if (this.token) { + localStorage.setItem('kappa_token', this.token) + } + return data + } + + logout() { + this.token = null + localStorage.removeItem('kappa_token') + } + + get isAuthenticated(): boolean { + return !!this.token + } + + // ─── Proyectos (Initiatives) ───────────────────────── + + async getInitiatives(): Promise { + return this.request('GET', '/initiatives-all/') + } + + // ─── User Stories ──────────────────────────────────── + + async createUserStory(story: KappaUserStory): Promise { + return this.request('POST', '/userstorys/create/', story) + } + + // ─── Users ─────────────────────────────────────────── + + async getUsers(): Promise { + return this.request('GET', '/users/all/') + } + + // ─── Bitácoras (Logbooks) ──────────────────────────── + + async createLogbookMaster(data: KappaLogbookMaster): Promise { + return this.request('POST', '/logbooks_master/create/', data) + } + + async createLogbookEntry(data: KappaLogbookEntry): Promise { + return this.request('POST', '/logbooks/create/', data) + } + + // ─── Planeaciones (Plannings) ──────────────────────── + + async createPlanningMaster(data: KappaPlanningMaster): Promise { + return this.request('POST', '/plannings_master/create/', data) + } + + async createPlanningEntry(data: KappaPlanningEntry): Promise { + return this.request('POST', '/plannings/create/', data) + } + + // ─── Business Rules ────────────────────────────────── + + async createBusinessRule(data: KappaBusinessRule): Promise { + return this.request('POST', '/business-rules/create/', data) + } + + // ─── Requisitos ────────────────────────────────────── + + async createRequirement(data: KappaRequirement): Promise { + return this.request('POST', '/functionalrequirements/create/', data) + } +} + +export const kappa = new KappaAPI() diff --git a/src/services/scheduler.ts b/src/services/scheduler.ts new file mode 100644 index 0000000..6594933 --- /dev/null +++ b/src/services/scheduler.ts @@ -0,0 +1,201 @@ +/** + * Scheduler tipo cron para KAPPA Hub. + * + * Las tareas se ejecutan solo cuando la app está abierta (web app). + * En RUMBO (Tauri) esto se vuelve un proceso en segundo plano real. + */ + +import Dexie, { type EntityTable } from 'dexie' + +interface ScheduleRule { + id?: number + name: string + description?: string + /** 0=dom, 1=lun, ..., 6=sáb */ + daysOfWeek: number[] + /** 0-23 */ + hour: number + /** 0-59 */ + minute: number + action: ScheduleAction + enabled: boolean + lastRun: string | null + createdAt: string +} + +type ScheduleAction = + | { type: 'generate_progress_report' } + | { type: 'check_hus' } + | { type: 'daily_prep' } + | { type: 'reminder'; message: string } + +interface ExecutionLog { + id?: number + ruleId: number + ruleName: string + executedAt: string + success: boolean + message: string +} + +const db = new Dexie('kappa-hub-scheduler') as Dexie & { + rules: EntityTable + logs: EntityTable +} + +db.version(1).stores({ + rules: '++id, enabled, hour, minute', + logs: '++id, ruleId, executedAt', +}) + +export { db } +export type { ScheduleRule, ScheduleAction, ExecutionLog } + +// ─── Engine ───────────────────────────────────────────────── + +type Subscriber = (ruleId: number, message: string) => void + +let intervalId: ReturnType | null = null +let subscribers: Subscriber[] = [] + +function now(): string { + return new Date().toISOString() +} + +function matchesRule(rule: ScheduleRule, date: Date): boolean { + if (!rule.enabled) return false + if (!rule.daysOfWeek.includes(date.getDay())) return false + if (rule.hour !== date.getHours()) return false + if (rule.minute !== date.getMinutes()) return false + return true +} + +async function executeRule(rule: ScheduleRule): Promise { + const projectNames: string[] = [] // se llenará del store + + switch (rule.action.type) { + case 'generate_progress_report': + return `📊 Informe de avance generado para ${projectNames.length || 'todos los'} proyectos.` + + case 'check_hus': { + // En la iteración real consulta KAPPA API + return `🎫 HUs revisadas. ${projectNames.length || 'N'} proyectos actualizados.` + } + + case 'daily_prep': + return `📋 Daily prep: recordatorio de revisar HUs pendientes y bloqueos para hoy.` + + case 'reminder': + return `⏰ ${rule.action.message}` + + default: + return `✅ Tarea "${rule.name}" ejecutada.` + } +} + +async function runRule(rule: ScheduleRule) { + let success = true + let message = '' + try { + message = await executeRule(rule) + } catch (e: any) { + success = false + message = e.message + } + + await db.rules.update(rule.id!, { lastRun: now() }) + await db.logs.add({ + ruleId: rule.id!, + ruleName: rule.name, + executedAt: now(), + success, + message, + }) + + for (const sub of subscribers) { + sub(rule.id!, message) + } +} + +async function tick() { + const date = new Date() + const rules = await db.rules.where('enabled').equals(1).toArray() + for (const rule of rules) { + if (matchesRule(rule, date)) { + await runRule(rule) + } + } +} + +export function startScheduler() { + if (intervalId) return + tick() // ejecutar inmediatamente por si acaba de pasar el minuto + intervalId = setInterval(tick, 60_000) // cada minuto +} + +export function stopScheduler() { + if (intervalId) { + clearInterval(intervalId) + intervalId = null + } +} + +export function onScheduledTask(cb: Subscriber) { + subscribers.push(cb) + return () => { + subscribers = subscribers.filter(s => s !== cb) + } +} + +// ─── Helpers ──────────────────────────────────────────────── + +export function computeNextRun(rule: ScheduleRule): Date | null { + if (!rule.enabled || rule.daysOfWeek.length === 0) return null + + const now = new Date() + const candidate = new Date(now) + candidate.setHours(rule.hour, rule.minute, 0, 0) + + // Buscar el próximo día que coincida + for (let i = 0; i < 8; i++) { + const check = new Date(candidate) + check.setDate(check.getDate() + i) + + if (rule.daysOfWeek.includes(check.getDay())) { + if (check > now) return check + } + } + return null +} + +export const DAY_LABELS = ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'] + +export const DEFAULT_RULES: Omit[] = [ + { + name: 'Informe semanal de avance', + description: 'Genera un resumen de estado de cada proyecto activo', + daysOfWeek: [5], // viernes + hour: 9, + minute: 0, + action: { type: 'generate_progress_report' }, + enabled: true, + }, + { + name: 'Revisión de HUs pendientes', + description: 'Revisa HUs en progreso, bloqueadas y vencidas en todos los proyectos', + daysOfWeek: [1, 2, 3, 4, 5], // lun-vie + hour: 8, + minute: 0, + action: { type: 'check_hus' }, + enabled: true, + }, + { + name: 'Daily prep', + description: 'Prepara el resumen diario: qué HUs toca hoy, bloqueos, entregables próximos', + daysOfWeek: [1, 2, 3, 4, 5], + hour: 7, + minute: 30, + action: { type: 'daily_prep' }, + enabled: true, + }, +] diff --git a/src/stores/auth.ts b/src/stores/auth.ts new file mode 100644 index 0000000..de76020 --- /dev/null +++ b/src/stores/auth.ts @@ -0,0 +1,40 @@ +import { defineStore } from 'pinia' +import { ref, computed } from 'vue' +import { kappa } from '@/services/kappa-api' +import type { KappaLoginPayload } from '@/types/kappa' + +export const useAuthStore = defineStore('auth', () => { + const token = ref(localStorage.getItem('kappa_token')) + const user = ref<{ name: string; email: string } | null>(null) + const loading = ref(false) + const error = ref(null) + + const isAuthenticated = computed(() => !!token.value) + + async function login(payload: KappaLoginPayload) { + loading.value = true + error.value = null + try { + const data = await kappa.login(payload) + token.value = kappa['token'] // sync with the service instance + user.value = { + name: `${data.user?.first_name || ''} ${data.user?.last_name || ''}`.trim(), + email: payload.email, + } + return true + } catch (e: any) { + error.value = e.message + return false + } finally { + loading.value = false + } + } + + function logout() { + kappa.logout() + token.value = null + user.value = null + } + + return { token, user, loading, error, isAuthenticated, login, logout } +}) diff --git a/src/stores/projects.ts b/src/stores/projects.ts new file mode 100644 index 0000000..29f8664 --- /dev/null +++ b/src/stores/projects.ts @@ -0,0 +1,36 @@ +import { defineStore } from 'pinia' +import { ref, computed } from 'vue' +import { kappa } from '@/services/kappa-api' +import type { KappaInitiative } from '@/types/kappa' + +export const useProjectsStore = defineStore('projects', () => { + const projects = ref([]) + const loading = ref(false) + const error = ref(null) + const selectedId = ref(null) + + const selected = computed(() => + projects.value.find(p => p.id === selectedId.value) ?? null + ) + + const count = computed(() => projects.value.length) + + async function fetchProjects() { + loading.value = true + error.value = null + try { + projects.value = await kappa.getInitiatives() + } catch (e: any) { + error.value = e.message + } finally { + loading.value = false + } + } + + function select(id: number) { + selectedId.value = id + localStorage.setItem('kappa_last_project', String(id)) + } + + return { projects, loading, error, selectedId, selected, count, fetchProjects, select } +}) diff --git a/src/stores/scheduler.ts b/src/stores/scheduler.ts new file mode 100644 index 0000000..d6cc217 --- /dev/null +++ b/src/stores/scheduler.ts @@ -0,0 +1,101 @@ +import { defineStore } from 'pinia' +import { ref, computed } from 'vue' +import { + db, startScheduler, stopScheduler, onScheduledTask, + computeNextRun, DEFAULT_RULES, + type ScheduleRule, type ScheduleAction, type ExecutionLog, +} from '@/services/scheduler' + +export const useSchedulerStore = defineStore('scheduler', () => { + const rules = ref([]) + const logs = ref([]) + const notifications = ref<{ id: number; ruleId: number; message: string; time: string }[]>([]) + const running = ref(false) + + const enabledRules = computed(() => rules.value.filter(r => r.enabled)) + const nextRuns = computed(() => { + return rules.value.map(r => ({ + ...r, + nextRun: computeNextRun(r), + })) + }) + + async function loadRules() { + rules.value = await db.rules.toArray() + } + + async function loadLogs(limit = 50) { + logs.value = await db.logs.orderBy('executedAt').reverse().limit(limit).toArray() + } + + async function seedDefaults() { + const existing = await db.rules.count() + if (existing > 0) return + const now = new Date().toISOString() + for (const def of DEFAULT_RULES) { + await db.rules.add({ ...def, createdAt: now, lastRun: null } as ScheduleRule) + } + await loadRules() + } + + async function addRule(rule: Omit) { + await db.rules.add({ + ...rule, + createdAt: new Date().toISOString(), + lastRun: null, + } as ScheduleRule) + await loadRules() + } + + async function updateRule(id: number, changes: Partial) { + await db.rules.update(id, changes) + await loadRules() + } + + async function toggleRule(id: number) { + const rule = rules.value.find(r => r.id === id) + if (rule) { + await db.rules.update(id, { enabled: !rule.enabled }) + await loadRules() + } + } + + async function deleteRule(id: number) { + await db.rules.delete(id) + await loadRules() + } + + function start() { + startScheduler() + running.value = true + + onScheduledTask((ruleId, message) => { + notifications.value.unshift({ + id: Date.now(), + ruleId, + message, + time: new Date().toLocaleTimeString(), + }) + loadLogs() + // Mantener solo últimas 20 notificaciones + if (notifications.value.length > 20) { + notifications.value = notifications.value.slice(0, 20) + } + }) + } + + function stop() { + stopScheduler() + running.value = false + } + + function dismissNotification(id: number) { + notifications.value = notifications.value.filter(n => n.id !== id) + } + + return { + rules, logs, notifications, running, enabledRules, nextRuns, + loadRules, loadLogs, seedDefaults, addRule, updateRule, + toggleRule, deleteRule, start, stop, dismissNotification, + } +}) diff --git a/src/stores/workitems.ts b/src/stores/workitems.ts new file mode 100644 index 0000000..fe06c2a --- /dev/null +++ b/src/stores/workitems.ts @@ -0,0 +1,25 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' +import { kappa } from '@/services/kappa-api' +import type { KappaUserStory } from '@/types/kappa' + +export const useWorkItemsStore = defineStore('workitems', () => { + const creating = ref(false) + const error = ref(null) + + async function createUserStory(story: KappaUserStory): Promise { + creating.value = true + error.value = null + try { + const result = await kappa.createUserStory(story) + return result + } catch (e: any) { + error.value = e.message + return null + } finally { + creating.value = false + } + } + + return { creating, error, createUserStory } +}) diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..1c399b6 --- /dev/null +++ b/src/style.css @@ -0,0 +1,60 @@ +:root { + --bg-primary: #1A1A2E; + --bg-secondary: #141428; + --bg-tertiary: #1E1E36; + --bg-input: #1A1A2E; + --border: #2A2A45; + --border-hover: #3A3A55; + --text-primary: #E6EDF3; + --text-secondary: #8888AA; + --text-muted: #555577; + --accent: #E63946; + --accent-hover: #C62E3A; + --success: #3FB950; + --warning: #D29922; + --error: #F85149; + --radius: 8px; +} + +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +html, body { + height: 100%; + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + font-size: 14px; + line-height: 1.5; + color: var(--text-primary); + background: var(--bg-primary); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +#app { + height: 100%; +} + +input, select, button, textarea { + font-family: inherit; + font-size: inherit; +} + +a { + color: var(--accent); + text-decoration: none; +} + +::-webkit-scrollbar { width: 6px; } +::-webkit-scrollbar-track { background: transparent; } +::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } +::-webkit-scrollbar-thumb:hover { background: var(--border-hover); } + +.sch-view, +.cal-view { + max-width: 960px; +} diff --git a/src/types/kappa.ts b/src/types/kappa.ts new file mode 100644 index 0000000..e7222bc --- /dev/null +++ b/src/types/kappa.ts @@ -0,0 +1,103 @@ +export interface KappaLoginPayload { + email: string + password: string +} + +export interface KappaLoginResponse { + access?: string + token?: string + key?: string + user?: KappaUser +} + +export interface KappaUser { + id: number + email: string + first_name: string + last_name: string + username?: string + is_staff?: boolean +} + +export interface KappaInitiative { + id: number + name: string + key?: string + description?: string + start_date?: string + end_date?: string + status?: string + created_at?: string +} + +export interface KappaUserStory { + id?: number + code?: string + title: string + description?: string + acceptance_criteria?: string + status?: string + priority?: string + initiative: number | string + created_at?: string +} + +export interface KappaLogbookMaster { + id?: number + initiative: number | string + name: string + description?: string + created_at?: string +} + +export interface KappaLogbookEntry { + id?: number + logbook_master?: number + initiative?: number | string + date: string + description: string + hours?: number + created_at?: string +} + +export interface KappaPlanningMaster { + id?: number + initiative: number | string + name: string + description?: string + start_date?: string + end_date?: string + created_at?: string +} + +export interface KappaPlanningEntry { + id?: number + planning_master?: number + initiative?: number | string + description: string + responsible?: string + start_date?: string + end_date?: string + created_at?: string +} + +export interface KappaBusinessRule { + name: string + description: string + initiative: number | string +} + +export interface KappaRequirement { + name: string + description: string + initiative: number | string + type: 'funcional' | 'no_funcional' + name_requirement?: string +} + +export interface PaginatedResponse { + count: number + next: string | null + previous: string | null + results: T[] +} diff --git a/src/views/CalendarView.vue b/src/views/CalendarView.vue new file mode 100644 index 0000000..254bc94 --- /dev/null +++ b/src/views/CalendarView.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/src/views/DashboardView.vue b/src/views/DashboardView.vue new file mode 100644 index 0000000..49dfa1a --- /dev/null +++ b/src/views/DashboardView.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue new file mode 100644 index 0000000..d75cc1b --- /dev/null +++ b/src/views/LoginView.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/views/SchedulerView.vue b/src/views/SchedulerView.vue new file mode 100644 index 0000000..7c47361 --- /dev/null +++ b/src/views/SchedulerView.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..84ce10a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "moduleResolution": "bundler", + "strict": true, + "jsx": "preserve", + "resolveJsonModule": true, + "isolatedModules": true, + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "paths": { + "@/*": ["./src/*"] + }, + "baseUrl": "." + }, + "include": ["src/**/*.ts", "src/**/*.vue"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..42872c5 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..93811a5 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import { resolve } from 'path' + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + '@': resolve(__dirname, 'src'), + }, + }, + server: { + proxy: { + '/api': { + target: 'https://kappa.lambdaanalytics.co', + changeOrigin: true, + secure: false, + }, + }, + }, +})