From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/header/account-setting/api-based-extension-page/modal.tsx | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/app/components/header/account-setting/api-based-extension-page/modal.tsx b/app/components/header/account-setting/api-based-extension-page/modal.tsx
index 53f7673..23a04f5 100644
--- a/app/components/header/account-setting/api-based-extension-page/modal.tsx
+++ b/app/components/header/account-setting/api-based-extension-page/modal.tsx
@@ -10,7 +10,6 @@
updateApiBasedExtension,
} from '@/service/common'
import { useToastContext } from '@/app/components/base/toast'
-import { noop } from 'lodash-es'
export type ApiBasedExtensionData = {
name?: string
@@ -75,10 +74,10 @@
return (
<Modal
isShow
- onClose={noop}
- className='!w-[640px] !max-w-none !p-8 !pb-6'
+ onClose={() => { }}
+ className='!p-8 !pb-6 !max-w-none !w-[640px]'
>
- <div className='mb-2 text-xl font-semibold text-text-primary'>
+ <div className='mb-2 text-xl font-semibold text-gray-900'>
{
data.name
? t('common.apiBasedExtension.modal.editTitle')
@@ -86,49 +85,49 @@
}
</div>
<div className='py-2'>
- <div className='text-sm font-medium leading-9 text-text-primary'>
+ <div className='leading-9 text-sm font-medium text-gray-900'>
{t('common.apiBasedExtension.modal.name.title')}
</div>
<input
value={localeData.name || ''}
onChange={e => handleDataChange('name', e.target.value)}
- className='block h-9 w-full appearance-none rounded-lg bg-components-input-bg-normal px-3 text-sm text-text-primary outline-none'
+ className='block px-3 w-full h-9 bg-gray-100 rounded-lg text-sm text-gray-900 outline-none appearance-none'
placeholder={t('common.apiBasedExtension.modal.name.placeholder') || ''}
/>
</div>
<div className='py-2'>
- <div className='flex h-9 items-center justify-between text-sm font-medium text-text-primary'>
+ <div className='flex justify-between items-center h-9 text-sm font-medium text-gray-900'>
{t('common.apiBasedExtension.modal.apiEndpoint.title')}
<a
href={t('common.apiBasedExtension.linkUrl') || '/'}
target='_blank' rel='noopener noreferrer'
- className='group flex items-center text-xs font-normal text-text-accent'
+ className='group flex items-center text-xs text-gray-500 font-normal hover:text-primary-600'
>
- <BookOpen01 className='mr-1 h-3 w-3' />
+ <BookOpen01 className='mr-1 w-3 h-3 text-gray-500 group-hover:text-primary-600' />
{t('common.apiBasedExtension.link')}
</a>
</div>
<input
value={localeData.api_endpoint || ''}
onChange={e => handleDataChange('api_endpoint', e.target.value)}
- className='block h-9 w-full appearance-none rounded-lg bg-components-input-bg-normal px-3 text-sm text-text-primary outline-none'
+ className='block px-3 w-full h-9 bg-gray-100 rounded-lg text-sm text-gray-900 outline-none appearance-none'
placeholder={t('common.apiBasedExtension.modal.apiEndpoint.placeholder') || ''}
/>
</div>
<div className='py-2'>
- <div className='text-sm font-medium leading-9 text-text-primary'>
+ <div className='leading-9 text-sm font-medium text-gray-900'>
{t('common.apiBasedExtension.modal.apiKey.title')}
</div>
<div className='flex items-center'>
<input
value={localeData.api_key || ''}
onChange={e => handleDataChange('api_key', e.target.value)}
- className='mr-2 block h-9 grow appearance-none rounded-lg bg-components-input-bg-normal px-3 text-sm text-text-primary outline-none'
+ className='block grow mr-2 px-3 h-9 bg-gray-100 rounded-lg text-sm text-gray-900 outline-none appearance-none'
placeholder={t('common.apiBasedExtension.modal.apiKey.placeholder') || ''}
/>
</div>
</div>
- <div className='mt-6 flex items-center justify-end'>
+ <div className='flex items-center justify-end mt-6'>
<Button
onClick={onCancel}
className='mr-2'
--
Gitblit v1.8.0