feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -28,7 +28,7 @@ import {
|
||||
SideSheet,
|
||||
TextArea,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { articleErrors } from './insightsModel';
|
||||
import { articleContentInfo, sanitizeArticleHtml } from './insightsContent';
|
||||
import ArticleRichEditor from './ArticleRichEditor';
|
||||
|
||||
@@ -25,13 +25,13 @@ import {
|
||||
Modal,
|
||||
Select,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
IconPlus,
|
||||
IconSearch,
|
||||
IconEdit,
|
||||
IconClose,
|
||||
} from '@douyinfe/semi-icons';
|
||||
} from '@/components/ui/icons';
|
||||
import CardTable from '../../components/common/ui/CardTable';
|
||||
import { showError, showInfo } from '../../helpers';
|
||||
import {
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { Button, Image, Typography } from '@douyinfe/semi-ui';
|
||||
import { Button, Image, Typography } from '@/components/ui';
|
||||
import { Upload } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -90,9 +90,9 @@ export default function QrCodeUpload({
|
||||
className='flex flex-wrap items-center gap-4 rounded-lg border border-dashed p-4'
|
||||
style={{
|
||||
borderColor: invalid
|
||||
? 'var(--semi-color-danger)'
|
||||
: 'var(--semi-color-border)',
|
||||
background: 'var(--semi-color-fill-0)',
|
||||
? 'var(--ui-color-danger)'
|
||||
: 'var(--ui-color-border)',
|
||||
background: 'var(--ui-color-fill-0)',
|
||||
}}
|
||||
>
|
||||
{value ? (
|
||||
@@ -106,7 +106,7 @@ export default function QrCodeUpload({
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<Upload size={28} className='m-4 text-[var(--semi-color-text-2)]' />
|
||||
<Upload size={28} className='m-4 text-[var(--ui-color-text-2)]' />
|
||||
)}
|
||||
<div className='flex flex-col gap-2'>
|
||||
<input
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Form, Input } from '@douyinfe/semi-ui';
|
||||
import { Form, Input } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FIELDS } from './model';
|
||||
|
||||
|
||||
@@ -18,10 +18,6 @@
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.website-settings-page .website-settings-notice .semi-banner-icon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.website-insights {
|
||||
min-width: 0;
|
||||
}
|
||||
@@ -44,13 +40,13 @@
|
||||
}
|
||||
|
||||
.website-category-dialog-label {
|
||||
color: var(--semi-color-text-0);
|
||||
color: var(--ui-color-text-0);
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.website-category-dialog-label > span {
|
||||
color: var(--semi-color-danger);
|
||||
color: var(--ui-color-danger);
|
||||
}
|
||||
|
||||
.website-insights-categories {
|
||||
@@ -75,36 +71,17 @@
|
||||
}
|
||||
|
||||
.website-insights-category {
|
||||
border: 1px solid var(--semi-color-border);
|
||||
border-radius: var(--semi-border-radius-small);
|
||||
border: 1px solid var(--ui-color-border);
|
||||
border-radius: var(--ui-border-radius-small);
|
||||
gap: 0;
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
min-height: 34px;
|
||||
padding-inline: 2px;
|
||||
}
|
||||
|
||||
.website-insights-category.is-selected {
|
||||
border-color: var(--semi-color-primary-light-active);
|
||||
background: var(--semi-color-primary-light-default);
|
||||
}
|
||||
|
||||
.website-insights-category .semi-button {
|
||||
background: transparent !important;
|
||||
border: 0 !important;
|
||||
border-radius: 3px !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.website-insights-category > .semi-button .semi-button-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: var(--semi-color-text-1);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.website-insights-category.is-selected > .semi-button .semi-button-content {
|
||||
color: var(--semi-color-primary);
|
||||
border-color: var(--ui-color-primary-light-active);
|
||||
background: var(--ui-color-primary-light-default);
|
||||
}
|
||||
|
||||
.website-insights-category-count {
|
||||
@@ -117,16 +94,6 @@
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.website-insights-category-actions .semi-button {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.website-insights-category .semi-button:hover {
|
||||
background: var(--semi-color-fill-1) !important;
|
||||
}
|
||||
|
||||
.website-insights-category:hover .website-insights-category-actions,
|
||||
.website-insights-category:focus-within .website-insights-category-actions {
|
||||
visibility: visible;
|
||||
@@ -137,19 +104,6 @@
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.website-insights-toolbar > .semi-input-wrapper {
|
||||
width: 290px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.website-insights-toolbar > .semi-select {
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
.website-insights-toolbar > .semi-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.website-insights-article-meta {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
@@ -163,7 +117,7 @@
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--semi-color-text-0);
|
||||
color: var(--ui-color-text-0);
|
||||
font-weight: 500;
|
||||
line-height: 1.6;
|
||||
max-width: 100%;
|
||||
@@ -175,17 +129,17 @@
|
||||
}
|
||||
|
||||
.website-insights .website-insights-title:hover {
|
||||
color: var(--semi-color-primary);
|
||||
color: var(--ui-color-primary);
|
||||
}
|
||||
|
||||
.website-insights .website-insights-title:focus-visible {
|
||||
outline: 2px solid var(--semi-color-primary);
|
||||
outline: 2px solid var(--ui-color-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.website-insights-manage-row {
|
||||
padding-block: 10px;
|
||||
border-bottom: 1px solid var(--semi-color-border);
|
||||
border-bottom: 1px solid var(--ui-color-border);
|
||||
}
|
||||
|
||||
.website-insights-manage-row > span:first-child {
|
||||
@@ -218,10 +172,6 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.website-insights-editor-field > .semi-form-field-label {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.website-insights-aside,
|
||||
.website-insights-related {
|
||||
display: flex;
|
||||
@@ -257,8 +207,4 @@
|
||||
.website-insights-category-actions {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.website-insights-toolbar > .semi-input-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Spin,
|
||||
Tabs,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { showError, showSuccess, showWarning } from '../../helpers';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user