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
226cae5a
authored
Aug 20, 2024
by
Finley Ge
Committed by
GitHub
Aug 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: add docs entries in the publish page (#2449)
parent
23838125
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
8 deletions
+46
-8
projects/app/src/pages/app/detail/components/Publish/FeiShu/index.tsx
+23
-4
projects/app/src/pages/app/detail/components/Publish/OffiAccount/index.tsx
+23
-4
No files found.
projects/app/src/pages/app/detail/components/Publish/FeiShu/index.tsx
View file @
226cae5a
...
...
@@ -10,7 +10,8 @@ import {
Th
,
Td
,
Tbody
,
useDisclosure
useDisclosure
,
Link
}
from
'@chakra-ui/react'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
import
{
useLoading
}
from
'@fastgpt/web/hooks/useLoading'
;
...
...
@@ -26,6 +27,7 @@ import dynamic from 'next/dynamic';
import
MyMenu
from
'@fastgpt/web/components/common/MyMenu'
;
import
EmptyTip
from
'@fastgpt/web/components/common/EmptyTip'
;
import
{
useRequest2
}
from
'@fastgpt/web/hooks/useRequest'
;
import
{
getDocPath
}
from
'@/web/common/system/doc'
;
const
FeiShuEditModal
=
dynamic
(()
=>
import
(
'./FeiShuEditModal'
));
const
ShowShareLinkModal
=
dynamic
(()
=>
import
(
'../components/showShareLinkModal'
));
...
...
@@ -64,9 +66,26 @@ const FeiShu = ({ appId }: { appId: string }) => {
return
(
<
Box
position=
{
'relative'
}
pt=
{
3
}
px=
{
5
}
minH=
{
'50vh'
}
>
<
Flex
justifyContent=
{
'space-between'
}
flexDirection=
"row"
>
<
Box
fontWeight=
{
'bold'
}
fontSize=
{
[
'md'
,
'lg'
]
}
>
{
t
(
'common:core.app.publish.Fei shu bot publish'
)
}
</
Box
>
<
Flex
alignItems=
{
'center'
}
>
<
Box
fontWeight=
{
'bold'
}
fontSize=
{
[
'md'
,
'lg'
]
}
>
{
t
(
'common:core.app.publish.Fei shu bot publish'
)
}
</
Box
>
{
feConfigs
?.
docUrl
&&
(
<
Link
href=
{
feConfigs
.
openAPIDocUrl
||
getDocPath
(
'/docs/course/feishu'
)
}
target=
{
'_blank'
}
ml=
{
2
}
color=
{
'primary.500'
}
fontSize=
{
'sm'
}
>
<
Flex
alignItems=
{
'center'
}
>
<
MyIcon
name=
"book"
mr=
"1"
/>
{
t
(
'common:common.Read document'
)
}
</
Flex
>
</
Link
>
)
}
</
Flex
>
<
Button
variant=
{
'primary'
}
colorScheme=
{
'blue'
}
...
...
projects/app/src/pages/app/detail/components/Publish/OffiAccount/index.tsx
View file @
226cae5a
...
...
@@ -10,7 +10,8 @@ import {
Th
,
Td
,
Tbody
,
useDisclosure
useDisclosure
,
Link
}
from
'@chakra-ui/react'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
import
{
useLoading
}
from
'@fastgpt/web/hooks/useLoading'
;
...
...
@@ -26,6 +27,7 @@ import dynamic from 'next/dynamic';
import
MyMenu
from
'@fastgpt/web/components/common/MyMenu'
;
import
EmptyTip
from
'@fastgpt/web/components/common/EmptyTip'
;
import
{
useRequest2
}
from
'@fastgpt/web/hooks/useRequest'
;
import
{
getDocPath
}
from
'@/web/common/system/doc'
;
const
OffiAccountEditModal
=
dynamic
(()
=>
import
(
'./OffiAccountEditModal'
));
const
ShowShareLinkModal
=
dynamic
(()
=>
import
(
'../components/showShareLinkModal'
));
...
...
@@ -65,9 +67,26 @@ const OffiAccount = ({ appId }: { appId: string }) => {
return
(
<
Box
position=
{
'relative'
}
pt=
{
3
}
px=
{
5
}
minH=
{
'50vh'
}
>
<
Flex
justifyContent=
{
'space-between'
}
flexDirection=
"row"
>
<
Box
fontWeight=
{
'bold'
}
fontSize=
{
[
'md'
,
'lg'
]
}
>
{
t
(
'publish:official_account.name'
)
}
</
Box
>
<
Flex
alignItems=
{
'center'
}
>
<
Box
fontWeight=
{
'bold'
}
fontSize=
{
[
'md'
,
'lg'
]
}
>
{
t
(
'publish:official_account.name'
)
}
</
Box
>
{
feConfigs
?.
docUrl
&&
(
<
Link
href=
{
feConfigs
.
openAPIDocUrl
||
getDocPath
(
'/docs/course/official_account'
)
}
target=
{
'_blank'
}
ml=
{
2
}
color=
{
'primary.500'
}
fontSize=
{
'sm'
}
>
<
Flex
alignItems=
{
'center'
}
>
<
MyIcon
name=
"book"
mr=
"1"
/>
{
t
(
'common:common.Read document'
)
}
</
Flex
>
</
Link
>
)
}
</
Flex
>
<
Button
variant=
{
'primary'
}
colorScheme=
{
'blue'
}
...
...
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