Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base
better icons
Hugo Richard212539d844ab
diff --git a/apps/chat/app/assets/icons/custom/api-access.svg b/apps/chat/app/assets/icons/custom/api-access.svgnew file mode 100644index 0000000..7f2f0c2--- /dev/null+++ b/apps/chat/app/assets/icons/custom/api-access.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-1.5 -1.5 23 23"><g fill="currentColor"><path d="m17.447,8.605l-1.278-.639c-.101-.307-.227-.602-.371-.887l.453-1.359c.12-.359.026-.756-.242-1.023l-.707-.707c-.268-.269-.664-.363-1.023-.242l-1.359.453c-.285-.144-.58-.269-.887-.371l-.639-1.278c-.169-.339-.516-.553-.895-.553h-1c-.379,0-.725.214-.895.553l-.639,1.278c-.307.101-.602.227-.887.371l-1.359-.453c-.361-.121-.756-.026-1.023.242l-.707.707c-.268.268-.361.664-.242,1.023l.453,1.359c-.144.285-.269.58-.371.887l-1.278.639c-.339.169-.553.516-.553.895v1c0,.379.214.725.553.895l1.278.639c.101.307.227.602.371.887l-.453,1.359c-.12.359-.026.756.242,1.023l.707.707c.19.191.446.293.707.293.106,0,.212-.017.316-.051l1.359-.453c.285.144.58.269.887.371l.639,1.278c.169.339.516.553.895.553h1c.379,0,.725-.214.895-.553l.639-1.278c.307-.101.602-.227.887-.371l1.359.453c.104.035.21.051.316.051.261,0,.517-.103.707-.293l.707-.707c.268-.268.361-.664.242-1.023l-.453-1.359c.144-.285.269-.58.371-.887l1.278-.639c.339-.169.553-.516.553-.895v-1c0-.379-.214-.725-.553-.895Zm-6.447,2.617v1.277c0,.552-.448,1-1,1s-1-.448-1-1v-1.277c-.595-.346-1-.984-1-1.723,0-1.105.895-2,2-2s2,.895,2,2c0,.738-.405,1.376-1,1.723Z" stroke-width="0"></path></g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/bot.svg b/apps/chat/app/assets/icons/custom/bot.svgnew file mode 100644index 0000000..6257726--- /dev/null+++ b/apps/chat/app/assets/icons/custom/bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-2 -2 28 28"><g fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1V5H6V1H8Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M8 19V23H6V19H8Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M18 1V5H16V1H18Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M18 19V23H16V19H18Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M13 1V5H11V1H13Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M13 19V23H11V19H13Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M23 8L19 8L19 6L23 6L23 8Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 8L1 8L1 6L5 6L5 8Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M23 18L19 18L19 16L23 16L23 18Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 18L1 18L1 16L5 16L5 18Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M23 13L19 13L19 11L23 11L23 13Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 13L1 13L1 11L5 11L5 13Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M3 6C3 4.34315 4.34315 3 6 3H18C19.6569 3 21 4.34315 21 6V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6ZM12 7L13.5 10.5L17 12L13.5 13.5L12 17L10.5 13.5L7 12L10.5 10.5L12 7Z"></path> </g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/box.svg b/apps/chat/app/assets/icons/custom/box.svgnew file mode 100644index 0000000..3f2e30c--- /dev/null+++ b/apps/chat/app/assets/icons/custom/box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-2 -2 28 28"><g fill="currentColor"> <path d="M21.7208 8H2.2793L3.59553 4.05132C4.00387 2.82629 5.15028 2 6.44157 2H17.5585C18.8498 2 19.9962 2.82629 20.4046 4.05132L21.7208 8Z"></path> <path d="M13 15.0858L15 13.0858L16.4142 14.5L12 18.9142L7.58579 14.5L9 13.0858L11 15.0858L11 10H2V19C2 20.6569 3.34315 22 5 22L19 22C20.6569 22 22 20.6569 22 19L22 10H13L13 15.0858Z"></path> </g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/chart.svg b/apps/chat/app/assets/icons/custom/chart.svgnew file mode 100644index 0000000..1e61055--- /dev/null+++ b/apps/chat/app/assets/icons/custom/chart.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-1.5 -1.5 23 23"><g fill="currentColor"><line x1="7" y1="13" x2="7" y2="8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></line><line x1="11" y1="13" x2="11" y2="11" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></line><line x1="15" y1="13" x2="15" y2="5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></line><path d="m3,3v11c0,1.6569,1.3431,3,3,3h11" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/chat.svg b/apps/chat/app/assets/icons/custom/chat.svgnew file mode 100644index 0000000..513b1cb--- /dev/null+++ b/apps/chat/app/assets/icons/custom/chat.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-1.5 -1.5 23 23"><g fill="currentColor"><path d="m10,2C5.589,2,2,5.589,2,10c0,1.44.388,2.789,1.057,3.958l-1.018,3.055c-.09.27-.02.567.181.768.143.143.334.22.53.22.08,0,.16-.013.237-.039l3.055-1.018c1.169.669,2.518,1.057,3.958,1.057,4.411,0,8-3.589,8-8S14.411,2,10,2Z" stroke-width="0"></path></g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/docs.svg b/apps/chat/app/assets/icons/custom/docs.svgnew file mode 100644index 0000000..d17d1a4--- /dev/null+++ b/apps/chat/app/assets/icons/custom/docs.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-2 -2 28 28"><g fill="currentColor"><path d="m19,2H5c-1.654,0-3,1.346-3,3v14c0,1.654,1.346,3,3,3h14c1.654,0,3-1.346,3-3V5c0-1.654-1.346-3-3-3Zm-3,12l-4-3.333-4,3.333V4h8v10Z" stroke-width="0"></path></g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/sdk.svg b/apps/chat/app/assets/icons/custom/sdk.svgnew file mode 100644index 0000000..348239a--- /dev/null+++ b/apps/chat/app/assets/icons/custom/sdk.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="-1.5 -1.5 21 21"><g fill="currentColor"><path d="m10.5,17c-.1924,0-.3838-.0732-.5303-.2197-.293-.293-.293-.7676,0-1.0605l1.7197-1.7197-1.7197-1.7197c-.293-.293-.293-.7676,0-1.0605s.7676-.293,1.0605,0l2.25,2.25c.293.293.293.7676,0,1.0605l-2.25,2.25c-.1465.1465-.3379.2197-.5303.2197Z" stroke-width="0"></path><path d="m14.157,5.8259c-1.524-.6018-3.4487-.3259-5.032,1.0698.25-1.2708,2.2868-2.8899,4.398-2.7878-.913-1.561-2.601-2.6079-4.494-2.6079-2.885,0-5.231,2.355-5.231,5.25,0,.125.005.25.016.377-1.645.418-2.849,1.9341-2.812,3.707.021,1,.429,1.9312,1.1479,2.624.2571.2476.5498.4385.8557.6003-.0005-.0198-.0057-.0386-.0057-.0583,0-.6011.2344-1.166.6592-1.5908l2.25-2.25c.4248-.4253.9902-.6592,1.5908-.6592.5609,0,1.0863.2112,1.5.5845.4137-.3733.9391-.5845,1.5-.5845.6006,0,1.166.2339,1.5908.6592l2.25,2.25c.3661.3662.5801.8384.6353,1.3462,1.217-.8057,2.0239-2.186,2.0239-3.7563-.003-1.8589-1.131-3.4961-2.843-4.1731Z" stroke-width="0"></path><path d="m7.5,17c-.1924,0-.3838-.0732-.5303-.2197l-2.25-2.25c-.293-.293-.293-.7676,0-1.0605l2.25-2.25c.293-.293.7676-.293,1.0605,0s.293.7676,0,1.0605l-1.7197,1.7197,1.7197,1.7197c.293.293.293.7676,0,1.0605-.1465.1465-.3379.2197-.5303.2197Z" stroke-width="0"></path></g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/shield.svg b/apps/chat/app/assets/icons/custom/shield.svgnew file mode 100644index 0000000..f2f30e7--- /dev/null+++ b/apps/chat/app/assets/icons/custom/shield.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-2 -2 28 28"><g fill="currentColor"> <path d="M14.5859 11.5L12 14.0859L9.41406 11.5L12 8.91406L14.5859 11.5Z"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M22 4V12.25C22 16.1125 19.4234 18.8114 17.0781 20.4727C15.5288 21.5701 13.8033 22.4545 12 23.0537C10.1968 22.4526 8.47193 21.5706 6.92188 20.4727C4.57662 18.8114 2 16.1125 2 12.25V4L12 1.5L22 4ZM6.58594 11.5L12 16.9141L17.4141 11.5L12 6.08594L6.58594 11.5Z"></path> </g></svg>\ No newline at end of filediff --git a/apps/chat/app/assets/icons/custom/terminal.svg b/apps/chat/app/assets/icons/custom/terminal.svgnew file mode 100644index 0000000..77eb7cb--- /dev/null+++ b/apps/chat/app/assets/icons/custom/terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-1.5 -1.5 23 23"><g fill="currentColor"><rect x="3" y="3" width="14" height="14" rx="3" ry="3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></rect><polyline points="6.5 7 9.5 10 6.5 13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></polyline><line x1="11" y1="13" x2="13.5" y2="13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></line></g></svg>\ No newline at end of filediff --git a/apps/chat/app/components/ChatModeTabs.vue b/apps/chat/app/components/ChatModeTabs.vueindex 2a6f77f..fe2a820 100644--- a/apps/chat/app/components/ChatModeTabs.vue+++ b/apps/chat/app/components/ChatModeTabs.vue@@ -1,46 +1,61 @@<script setup lang="ts">-import type { TabsItem } from '@nuxt/ui'-const { isAdmin } = useAdmin()const { mode, setMode } = useChatMode()-const items: TabsItem[] = [+const items = [{label: 'Chat',- icon: 'i-lucide-message-circle',+ icon: 'i-custom-chat',value: 'chat',},{label: 'Admin',- icon: 'i-lucide-shield',+ icon: 'i-custom-shield',value: 'admin',},]-function onUpdate(value: string | number) {- const newMode = value as 'chat' | 'admin'+const tabRefs = useTemplateRef<HTMLButtonElement[]>('tabRefs')+const indicatorStyle = ref<Record<string, string>>({})++function updateIndicator() {+ const idx = items.findIndex(i => i.value === mode.value)+ const el = tabRefs.value?.[idx]+ if (!el) return+ indicatorStyle.value = {+ width: `${el.offsetWidth}px`,+ transform: `translateX(${el.offsetLeft}px)`,+ }+}++watch(mode, () => nextTick(updateIndicator))+onMounted(updateIndicator)++function onUpdate(value: string) {const currentMode = mode.value- setMode(newMode)- if (newMode !== currentMode) {+ setMode(value as 'chat' | 'admin')+ if (value !== currentMode) {navigateTo('/')}}</script><template>- <div v-if="isAdmin" class="flex justify-center">- <UTabs- :items- :model-value="mode"- :content="false"- variant="pill"- size="sm"- color="neutral"- :ui="{- root: 'w-auto',- list: 'bg-transparent',- }"- @update:model-value="onUpdate"+ <div v-if="isAdmin" class="relative flex items-center gap-1">+ <div+ class="absolute top-0 left-0 h-full rounded-md bg-elevated transition-all duration-200 ease-out"+ :style="indicatorStyle"/>+ <button+ v-for="item in items"+ :key="item.value"+ ref="tabRefs"+ class="relative flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs transition-colors"+ :class="mode === item.value ? 'text-highlighted' : 'text-muted hover:text-highlighted'"+ @click="onUpdate(item.value)"+ >+ <UIcon :name="item.icon" class="size-3" />+ {{ item.label }}+ </button></div></template>diff --git a/apps/chat/app/components/ChatToolCall.vue b/apps/chat/app/components/ChatToolCall.vuedeleted file mode 100644index 3946cd3..0000000--- a/apps/chat/app/components/ChatToolCall.vue+++ /dev/null@@ -1,63 +0,0 @@-<script setup lang="ts">-import { motion } from 'motion-v'--const props = defineProps<{- text: string- isLoading?: boolean- compact?: boolean-}>()--const dynamicSpread = computed(() => props.text.length * 2)-</script>--<template>- <motion.div- :initial="{ opacity: 0, y: 4 }"- :animate="{ opacity: 1, y: 0 }"- :transition="{ duration: 0.2 }"- class="flex items-center rounded-lg bg-elevated/50 border border-default text-muted"- :class="[- compact ? 'gap-1.5 px-2 py-1 text-[10px]' : 'gap-2 px-2.5 py-1.5 text-xs',- ]"- >- <UIcon- :name="isLoading ? 'i-lucide-loader-circle' : 'i-lucide-file-text'"- :class="[isLoading && 'animate-spin']"- class="shrink-0 text-muted"- :style="{ width: compact ? '12px' : '16px', height: compact ? '12px' : '16px' }"- />- <span- class="truncate"- :class="[- isLoading && 'shimmer-text',- ]"- :style="isLoading ? {- '--spread': `${dynamicSpread}px`,- 'backgroundImage': 'var(--bg), linear-gradient(var(--color-neutral-600), var(--color-neutral-600))',- } : undefined"- >- {{ text }}- </span>- </motion.div>-</template>--<style scoped>-.shimmer-text {- --bg: linear-gradient(90deg, #0000 calc(50% - var(--spread)), var(--color-neutral-100), #0000 calc(50% + var(--spread)));- background-size: 250% 100%, auto;- background-clip: text;- -webkit-background-clip: text;- color: transparent;- background-repeat: no-repeat, padding-box;- animation: shimmer 2s linear infinite;-}--@keyframes shimmer {- from {- background-position: 100% center;- }- to {- background-position: 0% center;- }-}-</style>diff --git a/apps/chat/app/components/ModelSelect.vue b/apps/chat/app/components/ModelSelect.vueindex b4354e4..6f90ec2 100644--- a/apps/chat/app/components/ModelSelect.vue+++ b/apps/chat/app/components/ModelSelect.vue@@ -10,7 +10,7 @@ const providerIcons: Record<string, string> = {function getProviderIcon(modelId: string) {const [provider = ''] = modelId.split('/')- return providerIcons[provider] || 'i-lucide-bot'+ return providerIcons[provider] || 'i-custom-bot'}const items = computed(() => models.map(m => ({diff --git a/apps/chat/app/layouts/default.vue b/apps/chat/app/layouts/default.vueindex 0c6c1f8..162d2ab 100644--- a/apps/chat/app/layouts/default.vue+++ b/apps/chat/app/layouts/default.vue@@ -34,7 +34,7 @@ const { data: chats, refresh: refreshChats } = await useFetch('/api/chats', {label: chat.title || 'Generating title…',generating: !chat.title,to: `/chat/${chat.id}`,- icon: chat.mode === 'admin' ? 'i-lucide-shield' : 'i-lucide-message-circle',+ icon: chat.mode === 'admin' ? 'i-custom-shield' : 'i-custom-chat',mode: chat.mode,createdAt: chat.createdAt,isPublic: chat.isPublic,@@ -80,24 +80,24 @@ function chatContextItems(chat: UIChat) {const adminNavigation = [[{ label: 'General', type: 'label' as const },- { label: 'Sources', icon: 'i-lucide-database', to: '/admin', exact: true },- { label: 'Assistant', icon: 'i-lucide-bot', to: '/admin/agent' },+ { label: 'Sources', icon: 'i-custom-docs', to: '/admin', exact: true },+ { label: 'Assistant', icon: 'i-custom-bot', to: '/admin/agent' },],[{ label: 'System', type: 'label' as const },- { label: 'Sandbox', icon: 'i-lucide-box', to: '/admin/sandbox' },- { label: 'Statistics', icon: 'i-lucide-bar-chart-3', to: '/admin/stats' },- { label: 'Logs', icon: 'i-lucide-scroll-text', to: '/admin/logs' },- { label: 'API Keys', icon: 'i-lucide-key', to: '/admin/api-keys' },+ { label: 'Sandbox', icon: 'i-custom-box', to: '/admin/sandbox' },+ { label: 'Statistics', icon: 'i-custom-chart', to: '/admin/stats' },+ { label: 'Logs', icon: 'i-custom-terminal', to: '/admin/logs' },+ { label: 'API Keys', icon: 'i-custom-api-access', to: '/admin/api-keys' },],[{ label: 'Documentation', type: 'label' as const },{ label: 'Getting Started', icon: 'i-lucide-rocket', to: '/admin/docs/getting-started' },- { label: 'API Keys', icon: 'i-lucide-key', to: '/admin/docs/api-keys' },- { label: 'SDK', icon: 'i-lucide-code', to: '/admin/docs/sdk' },+ { label: 'API Keys', icon: 'i-custom-api-access', to: '/admin/docs/api-keys' },+ { label: 'SDK', icon: 'i-custom-sdk', to: '/admin/docs/sdk' },{ label: 'GitHub Bot', icon: 'i-simple-icons-github', to: '/admin/docs/github-bot' },{ label: 'Discord Bot', icon: 'i-simple-icons-discord', to: '/admin/docs/discord-bot' },- { label: 'Admin Mode', icon: 'i-lucide-shield', to: '/admin/docs/admin-mode' },+ { label: 'Admin Mode', icon: 'i-custom-shield', to: '/admin/docs/admin-mode' },],]@@ -311,7 +311,7 @@ defineShortcuts({]"@click="open = false">- <UIcon v-if="(chat as any).mode === 'admin'" name="i-lucide-shield" class="size-4 shrink-0" />+ <UIcon v-if="(chat as any).mode === 'admin'" name="i-custom-shield" class="size-4 shrink-0" /><TextScramble v-if="chat.generating" /><span v-else class="truncate">{{ chat.label }}</span></NuxtLink>diff --git a/apps/chat/app/pages/admin/index.vue b/apps/chat/app/pages/admin/index.vueindex a667209..339c086 100644--- a/apps/chat/app/pages/admin/index.vue+++ b/apps/chat/app/pages/admin/index.vue@@ -279,7 +279,7 @@ const hasSources = computed(() => (sources.value?.github?.count || 0) + (sourcesclass="flex flex-col items-center py-16 border border-dashed border-default rounded-lg"><div class="size-10 rounded-lg bg-elevated flex items-center justify-center mb-4">- <UIcon name="i-lucide-database" class="size-5 text-muted" aria-hidden="true" />+ <UIcon name="i-custom-docs" class="size-5 text-muted" aria-hidden="true" /></div><p class="text-sm font-medium text-highlighted mb-1">No sources yetdiff --git a/apps/chat/app/pages/admin/stats.vue b/apps/chat/app/pages/admin/stats.vueindex 6d331e4..b627bca 100644--- a/apps/chat/app/pages/admin/stats.vue+++ b/apps/chat/app/pages/admin/stats.vue@@ -634,7 +634,7 @@ function getModelCost(modelId: string): number | null {<div v-else class="flex flex-col items-center py-16 border border-dashed border-default rounded-lg"><div class="size-10 rounded-lg bg-elevated flex items-center justify-center mb-4">- <UIcon name="i-lucide-bar-chart-3" class="size-5 text-muted" aria-hidden="true" />+ <UIcon name="i-custom-chart" class="size-5 text-muted" aria-hidden="true" /></div><p class="text-sm font-medium text-highlighted mb-1">No statistics availablediff --git a/apps/chat/app/pages/index.vue b/apps/chat/app/pages/index.vueindex c49aafd..78e2ddc 100644--- a/apps/chat/app/pages/index.vue+++ b/apps/chat/app/pages/index.vue@@ -71,7 +71,7 @@ const chatQuickChats = [},{label: 'What are Nitro cache options and how to use them with Nuxt routeRules?',- icon: 'i-lucide-database'+ icon: 'i-custom-docs'},{label: 'How does ofetch work and what\'s the difference with Nuxt useFetch?',@@ -82,7 +82,7 @@ const chatQuickChats = [const adminQuickChats = [{label: 'Chart the daily token usage by model over the last 30 days',- icon: 'i-lucide-bar-chart-3'+ icon: 'i-custom-chart'},{label: 'Show app health: error rate, latency p95, and slowest endpoints',diff --git a/apps/chat/app/pages/settings/index.vue b/apps/chat/app/pages/settings/index.vueindex b2bbc97..b044e48 100644--- a/apps/chat/app/pages/settings/index.vue+++ b/apps/chat/app/pages/settings/index.vue@@ -324,7 +324,7 @@ async function deleteAccount() {<div class="rounded-lg border border-default divide-y divide-default"><NuxtLink to="/settings/api-keys" class="flex items-center justify-between gap-4 px-4 py-3 hover:bg-elevated/50 transition-colors"><div class="flex items-center gap-3">- <UIcon name="i-lucide-key" class="size-5 text-highlighted" />+ <UIcon name="i-custom-api-access" class="size-5 text-highlighted" /><div><p class="text-sm text-highlighted">API Keys