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
1226c3ef
authored
May 12, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: chat ui
parent
39f9080e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
public/docs/chatProblem.md
+3
-2
src/components/Layout/index.tsx
+2
-0
src/components/Markdown/index.module.scss
+3
-3
src/components/Markdown/index.tsx
+1
-1
src/pages/chat/index.tsx
+0
-0
src/pages/index.tsx
+3
-1
No files found.
public/docs/chatProblem.md
View file @
1226c3ef
...
@@ -11,5 +11,6 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部
...
@@ -11,5 +11,6 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部
服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器:
[
FastGpt
](
https://fastgpt.run/
)
服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器:
[
FastGpt
](
https://fastgpt.run/
)
**其他问题**
**其他问题**
请 WX 联系: fastgpt123
请 WX 联系: fastgpt123
!
[
](/imgs/wxqun300.jpg)
| 交流群 | 小助手 |
!
[
](/imgs/wx300.jpg)
| ----------------------- | -------------------- |
| !
[
](/imgs/wxqun300.jpg) | 
|
src/components/Layout/index.tsx
View file @
1226c3ef
...
@@ -9,9 +9,11 @@ import Navbar from './navbar';
...
@@ -9,9 +9,11 @@ import Navbar from './navbar';
import
NavbarPhone
from
'./navbarPhone'
;
import
NavbarPhone
from
'./navbarPhone'
;
const
pcUnShowLayoutRoute
:
Record
<
string
,
boolean
>
=
{
const
pcUnShowLayoutRoute
:
Record
<
string
,
boolean
>
=
{
'/'
:
true
,
'/login'
:
true
'/login'
:
true
};
};
const
phoneUnShowLayoutRoute
:
Record
<
string
,
boolean
>
=
{
const
phoneUnShowLayoutRoute
:
Record
<
string
,
boolean
>
=
{
'/'
:
true
,
'/login'
:
true
'/login'
:
true
};
};
...
...
src/components/Markdown/index.module.scss
View file @
1226c3ef
...
@@ -337,10 +337,10 @@
...
@@ -337,10 +337,10 @@
}
}
.markdown
{
.markdown
{
text-align
:
justify
;
text-align
:
justify
;
overflow-y
:
hidden
;
tab-size
:
4
;
tab-size
:
4
;
word-spacing
:
normal
;
word-spacing
:
normal
;
word-break
:
break-all
;
word-break
:
break-all
;
width
:
100%
;
p
{
p
{
white-space
:
pre-line
;
white-space
:
pre-line
;
...
@@ -353,13 +353,13 @@
...
@@ -353,13 +353,13 @@
margin
:
0
;
margin
:
0
;
border
:
none
;
border
:
none
;
border-radius
:
0
;
border-radius
:
0
;
background-color
:
#2
22
!
important
;
background-color
:
#2
92b33
!
important
;
overflow-x
:
auto
;
overflow-x
:
auto
;
color
:
#fff
;
color
:
#fff
;
}
}
pre
code
{
pre
code
{
background-color
:
#2
22
!
important
;
background-color
:
#2
92b33
!
important
;
width
:
100%
;
width
:
100%
;
}
}
...
...
src/components/Markdown/index.tsx
View file @
1226c3ef
...
@@ -29,7 +29,7 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?:
...
@@ -29,7 +29,7 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?:
const
code
=
String
(
children
);
const
code
=
String
(
children
);
return
!
inline
||
match
?
(
return
!
inline
||
match
?
(
<
Box
my=
{
3
}
borderRadius=
{
'md'
}
overflow=
{
'
hidden
'
}
backgroundColor=
{
'#222'
}
>
<
Box
my=
{
3
}
borderRadius=
{
'md'
}
overflow=
{
'
overlay
'
}
backgroundColor=
{
'#222'
}
>
<
Flex
<
Flex
className=
"code-header"
className=
"code-header"
py=
{
2
}
py=
{
2
}
...
...
src/pages/chat/index.tsx
View file @
1226c3ef
This diff is collapsed.
Click to expand it.
src/pages/index.tsx
View file @
1226c3ef
...
@@ -141,6 +141,7 @@ const Home = () => {
...
@@ -141,6 +141,7 @@ const Home = () => {
flexDirection=
{
'column'
}
flexDirection=
{
'column'
}
alignItems=
{
'center'
}
alignItems=
{
'center'
}
pt=
{
'20vh'
}
pt=
{
'20vh'
}
overflow=
{
'overlay'
}
>
>
<
Box
id=
{
'particles-js'
}
position=
{
'absolute'
}
top=
{
0
}
left=
{
0
}
right=
{
0
}
bottom=
{
0
}
/>
<
Box
id=
{
'particles-js'
}
position=
{
'absolute'
}
top=
{
0
}
left=
{
0
}
right=
{
0
}
bottom=
{
0
}
/>
<
Image
src=
"/icon/logo.png"
w=
{
[
'70px'
,
'120px'
]
}
h=
{
[
'70px'
,
'120px'
]
}
alt=
{
''
}
></
Image
>
<
Image
src=
"/icon/logo.png"
w=
{
[
'70px'
,
'120px'
]
}
h=
{
[
'70px'
,
'120px'
]
}
alt=
{
''
}
></
Image
>
...
@@ -162,7 +163,8 @@ const Home = () => {
...
@@ -162,7 +163,8 @@ const Home = () => {
<
Button
<
Button
my=
{
5
}
my=
{
5
}
fontSize=
{
[
'xl'
,
'3xl'
]
}
fontSize=
{
[
'xl'
,
'3xl'
]
}
h=
{
[
'35px'
,
'40px'
]
}
h=
{
'auto'
}
py=
{
[
2
,
3
]
}
onClick=
{
()
=>
router
.
push
(
`/model`
)
}
onClick=
{
()
=>
router
.
push
(
`/model`
)
}
>
>
点击开始
点击开始
...
...
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