release: dsh-sansheng-liubu v0.3.1 (package at repo root)

按最新方案重排朝堂外观。
This commit is contained in:
qyh15 2026-11-17 22:27:09 +08:00
parent 6430d53d43
commit 26096ec089
4 changed files with 24 additions and 120 deletions

View File

@ -475,48 +475,6 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background:
.ssw-badge[data-status=failed]{background:rgba(220,38,38,.12);color:var(--ssw-danger)}
.ssw-form{margin-bottom:12px;padding:10px;border:1px solid var(--ssw-line);border-radius:9px;background:var(--ssw-side)}
.ssw-empty-line{margin:10px 0;font-size:12px;color:var(--ssw-faint)}
/* 朝堂工作台外观(按 4 审 + 最新外观方案):浅底、白卡、细边、蓝色只给当前角色与主按钮 */
.ssw-root{container-type:inline-size}
.ssw-tabs{display:flex;gap:22px;margin:14px 16px 0;padding:0;border:0;border-bottom:1px solid var(--ssw-line);border-radius:0;background:transparent}
.ssw-tab{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 0 10px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--ssw-muted);font-size:13px}
.ssw-tab.is-active{color:var(--ssw-blue);font-weight:600;border-bottom-color:var(--ssw-blue);background:transparent;box-shadow:none}
.ssw-tab-count{font-size:11px;color:var(--ssw-faint);font-weight:400}
.ssw-court{max-width:1040px;margin:0 auto;padding:16px 16px 8px;display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
@container (min-width:440px){.ssw-court{grid-template-columns:260px minmax(0,1fr)}}
.ssw-org{container-type:inline-size}
@container (max-width:340px){.ssw-org .ssw-role-duty{display:none}.ssw-org .ssw-six{grid-template-columns:repeat(2,minmax(0,1fr))}.ssw-org .ssw-lead{width:100%}}
.ssw-org{min-width:0}
.ssw-tree{padding:0}
.ssw-scope .ssw-seat{border:1px solid var(--ssw-line);border-radius:9px;background:var(--ssw-card)}
.ssw-scope .ssw-lead .ssw-seat{border-color:var(--ssw-line)}
.ssw-scope .ssw-seat:hover{border-color:var(--ssw-blue)}
.ssw-scope .ssw-seat[aria-pressed=true]{border-color:var(--ssw-blue);background:var(--ssw-wash);box-shadow:0 0 0 2px rgba(59,130,246,.12)}
.ssw-seat{min-height:64px;padding:11px 12px 9px;gap:5px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ssw-seat-head{display:flex;align-items:center;gap:8px}
.ssw-seat-icon{flex:none;color:var(--ssw-muted)}
.ssw-role-name{font-size:15px;font-weight:600;letter-spacing:1px;flex:1;white-space:nowrap}
.ssw-role-duty{font-size:11px;color:var(--ssw-muted);line-height:1.5}
.ssw-dot{width:7px;height:7px}
.ssw-lead{width:190px}
.ssw-detail{border:1px solid var(--ssw-line);border-radius:10px;background:var(--ssw-card);padding:16px;display:flex;flex-direction:column;gap:12px;min-height:340px}
.ssw-detail-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ssw-detail-name{font-size:17px;font-weight:600;letter-spacing:1px}
.ssw-detail-status{font-size:11px;color:var(--ssw-faint)}
.ssw-detail-text{margin:0;font-size:12px;line-height:1.9;color:var(--ssw-muted)}
.ssw-detail-actions .ssw-primary{width:100%;padding:10px 12px;font-size:13px}
.ssw-detail .ssw-config{margin:0;border:1px solid var(--ssw-line);border-radius:8px;background:var(--ssw-bg)}
.ssw-detail .ssw-report{padding:0;margin:0}
.ssw-detail .ssw-report-toggle{color:var(--ssw-muted);font-size:12px;padding:2px 0}
@container (max-width:439px){
.ssw-court{padding:12px 12px 8px;gap:14px}
.ssw-lead{width:100%}
.ssw-six{grid-template-columns:repeat(2,minmax(0,1fr))}
.ssw-seat{min-height:52px;padding:12px;gap:0}
.ssw-role-duty{display:none}
.ssw-role-name{font-size:15px}
.ssw-seat-icon{width:15px;height:15px}
.ssw-detail{min-height:0}
}
.ssw-project-line{align-items:baseline;margin-bottom:10px}
.ssw-project-title{margin:0}
.ssw-tab-body{height:100%;min-height:0;display:flex;flex-direction:column}
@ -1499,8 +1457,7 @@ function apply(ctx) {
},
(0, import_react.createElement)(
"span",
{ className: "ssw-seat-head" },
(0, import_react.createElement)(SeatIcon, { id: seat.id }),
{ className: "ssw-role-top" },
(0, import_react.createElement)("span", { className: "ssw-role-name" }, seat.name),
(0, import_react.createElement)("span", { className: "ssw-dot", "data-status": seat.status, "aria-hidden": "true" })
),
@ -1536,15 +1493,15 @@ function apply(ctx) {
{ className: "ssw-project" },
(0, import_react.createElement)(
"div",
{ className: "ssw-project-line" },
(0, import_react.createElement)("span", { className: "ssw-project-title" }, wb.projectTitle || "未命名项目"),
{ className: "ssw-project-line", style: { justifyContent: "flex-end" } },
(0, import_react.createElement)("span", { className: "ssw-count" }, wb.project.seatCount + " 个角色 · " + wb.project.sessionCount + " 个会话")
)
),
(0, import_react.createElement)("div", { className: "ssw-project-title" }, wb.projectTitle || "未命名项目")
);
const selectedStatus = wb.selected.status;
const detailActions = (0, import_react.createElement)(
"div",
{ className: "ssw-detail-actions" },
{ className: "ssw-current-actions" },
selectedStatus === "bound" ? (0, import_react.createElement)("button", {
type: "button",
className: "ssw-primary",
@ -1735,24 +1692,18 @@ function apply(ctx) {
(0, import_react.createElement)("div", { className: "ssw-list" }, artifactRows)
);
const detail = (0, import_react.createElement)(
"aside",
{ className: "ssw-detail" },
"section",
{ className: "ssw-current" },
(0, import_react.createElement)(
"div",
{ className: "ssw-detail-top" },
(0, import_react.createElement)("strong", { className: "ssw-detail-name" }, wb.selected.name),
(0, import_react.createElement)("span", { className: "ssw-detail-status" }, "角色职责 · " + wb.selected.statusLabel)
{ className: "ssw-current-top" },
(0, import_react.createElement)("strong", { className: "ssw-current-name" }, wb.selected.name),
(0, import_react.createElement)("span", { className: "ssw-current-label" }, "角色职责 · " + wb.selected.statusLabel)
),
(0, import_react.createElement)("p", { className: "ssw-detail-text" }, wb.selected.responsibility),
detailActions,
config
);
const courtView = (0, import_react.createElement)(
"section",
{ className: "ssw-court" },
(0, import_react.createElement)("div", { className: "ssw-org" }, tree),
detail
(0, import_react.createElement)("p", { className: "ssw-current-text" }, wb.selected.responsibility),
detailActions
);
const courtView = (0, import_react.createElement)(import_react.Fragment, null, tree, detail, config);
let body;
if (phase === "loading") body = (0, import_react.createElement)("div", { className: "ssw-loading" }, "正在加载工作台…");
else if (phase === "no-workspace") body = (0, import_react.createElement)(

View File

@ -1,6 +1,6 @@
{
"name": "dsh-sansheng-liubu",
"version": "0.3.0",
"version": "0.3.1",
"description": "三省六部:每个项目固定十席角色与独立会话的 DSH 插件(第一版)。",
"keywords": [
"dsh-plugin",

View File

@ -550,8 +550,7 @@ export function apply(ctx) {
title: seat.name + ' · ' + seat.duty + '(' + seat.statusLabel + ')',
onClick: () => pickSeat(seat.id),
},
h('span', { className: 'ssw-seat-head' },
h(SeatIcon, { id: seat.id }),
h('span', { className: 'ssw-role-top' },
h('span', { className: 'ssw-role-name' }, seat.name),
h('span', { className: 'ssw-dot', 'data-status': seat.status, 'aria-hidden': 'true' }),
),
@ -580,14 +579,14 @@ export function apply(ctx) {
)
const projectInfo = h('div', { className: 'ssw-project' },
h('div', { className: 'ssw-project-line' },
h('span', { className: 'ssw-project-title' }, wb.projectTitle || '未命名项目'),
h('div', { className: 'ssw-project-line', style: { justifyContent: 'flex-end' } },
h('span', { className: 'ssw-count' }, wb.project.seatCount + ' 个角色 · ' + wb.project.sessionCount + ' 个会话'),
),
h('div', { className: 'ssw-project-title' }, wb.projectTitle || '未命名项目'),
)
const selectedStatus = wb.selected.status
const detailActions = h('div', { className: 'ssw-detail-actions' },
const detailActions = h('div', { className: 'ssw-current-actions' },
selectedStatus === 'bound'
? h('button', {
type: 'button', className: 'ssw-primary', disabled: busy,
@ -727,19 +726,15 @@ export function apply(ctx) {
) : null,
h('div', { className: 'ssw-list' }, artifactRows))
const detail = h('aside', { className: 'ssw-detail' },
h('div', { className: 'ssw-detail-top' },
h('strong', { className: 'ssw-detail-name' }, wb.selected.name),
h('span', { className: 'ssw-detail-status' }, '角色职责 · ' + wb.selected.statusLabel),
const detail = h('section', { className: 'ssw-current' },
h('div', { className: 'ssw-current-top' },
h('strong', { className: 'ssw-current-name' }, wb.selected.name),
h('span', { className: 'ssw-current-label' }, '角色职责 · ' + wb.selected.statusLabel),
),
h('p', { className: 'ssw-detail-text' }, wb.selected.responsibility),
h('p', { className: 'ssw-current-text' }, wb.selected.responsibility),
detailActions,
config,
)
const courtView = h('section', { className: 'ssw-court' },
h('div', { className: 'ssw-org' }, tree),
detail,
)
const courtView = h(Fragment, null, tree, detail, config)
let body
if (phase === 'loading') body = h('div', { className: 'ssw-loading' }, '正在加载工作台…')

View File

@ -107,48 +107,6 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background:
.ssw-badge[data-status=failed]{background:rgba(220,38,38,.12);color:var(--ssw-danger)}
.ssw-form{margin-bottom:12px;padding:10px;border:1px solid var(--ssw-line);border-radius:9px;background:var(--ssw-side)}
.ssw-empty-line{margin:10px 0;font-size:12px;color:var(--ssw-faint)}
/* 朝堂工作台外观(按 4 审 + 最新外观方案):浅底、白卡、细边、蓝色只给当前角色与主按钮 */
.ssw-root{container-type:inline-size}
.ssw-tabs{display:flex;gap:22px;margin:14px 16px 0;padding:0;border:0;border-bottom:1px solid var(--ssw-line);border-radius:0;background:transparent}
.ssw-tab{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 0 10px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--ssw-muted);font-size:13px}
.ssw-tab.is-active{color:var(--ssw-blue);font-weight:600;border-bottom-color:var(--ssw-blue);background:transparent;box-shadow:none}
.ssw-tab-count{font-size:11px;color:var(--ssw-faint);font-weight:400}
.ssw-court{max-width:1040px;margin:0 auto;padding:16px 16px 8px;display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
@container (min-width:440px){.ssw-court{grid-template-columns:260px minmax(0,1fr)}}
.ssw-org{container-type:inline-size}
@container (max-width:340px){.ssw-org .ssw-role-duty{display:none}.ssw-org .ssw-six{grid-template-columns:repeat(2,minmax(0,1fr))}.ssw-org .ssw-lead{width:100%}}
.ssw-org{min-width:0}
.ssw-tree{padding:0}
.ssw-scope .ssw-seat{border:1px solid var(--ssw-line);border-radius:9px;background:var(--ssw-card)}
.ssw-scope .ssw-lead .ssw-seat{border-color:var(--ssw-line)}
.ssw-scope .ssw-seat:hover{border-color:var(--ssw-blue)}
.ssw-scope .ssw-seat[aria-pressed=true]{border-color:var(--ssw-blue);background:var(--ssw-wash);box-shadow:0 0 0 2px rgba(59,130,246,.12)}
.ssw-seat{min-height:64px;padding:11px 12px 9px;gap:5px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ssw-seat-head{display:flex;align-items:center;gap:8px}
.ssw-seat-icon{flex:none;color:var(--ssw-muted)}
.ssw-role-name{font-size:15px;font-weight:600;letter-spacing:1px;flex:1;white-space:nowrap}
.ssw-role-duty{font-size:11px;color:var(--ssw-muted);line-height:1.5}
.ssw-dot{width:7px;height:7px}
.ssw-lead{width:190px}
.ssw-detail{border:1px solid var(--ssw-line);border-radius:10px;background:var(--ssw-card);padding:16px;display:flex;flex-direction:column;gap:12px;min-height:340px}
.ssw-detail-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ssw-detail-name{font-size:17px;font-weight:600;letter-spacing:1px}
.ssw-detail-status{font-size:11px;color:var(--ssw-faint)}
.ssw-detail-text{margin:0;font-size:12px;line-height:1.9;color:var(--ssw-muted)}
.ssw-detail-actions .ssw-primary{width:100%;padding:10px 12px;font-size:13px}
.ssw-detail .ssw-config{margin:0;border:1px solid var(--ssw-line);border-radius:8px;background:var(--ssw-bg)}
.ssw-detail .ssw-report{padding:0;margin:0}
.ssw-detail .ssw-report-toggle{color:var(--ssw-muted);font-size:12px;padding:2px 0}
@container (max-width:439px){
.ssw-court{padding:12px 12px 8px;gap:14px}
.ssw-lead{width:100%}
.ssw-six{grid-template-columns:repeat(2,minmax(0,1fr))}
.ssw-seat{min-height:52px;padding:12px;gap:0}
.ssw-role-duty{display:none}
.ssw-role-name{font-size:15px}
.ssw-seat-icon{width:15px;height:15px}
.ssw-detail{min-height:0}
}
.ssw-project-line{align-items:baseline;margin-bottom:10px}
.ssw-project-title{margin:0}
.ssw-tab-body{height:100%;min-height:0;display:flex;flex-direction:column}