-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
RiAlertFill, | ||
RiCloseLine, | ||
} from '@remixicon/react' | ||
import { useStore } from './store' | ||
import ActionButton from '@/app/components/base/action-button' | ||
|
||
const LimitTips = () => { | ||
const showTips = useStore(s => s.showTips) | ||
const setShowTips = useStore(s => s.setShowTips) | ||
|
||
if (!showTips) | ||
return null | ||
|
||
return ( | ||
<div className='absolute bottom-16 left-1/2 -translate-x-1/2 flex items-center rounded-xl p-2 h-10 border border-components-panel-border bg-components-panel-bg-blur shadow-md z-[9]'> | ||
<div className='flex items-center justify-center w-5 h-5'> | ||
<RiAlertFill className='w-4 h-4 text-text-warning-secondary' /> | ||
</div> | ||
<div className='mx-1 px-1 system-xs-medium text-text-primary'> | ||
{showTips} | ||
</div> | ||
<ActionButton | ||
onClick={() => setShowTips('')} | ||
> | ||
<RiCloseLine className='w-4 h-4' /> | ||
</ActionButton> | ||
</div> | ||
) | ||
} | ||
|
||
export default LimitTips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ const translation = { | |
title: '拖拽', | ||
desc: '连接节点', | ||
}, | ||
limit: '并行分支限制为 {{num}} 个', | ||
}, | ||
}, | ||
env: { | ||
|