This commit is contained in:
archer
2023-08-14 10:29:52 +08:00
parent d4d9e1fe65
commit c5fd5706a1
21 changed files with 1819 additions and 23 deletions

View File

@@ -64,8 +64,8 @@ export enum OutLinkTypeEnum {
'iframe' = 'iframe'
}
export const HUMAN_ICON = `https://fastgpt.run/icon/human.png`;
export const LOGO_ICON = `https://fastgpt.run/icon/logo.png`;
export const HUMAN_ICON = `/icon/human.png`;
export const LOGO_ICON = `/icon/logo.svg`;
export const getDefaultChatVariables = () => ({
cTime: dayjs().format('YYYY/MM/DD HH:mm:ss')

View File

@@ -4,7 +4,7 @@ export const defaultKbDetail: KbItemType = {
_id: '',
userId: '',
updateTime: new Date(),
avatar: '/icon/logo.png',
avatar: '/icon/logo.svg',
name: '',
tags: '',
totalData: 0,

View File

@@ -13,7 +13,7 @@ export const defaultApp: AppSchema = {
userId: 'userId',
name: '模型加载中',
type: 'basic',
avatar: '/icon/logo.png',
avatar: '/icon/logo.svg',
intro: '',
updateTime: Date.now(),
share: {

View File

@@ -57,7 +57,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
{
$project: {
_id: 1,
avatar: { $ifNull: ['$avatar', '/icon/logo.png'] },
avatar: { $ifNull: ['$avatar', '/icon/logo.svg'] },
name: 1,
userId: 1,
intro: 1,

View File

@@ -21,7 +21,7 @@ type Props = {
const NodeCard = ({
children,
logo = '/icon/logo.png',
logo = '/icon/logo.svg',
name = '未知模块',
description,
minW = '300px',

View File

@@ -39,7 +39,7 @@ const CreateModal = ({ onClose, onSuccess }: { onClose: () => void; onSuccess: (
const { isPc } = useGlobalStore();
const { register, setValue, getValues, handleSubmit } = useForm<FormType>({
defaultValues: {
avatar: '/icon/logo.png',
avatar: '/icon/logo.svg',
name: '',
templateId: appTemplates[0].id
}

View File

@@ -84,7 +84,7 @@ const Footer = () => {
>
<Box flex={1}>
<Flex alignItems={'center'}>
<Avatar src="/icon/logo.png" w={['24px', '30px']} />
<Avatar src="/icon/logo.svg" w={['24px', '30px']} />
<Box
className="textlg"
fontSize={['xl', '2xl']}

View File

@@ -84,7 +84,7 @@ const Navbar = () => {
h={isOpenMenu ? '100vh' : 'auto'}
>
<Flex maxW={'1300px'} m={'auto'} alignItems={'center'}>
<Avatar src="/icon/logo.png" w={['30px', '38px']} />
<Avatar src="/icon/logo.svg" w={['30px', '38px']} />
<Box
className="textlg"
fontSize={['3xl', '4xl']}

View File

@@ -18,7 +18,7 @@ const AppSchema = new Schema({
},
avatar: {
type: String,
default: '/icon/logo.png'
default: '/icon/logo.svg'
},
intro: {
type: String,

View File

@@ -13,7 +13,7 @@ const kbSchema = new Schema({
},
avatar: {
type: String,
default: '/icon/logo.png'
default: '/icon/logo.svg'
},
name: {
type: String,

View File

@@ -25,7 +25,7 @@ const defaultChatData: InitChatResponse = {
appId: '',
app: {
name: 'FastGPT',
avatar: '/icon/logo.png',
avatar: '/icon/logo.svg',
intro: '',
canUse: false
},

View File

@@ -31,7 +31,7 @@ const defaultShareChatData: ShareChatType = {
userAvatar: HUMAN_ICON,
app: {
name: '',
avatar: '/icon/logo.png',
avatar: '/icon/logo.svg',
intro: ''
},
history: defaultHistory