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
Commit
78903bae
authored
Mar 05, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: ui调整
parent
45ad3ba2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
88 deletions
+33
-88
public/logo.png
+0
-0
public/logo.svg
+0
-2
src/components/Layout/navbar.tsx
+1
-1
src/components/Layout/navbarPhone.tsx
+5
-6
src/components/Markdown/index.module.scss
+1
-0
src/pages/chat/index.tsx
+25
-29
src/styles/reset.scss
+1
-50
No files found.
public/logo.png
0 → 100644
View file @
78903bae
117 KB
public/logo.svg
deleted
100644 → 0
View file @
45ad3ba2
<svg
viewBox=
"0 0 1024 1024"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns=
"http://www.w3.org/2000/svg"
id=
"图层_1"
><defs><style>
.cls-1{fill:url(#未命名的渐变_46);}.cls-2{fill:url(#未命名的渐变_46-2);}.cls-3{fill:url(#未命名的渐变_59);}.cls-4{fill:url(#未命名的渐变_46-3);}.cls-5{fill:url(#未命名的渐变_61);}.cls-6{fill:url(#未命名的渐变_46-4);}.cls-7{fill:url(#未命名的渐变_59-2);}.cls-8{fill:url(#未命名的渐变_61-2);}.cls-9{fill:url(#未命名的渐变_46-5);}.cls-10{fill:url(#未命名的渐变_46-6);}.cls-11{fill:url(#未命名的渐变_37);}.cls-12{fill:url(#未命名的渐变_37-2);}.cls-13{fill:url(#未命名的渐变_37-3);}.cls-14{fill:url(#未命名的渐变_37-4);}.cls-15{fill:url(#未命名的渐变_37-5);}.cls-16{fill:url(#未命名的渐变_37-6);}.cls-17{fill:url(#未命名的渐变_46-7);}
</style><linearGradient
gradientUnits=
"userSpaceOnUse"
y2=
"473.26"
x2=
"878.62"
y1=
"655.89"
x1=
"807.82"
id=
"未命名的渐变_46"
><stop
stop-color=
"#5496e8"
offset=
"0"
></stop><stop
stop-color=
"#3462bf"
offset=
"1"
></stop></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"490.59"
x2=
"619.58"
y1=
"586.01"
x1=
"571.36"
id=
"未命名的渐变_46-2"
></linearGradient><linearGradient
gradientUnits=
"userSpaceOnUse"
y2=
"540.54"
x2=
"784.89"
y1=
"749.85"
x1=
"340.28"
id=
"未命名的渐变_59"
><stop
stop-color=
"#35a2e6"
offset=
"0"
></stop><stop
stop-color=
"#2256bd"
offset=
"1"
></stop></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"634.74"
x2=
"555.72"
y1=
"708.62"
x1=
"417.21"
id=
"未命名的渐变_46-3"
></linearGradient><linearGradient
gradientUnits=
"userSpaceOnUse"
y2=
"347.11"
x2=
"586.71"
y1=
"363.53"
x1=
"748.14"
id=
"未命名的渐变_61"
><stop
stop-color=
"#5496e8"
offset=
"0"
></stop><stop
stop-color=
"#2a56b0"
offset=
"1"
></stop></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"509.85"
x2=
"404.48"
y1=
"622.02"
x1=
"373.02"
id=
"未命名的渐变_46-4"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_59"
y2=
"179.17"
x2=
"550.55"
y1=
"227.77"
x1=
"501.24"
id=
"未命名的渐变_59-2"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_61"
y2=
"282.77"
x2=
"492.74"
y1=
"354.59"
x1=
"459.22"
id=
"未命名的渐变_61-2"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"88.18"
x2=
"508.63"
y1=
"279.71"
x1=
"478.54"
id=
"未命名的渐变_46-5"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"352.71"
x2=
"464.27"
y1=
"815.1"
x1=
"231.7"
id=
"未命名的渐变_46-6"
></linearGradient><linearGradient
gradientUnits=
"userSpaceOnUse"
y2=
"401.04"
x2=
"1033.08"
y1=
"1071.37"
x1=
"598.05"
id=
"未命名的渐变_37"
><stop
stop-color=
"#8ffbff"
offset=
"0"
></stop><stop
stop-color=
"#4a83ff"
offset=
"1"
></stop></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_37"
y2=
"282.69"
x2=
"850.73"
y1=
"953.03"
x1=
"415.7"
id=
"未命名的渐变_37-2"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_37"
y2=
"274.94"
x2=
"838.77"
y1=
"945.27"
x1=
"403.74"
id=
"未命名的渐变_37-3"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_37"
y2=
"249.95"
x2=
"800.28"
y1=
"920.28"
x1=
"365.24"
id=
"未命名的渐变_37-4"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_37"
y2=
"194.17"
x2=
"714.32"
y1=
"864.5"
x1=
"279.29"
id=
"未命名的渐变_37-5"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_37"
y2=
"109.99"
x2=
"584.6"
y1=
"780.32"
x1=
"149.57"
id=
"未命名的渐变_37-6"
></linearGradient><linearGradient
xlink:href=
"#未命名的渐变_46"
y2=
"558.04"
x2=
"166"
y1=
"775.55"
x1=
"110.6"
id=
"未命名的渐变_46-7"
></linearGradient></defs><title>
2.5D
</title><path
d=
"M874.19,517.9l.07-.16a48,48,0,0,1,7.53-13.13l.5-.63A44.59,44.59,0,0,1,893,494.62c.41-.26.84-.49,1.26-.73a37.5,37.5,0,0,1,13.38-4.81,32.39,32.39,0,0,1,11.66.59,30.26,30.26,0,0,1,7.92,2.76l-89.8-48.85c-.37-.2-.74-.39-1.11-.58a30.1,30.1,0,0,0-5.77-2.13c-.32-.08-.71,0-1-.05a32.21,32.21,0,0,0-11.66-.59,36.81,36.81,0,0,0-10.54,3.17c-1,.46-1.9,1.1-2.85,1.64-.43.24-.84.46-1.25.73-.58.36-1.21.63-1.77,1a43.66,43.66,0,0,0-4.39,3.47,45.81,45.81,0,0,0-3.71,3.75c-.31.36-.58.76-.89,1.13-.17.21-.32.41-.49.62-.64.8-1.31,1.57-1.9,2.41a47.14,47.14,0,0,0-5.64,10.74l-.06.14,0,.11a45.65,45.65,0,0,0-2.83,15.64l-.24,131.71c0,14.11,6.75,25.49,16.93,31L888,696.38c-10.18-5.54-17-16.92-16.93-31l.24-131.71A45.61,45.61,0,0,1,874.19,517.9Z"
class=
"cls-1"
></path><path
d=
"M613.08,563a68.2,68.2,0,0,1,2-7.16c.18-.5.46-1,.65-1.45a68.93,68.93,0,0,1,3.93-8.34c.42-.74.9-1.45,1.34-2.18a69.61,69.61,0,0,1,4.62-6.67c.5-.64,1-1.28,1.49-1.9a66.92,66.92,0,0,1,6.87-7.07c.5-.44,1.05-.81,1.56-1.24a62.68,62.68,0,0,1,6.22-4.51c1.24-.79,2.52-1.5,3.82-2.2,1.47-.8,3-1.49,4.52-2.15A53.5,53.5,0,0,1,663.89,514a46.57,46.57,0,0,1,13.25.2c.87.13,1.75.22,2.6.4a43.58,43.58,0,0,1,12.09,4.23L602,469.95q-.8-.43-1.61-.83a43.17,43.17,0,0,0-8.3-3.07c-.7-.18-1.47-.19-2.18-.33s-1.72-.27-2.59-.4a46.4,46.4,0,0,0-13.26-.2,53.55,53.55,0,0,0-13.79,4.15c-.53.23-1.14.25-1.66.5-1,.47-1.9,1.13-2.87,1.65-1.29.7-2.56,1.4-3.81,2.19-.62.4-1.31.68-1.92,1.11-1.5,1-2.9,2.24-4.32,3.42-.51.42-1.05.79-1.55,1.23-.17.15-.35.26-.52.41a66.57,66.57,0,0,0-5.39,5.45c-.34.38-.62.82-1,1.21-.52.62-1,1.26-1.49,1.9-.77,1-1.6,1.91-2.31,2.93-.84,1.19-1.54,2.49-2.3,3.74-.44.73-.92,1.43-1.34,2.18-.21.37-.46.7-.66,1.07a68.64,68.64,0,0,0-3.31,7.35c-.18.46-.44.89-.61,1.36,0,.06-.06.12-.08.18a67.57,67.57,0,0,0-2,7.46c-.28,1.16-.72,2.26-.94,3.43a64.26,64.26,0,0,0-1.09,11.57,54.1,54.1,0,0,0,6.69,26.76,45.3,45.3,0,0,0,17.78,17.71l89.8,48.85c-14.75-8-24.51-24.39-24.48-44.48A64.15,64.15,0,0,1,612,566.9C612.26,565.56,612.76,564.3,613.08,563Z"
class=
"cls-2"
></path><path
d=
"M766,687.29c.12-.34.16-.71.29-1A223.94,223.94,0,0,0,776,650.8c.05-.28.07-.56.12-.84a213.87,213.87,0,0,0,3.5-37.69c.13-67.83-32.77-122.94-82.29-149.87l-89.8-48.85c49.51,26.93,82.41,82,82.29,149.87a214,214,0,0,1-3.5,37.74c0,.26-.06.53-.11.78a224,224,0,0,1-9.72,35.46c-.18.49-.3,1-.48,1.49a230.45,230.45,0,0,1-12,26.6c-.88,1.69-1.73,3.39-2.65,5.05a233.55,233.55,0,0,1-12.79,20.73c-.61.87-1.29,1.67-1.91,2.53q-5.89,8.2-12.45,15.8c-1.49,1.74-3,3.43-4.58,5.13q-6.11,6.69-12.7,12.83c-1.31,1.23-2.58,2.52-3.92,3.72a214.75,214.75,0,0,1-18.81,14.88c-1.26.89-2.57,1.69-3.85,2.55a200.5,200.5,0,0,1-26,15c-.68.32-1.38.55-2.06.86a185.55,185.55,0,0,1-20.36,7.83c-2,.64-4,1.26-6,1.83a174.34,174.34,0,0,1-23.47,5.18l-91.56,12.87a161.8,161.8,0,0,1-28.77,1.28c-3-.11-5.83-.56-8.75-.84a150.88,150.88,0,0,1-18.76-2.87c-3.09-.7-6.12-1.51-9.13-2.39a145.43,145.43,0,0,1-18-6.64c-3.57-1.59-7.29-2.89-10.71-4.75l89.8,48.85q2.66,1.45,5.39,2.79c1.69.83,3.6,1.2,5.32,2a144.81,144.81,0,0,0,18,6.64c1.58.46,3,1.29,4.6,1.7s3.06.36,4.53.69a150.51,150.51,0,0,0,18.76,2.87c2.93.28,5.77.72,8.75.84a161.65,161.65,0,0,0,28.78-1.28l91.56-12.87a174.28,174.28,0,0,0,23.46-5.18c2-.57,4-1.19,6-1.83a185.6,185.6,0,0,0,20.38-7.84c.55-.25,1.13-.39,1.67-.64.13-.06.24-.15.36-.21a199.65,199.65,0,0,0,26.05-15c.75-.5,1.59-.83,2.33-1.34.53-.36,1-.82,1.51-1.19a214.42,214.42,0,0,0,18.83-14.9c.36-.32.76-.57,1.12-.88,1-.88,1.82-1.91,2.78-2.8q6.6-6.15,12.72-12.84c.84-.92,1.8-1.72,2.63-2.66.69-.78,1.26-1.68,1.94-2.47q6.54-7.61,12.45-15.8c.5-.7,1.11-1.33,1.6-2,.11-.16.19-.33.3-.49a233.55,233.55,0,0,0,12.79-20.73c.42-.77,1-1.46,1.38-2.24s.79-1.91,1.27-2.82a230.91,230.91,0,0,0,12-26.6C765.85,687.58,765.93,687.44,766,687.29Z"
class=
"cls-3"
></path><path
d=
"M633.5,672.12l-89.8-48.85-.89-.46a24.1,24.1,0,0,0-4.63-1.71c-.25-.07-.56,0-.82,0a25.69,25.69,0,0,0-9.31-.48L406,637.73a30,30,0,0,0-8.58,2.58c-.75.35-1.44.84-2.17,1.25-.35.2-.69.38-1,.6-.51.31-1.06.55-1.55.89a35.48,35.48,0,0,0-3.52,2.79,36.72,36.72,0,0,0-3,3c-.22.25-.4.53-.61.78l-.36.46c-.56.69-1.13,1.35-1.64,2.08a36.62,36.62,0,0,0-4.41,8.38c0,.07-.07.13-.09.2l-.06.14a36.33,36.33,0,0,0-2.25,12.47c0,11.17,5.43,20.27,13.61,24.72l89.8,48.85c-8.18-4.45-13.63-13.55-13.61-24.72a36.39,36.39,0,0,1,2.32-12.61l.08-.18a38,38,0,0,1,6-10.47l.36-.46A35.79,35.79,0,0,1,484,691c.34-.21.69-.4,1-.6a30.47,30.47,0,0,1,10.75-3.83l122-17.15a25.87,25.87,0,0,1,9.31.48A24.29,24.29,0,0,1,633.5,672.12Z"
class=
"cls-4"
></path><path
d=
"M642,365.21a217.11,217.11,0,0,1,29.95,2.87c1.75.3,3.45.72,5.19,1.06A208.62,208.62,0,0,1,703.14,376c1.41.47,2.87.84,4.27,1.33a205.92,205.92,0,0,1,29,12.89l-89.8-48.85q-3.78-2.06-7.64-4a206.15,206.15,0,0,0-21.4-8.94c-1.4-.5-2.86-.86-4.27-1.33-4.6-1.53-9.16-3.13-13.9-4.34-4-1-8.09-1.7-12.16-2.49-1.74-.34-3.43-.77-5.19-1.06a216.49,216.49,0,0,0-29.94-2.87c-2.15-.06-4.31,0-6.47,0a230.81,230.81,0,0,0-32.35,2l-9.23,1.3,89.8,48.85,9.23-1.3a231.12,231.12,0,0,1,32.35-2C637.64,365.18,639.81,365.15,642,365.21Z"
class=
"cls-5"
></path><path
d=
"M399.8,592.92a68,68,0,0,1,2-7.14c.16-.44.4-.84.57-1.27a69.26,69.26,0,0,1,4-8.52c.41-.74.89-1.43,1.32-2.15a69.67,69.67,0,0,1,4.61-6.69c.5-.64,1-1.29,1.5-1.91a67,67,0,0,1,6.86-7.08c.47-.41,1-.76,1.46-1.15a62.59,62.59,0,0,1,6.3-4.59c1.22-.79,2.49-1.48,3.76-2.17,1.49-.81,3-1.51,4.57-2.18A52.91,52.91,0,0,1,450.33,544a47.23,47.23,0,0,1,13.42.19c.88.13,1.76.23,2.62.4a43.73,43.73,0,0,1,12.2,4.26L388.77,500q-.8-.43-1.61-.83a43.61,43.61,0,0,0-8.36-3.09c-.72-.18-1.5-.19-2.23-.34s-1.73-.27-2.62-.4a47.07,47.07,0,0,0-13.42-.19,52.78,52.78,0,0,0-13.59,4.09c-.53.23-1.12.25-1.65.49-1,.48-1.94,1.15-2.93,1.69-1.27.69-2.53,1.38-3.75,2.16-.6.38-1.26.66-1.85,1.07-1.55,1.07-3,2.31-4.46,3.53-.48.4-1,.74-1.45,1.15-.15.13-.31.23-.46.36a66.52,66.52,0,0,0-5.39,5.45c-.35.4-.65.86-1,1.27-.52.62-1,1.27-1.5,1.91-.75,1-1.56,1.87-2.26,2.87-.86,1.22-1.57,2.54-2.35,3.82-.44.72-.91,1.41-1.32,2.15-.2.36-.45.68-.64,1a69.26,69.26,0,0,0-3.37,7.48c-.17.43-.41.83-.57,1.27l-.07.17a68.41,68.41,0,0,0-1.91,7c-.33,1.33-.83,2.6-1.08,4a64.34,64.34,0,0,0-1.09,11.56c0,15.1,5.48,28.1,14.45,37a44.1,44.1,0,0,0,10,7.51L422.13,653c-14.73-8-24.54-24.4-24.5-44.54a64.34,64.34,0,0,1,1.09-11.56C399,595.52,399.46,594.25,399.8,592.92Z"
class=
"cls-6"
></path><path
d=
"M595.12,247.9a27.73,27.73,0,0,0,1.73-9.48c0-8.95-4.25-16.14-10.68-19.64L461,150.72c6.44,3.5,10.7,10.69,10.68,19.64a27.66,27.66,0,0,1-1.81,9.67c0,.07-.07.15-.1.22a30,30,0,0,1-4.73,8.13l-.27.34a28.4,28.4,0,0,1-6.82,5.88c-.27.17-.54.32-.82.47a24,24,0,0,1-8.5,3,20.06,20.06,0,0,1-12.5-2.14L561.29,264l.71.37a19.23,19.23,0,0,0,3.68,1.36,20.83,20.83,0,0,0,8.11.41,23.62,23.62,0,0,0,6.76-2c.61-.28,1.16-.67,1.75-1,.28-.16.54-.3.81-.47s.82-.43,1.2-.69a27.84,27.84,0,0,0,2.79-2.21,29.12,29.12,0,0,0,2.35-2.38c.17-.19.31-.4.47-.6s.18-.24.28-.36c.45-.55.91-1.09,1.32-1.67a28.18,28.18,0,0,0,3.39-6.42c0-.08.08-.16.11-.25S595.09,248,595.12,247.9Z"
class=
"cls-7"
></path><polygon
points=
"431.13 258.66 430.99 329.93 520.8 378.78 520.93 307.51 431.13 258.66"
class=
"cls-8"
></polygon><path
d=
"M597.89,158.31l-.08,0,.08,0-89.8-48.85q-1.13-.61-2.29-1.18a61.88,61.88,0,0,0-11.87-4.38c-1-.26-2.13-.27-3.17-.48-1.23-.25-2.47-.39-3.73-.57a66.86,66.86,0,0,0-19-.27,76.16,76.16,0,0,0-19.65,5.91c-.76.33-1.62.36-2.36.71-1.37.65-2.62,1.56-4,2.28-1.86,1-3.69,2-5.47,3.15-.91.58-1.9,1-2.79,1.61-2.05,1.42-4,3.07-5.89,4.66-.77.64-1.59,1.19-2.35,1.86-.27.23-.57.42-.83.66a94.92,94.92,0,0,0-7.65,7.72c-.45.51-.83,1.1-1.27,1.62-.72.85-1.36,1.73-2.05,2.61-1.14,1.44-2.35,2.82-3.41,4.33s-2.13,3.44-3.18,5.16c-.64,1-1.31,2-1.91,3.1-.31.55-.69,1-1,1.6a97.58,97.58,0,0,0-4.52,10c-.31.77-.72,1.47-1,2.25,0,.1-.09.19-.13.29a96.34,96.34,0,0,0-2.75,10c-.45,1.82-1.13,3.55-1.48,5.39A91.21,91.21,0,0,0,392.8,194c-.05,28.52,13.9,51.51,34.79,62.87l89.8,48.85c-20.9-11.37-34.84-34.35-34.79-62.87a91.32,91.32,0,0,1,1.55-16.46c.32-1.75,1-3.39,1.4-5.11a95.69,95.69,0,0,1,3-10.6c.29-.78.71-1.49,1-2.26A97.46,97.46,0,0,1,495,196.81c.6-1.07,1.29-2.08,1.93-3.13a97.92,97.92,0,0,1,6.57-9.46c.69-.87,1.35-1.78,2.07-2.63a94.69,94.69,0,0,1,9.75-10c.76-.67,1.58-1.23,2.35-1.87a89.15,89.15,0,0,1,8.67-6.26c1.78-1.14,3.62-2.16,5.47-3.16,2.06-1.11,4.19-2.07,6.33-3a76.25,76.25,0,0,1,19.64-5.91,67,67,0,0,1,19,.27c1.25.18,2.5.32,3.73.57A62.18,62.18,0,0,1,597.89,158.31Z"
class=
"cls-9"
></path><path
d=
"M263.77,648.58c.75-6,1.44-12.09,2.54-18,.67-3.59,1.65-7.1,2.44-10.66,1.18-5.3,2.24-10.63,3.69-15.84,1-3.75,2.38-7.39,3.55-11.09,1.53-4.83,3-9.71,4.71-14.45a326.25,326.25,0,0,1,16.92-37.59c1.23-2.37,2.42-4.76,3.72-7.1a329.68,329.68,0,0,1,18.06-29.28c.88-1.27,1.88-2.43,2.78-3.69q8.27-11.5,17.47-22.18c2.12-2.46,4.29-4.87,6.48-7.26q8.63-9.46,18-18.14c1.83-1.71,3.59-3.51,5.46-5.18a304,304,0,0,1,26.57-21c1.78-1.25,3.63-2.38,5.43-3.59a282.22,282.22,0,0,1,36.76-21.2c.94-.44,1.93-.77,2.88-1.21A262.85,262.85,0,0,1,470,390c2.79-.9,5.6-1.77,8.42-2.58a246.28,246.28,0,0,1,33.17-7.32l9.23-1.3L431,329.93l-9.23,1.3a246.35,246.35,0,0,0-33.17,7.32c-2.83.81-5.62,1.67-8.42,2.58a262.44,262.44,0,0,0-28.79,11.07c-.77.35-1.6.55-2.36.91-.18.08-.33.21-.51.3a281.63,281.63,0,0,0-36.76,21.2c-1.06.71-2.24,1.17-3.29,1.9-.75.52-1.4,1.17-2.14,1.7a302.65,302.65,0,0,0-26.56,21c-.5.44-1.07.79-1.57,1.24-1.38,1.24-2.57,2.7-3.93,4q-9.3,8.68-17.93,18.11c-1.19,1.3-2.54,2.43-3.71,3.75-1,1.11-1.8,2.39-2.77,3.52q-9.16,10.66-17.43,22.12c-.75,1-1.64,2-2.37,3-.17.24-.29.5-.46.74a329.93,329.93,0,0,0-18,29.26c-.59,1.07-1.35,2-1.93,3.13-.69,1.28-1.12,2.69-1.79,4a326,326,0,0,0-16.92,37.59c-.08.2-.19.39-.27.6-1.67,4.55-3,9.24-4.45,13.88-1.17,3.7-2.51,7.32-3.55,11.07-1.44,5.22-2.51,10.54-3.69,15.85-.79,3.56-1.78,7.07-2.44,10.66-1.07,5.76-1.72,11.62-2.46,17.46-.41,3.22-1,6.4-1.34,9.64q-1.28,13.65-1.33,27.49c-.18,95.89,46.18,173.62,116,211.62l89.8,48.85c-69.85-38-116.2-115.73-116-211.62q0-13.84,1.33-27.51C262.81,654.58,263.4,651.6,263.77,648.58Z"
class=
"cls-10"
></path><path
d=
"M907.68,489.08c-20,2.81-36.33,22.7-36.37,44.56l-.24,131.71c0,21.86,16.23,37.17,36.22,34.36,20.25-2.85,36.59-22.74,36.63-44.6l.24-131.71C944.21,501.54,927.93,486.23,907.68,489.08Z"
class=
"cls-11"
></path><path
d=
"M663.89,514c-29.19,4.1-52.91,33-53,64.49-.06,31.23,23.56,53.45,52.76,49.35,28.93-4.07,52.65-32.94,52.71-64.17C716.45,532.13,692.82,509.91,663.89,514Z"
class=
"cls-12"
></path><path
d=
"M617.85,669.43l-122,17.15c-16,2.25-29.22,18-29.25,35.61,0,17.32,13.09,29.66,29.14,27.41l122-17.15c16-2.26,29.22-18.3,29.25-35.61C647,679.24,633.9,667.18,617.85,669.43Z"
class=
"cls-13"
></path><path
d=
"M603.13,367.21l-9.23,1.3.13-71.27c22.89-17,38.53-45.36,38.58-75.46.08-44.93-33.58-76.16-74.8-70.36s-75.12,46.52-75.21,91.45c-.06,30.1,15.48,54,38.32,64.65l-.13,71.27-9.23,1.3c-137.81,19.37-250.1,156.3-250.38,305S372.76,939.07,510.57,919.7l91.56-12.87c137.81-19.37,250.31-156,250.58-304.85S740.94,347.84,603.13,367.21ZM557.72,208.43c12.18-1.71,22,7.54,22,20.84,0,12.85-9.9,24.87-22.08,26.59s-22.15-7.52-22.13-20.37C535.53,222.19,545.41,210.16,557.72,208.43Zm44.55,619.82-91.56,12.87c-97.51,13.7-176.51-60.94-176.31-166.3s79.51-202.14,177-215.84L603,446.12C700.5,432.41,779.8,507,779.61,612.26S699.79,814.55,602.28,828.26Z"
class=
"cls-14"
></path><path
d=
"M503.09,593.61c.06-31.51-23.56-53.73-52.76-49.63-28.93,4.07-52.65,32.94-52.71,64.45-.06,31.23,23.56,53.45,52.5,49.38C479.32,653.71,503,624.84,503.09,593.61Z"
class=
"cls-15"
></path><path
d=
"M206.51,587.62c-20.25,2.85-36.59,22.74-36.63,44.6l-.24,131.71c0,21.86,16.23,37.17,36.49,34.32,20-2.81,36.59-22.74,36.63-44.6L243,621.94C243,600.08,226.5,584.81,206.51,587.62Z"
class=
"cls-16"
></path><path
d=
"M172.77,616.48c0-.06.06-.12.08-.18a47.78,47.78,0,0,1,7.55-13.13c.16-.2.32-.41.48-.61a44.76,44.76,0,0,1,10.82-9.37c.42-.26.86-.5,1.29-.75a38.15,38.15,0,0,1,13.53-4.83,31.94,31.94,0,0,1,11.55.6A30.43,30.43,0,0,1,226,591l-89.8-48.85c-.37-.2-.74-.39-1.12-.58a30.14,30.14,0,0,0-5.8-2.14c-.31-.08-.69,0-1-.05a31.84,31.84,0,0,0-11.55-.6A37.6,37.6,0,0,0,106,542c-1,.45-1.85,1.07-2.78,1.6-.44.25-.86.47-1.28.74-.62.38-1.28.67-1.87,1.08a44,44,0,0,0-4.4,3.48,45.86,45.86,0,0,0-3.71,3.75c-.29.33-.55.71-.83,1.05s-.32.41-.48.62c-.66.82-1.35,1.62-2,2.48a47.86,47.86,0,0,0-3,4.81A48.58,48.58,0,0,0,83,567.45c0,.06-.06.11-.08.18l-.06.12a45.54,45.54,0,0,0-2.83,15.61l-.24,131.71a40.62,40.62,0,0,0,1.2,10,32.43,32.43,0,0,0,15.71,21l89.8,48.85c-10.2-5.55-16.93-16.9-16.91-31l.24-131.71A45.53,45.53,0,0,1,172.77,616.48Z"
class=
"cls-17"
></path></svg>
\ No newline at end of file
src/components/Layout/navbar.tsx
View file @
78903bae
...
@@ -34,7 +34,7 @@ const Navbar = ({
...
@@ -34,7 +34,7 @@ const Navbar = ({
>
>
{
/* logo */
}
{
/* logo */
}
<
Box
pb=
{
4
}
>
<
Box
pb=
{
4
}
>
<
Image
src=
{
'/logo.
svg'
}
width=
{
50
}
height=
{
100
}
alt=
""
></
Image
>
<
Image
src=
{
'/logo.
png'
}
width=
{
'35'
}
height=
{
'35'
}
alt=
""
></
Image
>
</
Box
>
</
Box
>
{
/* 导航列表 */
}
{
/* 导航列表 */
}
<
Box
flex=
{
1
}
>
<
Box
flex=
{
1
}
>
...
...
src/components/Layout/navbarPhone.tsx
View file @
78903bae
...
@@ -45,15 +45,15 @@ const NavbarPhone = ({
...
@@ -45,15 +45,15 @@ const NavbarPhone = ({
</
Flex
>
</
Flex
>
<
Drawer
isOpen=
{
isOpen
}
placement=
"left"
size=
{
'xs'
}
onClose=
{
onClose
}
>
<
Drawer
isOpen=
{
isOpen
}
placement=
"left"
size=
{
'xs'
}
onClose=
{
onClose
}
>
<
DrawerOverlay
/>
<
DrawerOverlay
/>
<
DrawerContent
maxWidth=
{
'
6
0vw'
}
>
<
DrawerContent
maxWidth=
{
'
5
0vw'
}
>
<
DrawerBody
p=
{
4
}
>
<
DrawerBody
p=
{
4
}
>
<
Box
p
b
=
{
4
}
>
<
Box
p
y
=
{
4
}
>
<
Image
src=
{
'/logo.
svg'
}
w=
{
'100%'
}
h=
{
'70px'
}
pt=
{
2
}
alt=
""
></
Image
>
<
Image
src=
{
'/logo.
png'
}
margin=
{
'auto'
}
w=
{
'35'
}
h=
{
'35'
}
alt=
""
></
Image
>
</
Box
>
</
Box
>
{
navbarList
.
map
((
item
)
=>
(
{
navbarList
.
map
((
item
)
=>
(
<
Flex
<
Flex
key=
{
item
.
label
}
key=
{
item
.
label
}
mb=
{
4
}
mb=
{
5
}
alignItems=
{
'center'
}
alignItems=
{
'center'
}
justifyContent=
{
'center'
}
justifyContent=
{
'center'
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
...
@@ -61,8 +61,7 @@ const NavbarPhone = ({
...
@@ -61,8 +61,7 @@ const NavbarPhone = ({
onClose
();
onClose
();
}
}
}
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
fontSize=
{
'sm'
}
h=
{
'60px'
}
h=
{
'65px'
}
borderRadius=
{
'md'
}
borderRadius=
{
'md'
}
{
...
(
item
.
activeLink
.
includes
(
router
.
pathname
)
{
...
(
item
.
activeLink
.
includes
(
router
.
pathname
)
?
{
?
{
...
...
src/components/Markdown/index.module.scss
View file @
78903bae
...
@@ -374,5 +374,6 @@
...
@@ -374,5 +374,6 @@
background-color
:
#222
;
background-color
:
#222
;
color
:
#fff
;
color
:
#fff
;
width
:
100%
;
width
:
100%
;
font-family
:
'Söhne,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji'
;
}
}
}
}
src/pages/chat/index.tsx
View file @
78903bae
...
@@ -49,36 +49,32 @@ const Chat = () => {
...
@@ -49,36 +49,32 @@ const Chat = () => {
},
[]);
},
[]);
// 初始化聊天框
// 初始化聊天框
const
{
isInitialLoading
}
=
useQuery
(
useQuery
([
chatId
,
windowId
],
()
=>
(
chatId
?
getInitChatSiteInfo
(
chatId
,
windowId
)
:
null
),
{
[
chatId
,
windowId
],
cacheTime
:
5
*
60
*
1000
,
()
=>
(
chatId
?
getInitChatSiteInfo
(
chatId
,
windowId
)
:
null
),
onSuccess
(
res
)
{
{
if
(
!
res
)
return
;
cacheTime
:
5
*
60
*
1000
,
router
.
replace
(
`/chat?chatId=
${
chatId
}
&windowId=
${
res
.
windowId
}
`
);
onSuccess
(
res
)
{
if
(
!
res
)
return
;
router
.
replace
(
`/chat?chatId=
${
chatId
}
&windowId=
${
res
.
windowId
}
`
);
setChatSiteData
(
res
.
chatSite
);
setChatSiteData
(
res
.
chatSite
);
setChatList
(
setChatList
(
res
.
history
.
map
((
item
)
=>
({
res
.
history
.
map
((
item
)
=>
({
...
item
,
...
item
,
status
:
'finish'
status
:
'finish'
}))
}))
);
);
scrollToBottom
();
scrollToBottom
();
setIsLoading
(
false
);
setIsLoading
(
false
);
},
},
onError
()
{
onError
()
{
toast
({
toast
({
title
:
'初始化异常,请刷新'
,
title
:
'初始化异常,请刷新'
,
status
:
'error'
,
status
:
'error'
,
isClosable
:
true
,
isClosable
:
true
,
duration
:
5000
duration
:
5000
});
});
setIsLoading
(
false
);
setIsLoading
(
false
);
}
}
}
);
}
);
// gpt3 方法
// gpt3 方法
const
gpt3ChatPrompt
=
useCallback
(
const
gpt3ChatPrompt
=
useCallback
(
...
@@ -291,7 +287,7 @@ const Chat = () => {
...
@@ -291,7 +287,7 @@ const Chat = () => {
borderBottom=
{
'1px solid rgba(0,0,0,0.1)'
}
borderBottom=
{
'1px solid rgba(0,0,0,0.1)'
}
>
>
<
Flex
maxW=
{
'800px'
}
m=
{
'auto'
}
alignItems=
{
'flex-start'
}
>
<
Flex
maxW=
{
'800px'
}
m=
{
'auto'
}
alignItems=
{
'flex-start'
}
>
<
Box
mr=
{
4
}
>
<
Box
mr=
{
media
(
4
,
1
)
}
>
<
Image
<
Image
src=
{
item
.
obj
===
'Human'
?
'/imgs/human.png'
:
'/imgs/modelAvatar.png'
}
src=
{
item
.
obj
===
'Human'
?
'/imgs/human.png'
:
'/imgs/modelAvatar.png'
}
alt=
"/imgs/modelAvatar.png"
alt=
"/imgs/modelAvatar.png"
...
...
src/styles/reset.scss
View file @
78903bae
...
@@ -24,56 +24,7 @@ td,
...
@@ -24,56 +24,7 @@ td,
svg
{
svg
{
margin
:
0
;
margin
:
0
;
}
}
body
,
button
,
input
,
select
,
textarea
{
font
:
12px
/
1
.5tahoma
,
arial
,
\
5b8b
\
4f53
;
}
// h1, h2, h3, h4, h5, h6{ font-size:100%; }
address
,
cite
,
dfn
,
em
,
var
{
font-style
:
normal
;
}
code
,
kbd
,
pre
,
samp
{
font-family
:
couriernew
,
courier
,
monospace
;
}
a
{
text-decoration
:
none
;
}
a
:hover
{
text-decoration
:
underline
;
}
sup
{
vertical-align
:
text-top
;
}
sub
{
vertical-align
:
text-bottom
;
}
legend
{
color
:
#000
;
}
fieldset
,
img
{
border
:
0
;
}
button
,
input
,
select
,
textarea
{
font-size
:
100%
;
}
table
{
border-collapse
:
collapse
;
border-spacing
:
0
;
}
#__next
{
#__next
{
height
:
100%
;
height
:
100%
;
}
}
...
...
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