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
7e9cac34
authored
Aug 28, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: config login tip
parent
be937956
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
client/data/config.json
+1
-0
client/src/pages/login/index.tsx
+1
-1
client/src/store/global.ts
+1
-1
client/src/types/index.d.ts
+1
-0
No files found.
client/data/config.json
View file @
7e9cac34
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
"show_register"
:
false
,
"show_register"
:
false
,
"show_appStore"
:
false
,
"show_appStore"
:
false
,
"show_userDetail"
:
false
,
"show_userDetail"
:
false
,
"show_loginTip"
:
false
,
"show_git"
:
true
,
"show_git"
:
true
,
"systemTitle"
:
"FastGPT"
,
"systemTitle"
:
"FastGPT"
,
"authorText"
:
"Made by FastGPT Team."
,
"authorText"
:
"Made by FastGPT Team."
,
...
...
client/src/pages/login/index.tsx
View file @
7e9cac34
...
@@ -99,7 +99,7 @@ const Login = () => {
...
@@ -99,7 +99,7 @@ const Login = () => {
>
>
<
DynamicComponent
type=
{
pageType
}
/>
<
DynamicComponent
type=
{
pageType
}
/>
{
feConfigs
?.
show_
register
&&
(
{
feConfigs
?.
show_
loginTip
&&
(
<
Box
<
Box
fontSize=
{
'sm'
}
fontSize=
{
'sm'
}
color=
{
'myGray.600'
}
color=
{
'myGray.600'
}
...
...
client/src/store/global.ts
View file @
7e9cac34
...
@@ -50,7 +50,7 @@ export const useGlobalStore = create<State>()(
...
@@ -50,7 +50,7 @@ export const useGlobalStore = create<State>()(
state
.
isPc
=
val
;
state
.
isPc
=
val
;
});
});
},
},
gitStar
:
2
700
,
gitStar
:
3
700
,
async
loadGitStar
()
{
async
loadGitStar
()
{
try
{
try
{
const
{
data
:
git
}
=
await
axios
.
get
(
'https://api.github.com/repos/labring/FastGPT'
);
const
{
data
:
git
}
=
await
axios
.
get
(
'https://api.github.com/repos/labring/FastGPT'
);
...
...
client/src/types/index.d.ts
View file @
7e9cac34
...
@@ -19,6 +19,7 @@ export type FeConfigsType = {
...
@@ -19,6 +19,7 @@ export type FeConfigsType = {
show_register
?:
boolean
;
show_register
?:
boolean
;
show_appStore
?:
boolean
;
show_appStore
?:
boolean
;
show_userDetail
?:
boolean
;
show_userDetail
?:
boolean
;
show_loginTip
?:
boolean
;
show_git
?:
boolean
;
show_git
?:
boolean
;
systemTitle
?:
string
;
systemTitle
?:
string
;
authorText
?:
string
;
authorText
?:
string
;
...
...
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