From 341ec0e44e0f893f6fe9d6429e8c55fe697c04b8 Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Tue, 28 May 2024 17:26:46 +0200 Subject: [PATCH] refactor: cleanup --- backend/src/server.ts | 2 -- frontend/src/components/dashboard/AiInstanceTabs.vue | 1 - frontend/src/components/dashboard/Chat.vue | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/server.ts b/backend/src/server.ts index 3c59388..4ba1fc3 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -86,14 +86,12 @@ export default class Server { //middlewares this.express.use(compression()); - // await registerOpenApiFirst(this.express, this.config); this.express.use(session(getSessionSettings(this.config, sessionStore))); this.express.use(sessionUserdataMiddleware()); this.express.use(express.json()); registerRoutes(this.express, this.config, this.expressWsInstance); this.express.use(errorLogHandler()); this.express.use(apiErrorHandler()); - // registerOpenApiLast(this.express); this.express.use(uncaughtErrorHandler()); const expressWsProviderFactory = () => new ExpressWsProvider(this.expressWsInstance!); diff --git a/frontend/src/components/dashboard/AiInstanceTabs.vue b/frontend/src/components/dashboard/AiInstanceTabs.vue index 0ea5dcf..dcec71b 100644 --- a/frontend/src/components/dashboard/AiInstanceTabs.vue +++ b/frontend/src/components/dashboard/AiInstanceTabs.vue @@ -4,7 +4,6 @@ import AiInstanceComponent from '@/components/dashboard/AiInstanceComponent.vue' import Alert from '@/components/Bootstrap/Alert.vue'; import {AiInstanceVmV1} from 'ai-oas'; import {AiInstanceStore} from '@/stores/AiInstanceStore'; -import {storeToRefs} from 'pinia'; @Options({ name: 'AiInstanceTabs', diff --git a/frontend/src/components/dashboard/Chat.vue b/frontend/src/components/dashboard/Chat.vue index 90e751d..62a1ce0 100644 --- a/frontend/src/components/dashboard/Chat.vue +++ b/frontend/src/components/dashboard/Chat.vue @@ -65,7 +65,7 @@ export default class Chat extends Vue {
{{ message!.name }}{{ ': ' + message!.content }} - +