From 3fa4f574d3c9d8bc52916e1e5ec568fc4eb6ff91 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 2 Sep 2025 17:45:01 +0200 Subject: [PATCH] refactor: update ESLint configuration and remove unused dependencies - Replaced Nuxt ESLint configuration with Antfu's ESLint config. - Removed 'nuxt-visitors' module from Nuxt configuration. - Added linting scripts to package.json for easier code quality checks. - Introduced a new API endpoint for fetching weather data from OpenWeather. - Enhanced chat types with new enums and properties for better state management. - Added OpenWeather response types for improved type safety. - Updated social links in types/index.ts to include an email contact. --- .env.example | 15 - app/app.vue | 1 - app/components/AppTitle.vue | 25 -- app/components/AppVisitors.vue | 20 -- app/components/chat/CommandPalette.vue | 436 ++++++++++++++++------- app/components/chat/Loading.vue | 55 ++- app/components/chat/MessageContainer.vue | 76 +++- app/components/chat/Prompt.vue | 13 - app/components/chat/Typing.vue | 34 ++ app/components/tool/Contact.vue | 43 +++ app/components/tool/Weather.vue | 99 ++++- app/composables/chat.ts | 161 +++++++++ app/pages/index.vue | 105 ++++-- app/stores/chat.ts | 43 ++- bun.lock | 83 ++++- eslint.config.mjs | 7 +- nuxt.config.ts | 13 +- package.json | 5 +- server/api/weather/index.get.ts | 26 ++ types/chat.ts | 24 +- types/index.ts | 2 + types/openweather.ts | 25 ++ 22 files changed, 1032 insertions(+), 279 deletions(-) delete mode 100644 .env.example delete mode 100644 app/components/AppTitle.vue delete mode 100644 app/components/AppVisitors.vue delete mode 100644 app/components/chat/Prompt.vue create mode 100644 app/components/chat/Typing.vue create mode 100644 app/components/tool/Contact.vue create mode 100644 app/composables/chat.ts create mode 100644 server/api/weather/index.get.ts create mode 100644 types/openweather.ts diff --git a/.env.example b/.env.example deleted file mode 100644 index 6701a0b..0000000 --- a/.env.example +++ /dev/null @@ -1,15 +0,0 @@ -NUXT_DISCORD_ID= -NUXT_DISCORD_TOKEN= -NUXT_DISCORD_USER_ID= - -NUXT_HUB_ENV= -NUXT_HUB_PROJECT_KEY= - -NUXT_PUBLIC_I18N_BASE_URL= -NUXT_PUBLIC_SITE_URL= - -NUXT_WAKATIME_CODING= -NUXT_WAKATIME_EDITORS= -NUXT_WAKATIME_LANGUAGES= -NUXT_WAKATIME_OS= -NUXT_WAKATIME_USER_ID= diff --git a/app/app.vue b/app/app.vue index 37169a4..8a0491d 100644 --- a/app/app.vue +++ b/app/app.vue @@ -8,7 +8,6 @@ useHead({ - diff --git a/app/components/AppTitle.vue b/app/components/AppTitle.vue deleted file mode 100644 index 06bf2c1..0000000 --- a/app/components/AppTitle.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/app/components/AppVisitors.vue b/app/components/AppVisitors.vue deleted file mode 100644 index 889ec75..0000000 --- a/app/components/AppVisitors.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/app/components/chat/CommandPalette.vue b/app/components/chat/CommandPalette.vue index 42faf89..234ddf2 100644 --- a/app/components/chat/CommandPalette.vue +++ b/app/components/chat/CommandPalette.vue @@ -1,108 +1,60 @@