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
3aa6d95f
authored
Jul 08, 2026
by
DigHuang
Committed by
GitHub
Jul 08, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(skill): update sandbox runtime upgrade modal (#7275)
parent
3d0e23ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
30 deletions
+57
-30
projects/app/src/assets/skill/runtimeUpgradeModalBg.jpg
+0
-0
projects/app/src/pageComponents/dashboard/skill/detail/Content.tsx
+57
-30
No files found.
projects/app/src/assets/skill/runtimeUpgradeModalBg.jpg
0 → 100644
View file @
3aa6d95f
72.4 KB
projects/app/src/pageComponents/dashboard/skill/detail/Content.tsx
View file @
3aa6d95f
...
@@ -7,7 +7,8 @@ import { SkillDetailContext } from './context';
...
@@ -7,7 +7,8 @@ import { SkillDetailContext } from './context';
import
SandboxEditor
from
'@/pageComponents/chat/SandboxEditor/Editor'
;
import
SandboxEditor
from
'@/pageComponents/chat/SandboxEditor/Editor'
;
import
SandboxError
from
'./config/SandboxError'
;
import
SandboxError
from
'./config/SandboxError'
;
import
{
RightHeader
}
from
'@/pageComponents/dashboard/skill/detail/Header'
;
import
{
RightHeader
}
from
'@/pageComponents/dashboard/skill/detail/Header'
;
import
HighlightModal
from
'@fastgpt/web/components/v2/common/MyModal/HighlightModal'
;
import
MyModal
from
'@fastgpt/web/components/v2/common/MyModal'
;
import
runtimeUpgradeModalBg
from
'@/assets/skill/runtimeUpgradeModalBg.jpg'
;
const
EDIT_DEBUG_CHAT_ID
=
'edit-debug'
;
const
EDIT_DEBUG_CHAT_ID
=
'edit-debug'
;
...
@@ -70,52 +71,78 @@ const Content = () => {
...
@@ -70,52 +71,78 @@ const Content = () => {
headerRight=
{
canOperateSandbox
?
<
RightHeader
/>
:
undefined
}
headerRight=
{
canOperateSandbox
?
<
RightHeader
/>
:
undefined
}
/>
/>
)
}
)
}
<
Highlight
Modal
<
My
Modal
isOpen=
{
isUpgradeModalOpen
}
isOpen=
{
isUpgradeModalOpen
}
title=
{
upgradeModalTitle
}
onClose=
{
()
=>
router
.
back
()
}
footer=
{
showCloseButton
<
VStack
w=
{
'full'
}
gap=
{
3
}
>
isCentered
size=
{
'sm'
}
borderRadius=
{
'md'
}
overflow=
{
'hidden'
}
bodyStyles=
{
{
p
:
0
,
overflowX
:
'hidden'
,
overflowY
:
'auto'
}
}
>
<
Box
p=
{
2
}
pb=
{
0
}
>
<
Box
aspectRatio=
{
384
/
223
}
borderRadius=
{
'xs'
}
bgImage=
{
`url(${runtimeUpgradeModalBg.src})`
}
bgSize=
{
'cover'
}
bgPosition=
{
'center'
}
bgRepeat=
{
'no-repeat'
}
/>
</
Box
>
<
VStack
px=
{
8
}
pt=
{
6
}
pb=
{
8
}
gap=
{
0
}
textAlign=
{
'center'
}
alignItems=
{
'center'
}
>
<
Box
color=
{
'myGray.900'
}
fontSize=
{
'lg'
}
fontWeight=
{
'semibold'
}
lineHeight=
{
'26px'
}
>
{
upgradeModalTitle
}
</
Box
>
<
Box
color=
{
'myGray.900'
}
fontSize=
{
'sm'
}
lineHeight=
{
'20px'
}
mt=
{
6
}
whiteSpace=
"pre-wrap"
>
{
t
(
'skill:sandbox_runtime_upgrade_desc'
)
}
</
Box
>
{
sandboxError
&&
(
<
Box
color=
{
'red.600'
}
fontSize=
{
'sm'
}
lineHeight=
{
'20px'
}
mt=
{
3
}
whiteSpace=
"pre-wrap"
>
{
sandboxError
}
</
Box
>
)
}
<
VStack
w=
{
'full'
}
gap=
{
3
}
mt=
{
6
}
>
<
Button
<
Button
w=
{
'full'
}
w=
{
'full'
}
h=
{
'48px'
}
size=
{
'lg'
}
borderRadius=
{
'10px'
}
onClick=
{
upgradeSandboxRuntime
}
onClick=
{
upgradeSandboxRuntime
}
isLoading=
{
isUpgrading
}
isLoading=
{
isUpgrading
}
isDisabled=
{
isUpgrading
||
!
canUpgradeSandboxRuntime
}
isDisabled=
{
isUpgrading
||
!
canUpgradeSandboxRuntime
}
fontSize=
{
'16px'
}
fontSize=
{
'sm'
}
fontWeight=
{
'medium'
}
>
>
{
t
(
'skill:sandbox_runtime_upgrade_confirm'
)
}
{
t
(
'skill:sandbox_runtime_upgrade_confirm'
)
}
</
Button
>
</
Button
>
<
Button
<
Button
w=
{
'full'
}
w=
{
'full'
}
h=
{
'48px'
}
size=
{
'lg'
}
borderRadius=
{
'10px'
}
variant=
{
'whitePrimary'
}
variant=
{
'whitePrimary'
}
onClick=
{
()
=>
router
.
back
()
}
onClick=
{
()
=>
router
.
back
()
}
fontSize=
{
'16px'
}
fontSize=
{
'sm'
}
fontWeight=
{
'medium'
}
>
>
{
t
(
'common:Exit'
)
}
{
t
(
'common:Exit'
)
}
</
Button
>
</
Button
>
</
VStack
>
</
VStack
>
}
</
VStack
>
>
</
MyModal
>
<
Box
color=
{
'myGray.900'
}
fontSize=
{
'18px'
}
lineHeight=
{
'26px'
}
mt=
{
7
}
whiteSpace=
"pre-wrap"
>
{
t
(
'skill:sandbox_runtime_upgrade_desc'
)
}
</
Box
>
{
sandboxError
&&
(
<
Box
color=
{
'red.600'
}
fontSize=
{
'14px'
}
lineHeight=
{
'20px'
}
mt=
{
4
}
whiteSpace=
"pre-wrap"
>
{
sandboxError
}
</
Box
>
)
}
</
HighlightModal
>
</
Box
>
</
Box
>
);
);
};
};
...
...
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