mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
24 lines
693 B
Vue
24 lines
693 B
Vue
|
<script lang="ts" setup>
|
||
|
import { Chat, ChatWindow } from '@/components';
|
||
|
import { computed, onMounted } from 'vue';
|
||
|
import hljs from 'highlight.js/lib/core';
|
||
|
import hljsXML from 'highlight.js/lib/languages/xml';
|
||
|
import hljsJavascript from 'highlight.js/lib/languages/javascript';
|
||
|
import { useOptions } from '@/composables';
|
||
|
|
||
|
defineProps({});
|
||
|
|
||
|
const { options } = useOptions();
|
||
|
|
||
|
const isFullscreen = computed<boolean>(() => options.mode === 'fullscreen');
|
||
|
|
||
|
onMounted(() => {
|
||
|
hljs.registerLanguage('xml', hljsXML);
|
||
|
hljs.registerLanguage('javascript', hljsJavascript);
|
||
|
});
|
||
|
</script>
|
||
|
<template>
|
||
|
<Chat v-if="isFullscreen" class="n8n-chat" />
|
||
|
<ChatWindow v-else class="n8n-chat" />
|
||
|
</template>
|