mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 20:59:51 +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:
@@ -16,11 +16,31 @@ export enum ChatType {
|
||||
STATS = 'stats',
|
||||
ACTIVITY = 'activity',
|
||||
RESUME = 'resume',
|
||||
INIT = 'init',
|
||||
}
|
||||
|
||||
export enum ChatState {
|
||||
SENT = 'sent',
|
||||
LOADING = 'loading',
|
||||
}
|
||||
|
||||
export enum ChatSender {
|
||||
USER = 'user',
|
||||
ARTHUR = 'arthur',
|
||||
}
|
||||
|
||||
export enum ChatFetchState {
|
||||
THINKING = 'Thinking...',
|
||||
FETCHING = 'Fetching the data...',
|
||||
GENERATING = 'Generating the component...',
|
||||
DONE = 'Done!',
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
id: number
|
||||
content: string
|
||||
sender: string
|
||||
content: string | null
|
||||
sender: ChatSender
|
||||
type: ChatType
|
||||
state: ChatState
|
||||
fetchStates?: ChatFetchState[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user