@@ -128,7 +128,7 @@ export default () => {
128128 { /* 卡片网格骨架屏 */ }
129129 < div className = "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3 mt-3" >
130130 { [ 1 , 2 , 3 , 4 , 5 , 6 ] . map ( ( item ) => (
131- < Card key = { item } className = "border-stroke" >
131+ < Card key = { item } className = "border-stroke dark:border-strokedark " >
132132 < div className = "flex items-start justify-between mb-4" >
133133 < div className = "flex items-center gap-3" >
134134 < Skeleton . Avatar active size = { 48 } shape = "square" />
@@ -138,10 +138,10 @@ export default () => {
138138 </ div >
139139 < Skeleton . Button active size = "small" style = { { width : 32 , height : 32 } } />
140140 </ div >
141- < div className = "bg-gray-100 rounded-md p-3 py-4 mb-4" >
141+ < div className = "bg-gray-100 dark:bg-boxdark-2 rounded-md p-3 py-4 mb-4" >
142142
143143 </ div >
144- < div className = "pt-2 border-t border-gray-100" >
144+ < div className = "pt-2 border-t border-gray-100 dark:border-strokedark " >
145145 < Skeleton . Button active size = "default" style = { { width : '100%' , height : 32 } } />
146146 </ div >
147147 </ Card >
@@ -211,11 +211,11 @@ export default () => {
211211 return (
212212 < Card
213213 key = { item . id }
214- className = { `relative p-5 rounded-xl shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden ${ item . isDefault
215- ? 'border-2 border-blue-500 bg-gradient-to-br from-blue-50 via-white to-blue-50'
216- : 'border border-gray-200 bg-gradient-to-br from-gray-50 via-white to-slate-50'
214+ className = { `relative p-5 rounded-xl shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden ${ item . isDefault
215+ ? 'border-2 border-blue-500 bg-gradient-to-br from-blue-50 via-white to-blue-50 dark:from-blue-900/30 dark:via-boxdark dark:to-blue-900/30 dark:border-blue-500 '
216+ : 'border border-gray-200 bg-gradient-to-br from-gray-50 via-white to-slate-50 dark:from-boxdark/80 dark:via-boxdark dark:to-boxdark-2/80 dark:border-strokedark '
217217 } `}
218- styles = { { body : { padding : '10px' , flex : 1 , display : 'flex' , flexDirection : 'column' } } }
218+ styles = { { body : { padding : '10px' , flex : 1 , display : 'flex' , flexDirection : 'column' , backgroundColor : 'transparent' } } }
219219 >
220220 { /* 卡片头部:图标与名称 */ }
221221 < div className = "flex items-start justify-between mb-4" >
@@ -230,47 +230,47 @@ export default () => {
230230 </ Avatar >
231231
232232 < div >
233- < div className = "font-bold text-lg text-gray-800 leading-tight mb-1 truncate max-w-[160px] ml-[5px]" >
233+ < div className = "font-bold text-lg text-gray-800 dark:text-white leading-tight mb-1 truncate max-w-[160px] ml-[5px]" >
234234 { item . name }
235235 </ div >
236236
237237 < Space size = { 4 } >
238- < Tag bordered = { false } className = "text-xs bg-gray-100 text-gray-500 mr-0" >
238+ < Tag bordered = { false } className = "text-xs bg-gray-100 text-gray-500 dark:bg-boxdark-2 dark:text-gray-300 mr-0" >
239239 { info ? info . label : item . model }
240240 </ Tag >
241241
242242 { info && (
243243 < Tooltip title = { info . desc } >
244- < InfoCircleOutlined className = "text-gray-400 cursor-pointer hover:text-primary" />
244+ < InfoCircleOutlined className = "text-gray-400 dark:text-gray-500 cursor-pointer hover:text-primary dark: hover:text-primary" />
245245 </ Tooltip >
246246 ) }
247247 </ Space >
248248 </ div >
249249 </ div >
250250
251251 { /* 更多操作菜单 */ }
252- < Dropdown menu = { { items : menuItems } } placement = "bottomRight" arrow className = "bg-gray-50" >
253- < Button type = "text" icon = { < MoreOutlined className = "text-xl text-gray-400" /> } />
252+ < Dropdown menu = { { items : menuItems } } placement = "bottomRight" arrow className = "bg-gray-50 dark:bg-boxdark-2/30 dark:hover:bg-boxdark-2/90 " >
253+ < Button type = "text" icon = { < MoreOutlined className = "text-xl text-gray-400 dark:text-gray-500 " /> } />
254254 </ Dropdown >
255255 </ div >
256256
257257 { /* 卡片内容:URL显示 */ }
258- < div className = "bg-gray-50 rounded-md px-3 py-2 mb-2 flex-1 border border-gray-100" >
259- < div className = "flex items-center text-gray-400 text-xs uppercase font-bold mb-1" >
258+ < div className = "bg-gray-50 dark:bg-boxdark-2 rounded-md px-3 py-2 mb-2 flex-1 border border-gray-100 dark:border-strokedark " >
259+ < div className = "flex items-center text-gray-400 dark:text-gray-500 text-xs uppercase font-bold mb-1" >
260260 < ApiOutlined className = "mr-1" /> API Endpoint
261261 </ div >
262262 < div
263- className = "text-gray-600 font-mono text-sm m-0 break-all"
263+ className = "text-gray-600 dark:text-gray-300 font-mono text-sm m-0 break-all"
264264 >
265265 { item . url }
266266 </ div >
267267 </ div >
268268
269269 { /* 卡片底部:主要操作 */ }
270- < div className = "mt-auto pt-2 border-t border-gray-100 flex justify-end" >
270+ < div className = "mt-auto pt-2 border-t border-gray-100 dark:border-strokedark flex justify-end" >
271271 < Button
272272 type = { isTesting ? 'default' : 'dashed' }
273- className = { `${ isTesting ? '' : 'text-primary border-primary bg-blue-50/50' } w-full` }
273+ className = { `${ isTesting ? '' : 'text-primary border-primary bg-blue-50/50 dark:bg-blue-900/20 dark:border-primary dark:text-primary ' } w-full` }
274274 icon = { isTesting ? < ThunderboltFilled spin /> : < ThunderboltFilled /> }
275275 loading = { isTesting }
276276 onClick = { ( ) => testConnection ( item ) }
@@ -285,7 +285,7 @@ export default () => {
285285 { /* 空状态下的添加按钮(如果没有数据或者作为最后一个Card) */ }
286286 < Button
287287 type = "dashed"
288- className = "h-auto min-h-[200px] border-2 flex flex-col items-center justify-center gap-2 !bg-white text-gray-400 hover:text-primary hover:border-primary transition-colors rounded-lg bg-transparent"
288+ className = "h-auto min-h-[200px] border-2 flex flex-col items-center justify-center gap-2 !bg-white dark:!bg-boxdark text-gray-400 dark:text-gray-500 hover:text-primary dark: hover:text-primary hover: border-primary dark:hover:border-primary rounded-lg bg-transparent dark:border-strokedark "
289289 onClick = { ( ) => setIsModalOpen ( true ) }
290290 >
291291 < PlusOutlined style = { { fontSize : '24px' } } />
0 commit comments