mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
@@ -33,33 +33,33 @@ const DSLExportConfirmModal = ({
|
||||
<Modal
|
||||
isShow={true}
|
||||
onClose={() => { }}
|
||||
className={cn('max-w-[480px] w-[480px]')}
|
||||
className={cn('w-[480px] max-w-[480px]')}
|
||||
>
|
||||
<div className='relative pb-6 title-2xl-semi-bold text-text-primary'>{t('workflow.env.export.title')}</div>
|
||||
<div className='absolute right-4 top-4 p-2 cursor-pointer' onClick={onClose}>
|
||||
<RiCloseLine className='w-4 h-4 text-text-tertiary' />
|
||||
<div className='title-2xl-semi-bold relative pb-6 text-text-primary'>{t('workflow.env.export.title')}</div>
|
||||
<div className='absolute right-4 top-4 cursor-pointer p-2' onClick={onClose}>
|
||||
<RiCloseLine className='h-4 w-4 text-text-tertiary' />
|
||||
</div>
|
||||
<div className='relative'>
|
||||
<table className='w-full border-separate border-spacing-0 border border-divider-regular radius-md shadow-xs'>
|
||||
<table className='radius-md w-full border-separate border-spacing-0 border border-divider-regular shadow-xs'>
|
||||
<thead className='system-xs-medium-uppercase text-text-tertiary'>
|
||||
<tr>
|
||||
<td width={220} className='h-7 pl-3 border-r border-b border-divider-regular'>NAME</td>
|
||||
<td className='h-7 pl-3 border-b border-divider-regular'>VALUE</td>
|
||||
<td width={220} className='h-7 border-b border-r border-divider-regular pl-3'>NAME</td>
|
||||
<td className='h-7 border-b border-divider-regular pl-3'>VALUE</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{envList.map((env, index) => (
|
||||
<tr key={env.name}>
|
||||
<td className={cn('h-7 pl-3 border-r system-xs-medium', index + 1 !== envList.length && 'border-b')}>
|
||||
<div className='flex gap-1 items-center w-[200px]'>
|
||||
<Env className='shrink-0 w-4 h-4 text-util-colors-violet-violet-600' />
|
||||
<div className='text-text-primary truncate'>{env.name}</div>
|
||||
<td className={cn('system-xs-medium h-7 border-r pl-3', index + 1 !== envList.length && 'border-b')}>
|
||||
<div className='flex w-[200px] items-center gap-1'>
|
||||
<Env className='h-4 w-4 shrink-0 text-util-colors-violet-violet-600' />
|
||||
<div className='truncate text-text-primary'>{env.name}</div>
|
||||
<div className='shrink-0 text-text-tertiary'>Secret</div>
|
||||
<RiLock2Line className='shrink-0 w-3 h-3 text-text-tertiary' />
|
||||
<RiLock2Line className='h-3 w-3 shrink-0 text-text-tertiary' />
|
||||
</div>
|
||||
</td>
|
||||
<td className={cn('h-7 pl-3', index + 1 !== envList.length && 'border-b')}>
|
||||
<div className='system-xs-regular text-text-secondary truncate'>{env.value}</div>
|
||||
<div className='system-xs-regular truncate text-text-secondary'>{env.value}</div>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
@@ -72,7 +72,7 @@ const DSLExportConfirmModal = ({
|
||||
checked={exportSecrets}
|
||||
onCheck={() => setExportSecrets(!exportSecrets)}
|
||||
/>
|
||||
<div className='text-text-primary system-sm-medium cursor-pointer' onClick={() => setExportSecrets(!exportSecrets)}>{t('workflow.env.export.checkbox')}</div>
|
||||
<div className='system-sm-medium cursor-pointer text-text-primary' onClick={() => setExportSecrets(!exportSecrets)}>{t('workflow.env.export.checkbox')}</div>
|
||||
</div>
|
||||
<div className='flex flex-row-reverse pt-6'>
|
||||
<Button className='ml-2' variant='primary' onClick={submit}>{exportSecrets ? t('workflow.env.export.export') : t('workflow.env.export.ignore')}</Button>
|
||||
|
||||
Reference in New Issue
Block a user