feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
Code2 as ActionCode2,
|
||||
ChevronDown as ActionChevronDown,
|
||||
Copy as ActionCopy,
|
||||
KeyRound as ActionKeyRound,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useContext, useMemo, useState } from 'react';
|
||||
import { Button } from '@/components/ui';
|
||||
import { ChevronDown, Code2, Copy, KeyRound } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { StatusContext } from '../../../context/Status';
|
||||
@@ -84,15 +89,15 @@ const ApiCodePanel = ({ task }) => {
|
||||
<section className='wf-api'>
|
||||
<button
|
||||
type='button'
|
||||
className='wf-api-toggle'
|
||||
className='app-action-button wf-api-toggle'
|
||||
aria-expanded={open}
|
||||
aria-controls={panelId}
|
||||
onClick={toggle}
|
||||
>
|
||||
<Code2 size={14} aria-hidden='true' />
|
||||
<ActionCode2 size={14} aria-hidden='true' />
|
||||
<span className='wf-api-title'>{t('获取 API 代码')}</span>
|
||||
<span className='wf-api-badge'>{t('API 同价')}</span>
|
||||
<ChevronDown
|
||||
<ActionChevronDown
|
||||
size={14}
|
||||
aria-hidden='true'
|
||||
className={`wf-api-caret${open ? ' is-open' : ''}`}
|
||||
@@ -125,7 +130,7 @@ const ApiCodePanel = ({ task }) => {
|
||||
<Button
|
||||
size='small'
|
||||
theme='borderless'
|
||||
icon={<Copy size={12} aria-hidden='true' />}
|
||||
icon={<ActionCopy size={12} aria-hidden='true' />}
|
||||
onClick={async () => {
|
||||
if (await copy(code)) showSuccess(t('已复制'));
|
||||
}}
|
||||
@@ -155,7 +160,7 @@ const ApiCodePanel = ({ task }) => {
|
||||
<Button
|
||||
size='small'
|
||||
theme='solid'
|
||||
icon={<KeyRound size={12} aria-hidden='true' />}
|
||||
icon={<ActionKeyRound size={12} aria-hidden='true' />}
|
||||
onClick={() => navigate(KEY_MANAGEMENT_FROM_STUDIO)}
|
||||
>
|
||||
{t('创建密钥')}
|
||||
|
||||
Reference in New Issue
Block a user