refactor: cleanup
This commit is contained in:
@@ -86,14 +86,12 @@ export default class Server {
|
|||||||
|
|
||||||
//middlewares
|
//middlewares
|
||||||
this.express.use(compression());
|
this.express.use(compression());
|
||||||
// await registerOpenApiFirst(this.express, this.config);
|
|
||||||
this.express.use(session(getSessionSettings(this.config, sessionStore)));
|
this.express.use(session(getSessionSettings(this.config, sessionStore)));
|
||||||
this.express.use(sessionUserdataMiddleware());
|
this.express.use(sessionUserdataMiddleware());
|
||||||
this.express.use(express.json());
|
this.express.use(express.json());
|
||||||
registerRoutes(this.express, this.config, this.expressWsInstance);
|
registerRoutes(this.express, this.config, this.expressWsInstance);
|
||||||
this.express.use(errorLogHandler());
|
this.express.use(errorLogHandler());
|
||||||
this.express.use(apiErrorHandler());
|
this.express.use(apiErrorHandler());
|
||||||
// registerOpenApiLast(this.express);
|
|
||||||
this.express.use(uncaughtErrorHandler());
|
this.express.use(uncaughtErrorHandler());
|
||||||
|
|
||||||
const expressWsProviderFactory = () => new ExpressWsProvider(this.expressWsInstance!);
|
const expressWsProviderFactory = () => new ExpressWsProvider(this.expressWsInstance!);
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import AiInstanceComponent from '@/components/dashboard/AiInstanceComponent.vue'
|
|||||||
import Alert from '@/components/Bootstrap/Alert.vue';
|
import Alert from '@/components/Bootstrap/Alert.vue';
|
||||||
import {AiInstanceVmV1} from 'ai-oas';
|
import {AiInstanceVmV1} from 'ai-oas';
|
||||||
import {AiInstanceStore} from '@/stores/AiInstanceStore';
|
import {AiInstanceStore} from '@/stores/AiInstanceStore';
|
||||||
import {storeToRefs} from 'pinia';
|
|
||||||
|
|
||||||
@Options({
|
@Options({
|
||||||
name: 'AiInstanceTabs',
|
name: 'AiInstanceTabs',
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export default class Chat extends Vue {
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="waiting">
|
<div v-if="waiting">
|
||||||
<b>{{ message!.name }}</b>{{ ': ' + message!.content }}
|
<b>{{ message!.name }}</b>{{ ': ' + message!.content }}
|
||||||
<Spinner style="text-secondary" :size="1"/>
|
<Spinner :style="'text-secondary'" :size="1"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user