From 48e6043205d9ded7ab217d5907c4beb58c7f352d Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 3 Oct 2025 20:32:05 +0200 Subject: [PATCH] chore: add wrangler dependency to package.json --- .gitignore | 2 + app/components/chat/CommandPalette.vue | 6 +- app/components/chat/Loading.vue | 2 +- app/components/chat/Main.vue | 2 +- app/components/chat/MessageContainer.vue | 2 +- app/components/chat/MessageFromArthur.vue | 12 +- app/components/post/Alert.vue | 2 +- app/components/post/Footer.vue | 2 +- app/components/tool/Activity.vue | 2 +- app/components/tool/Contact.vue | 2 +- app/components/tool/Credits.vue | 2 +- app/components/tool/Duplicated.vue | 2 +- app/components/tool/Experiences.vue | 2 +- app/components/tool/Hobbies.vue | 2 +- app/components/tool/Language.vue | 2 +- app/components/tool/Projects.vue | 2 +- app/components/tool/Resume.vue | 2 +- app/components/tool/Skills.vue | 2 +- app/components/tool/Stats.vue | 2 +- app/components/tool/Theme.vue | 2 +- app/components/tool/Uses.vue | 2 +- app/components/tool/Weather.vue | 2 +- app/components/tool/Writings.vue | 2 +- app/composables/language.ts | 2 +- app/error.vue | 2 +- app/pages/index.vue | 2 +- app/pages/projects/[slug].vue | 2 +- app/pages/projects/index.vue | 2 +- app/pages/writings/[slug].vue | 2 +- app/pages/writings/index.vue | 2 +- bun.lock | 137 ++++++++++++++++++++++ package.json | 3 +- 32 files changed, 182 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 7527f52..c5e39cf 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ logs .env .env.* !.env.example + +.wrangler diff --git a/app/components/chat/CommandPalette.vue b/app/components/chat/CommandPalette.vue index 24be324..68584d7 100644 --- a/app/components/chat/CommandPalette.vue +++ b/app/components/chat/CommandPalette.vue @@ -15,7 +15,7 @@ const searchTerm = ref('') const openMessageModal = ref(false) const openClearModal = ref(false) -const { t, locale } = useI18n() +const { t, locale } = useI18n({ useScope: 'global' }) const { messages, submitMessage } = useChat() const { clearMessages, messages: storeMessages } = useChatStore() @@ -72,7 +72,7 @@ const toolTipContent = { align: 'center', side: 'top', sideOffset: 0, -} +} as any const router = useRouter() function goHome() { @@ -134,7 +134,7 @@ function isRoute(name: string): boolean {
- {{ t(item.label) }} + {{ t(item.label || '') }}
{{ t(item.prompt) }} diff --git a/app/components/chat/Loading.vue b/app/components/chat/Loading.vue index 88428b6..fb59ae5 100644 --- a/app/components/chat/Loading.vue +++ b/app/components/chat/Loading.vue @@ -5,7 +5,7 @@ import { ChatState } from '~~/types' const props = defineProps<{ messageId: number, fetchStates: ChatFetchState[] }>() const currentState = ref(props.fetchStates[0] ?? undefined) const { setLoadingState } = useChatStore() -const { t } = useI18n() +const { t } = useI18n({ useScope: 'global' }) onMounted(() => { let index = 0 diff --git a/app/components/chat/Main.vue b/app/components/chat/Main.vue index c6ff12d..294f421 100644 --- a/app/components/chat/Main.vue +++ b/app/components/chat/Main.vue @@ -1,5 +1,5 @@