forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: Import and use constants from "meta.ts" instead of "agentConfig"
The changes involve importing and using constants from a new file called "meta.ts" instead of importing them from the "agentConfig" file. The constants include DEFAULT_AVATAR, DEFAULT_USER_AVATAR, DEFAULT_BACKGROUND_COLOR, and DEFAULT_TITLE. The changes also involve updating the usage of these constants in different parts of the code. - Import and use constants from "meta.ts" instead of "agentConfig" - Update the usage of constants in various parts of the code
- Loading branch information
1 parent
64c8782
commit 1eb6a17
Showing
7 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const DEFAULT_AVATAR = '🤖'; | ||
export const DEFAULT_USER_AVATAR = '😀'; | ||
export const DEFAULT_BACKGROUND_COLOR = 'rgba(0,0,0,0)'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { DEFAULT_AVATAR } from '@/store/session/slices/agentConfig'; | ||
import { DEFAULT_AVATAR } from '@/const/meta'; | ||
import { MetaData } from '@/types/meta'; | ||
|
||
export const getAgentAvatar = (s: MetaData) => s.avatar || DEFAULT_AVATAR; |