perf: auto load icons (#688)

* perf: icon

* perf: icon

* doc

* perf: simple edit ui

* doc

* doc

* doc

* doc
This commit is contained in:
Archer
2024-01-03 23:51:12 +08:00
committed by GitHub
parent 2fc6e921e0
commit c2abbb579f
246 changed files with 2189 additions and 1380 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { Box, Flex } from '@chakra-ui/react';
import { ChevronRightIcon } from '@chakra-ui/icons';
import MyIcon from '@/components/Icon';
import MyIcon from '@fastgpt/web/components/common/Icon';
import { useRouter } from 'next/router';
import { feConfigs } from '@/web/common/system/staticData';
import { serviceSideProps } from '@/web/common/utils/i18n';
@@ -13,19 +13,10 @@ const Tools = () => {
const router = useRouter();
const list = [
{
icon: 'dbLight',
icon: 'core/dataset/datasetLight',
label: '我的知识库',
link: '/dataset/list'
},
...(feConfigs?.show_appStore
? [
{
icon: 'appStoreLight',
label: 'AI应用市场',
link: '/appStore'
}
]
: []),
{
icon: 'common/navbar/pluginLight',
label: '自定义模块',
@@ -34,7 +25,7 @@ const Tools = () => {
...(feConfigs?.show_git
? [
{
icon: 'git',
icon: 'common/gitLight',
label: 'GitHub 地址',
link: 'https://github.com/labring/FastGPT'
}