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
d37433ea
authored
Oct 23, 2023
by
Archer
Committed by
GitHub
Oct 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config file to set doc baseurl (#419)
parent
a3534407
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
11 deletions
+17
-11
packages/global/common/system/types/index.d.ts
+2
-1
projects/app/src/components/Layout/navbar.tsx
+1
-1
projects/app/src/components/support/apikey/Table.tsx
+1
-1
projects/app/src/pages/account/components/Info.tsx
+1
-1
projects/app/src/pages/api/system/getInitData.ts
+2
-0
projects/app/src/pages/app/detail/components/AIChatSettingsModal.tsx
+1
-1
projects/app/src/pages/app/detail/components/OutLink/Share.tsx
+1
-1
projects/app/src/pages/components/Footer.tsx
+1
-1
projects/app/src/pages/components/Navbar.tsx
+1
-1
projects/app/src/pages/dataset/detail/components/Import/FileSelect.tsx
+4
-1
projects/app/src/pages/login/components/LoginForm.tsx
+1
-1
projects/app/src/pages/tools/index.tsx
+1
-1
No files found.
packages/global/common/system/types/index.d.ts
View file @
d37433ea
...
@@ -9,7 +9,8 @@ export type FeConfigsType = {
...
@@ -9,7 +9,8 @@ export type FeConfigsType = {
show_openai_account
?:
boolean
;
show_openai_account
?:
boolean
;
show_promotion
?:
boolean
;
show_promotion
?:
boolean
;
hide_app_flow
?:
boolean
;
hide_app_flow
?:
boolean
;
openAPIUrl
?:
string
;
docUrl
?:
string
;
openAPIDocUrl
?:
string
;
systemTitle
?:
string
;
systemTitle
?:
string
;
authorText
?:
string
;
authorText
?:
string
;
googleClientVerKey
?:
string
;
googleClientVerKey
?:
string
;
...
...
projects/app/src/components/Layout/navbar.tsx
View file @
d37433ea
...
@@ -174,7 +174,7 @@ const Navbar = ({ unread }: { unread: number }) => {
...
@@ -174,7 +174,7 @@ const Navbar = ({ unread }: { unread: number }) => {
mb=
{
0
}
mb=
{
0
}
color=
{
'#9096a5'
}
color=
{
'#9096a5'
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
window
.
open
(
`
https://doc.fastgpt.run
/docs/intro`
);
window
.
open
(
`
${feConfigs.docUrl}
/docs/intro`
);
}
}
}
}
>
>
<
MyIcon
name=
{
'courseLight'
}
width=
{
'26px'
}
height=
{
'26px'
}
/>
<
MyIcon
name=
{
'courseLight'
}
width=
{
'26px'
}
height=
{
'26px'
}
/>
...
...
projects/app/src/components/support/apikey/Table.tsx
View file @
d37433ea
...
@@ -83,7 +83,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
...
@@ -83,7 +83,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
API 秘钥管理
API 秘钥管理
</
Box
>
</
Box
>
<
Link
<
Link
href=
{
feConfigs
.
openAPIUrl
||
'https://doc.fastgpt.run/docs/development/openapi'
}
href=
{
feConfigs
.
openAPI
Doc
Url
||
'https://doc.fastgpt.run/docs/development/openapi'
}
target=
{
'_blank'
}
target=
{
'_blank'
}
ml=
{
1
}
ml=
{
1
}
color=
{
'myBlue.600'
}
color=
{
'myBlue.600'
}
...
...
projects/app/src/pages/account/components/Info.tsx
View file @
d37433ea
...
@@ -237,7 +237,7 @@ const UserInfo = () => {
...
@@ -237,7 +237,7 @@ const UserInfo = () => {
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
userSelect=
{
'none'
}
userSelect=
{
'none'
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
window
.
open
(
`
https://doc.fastgpt.run
/docs/intro`
);
window
.
open
(
`
${feConfigs.docUrl}
/docs/intro`
);
}
}
}
}
>
>
<
MyIcon
name=
{
'courseLight'
}
w=
{
'18px'
}
/>
<
MyIcon
name=
{
'courseLight'
}
w=
{
'18px'
}
/>
...
...
projects/app/src/pages/api/system/getInitData.ts
View file @
d37433ea
...
@@ -50,6 +50,8 @@ const defaultFeConfigs: FeConfigsType = {
...
@@ -50,6 +50,8 @@ const defaultFeConfigs: FeConfigsType = {
show_contact
:
true
,
show_contact
:
true
,
show_git
:
true
,
show_git
:
true
,
show_doc
:
true
,
show_doc
:
true
,
docUrl
:
'https://docs.fastgpt.run'
,
openAPIDocUrl
:
'https://doc.fastgpt.run/docs/development/openapi'
,
systemTitle
:
'FastGPT'
,
systemTitle
:
'FastGPT'
,
authorText
:
'Made by FastGPT Team.'
,
authorText
:
'Made by FastGPT Team.'
,
limit
:
{
limit
:
{
...
...
projects/app/src/pages/app/detail/components/AIChatSettingsModal.tsx
View file @
d37433ea
...
@@ -69,7 +69,7 @@ const AIChatSettingsModal = ({
...
@@ -69,7 +69,7 @@ const AIChatSettingsModal = ({
{
t
(
'app.AI Settings'
)
}
{
t
(
'app.AI Settings'
)
}
{
feConfigs
?.
show_doc
&&
(
{
feConfigs
?.
show_doc
&&
(
<
Link
<
Link
href=
{
'https://doc.fastgpt.run/docs/use-cases/ai_settings/'
}
href=
{
`${feConfigs.docUrl}/docs/use-cases/ai_settings/`
}
target=
{
'_blank'
}
target=
{
'_blank'
}
ml=
{
1
}
ml=
{
1
}
textDecoration=
{
'underline'
}
textDecoration=
{
'underline'
}
...
...
projects/app/src/pages/app/detail/components/OutLink/Share.tsx
View file @
d37433ea
...
@@ -353,7 +353,7 @@ function EditLinkModal({
...
@@ -353,7 +353,7 @@ function EditLinkModal({
/>
/>
</
Flex
>
</
Flex
>
<
Link
<
Link
href=
"https://doc.fastgpt.run/docs/development/openapi/#分享链接中增加额外-query"
href=
{
`${feConfigs.docUrl}/docs/development/openapi/#分享链接中增加额外-query`
}
target=
{
'_blank'
}
target=
{
'_blank'
}
fontSize=
{
'sm'
}
fontSize=
{
'sm'
}
color=
{
'myGray.500'
}
color=
{
'myGray.500'
}
...
...
projects/app/src/pages/components/Footer.tsx
View file @
d37433ea
...
@@ -47,7 +47,7 @@ const Footer = () => {
...
@@ -47,7 +47,7 @@ const Footer = () => {
{
{
label
:
t
(
'home.Footer Docs'
),
label
:
t
(
'home.Footer Docs'
),
onClick
:
()
=>
{
onClick
:
()
=>
{
window
.
open
(
'https://doc.fastgpt.run/docs/intro'
,
'_blank'
);
window
.
open
(
`
${
feConfigs
.
docUrl
}
/docs/intro`
,
'_blank'
);
}
}
}
}
]
]
...
...
projects/app/src/pages/components/Navbar.tsx
View file @
d37433ea
...
@@ -47,7 +47,7 @@ const Navbar = () => {
...
@@ -47,7 +47,7 @@ const Navbar = () => {
label
:
t
(
'home.Docs'
),
label
:
t
(
'home.Docs'
),
key
:
'docs'
,
key
:
'docs'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
window
.
open
(
'https://doc.fastgpt.run/docs/intro'
);
window
.
open
(
`
${
feConfigs
.
docUrl
}
/docs/intro`
);
}
}
}
}
]
]
...
...
projects/app/src/pages/dataset/detail/components/Import/FileSelect.tsx
View file @
d37433ea
...
@@ -135,13 +135,16 @@ const FileSelect = ({
...
@@ -135,13 +135,16 @@ const FileSelect = ({
filename
:
file
.
name
,
filename
:
file
.
name
,
icon
,
icon
,
tokens
:
filterData
.
reduce
((
sum
,
item
)
=>
sum
+
countPromptTokens
(
item
.
q
),
0
),
tokens
:
filterData
.
reduce
((
sum
,
item
)
=>
sum
+
countPromptTokens
(
item
.
q
),
0
),
text
:
''
,
text
:
`
${
header
.
join
(
','
)}
\n
${
data
.
map
((
item
)
=>
`"
${
item
[
0
]}
","
${
item
[
1
]}
"`
)
.
join
(
'\n'
)}
`
,
chunks
:
filterData
,
chunks
:
filterData
,
type
:
DatasetCollectionTypeEnum
.
file
,
type
:
DatasetCollectionTypeEnum
.
file
,
metadata
:
{
metadata
:
{
fileId
fileId
}
}
};
};
console
.
log
(
fileItem
);
onPushFiles
([
fileItem
]);
onPushFiles
([
fileItem
]);
continue
;
continue
;
...
...
projects/app/src/pages/login/components/LoginForm.tsx
View file @
d37433ea
...
@@ -143,7 +143,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
...
@@ -143,7 +143,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
<Box textAlign={'center'} mt={2} fontSize={'sm'}>
<Box textAlign={'center'} mt={2} fontSize={'sm'}>
使用即代表你同意我们的{' '}
使用即代表你同意我们的{' '}
<Link
<Link
href=
"https://doc.fastgpt.run/docs/intro/#%e5%85%8d%e8%b4%a3%e5%a3%b0%e6%98%8e"
href=
{`
$
{
feConfigs
.
docUrl
}
/docs/i
ntro
/
#
%
e5
%
85
%
8
d
%
e8
%
b4
%
a3
%
e5
%
a3
%
b0
%
e6
%
98
%
8
e
`}
target={'_blank'}
target={'_blank'}
color={'myBlue.600'}
color={'myBlue.600'}
>
>
...
...
projects/app/src/pages/tools/index.tsx
View file @
d37433ea
...
@@ -39,7 +39,7 @@ const Tools = () => {
...
@@ -39,7 +39,7 @@ const Tools = () => {
{
{
icon
:
'courseLight'
,
icon
:
'courseLight'
,
label
:
'使用文档'
,
label
:
'使用文档'
,
link
:
'https://doc.fastgpt.run/docs/intro'
link
:
`
${
feConfigs
.
docUrl
}
/docs/intro`
}
}
]
]
:
[])
:
[])
...
...
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