From 9bf562bf3ac8d5102eb856ceb63d364ac3357773 Mon Sep 17 00:00:00 2001 From: Anibal Angulo Date: Fri, 6 Mar 2026 23:03:21 +0000 Subject: [PATCH] Add chat client to admin UI --- frontend/admin/package-lock.json | 22 + frontend/admin/package.json | 5 +- frontend/admin/src/router.ts | 6 + frontend/admin/src/views/Chat.vue | 550 +++++++++++++++++++++++++ frontend/admin/src/views/Dashboard.vue | 28 +- frontend/admin/vite.config.ts | 4 + scripts/chat.py | 2 +- 7 files changed, 613 insertions(+), 4 deletions(-) create mode 100644 frontend/admin/src/views/Chat.vue diff --git a/frontend/admin/package-lock.json b/frontend/admin/package-lock.json index 2341e79..b50320e 100644 --- a/frontend/admin/package-lock.json +++ b/frontend/admin/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "axios": "^1.6.0", + "openai": "^6.27.0", "vue": "^3.4.0", "vue-router": "^4.2.0" }, @@ -1438,6 +1439,27 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/openai": { + "version": "6.27.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-6.27.0.tgz", + "integrity": "sha512-osTKySlrdYrLYTt0zjhY8yp0JUBmWDCN+Q+QxsV4xMQnnoVFpylgKGgxwN8sSdTNw0G4y+WUXs4eCMWpyDNWZQ==", + "license": "Apache-2.0", + "bin": { + "openai": "bin/cli" + }, + "peerDependencies": { + "ws": "^8.18.0", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "ws": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", diff --git a/frontend/admin/package.json b/frontend/admin/package.json index 3ca81dc..59cad53 100644 --- a/frontend/admin/package.json +++ b/frontend/admin/package.json @@ -9,9 +9,10 @@ "preview": "vite preview" }, "dependencies": { + "axios": "^1.6.0", + "openai": "^6.27.0", "vue": "^3.4.0", - "vue-router": "^4.2.0", - "axios": "^1.6.0" + "vue-router": "^4.2.0" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.0", diff --git a/frontend/admin/src/router.ts b/frontend/admin/src/router.ts index 2df7166..429f38d 100644 --- a/frontend/admin/src/router.ts +++ b/frontend/admin/src/router.ts @@ -1,5 +1,6 @@ import { createRouter, createWebHistory } from 'vue-router' import Dashboard from './views/Dashboard.vue' +import Chat from './views/Chat.vue' const router = createRouter({ history: createWebHistory('/admin/'), @@ -8,6 +9,11 @@ const router = createRouter({ path: '/', name: 'dashboard', component: Dashboard + }, + { + path: '/chat', + name: 'chat', + component: Chat } ] }) diff --git a/frontend/admin/src/views/Chat.vue b/frontend/admin/src/views/Chat.vue new file mode 100644 index 0000000..1816062 --- /dev/null +++ b/frontend/admin/src/views/Chat.vue @@ -0,0 +1,550 @@ + + + + + diff --git a/frontend/admin/src/views/Dashboard.vue b/frontend/admin/src/views/Dashboard.vue index 4f73255..5b4896e 100644 --- a/frontend/admin/src/views/Dashboard.vue +++ b/frontend/admin/src/views/Dashboard.vue @@ -1,7 +1,10 @@