mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
fix cards index
This commit is contained in:
@@ -201,10 +201,10 @@ function onKeyDown(e: KeyboardEvent) {
|
||||
const menuOpen = ref<boolean>(false);
|
||||
|
||||
const defaultPrompts = [
|
||||
"Create a line chart with this data: \n[100, 200, 30, 300, 500, 40]",
|
||||
"Create a chart with Events (bar) and Visits (line) data from last week.",
|
||||
"What can you do and how can you help me ?",
|
||||
"Show me an example line chart with random data",
|
||||
"How many visits did I get last week?",
|
||||
"Create a line chart of last week's visits."
|
||||
"Create a line chart of last week's visits"
|
||||
]
|
||||
|
||||
async function deleteChat(chat_id: string) {
|
||||
@@ -232,6 +232,15 @@ async function clearAllChats() {
|
||||
headers: useComputedHeaders({ useSnapshotDates: false }).value
|
||||
});
|
||||
await reloadChatsList();
|
||||
|
||||
menuOpen.value = false;
|
||||
typer.stop();
|
||||
canSend.value = true;
|
||||
currentChatMessages.value = [];
|
||||
currentChatMessageDelta.value = '';
|
||||
currentChatId.value = '';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,16 +33,12 @@ const showDashboard = computed(() => project.value && firstInteraction.data.valu
|
||||
|
||||
const selfhosted = useSelfhosted();
|
||||
|
||||
const { showDrawer } = useDrawer();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<div class="dashboard w-full h-full overflow-y-auto overflow-x-hidden pb-[7rem] md:pt-4 lg:pt-0">
|
||||
|
||||
<div @click="showDrawer('DOCS','!w-[30vw] !min-w-[30vw]')">
|
||||
test
|
||||
</div>
|
||||
|
||||
<div v-if="showDashboard">
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
definePageMeta({ layout: 'dashboard' });
|
||||
|
||||
const projectName = ref<string>("");
|
||||
const creating = ref<boolean>(false);
|
||||
@@ -8,15 +7,18 @@ const creating = ref<boolean>(false);
|
||||
const router = useRouter();
|
||||
|
||||
const { projectList, actions } = useProject();
|
||||
|
||||
const isFirstProject = computed(() => { return projectList.value?.length == 0; })
|
||||
|
||||
definePageMeta({ layout: 'none' });
|
||||
|
||||
|
||||
import { Lit } from 'litlyx-js';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
onMounted(() => {
|
||||
if (route.query.just_logged) return location.href = '/project_creation';
|
||||
setPageLayout(isFirstProject.value ? 'none' : 'dashboard');
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user