Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
1ac3edcc
authored
Jun 11, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: ui
parent
d3959a91
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
7 deletions
+14
-7
client/src/components/Markdown/Loading.tsx
+1
-0
client/src/components/Markdown/MermaidCodeBlock.tsx
+1
-0
client/src/pages/chat/components/History.tsx
+3
-2
client/src/pages/index.tsx
+1
-1
client/src/pages/kb/components/KbList.tsx
+3
-1
client/src/pages/model/components/ModelList.tsx
+3
-1
client/src/pages/model/components/detail/components/ModelEditForm.tsx
+2
-2
No files found.
client/src/components/Markdown/Loading.tsx
View file @
1ac3edcc
...
@@ -4,6 +4,7 @@ import { Box } from '@chakra-ui/react';
...
@@ -4,6 +4,7 @@ import { Box } from '@chakra-ui/react';
const
Loading
=
()
=>
{
const
Loading
=
()
=>
{
return
(
return
(
<
Box
<
Box
minW=
{
'100px'
}
w=
{
'100%'
}
w=
{
'100%'
}
h=
{
'80px'
}
h=
{
'80px'
}
backgroundImage=
{
'url("/imgs/loading.gif")'
}
backgroundImage=
{
'url("/imgs/loading.gif")'
}
...
...
client/src/components/Markdown/MermaidCodeBlock.tsx
View file @
1ac3edcc
...
@@ -77,6 +77,7 @@ const MermaidBlock = ({ code }: { code: string }) => {
...
@@ -77,6 +77,7 @@ const MermaidBlock = ({ code }: { code: string }) => {
<
Box
<
Box
ref=
{
dom
}
ref=
{
dom
}
className=
{
styles
.
mermaid
}
className=
{
styles
.
mermaid
}
minW=
{
'100px'
}
minH=
{
'50px'
}
minH=
{
'50px'
}
py=
{
4
}
py=
{
4
}
dangerouslySetInnerHTML=
{
{
__html
:
svg
}
}
dangerouslySetInnerHTML=
{
{
__html
:
svg
}
}
...
...
client/src/pages/chat/components/History.tsx
View file @
1ac3edcc
...
@@ -147,13 +147,14 @@ const PcSliderBar = ({
...
@@ -147,13 +147,14 @@ const PcSliderBar = ({
</
Box
>
</
Box
>
)
}
)
}
{
/* chat history */
}
{
/* chat history */
}
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
overflow=
{
'overlay
'
}
userSelect=
{
'none'
}
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
pl=
{
2
}
overflowY=
{
'scroll
'
}
userSelect=
{
'none'
}
>
{
history
.
map
((
item
)
=>
(
{
history
.
map
((
item
)
=>
(
<
Flex
<
Flex
key=
{
item
.
_id
}
key=
{
item
.
_id
}
position=
{
'relative'
}
position=
{
'relative'
}
alignItems=
{
'center'
}
alignItems=
{
'center'
}
p=
{
3
}
p=
{
3
}
borderRadius=
{
'md'
}
mb=
{
[
2
,
0
]
}
mb=
{
[
2
,
0
]
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
transition=
{
'background-color .2s ease-in'
}
transition=
{
'background-color .2s ease-in'
}
...
@@ -162,7 +163,7 @@ const PcSliderBar = ({
...
@@ -162,7 +163,7 @@ const PcSliderBar = ({
}
}
}
}
{
...
(
item
.
_id
===
chatId
{
...
(
item
.
_id
===
chatId
?
{
?
{
backgroundImage
:
`
$
{
theme
.
lgColor
.
activeBlueGradient
}`
backgroundImage
:
`
$
{
theme
.
lgColor
.
activeBlueGradient
}
!
important
`
}
}
:
{
:
{
bg
:
item
.
top
?
'
myGray
.
200'
:
''
bg
:
item
.
top
?
'
myGray
.
200'
:
''
...
...
client/src/pages/index.tsx
View file @
1ac3edcc
...
@@ -205,7 +205,7 @@ const Home = () => {
...
@@ -205,7 +205,7 @@ const Home = () => {
py=
{
[
2
,
3
]
}
py=
{
[
2
,
3
]
}
onClick=
{
()
=>
router
.
push
(
`/model`
)
}
onClick=
{
()
=>
router
.
push
(
`/model`
)
}
>
>
点击
开始
立即
开始
</
Button
>
</
Button
>
</
Flex
>
</
Flex
>
</
Flex
>
</
Flex
>
...
...
client/src/pages/kb/components/KbList.tsx
View file @
1ac3edcc
...
@@ -87,7 +87,7 @@ const KbList = ({ kbId }: { kbId: string }) => {
...
@@ -87,7 +87,7 @@ const KbList = ({ kbId }: { kbId: string }) => {
/>
/>
</
Tooltip
>
</
Tooltip
>
</
Flex
>
</
Flex
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
overflow=
{
'overlay
'
}
userSelect=
{
'none'
}
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
pl=
{
[
0
,
2
]
}
overflowY=
{
'scroll
'
}
userSelect=
{
'none'
}
>
{
kbs
.
map
((
item
)
=>
(
{
kbs
.
map
((
item
)
=>
(
<
Flex
<
Flex
key=
{
item
.
_id
}
key=
{
item
.
_id
}
...
@@ -97,6 +97,8 @@ const KbList = ({ kbId }: { kbId: string }) => {
...
@@ -97,6 +97,8 @@ const KbList = ({ kbId }: { kbId: string }) => {
mb=
{
[
2
,
0
]
}
mb=
{
[
2
,
0
]
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
transition=
{
'background-color .2s ease-in'
}
transition=
{
'background-color .2s ease-in'
}
borderRadius=
{
[
''
,
'md'
]
}
borderBottom=
{
[
'1px solid #f4f4f4'
,
'none'
]
}
_hover=
{
{
_hover=
{
{
backgroundImage
:
[
''
,
theme
.
lgColor
.
hoverBlueGradient
]
backgroundImage
:
[
''
,
theme
.
lgColor
.
hoverBlueGradient
]
}
}
}
}
...
...
client/src/pages/model/components/ModelList.tsx
View file @
1ac3edcc
...
@@ -119,7 +119,7 @@ const ModelList = ({ modelId }: { modelId: string }) => {
...
@@ -119,7 +119,7 @@ const ModelList = ({ modelId }: { modelId: string }) => {
onChange=
{
(
id
:
any
)
=>
setCurrentTab
(
id
)
}
onChange=
{
(
id
:
any
)
=>
setCurrentTab
(
id
)
}
/>
/>
</
Flex
>
</
Flex
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
overflow=
{
'overlay
'
}
userSelect=
{
'none'
}
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
pl=
{
[
0
,
2
]
}
overflowY=
{
'scroll
'
}
userSelect=
{
'none'
}
>
{
currentModels
.
list
.
map
((
item
)
=>
(
{
currentModels
.
list
.
map
((
item
)
=>
(
<
Flex
<
Flex
key=
{
item
.
_id
}
key=
{
item
.
_id
}
...
@@ -129,6 +129,8 @@ const ModelList = ({ modelId }: { modelId: string }) => {
...
@@ -129,6 +129,8 @@ const ModelList = ({ modelId }: { modelId: string }) => {
mb=
{
[
2
,
0
]
}
mb=
{
[
2
,
0
]
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
transition=
{
'background-color .2s ease-in'
}
transition=
{
'background-color .2s ease-in'
}
borderRadius=
{
[
''
,
'md'
]
}
borderBottom=
{
[
'1px solid #f4f4f4'
,
'none'
]
}
_hover=
{
{
_hover=
{
{
backgroundImage
:
[
''
,
theme
.
lgColor
.
hoverBlueGradient
]
backgroundImage
:
[
''
,
theme
.
lgColor
.
hoverBlueGradient
]
}
}
}
}
...
...
client/src/pages/model/components/detail/components/ModelEditForm.tsx
View file @
1ac3edcc
...
@@ -269,13 +269,13 @@ ${e.password ? `密码为: ${e.password}` : ''}`;
...
@@ -269,13 +269,13 @@ ${e.password ? `密码为: ${e.password}` : ''}`;
</
Flex
>
</
Flex
>
<
Flex
alignItems=
{
'center'
}
mt=
{
5
}
>
<
Flex
alignItems=
{
'center'
}
mt=
{
5
}
>
<
Box
flex=
{
'0 0 80px'
}
w=
{
0
}
>
<
Box
flex=
{
'0 0 80px'
}
w=
{
0
}
>
收藏人数
:
收藏人数
</
Box
>
</
Box
>
<
Box
>
{
getValues
(
'share.collection'
)
}
人
</
Box
>
<
Box
>
{
getValues
(
'share.collection'
)
}
人
</
Box
>
</
Flex
>
</
Flex
>
{
isOwner
&&
(
{
isOwner
&&
(
<
Flex
mt=
{
5
}
alignItems=
{
'center'
}
>
<
Flex
mt=
{
5
}
alignItems=
{
'center'
}
>
<
Box
flex=
{
'0 0
10
0px'
}
>
删除应用
</
Box
>
<
Box
flex=
{
'0 0
8
0px'
}
>
删除应用
</
Box
>
<
Button
<
Button
colorScheme=
{
'gray'
}
colorScheme=
{
'gray'
}
variant=
{
'base'
}
variant=
{
'base'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment