feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,6 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { TestTube2 as ActionTestTube2 } from '@/components/common/icons/ActionIcons';
|
||||
import {
|
||||
RefreshCw as ActionRefreshCw,
|
||||
Save as ActionSave,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
@@ -40,7 +45,7 @@ import {
|
||||
Tag,
|
||||
Typography,
|
||||
} from '@/components/ui';
|
||||
import { RefreshCw, Save, ShieldAlert, TestTube2 } from 'lucide-react';
|
||||
import { ShieldAlert } from 'lucide-react';
|
||||
import { API, showError, showSuccess } from '../../helpers';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import i18next from 'i18next';
|
||||
@@ -394,7 +399,7 @@ export default function ContentGuardSetting() {
|
||||
{statusTag(config, t)}
|
||||
</Space>
|
||||
<Button
|
||||
icon={<RefreshCw size={16} />}
|
||||
icon={<ActionRefreshCw size={16} />}
|
||||
onClick={loadAll}
|
||||
aria-label={t('刷新')}
|
||||
/>
|
||||
@@ -596,18 +601,18 @@ export default function ContentGuardSetting() {
|
||||
htmlType='submit'
|
||||
type='primary'
|
||||
loading={saving}
|
||||
icon={<Save size={16} />}
|
||||
icon={<ActionSave size={16} />}
|
||||
>
|
||||
{t('保存配置')}
|
||||
</Button>
|
||||
<Button
|
||||
icon={<TestTube2 size={16} />}
|
||||
icon={<ActionTestTube2 size={16} />}
|
||||
onClick={() => testPermission('moderate')}
|
||||
>
|
||||
moderate
|
||||
</Button>
|
||||
<Button
|
||||
icon={<TestTube2 size={16} />}
|
||||
icon={<ActionTestTube2 size={16} />}
|
||||
onClick={() => testPermission('stream_moderate')}
|
||||
>
|
||||
stream_moderate
|
||||
|
||||
Reference in New Issue
Block a user