4.6.1 production (#498)

This commit is contained in:
Archer
2023-11-21 18:26:18 +08:00
committed by GitHub
parent 0558379ddb
commit 60f752629f
46 changed files with 93 additions and 63 deletions

View File

@@ -264,7 +264,7 @@ const UserInfo = () => {
window.open(`${feConfigs.docUrl}/docs/intro`);
}}
>
<MyIcon name={'courseLight'} w={'18px'} />
<MyIcon name={'common/courseLight'} w={'18px'} />
<Box ml={2} flex={1}>
{t('system.Help Document')}
</Box>

View File

@@ -53,7 +53,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => {
...(feConfigs?.show_promotion
? [
{
icon: 'promotionLight',
icon: 'support/account/promotionLight',
label: t('user.Promotion Record'),
id: TabEnum.promotion
}
@@ -62,7 +62,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => {
...(feConfigs?.show_pay && userInfo?.team.canWrite
? [
{
icon: 'payRecordLight',
icon: 'support/pay/payRecordLight',
label: t('user.Recharge Record'),
id: TabEnum.pay
}
@@ -88,7 +88,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => {
: []),
{
icon: 'loginoutLight',
icon: 'support/account/loginoutLight',
label: t('user.Sign Out'),
id: TabEnum.loginout
}

View File

@@ -125,7 +125,12 @@ const Logs = ({ appId }: { appId: string }) => {
borderRadius={'lg'}
fontWeight={'bold'}
>
<MyIcon mr={1} name={'badLight'} color={'#C96330'} w={'14px'} />
<MyIcon
mr={1}
name={'core/chat/feedback/badLight'}
color={'#C96330'}
w={'14px'}
/>
{item.feedbackCount}
</Flex>
</Box>
@@ -254,7 +259,7 @@ function DetailLogsModal({
</Tag>
{!!chat?.app?.chatModels && (
<Tag ml={2} colorSchema={'green'}>
<MyIcon name={'chatModelTag'} w={'14px'} />
<MyIcon name={'core/chat/chatModelTag'} w={'14px'} />
<Box ml={1}>{chat.app.chatModels.join(',')}</Box>
</Tag>
)}

View File

@@ -24,7 +24,7 @@ const OutLink = ({ appId }: { appId: string }) => {
iconSize={'20px'}
list={[
{
icon: 'outlink_share',
icon: 'support/outlink/shareLight',
title: '免登录窗口',
desc: '分享链接给其他用户,无需登录即可直接进行使用',
value: OutLinkTypeEnum.share
@@ -36,7 +36,7 @@ const OutLink = ({ appId }: { appId: string }) => {
value: OutLinkTypeEnum.apikey
}
// {
// icon: 'outlink_iframe',
// icon: 'support/outlink/iframeLight',
// title: '网页嵌入',
// desc: '嵌入到已有网页中,右下角会生成对话按键',
// value: OutLinkTypeEnum.iframe

View File

@@ -9,7 +9,7 @@ const QGSwitch = (props: SwitchProps) => {
const { t } = useTranslation();
return (
<Flex alignItems={'center'}>
<MyIcon name={'questionGuide'} mr={2} w={'16px'} />
<MyIcon name={'core/app/questionGuide'} mr={2} w={'16px'} />
<Box>{t('core.app.Next Step Guide')}</Box>
<MyTooltip label={t('core.app.Question Guide Tip')} forceShow>
<QuestionOutlineIcon display={['none', 'inline']} ml={1} />

View File

@@ -56,7 +56,7 @@ const AppDetail = ({ currentTab }: { currentTab: `${TabEnum}` }) => {
? []
: [{ label: '高级编排', id: TabEnum.adEdit, icon: 'settingLight' }]),
{ label: '外部使用', id: TabEnum.outLink, icon: 'shareLight' },
{ label: '对话日志', id: TabEnum.logs, icon: 'logsLight' },
{ label: '对话日志', id: TabEnum.logs, icon: 'core/app/logsLight' },
{ label: '立即对话', id: TabEnum.startChat, icon: 'chat' }
],
[]

View File

@@ -55,7 +55,7 @@ const ChatHeader = ({
</Tag>
{!!chatModels && chatModels.length > 0 && (
<Tag ml={2} colorSchema={'green'}>
<MyIcon name={'chatModelTag'} w={'14px'} />
<MyIcon name={'core/chat/chatModelTag'} w={'14px'} />
<Box ml={1}>{chatModels.join(',')}</Box>
</Tag>
)}

View File

@@ -65,7 +65,7 @@ const Hero = () => {
loading={'lazy'}
/>
<MyIcon
name={'playFill'}
name={'common/playFill'}
position={'absolute'}
w={['30px', '40px']}
cursor={'pointer'}

View File

@@ -247,7 +247,12 @@ const CollectionCard = () => {
<Flex alignItems={'center'} mr={2}>
<MyInput
leftIcon={
<MyIcon name="searchLight" position={'absolute'} w={'14px'} color={'myGray.500'} />
<MyIcon
name="common/searchLight"
position={'absolute'}
w={'14px'}
color={'myGray.500'}
/>
}
w={['100%', '250px']}
size={['sm', 'md']}
@@ -472,7 +477,7 @@ const CollectionCard = () => {
{
child: (
<Flex alignItems={'center'}>
<MyIcon name={'moveLight'} w={'14px'} mr={2} />
<MyIcon name={'common/file/move'} w={'14px'} mr={2} />
{t('Move')}
</Flex>
),

View File

@@ -147,7 +147,12 @@ const DataCard = () => {
<Box flex={1} mr={1} />
<MyInput
leftIcon={
<MyIcon name="searchLight" position={'absolute'} w={'14px'} color={'myGray.500'} />
<MyIcon
name="common/searchLight"
position={'absolute'}
w={'14px'}
color={'myGray.500'}
/>
}
w={['200px', '300px']}
placeholder="根据匹配知识,预期答案和来源进行搜索"

View File

@@ -91,7 +91,7 @@ const InputDataModal = ({
...(defaultValue.id
? [{ label: t('dataset.data.edit.Delete'), id: TabEnum.delete, icon: 'delete' }]
: []),
{ label: t('dataset.data.edit.Course'), id: TabEnum.doc, icon: 'courseLight' }
{ label: t('dataset.data.edit.Course'), id: TabEnum.doc, icon: 'common/courseLight' }
];
const { ConfirmModal, openConfirm } = useConfirm({
@@ -352,7 +352,7 @@ const InputDataModal = ({
})
}
>
<MyIcon name={'addCircle'} w={'16px'} />
<MyIcon name={'common/addCircleLight'} w={'16px'} />
<Box>{t('dataset.data.Add Index')}</Box>
</Flex>
</Grid>

View File

@@ -85,7 +85,7 @@ const MoveModal = ({
{item.parentName}
</Box>
{i !== paths.length - 1 && (
<MyIcon name={'rightArrowLight'} color={'myGray.500'} w={['18px', '24px']} />
<MyIcon name={'common/rightArrowLight'} color={'myGray.500'} w={'14px'} />
)}
</Flex>
))}

View File

@@ -347,7 +347,7 @@ const Kb = () => {
{
child: (
<Flex alignItems={'center'}>
<MyIcon name={'moveLight'} w={'14px'} mr={2} />
<MyIcon name={'common/file/move'} w={'14px'} mr={2} />
{t('Move')}
</Flex>
),

View File

@@ -42,7 +42,7 @@ const Tools = () => {
...(feConfigs?.docUrl
? [
{
icon: 'courseLight',
icon: 'common/courseLight',
label: '使用文档',
link: `${feConfigs.docUrl}/docs/intro`
}