merge: 合入总仓库 weiyuan(bfdfb339) web/ 新功能,保留 ui-optimization 的 UI 重构
来源:luoguang/monkey-ai weiyuan@bfdfb339 的 web/(经 sync/main-weiyuan-web-bfdfb339 同步)
同步基准:总仓库 a2ca13cb = 本仓库初始导入 d8f3aee2
冲突处理原则:保留 ui-optimization 的 UI(样式/结构/组件),嫁接 weiyuan 的功能逻辑。
- i18n:按键三方合并;ours 的「令牌→密钥」改名键上移植 theirs 的术语修订
- task-logs / OrgLogs:ours 已手工移植同一功能(6ad95e2),保留 ours
- 删除:OrgCreate(theirs 下线 /org/create)、旧 image 组件与 VideoRegenerateModal(theirs 体验中心重写)、
OrgAvatarSection / PricingBentoPage / CommissionConsole(ours 重构中已移除)
- 测试:users-pagination 的 i18next mock 补 t();theirs 新增文件补 license header
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* 体验中心图像生成表单中 schema 驱动的新增区块(WP A2-3)。
|
||||
* 配色全部从主题 token 派生(frontend-design skill 铁律一),禁止裸色值。
|
||||
*/
|
||||
.image-generation-form {
|
||||
--igf-ink: var(--text-primary);
|
||||
--igf-muted: var(--text-secondary);
|
||||
--igf-line: var(--border-subtle);
|
||||
--igf-accent: var(--ui-color-primary);
|
||||
--igf-fill: color-mix(in srgb, var(--text-primary) 4%, var(--surface-card));
|
||||
--igf-danger: var(--ui-color-danger);
|
||||
--igf-warning: var(--ui-color-warning);
|
||||
--igf-ring: color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
||||
}
|
||||
|
||||
.image-generation-form button:focus-visible,
|
||||
.image-generation-form [role='button']:focus-visible {
|
||||
outline: 2px solid var(--igf-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* 历史卡片拖入时的整卡高亮 */
|
||||
.image-generation-form.is-drop-active {
|
||||
outline: 2px dashed
|
||||
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
||||
outline-offset: -6px;
|
||||
}
|
||||
|
||||
.igf-muted {
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.igf-note {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.igf-hint {
|
||||
flex-basis: 100%;
|
||||
color: var(--igf-muted);
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.igf-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.igf-state-title {
|
||||
color: var(--igf-ink);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.igf-state.is-error .igf-state-title {
|
||||
color: var(--igf-danger);
|
||||
}
|
||||
|
||||
.igf-model-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.igf-model-name,
|
||||
.igf-model-id {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.igf-model-id {
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.igf-model-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 16px;
|
||||
margin-top: 10px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--igf-fill);
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.igf-model-meta strong {
|
||||
color: var(--igf-ink);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.igf-model-desc {
|
||||
flex-basis: 100%;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.igf-mode-option {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.igf-slots {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.igf-size .cp-option-group--ratio .cp-option {
|
||||
min-width: 64px;
|
||||
}
|
||||
|
||||
.igf-size-dims {
|
||||
color: var(--igf-muted);
|
||||
font-size: 10px;
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.igf-size-custom {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px 8px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.igf-size-custom .ant-input-number {
|
||||
flex: 1 1 110px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.igf-size-x {
|
||||
color: var(--igf-muted);
|
||||
}
|
||||
|
||||
.igf-dock-params {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.igf-generate {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.igf-quote {
|
||||
min-height: 18px;
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.igf-quote.is-warning {
|
||||
color: var(--igf-warning);
|
||||
}
|
||||
Reference in New Issue
Block a user