feat: ditch triplit, move to postgresql + drizzle orm
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { useAgents } from '~/composables/useAgents';
|
||||
import RowVirtualizerFixed from '~/components/RowVirtualizerFixed.vue';
|
||||
|
||||
const { agents } = useAgents();
|
||||
const { agents } = await useAgents();
|
||||
const route = useRoute();
|
||||
const emit = defineEmits(['close']);
|
||||
|
||||
@@ -134,7 +134,7 @@ onMounted(() => { inputRef.value?.focus(); });
|
||||
<!-- AGENT ROW -->
|
||||
<div v-if="item.type === 'agent'" :id="item.uiId" role="option"
|
||||
:aria-selected="selectedIndex === index" @click="selectItem(item.uiId)"
|
||||
class="group flex items-center px-3 h-10 rounded-md cursor-pointer transition-colors hover:bg-[var(--color-hover)]"
|
||||
class="group flex items-center px-3 h-10 rounded-md cursor-pointer transition-colors @hover:bg-[var(--color-hover)]"
|
||||
:class="selectedIndex === index ? 'bg-[var(--color-hover)] text-[var(--text-primary)]' : 'text-[var(--text-secondary)]'">
|
||||
<div
|
||||
:class="['mr-2 w-[28px] h-[28px] flex-shrink-0 rounded-lg overflow-hidden bg-[var(--bg-surface)] flex items-center justify-center', item?.imageUrl ? '' : 'border border-[var(--color-border)]']">
|
||||
@@ -148,7 +148,7 @@ onMounted(() => { inputRef.value?.focus(); });
|
||||
<!-- TOPIC ROW -->
|
||||
<div v-else :id="item.uiId" role="option" :aria-selected="selectedIndex === index"
|
||||
@click="selectItem(item.uiId)"
|
||||
class="group flex items-center h-10 pr-3 rounded-md cursor-pointer transition-colors relative ml-10 hover:bg-[var(--color-hover)]"
|
||||
class="group flex items-center h-10 pr-3 rounded-md cursor-pointer transition-colors relative ml-10 @hover:bg-[var(--color-hover)]"
|
||||
:class="selectedIndex === index ? 'bg-[var(--color-hover)] text-[var(--text-primary)]' : 'text-[var(--text-secondary)]'">
|
||||
<!-- Visual Tree Lines -->
|
||||
<div class="absolute -left-4 top-0 bottom-0 w-[1px] h-[110%] bg-[var(--text-dim)]"></div>
|
||||
|
||||
Reference in New Issue
Block a user