feat: 完善官网配置、预约管理与文章编辑

This commit is contained in:
zhanjunhao
2026-10-31 19:02:58 +08:00
parent a2e5f6ef0e
commit 90b710215a
54 changed files with 4898 additions and 203 deletions
@@ -0,0 +1,264 @@
.website-settings-page {
display: flex;
flex-direction: column;
box-sizing: border-box;
/* Match Settings: 24px layout padding + 8px page padding on each side. */
padding-inline: 32px;
min-height: calc(100vh - var(--content-top-offset, 0px));
min-height: calc(100dvh - var(--content-top-offset, 0px));
/* PageLayout already inserts the marquee spacer above this page. */
padding-top: calc(
var(--app-header-height, 64px) - var(--content-top-offset, 0px) + 20px
);
padding-bottom: 20px;
}
.website-settings-page .website-settings-card {
flex: 1;
min-height: 100%;
}
.website-settings-page .website-settings-notice .semi-banner-icon {
margin-right: 4px;
}
.website-insights {
min-width: 0;
}
.website-settings-page .website-settings-tab-description {
margin-bottom: 16px;
line-height: 22px;
}
.website-category-dialog-description {
margin: 0 0 18px;
line-height: 22px;
}
.website-category-dialog-field {
display: flex;
flex-direction: column;
gap: 8px;
padding-bottom: 8px;
}
.website-category-dialog-label {
color: var(--semi-color-text-0);
font-weight: 600;
line-height: 20px;
}
.website-category-dialog-label > span {
color: var(--semi-color-danger);
}
.website-insights-categories {
margin-bottom: 20px;
}
.website-insights-category-list,
.website-insights-category,
.website-insights-toolbar,
.website-insights-manage-row,
.website-insights-editor-footer,
.website-rich-tools {
display: flex;
align-items: center;
gap: 8px;
}
.website-insights-category-list,
.website-rich-tools,
.website-insights-editor-footer {
flex-wrap: wrap;
}
.website-insights-category {
border: 1px solid var(--semi-color-border);
border-radius: var(--semi-border-radius-small);
gap: 0;
background: var(--semi-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);
}
.website-insights-category-count {
font-size: 12px;
opacity: 0.65;
}
.website-insights-category-actions {
display: flex;
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;
}
.website-insights-toolbar {
flex-wrap: wrap;
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;
min-width: 0;
}
.website-insights .website-insights-title {
display: block;
width: 100%;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--semi-color-text-0);
font-weight: 500;
line-height: 1.6;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
cursor: pointer;
}
.website-insights .website-insights-title:hover {
color: var(--semi-color-primary);
}
.website-insights .website-insights-title:focus-visible {
outline: 2px solid var(--semi-color-primary);
outline-offset: 2px;
}
.website-insights-manage-row {
padding-block: 10px;
border-bottom: 1px solid var(--semi-color-border);
}
.website-insights-manage-row > span:first-child {
flex: 1;
}
.website-insights-editor-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 250px;
gap: 24px;
}
.website-insights-editor-main {
min-width: 0;
}
.website-insights-editor-main .website-insights-section-title {
margin: 0 0 14px;
line-height: 24px;
}
.website-insights-editor-main .website-insights-detail-title {
margin-top: 10px;
}
/* SideSheet renders outside Form, so its slots need their own field spacing. */
.website-insights-editor-main .website-insights-editor-field {
min-width: 0;
margin: 0 0 18px;
padding: 0;
}
.website-insights-editor-field > .semi-form-field-label {
margin-bottom: 8px;
}
.website-insights-aside,
.website-insights-related {
display: flex;
flex-direction: column;
gap: 16px;
}
.website-insights-related {
max-height: 260px;
overflow-y: auto;
}
.website-insights-toc {
margin-top: 12px;
line-height: 1.8;
overflow-wrap: anywhere;
}
.website-insights-editor-footer {
justify-content: flex-end;
}
@media (max-width: 767px) {
.website-settings-page {
/* Match the shared mobile layout's 5px plus the page's 8px. */
padding-inline: 13px;
}
.website-insights-editor-layout {
grid-template-columns: minmax(0, 1fr);
}
.website-insights-category-actions {
visibility: visible;
}
.website-insights-toolbar > .semi-input-wrapper {
width: 100%;
}
}