mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 09:37:03 +00:00
style(web): set default knowledge icon (#1244)
This commit is contained in:
@@ -7,7 +7,6 @@ import DocPanel from './doc-panel';
|
||||
import moment from 'moment';
|
||||
import { apiInterceptors, delSpace, newDialogue } from '@/client/api';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { VECTOR_ICON_MAP } from '@/utils/constants';
|
||||
import GptCard from '../common/gpt-card';
|
||||
|
||||
interface IProps {
|
||||
@@ -53,17 +52,6 @@ export default function SpaceCard(props: IProps) {
|
||||
}
|
||||
};
|
||||
|
||||
const renderVectorIcon = (type: string) => {
|
||||
return (
|
||||
<Image
|
||||
className="rounded-full w-8 h-8 border border-gray-200 object-contain bg-white inline-block"
|
||||
width={36}
|
||||
height={136}
|
||||
src={VECTOR_ICON_MAP[type] || '/models/knowledge-default.jpg'}
|
||||
alt="llm"
|
||||
/>
|
||||
);
|
||||
};
|
||||
return (
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
@@ -84,7 +72,7 @@ export default function SpaceCard(props: IProps) {
|
||||
<GptCard
|
||||
title={space.name}
|
||||
desc={space.desc}
|
||||
icon={VECTOR_ICON_MAP[space.vector_type] || '/LOGO_SMALL.png'}
|
||||
icon="/models/knowledge-default.jpg"
|
||||
iconBorder={false}
|
||||
tags={[
|
||||
{
|
||||
|
@@ -9,8 +9,6 @@ import Link from 'next/link';
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
type FormFields = Pick<IFlow, 'label' | 'name'>;
|
||||
|
||||
function Flow() {
|
||||
const { t } = useTranslation();
|
||||
|
||||
|
@@ -38,10 +38,6 @@ export const MODEL_ICON_MAP: Record<ModelType, { label: string; icon: string }>
|
||||
'solar-10.7b-instruct-v1.0': { label: 'solar-10.7b-instruct-v1.0', icon: '/models/solar_logo.png' },
|
||||
};
|
||||
|
||||
export const VECTOR_ICON_MAP: Record<string, string> = {
|
||||
Chroma: '/models/chroma-logo.png',
|
||||
};
|
||||
|
||||
export const dbMapper: Record<DBType, { label: string; icon: string; desc: string }> = {
|
||||
mysql: { label: 'MySQL', icon: '/icons/mysql.png', desc: 'Fast, reliable, scalable open-source relational database management system.' },
|
||||
mssql: { label: 'MSSQL', icon: '/icons/mssql.png', desc: 'Powerful, scalable, secure relational database system by Microsoft.' },
|
||||
|
Reference in New Issue
Block a user