-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.vue
More file actions
28 lines (25 loc) · 985 Bytes
/
index.vue
File metadata and controls
28 lines (25 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
<client-only>
<Widget :chatfaqWs="chatfaqWS" :chatfaqApi="chatfaqAPI" :fsmDef="fsmDef" :title="title"
:subtitle="subtitle" enable-logout :allow-attachments="true"
:hideSources="hideSources" :stateOverride="stateOverride" :widgetConfigId="widgetId"
splitScreenIframe="http://localhost:3001/right-panel"
/>
</client-only>
</template>
<script setup>
import { onMounted } from 'vue';
const conf = useRuntimeConfig()
const chatfaqWS = ref(conf.public.chatfaqWS)
const chatfaqAPI = ref(conf.public.chatfaqAPI)
const title = ref("Hello there 👋")
const subtitle = ref("How can we help you?")
const fsmDef = ref("cawl_fsm")
const hideSources = ref(false)
const stateOverride = ref(null)
const widgetId = ref("6a5fb833-cdcf-468a-ac22-8f1c2b7b1672")
onMounted(() => {
const urlParams = new URLSearchParams(window.location.search);
stateOverride.value = urlParams.get('state_override');
})
</script>