mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-30 01:28:13 +01:00
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.
This commit is contained in:
25
types/openweather.ts
Normal file
25
types/openweather.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export interface OpenWeatherResponse {
|
||||
name: string
|
||||
main: {
|
||||
temp: number
|
||||
temp_min: number
|
||||
temp_max: number
|
||||
humidity: number
|
||||
}
|
||||
wind: {
|
||||
speed: number
|
||||
}
|
||||
weather: {
|
||||
description: string
|
||||
}[]
|
||||
};
|
||||
|
||||
export interface Weather {
|
||||
location: string
|
||||
temperature: number
|
||||
temp_min: number
|
||||
temp_max: number
|
||||
humidity: number
|
||||
wind: number
|
||||
description: string
|
||||
};
|
||||
Reference in New Issue
Block a user