diff --git a/app/components/chat/MessageContainer.vue b/app/components/chat/MessageContainer.vue index e47fbe2..4c1c84f 100644 --- a/app/components/chat/MessageContainer.vue +++ b/app/components/chat/MessageContainer.vue @@ -53,8 +53,17 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
-
- +
+ +
+
+ +
+
+ +
+
+
diff --git a/app/components/tool/Uses.vue b/app/components/tool/Uses.vue index 9c84ffe..aff8b4a 100644 --- a/app/components/tool/Uses.vue +++ b/app/components/tool/Uses.vue @@ -1,23 +1,37 @@ diff --git a/app/components/uses/Item.vue b/app/components/uses/Item.vue deleted file mode 100644 index cf93866..0000000 --- a/app/components/uses/Item.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/app/components/uses/List.vue b/app/components/uses/List.vue deleted file mode 100644 index 80f9dfd..0000000 --- a/app/components/uses/List.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/content.config.ts b/content.config.ts index 6ffa0b5..a5e56fe 100644 --- a/content.config.ts +++ b/content.config.ts @@ -32,7 +32,7 @@ export const collections = { type: 'data', source: 'uses/categories/*.json', schema: z.object({ - id: z.string(), + slug: z.string(), name: z.object({ en: z.string(), fr: z.string(), diff --git a/content/uses/categories/1.hardware.json b/content/uses/categories/1.hardware.json index 0cf9798..ae84547 100644 --- a/content/uses/categories/1.hardware.json +++ b/content/uses/categories/1.hardware.json @@ -1,5 +1,5 @@ { - "id": "hardware", + "slug": "hardware", "name": { "en": "Hardware", "fr": "Matériel", diff --git a/content/uses/categories/2.software.json b/content/uses/categories/2.software.json index c5a9b4b..d612b80 100644 --- a/content/uses/categories/2.software.json +++ b/content/uses/categories/2.software.json @@ -1,5 +1,5 @@ { - "id": "software", + "slug": "software", "name": { "en": "Software", "fr": "Logiciel", diff --git a/content/uses/categories/3.ide.json b/content/uses/categories/3.ide.json index c32028c..983f290 100644 --- a/content/uses/categories/3.ide.json +++ b/content/uses/categories/3.ide.json @@ -1,5 +1,5 @@ { - "id": "ide", + "slug": "ide", "name": { "en": "IDE & Font", "fr": "IDE & Police", diff --git a/content/uses/categories/4.homelab.json b/content/uses/categories/4.homelab.json index 96acd97..05e0b49 100644 --- a/content/uses/categories/4.homelab.json +++ b/content/uses/categories/4.homelab.json @@ -1,5 +1,5 @@ { - "id": "homelab", + "slug": "homelab", "name": { "en": "My personal HomeLab", "fr": "Mon HomeLab personnel", diff --git a/locales/en.json b/locales/en.json index c708888..17b53e9 100644 --- a/locales/en.json +++ b/locales/en.json @@ -25,20 +25,32 @@ "label": "Change theme", "prompt": "How can I change the theme?" }, - "uses": { - "label": "View setup", - "prompt": "How can I view the setup of Arthur?" + "homelab": { + "label": "Homelab stuff", + "prompt": "How can I view the homelab of Arthur?" + }, + "hardware": { + "label": "Hardware setup", + "prompt": "How can I view the hardware setup of Arthur?" + }, + "software": { + "label": "Softwares and Apps", + "prompt": "Which softwares and apps does Arthur use?" + }, + "ide": { + "label": "IDEs and Font", + "prompt": "Tell me more about the IDE and font that Arthur uses?" }, "stats": { - "label": "View statistics", + "label": "Dev Statistics", "prompt": "How can I view the statistics concerning Arthur?" }, "weather": { - "label": "View weather", + "label": "Weather", "prompt": "How can I view the weather conditions near Arthur?" }, "location": { - "label": "View location", + "label": "Location", "prompt": "How can I view the location of Arthur?" }, "language": { @@ -125,7 +137,12 @@ "secret": "Secret Project" }, "location": "I'm currently based in {location}. See below for more details.", - "uses": "Here is a comprehensive list of all the software I use, gadgets I love, and other things I recommend.", + "uses": { + "hardware": "Here is a list of hardware equipment that Arthur uses", + "software": "Here is the list of software and applications that Arthur uses", + "homelab": "Here is a list of equipment in Arthur's Homelab", + "ide": "Here is the list of IDEs and the font that Arthur uses" + }, "contact": "There are different ways to contact me. Here is a list:", "duplicated": { "title": "⚠️ I detected duplicated messages", diff --git a/locales/es.json b/locales/es.json index 7d90958..5fb6ce7 100644 --- a/locales/es.json +++ b/locales/es.json @@ -25,10 +25,6 @@ "label": "Cambiar tema", "prompt": "¿Cómo puedo cambiar el tema?" }, - "uses": { - "label": "Ver la configuración", - "prompt": "¿Cómo puedo ver la configuración de Arthur?" - }, "stats": { "label": "Ver estadísticas", "prompt": "¿Cómo puedo ver las estadísticas sobre Arthur?" @@ -88,6 +84,22 @@ "credits": { "label": "Créditos", "prompt": "¿Cómo se ha hecho este chat?" + }, + "hardware": { + "label": "Hardware", + "prompt": "¿Cómo puedo ver la configuración de hardware de Arthur?" + }, + "homelab": { + "label": "Cosas de Homelab", + "prompt": "¿Cómo puedo ver el Homelab de Arthur?" + }, + "ide": { + "label": "IDEs y fuente", + "prompt": "¿Cuéntame más sobre el IDE y la fuente que usa Arthur?" + }, + "software": { + "label": "Softwares y aplicaciones", + "prompt": "¿Qué software y aplicaciones usa Arthur?" } }, "chat": { @@ -125,7 +137,6 @@ "secret": "Proyecto Secreto" }, "location": "Actualmente estoy basado en {location}. Consulta más detalles a continuación.", - "uses": "Aquí hay una gran lista de todo el software que uso, gadgets que amo y otras cosas que recomiendo.", "contact": "Existen diferentes formas de contactarme. Aquí hay una lista:", "duplicated": { "title": "⚠️ He detectado mensajes duplicados", @@ -159,6 +170,12 @@ "high": "Alto", "humidity": "Humedad", "wind": "Viento" + }, + "uses": { + "homelab": "Aquí hay una lista de equipos en Homelab de Arthur", + "hardware": "Aquí hay una lista de equipos de hardware que usa Arthur", + "software": "Aquí está la lista de software y aplicaciones que Arthur usa", + "ide": "Aquí está la lista de IDES y la fuente que usa Arthur" } }, "error": { diff --git a/locales/fr.json b/locales/fr.json index 6c58771..425f6d6 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -25,10 +25,6 @@ "label": "Changer de thème", "prompt": "Comment puis-je changer le thème ?" }, - "uses": { - "label": "Voir la configuration", - "prompt": "Comment puis-je voir la configuration d'Arthur ?" - }, "stats": { "label": "Voir les statistiques", "prompt": "Comment puis-je voir les statistiques concernant Arthur ?" @@ -88,6 +84,22 @@ "credits": { "label": "Crédits", "prompt": "Comment est réalisé ce chat ?" + }, + "hardware": { + "label": "Hardware", + "prompt": "Comment puis-je afficher la configuration matérielle d'Arthur?" + }, + "homelab": { + "label": "Homelab stuff", + "prompt": "Comment puis-je voir le Homelab d'Arthur?" + }, + "ide": { + "label": "Ide et police", + "prompt": "Dites-moi plus sur l'IDE et la police qu'Arthur utilise?" + }, + "software": { + "label": "Logiciels et applications", + "prompt": "Quels logiciels et applications Arthur utilise-t-il?" } }, "chat": { @@ -125,7 +137,6 @@ "secret": "Projet Secret" }, "location": "Je suis actuellement basé à {location}. Voir ci-dessous pour plus de détails.", - "uses": "Voici une grande liste de tous mes logiciels que j'utilise, gadgets que j'adore et autres choses que je recommande.", "contact": "Il existe différentes façons de me contacter. Voici une liste :", "duplicated": { "title": "⚠️ J'ai détecté des messages dupliqués", @@ -159,6 +170,12 @@ "high": "Haut", "humidity": "Humidité", "wind": "Vent" + }, + "uses": { + "homelab": "Voici une liste d'équipements dans HomeLab d'Arthur", + "hardware": "Voici une liste d'équipements matériels qu'Arthur utilise", + "ide": "Voici la liste des ides et la police qu'Arthur utilise", + "software": "Voici la liste des logiciels et applications qu'Arthur utilise" } }, "error": { diff --git a/types/chat.ts b/types/chat.ts index 9c1b4c1..d4c5aca 100644 --- a/types/chat.ts +++ b/types/chat.ts @@ -10,7 +10,10 @@ export enum ChatType { EXPERIENCES = 'experiences', SKILLS = 'skills', HOBBIES = 'hobbies', - USES = 'uses', + IDE = 'ide', + HARDWARE = 'hardware', + SOFTWARE = 'software', + HOMELAB = 'homelab', STATUS = 'status', CREDITS = 'credits', CONTACT = 'contact', @@ -176,11 +179,32 @@ export const ChatMessages = [ fetchStates: [ChatFetchState.CHECKING], }, { - label: 'command.uses.label', + label: 'command.hardware.label', icon: 'i-ph-chalkboard-simple-duotone', - prompt: 'command.uses.prompt', - type: ChatType.USES, - fetchStates: [ChatFetchState.FETCHING, ChatFetchState.GENERATING], + prompt: 'command.hardware.prompt', + type: ChatType.HARDWARE, + fetchStates: [ChatFetchState.FETCHING], + }, + { + label: 'command.software.label', + icon: 'i-ph-chalkboard-simple-duotone', + prompt: 'command.software.prompt', + type: ChatType.SOFTWARE, + fetchStates: [ChatFetchState.FETCHING], + }, + { + label: 'command.homelab.label', + icon: 'i-ph-chalkboard-simple-duotone', + prompt: 'command.homelab.prompt', + type: ChatType.HOMELAB, + fetchStates: [ChatFetchState.FETCHING], + }, + { + label: 'command.ide.label', + icon: 'i-ph-chalkboard-simple-duotone', + prompt: 'command.ide.prompt', + type: ChatType.IDE, + fetchStates: [ChatFetchState.FETCHING], }, ].sort((a, b) => a.label.localeCompare(b.label)), },