Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘坚-丰林-DEV
chatGLM
Commits
9720c7ed
Commit
9720c7ed
authored
May 29, 2023
by
liuxiaohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构振升项目,以部署益农助手
parent
0e620ae8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
15 deletions
+19
-15
defaultSettings.ts
react/config/defaultSettings.ts
+2
-2
chatmap.svg
react/src/assets/chatmap.svg
+0
-0
index.tsx
react/src/components/Footer/index.tsx
+1
-1
index.tsx
react/src/components/LoginModal/index.tsx
+4
-2
answer.component.tsx
react/src/components/NewSession/answer.component.tsx
+4
-2
zh-CN.ts
react/src/locales/zh-CN.ts
+1
-1
index.tsx
react/src/pages/Chat/index.tsx
+5
-4
index.tsx
react/src/pages/UserManage/index.tsx
+0
-1
api.ts
react/src/services/chatGLM/api.ts
+2
-2
No files found.
react/config/defaultSettings.ts
View file @
9720c7ed
...
...
@@ -12,8 +12,8 @@ const Settings: LayoutSettings & {
fixSiderbar
:
true
,
colorWeak
:
false
,
pwa
:
false
,
logo
:
'https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/
L
ogo.png'
,
title
:
'
ZENSONG
.AI'
,
logo
:
'https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/
ynzs-l
ogo.png'
,
title
:
'
CHATMAP
.AI'
,
iconfontUrl
:
''
,
};
...
...
react/src/assets/chatmap.svg
0 → 100644
View file @
9720c7ed
react/src/components/Footer/index.tsx
View file @
9720c7ed
...
...
@@ -5,7 +5,7 @@ const Footer: React.FC = () => {
const
intl
=
useIntl
();
const
defaultMessage
=
intl
.
formatMessage
({
id
:
'app.copyright.produced'
,
defaultMessage
:
'2023
ZENSONG
.AI'
,
defaultMessage
:
'2023
CHATMAP
.AI'
,
});
const
currentYear
=
new
Date
().
getFullYear
();
...
...
react/src/components/LoginModal/index.tsx
View file @
9720c7ed
...
...
@@ -79,8 +79,10 @@ const LoginModal = (props: ILoginModalProps) => {
>
<
div
className=
{
styles
.
modal_login
}
>
<
div
className=
{
styles
.
modal_title
}
>
<
img
src=
{
logoSvg
}
alt=
""
/>
<
p
>
欢迎来到 ZENSONG.AI
</
p
>
<
img
style=
{
{
width
:
58
,
height
:
47
}
}
src=
'https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/ynzs-logo.png'
alt=
""
/>
<
p
>
欢迎来到 CHATMAP.AI
</
p
>
</
div
>
<
p
className=
{
styles
.
modal_tip
}
>
账户密码登录
</
p
>
<
Form
...
...
react/src/components/NewSession/answer.component.tsx
View file @
9720c7ed
...
...
@@ -34,7 +34,9 @@ const Answer = (props: IAnswerProps) => {
<
Row
>
<
Col
span=
{
24
}
>
<
p
className=
{
styles
.
question
}
style=
{
{
marginTop
:
isMobile
?
'20px'
:
'40px'
}
}
>
<
img
src=
{
logoSvg
}
alt=
""
className=
{
styles
.
question_img
}
/>
<
img
style=
{
{
width
:
25
,
height
:
22
}
}
src=
'https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/ynzs-logo.png'
alt=
""
className=
{
styles
.
question_img
}
/>
<
span
className=
{
classNames
(
isMobile
&&
styles
.
mobile_question_span
,
styles
.
question_span
)
}
style=
{
{
marginLeft
:
isMobile
?
'8px'
:
'16px'
}
}
...
...
@@ -61,7 +63,7 @@ const Answer = (props: IAnswerProps) => {
>
<
img
src=
{
copySvg
}
alt=
""
/>
<
span
>
复制回答
</
span
>
</
p
>
``
</
p
>
)
}
</
div
>
{
!
isMobile
&&
(
...
...
react/src/locales/zh-CN.ts
View file @
9720c7ed
...
...
@@ -11,7 +11,7 @@ export default {
'layout.user.link.help'
:
'帮助'
,
'layout.user.link.privacy'
:
'隐私'
,
'layout.user.link.terms'
:
'条款'
,
'app.copyright.produced'
:
'
ZENSONG
.AI'
,
'app.copyright.produced'
:
'
CHATMAP
.AI'
,
'app.preview.down.block'
:
'下载此页面到本地项目'
,
'app.welcome.link.fetch-blocks'
:
'获取全部区块'
,
'app.welcome.link.block-list'
:
'基于 block 开发,快速构建标准页面'
,
...
...
react/src/pages/Chat/index.tsx
View file @
9720c7ed
...
...
@@ -177,7 +177,7 @@ const Chat: React.FC = () => {
}
}
/>
</
Col
>
<
Col
>
ZENSONG
.AI
</
Col
>
<
Col
>
CHATMAP
.AI
</
Col
>
<
Col
pull=
{
1
}
/>
</
Row
>
);
...
...
@@ -319,12 +319,13 @@ const Chat: React.FC = () => {
style=
{
{
display
:
'flex'
,
justifyContent
:
'center'
,
alignItems
:
'center'
}
}
>
<
img
style=
{
{
marginRight
:
12
,
height
:
40
,
marginBottom
:
6
}
}
src=
"https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/Logo.png"
// style =
{{
width
:
40,
height
:
25}}
style=
{
{
marginRight
:
15
,
height
:
40
,
marginBottom
:
6
,
width
:
50
}
}
src=
"https://baibaomen.oss-cn-hangzhou.aliyuncs.com/zhensheng/ynzs-logo.png"
alt=
"logo"
/>
<
Title
level=
{
2
}
style=
{
{
marginBottom
:
8
,
fontSize
:
32
}
}
>
ZENSONG
.AI
CHATMAP
.AI
</
Title
>
</
Col
>
<
Col
span=
{
24
}
>
...
...
react/src/pages/UserManage/index.tsx
View file @
9720c7ed
...
...
@@ -251,7 +251,6 @@ const UserManage = () => {
const
onHandleClickAccountFinish
=
(
values
:
any
)
=>
{
if
(
accountModalName
===
'添加账号'
)
{
alert
(
'2'
);
createdAccount
(
values
);
}
if
(
accountModalName
===
'编辑账号'
)
{
...
...
react/src/services/chatGLM/api.ts
View file @
9720c7ed
...
...
@@ -22,13 +22,13 @@ request.interceptors.request.use((url, options) => {
authHeader
=
{
Authorization
:
`Bearer
${
token
||
''
}
`
,
headers
:{
'Content-Type'
:
'multipart/form-data'
},
__tenant
:
'3a0
a90fe-9a0d-70f4-200d-a80a41fb6195
'
,
__tenant
:
'3a0
b773f-907f-f191-74d0-48f258e57bcb
'
,
};
}
else
{
authHeader
=
{
Authorization
:
`Bearer
${
token
||
''
}
`
,
'Content-Type'
:
'application/json'
,
__tenant
:
'3a0
a90fe-9a0d-70f4-200d-a80a41fb6195
'
,
__tenant
:
'3a0
b773f-907f-f191-74d0-48f258e57bcb
'
,
};
}
return
{
...
...
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