From 9b36556fa690a477ba248e1229f00afad1a3f6d5 Mon Sep 17 00:00:00 2001 From: qyh15 Date: Tue, 17 Nov 2026 21:13:20 +0800 Subject: [PATCH] release: dsh-sansheng-liubu v0.2.4 (package at repo root) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除冗余块,保持左右分栏。 --- client.js | 23 ++++++----------------- package.json | 2 +- src/client/index.js | 15 ++------------- src/client/styles.js | 2 ++ 4 files changed, 11 insertions(+), 31 deletions(-) diff --git a/client.js b/client.js index 93a4266..773a919 100644 --- a/client.js +++ b/client.js @@ -517,6 +517,8 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background: .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} .ssw-tab-body .ssw-root{flex:1;min-height:0} .ssw-tab-title{font-size:13px} @@ -1517,22 +1519,10 @@ function apply(ctx) { (0, import_react.createElement)( "div", { className: "ssw-project-line" }, - (0, import_react.createElement)("span", { className: "ssw-eyebrow" }, (0, import_react.createElement)(FolderIcon), "当前项目"), + (0, import_react.createElement)("span", { className: "ssw-project-title" }, wb.projectTitle || "未命名项目"), (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 enableBlock = !wb.ready ? (0, import_react.createElement)( - "div", - { className: "ssw-enable" }, - (0, import_react.createElement)("p", { className: "ssw-enable-note" }, "这个项目还没有启用十席。启用会建立十个独立会话,但不会自动运行模型。"), - (0, import_react.createElement)("button", { - type: "button", - className: "ssw-primary", - disabled: busy, - onClick: enableSeats - }, busy ? "正在启用…" : "启用此项目的十席") - ) : null; const detailActions = (0, import_react.createElement)( "div", { className: "ssw-detail-actions" }, @@ -1736,13 +1726,12 @@ function apply(ctx) { ), (0, import_react.createElement)("p", { className: "ssw-detail-text" }, wb.selected.responsibility), detailActions, - config, - report + config ); const courtView = (0, import_react.createElement)( "section", { className: "ssw-court" }, - (0, import_react.createElement)("div", { className: "ssw-org" }, enableBlock, tree), + (0, import_react.createElement)("div", { className: "ssw-org" }, tree), detail ); let body; diff --git a/package.json b/package.json index 2faa89d..747de4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-sansheng-liubu", - "version": "0.2.3", + "version": "0.2.4", "description": "三省六部:每个项目固定十席角色与独立会话的 DSH 插件(第一版)。", "keywords": [ "dsh-plugin", diff --git a/src/client/index.js b/src/client/index.js index 887f2b6..8e21d53 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -564,21 +564,11 @@ export function apply(ctx) { const projectInfo = h('div', { className: 'ssw-project' }, h('div', { className: 'ssw-project-line' }, - h('span', { className: 'ssw-eyebrow' }, h(FolderIcon), '当前项目'), + h('span', { className: 'ssw-project-title' }, wb.projectTitle || '未命名项目'), h('span', { className: 'ssw-count' }, wb.project.seatCount + ' 个角色 · ' + wb.project.sessionCount + ' 个会话'), ), - h('div', { className: 'ssw-project-title' }, wb.projectTitle || '未命名项目'), ) - const enableBlock = !wb.ready - ? h('div', { className: 'ssw-enable' }, - h('p', { className: 'ssw-enable-note' }, '这个项目还没有启用十席。启用会建立十个独立会话,但不会自动运行模型。'), - h('button', { - type: 'button', className: 'ssw-primary', disabled: busy, onClick: enableSeats, - }, busy ? '正在启用…' : '启用此项目的十席'), - ) - : null - const detailActions = h('div', { className: 'ssw-detail-actions' }, wb.ready ? h('button', { @@ -726,10 +716,9 @@ export function apply(ctx) { h('p', { className: 'ssw-detail-text' }, wb.selected.responsibility), detailActions, config, - report, ) const courtView = h('section', { className: 'ssw-court' }, - h('div', { className: 'ssw-org' }, enableBlock, tree), + h('div', { className: 'ssw-org' }, tree), detail, ) diff --git a/src/client/styles.js b/src/client/styles.js index dd76144..dcd3a23 100644 --- a/src/client/styles.js +++ b/src/client/styles.js @@ -149,6 +149,8 @@ body[data-ds-dark-theme] .ssw-float,html[data-theme=dark] .ssw-float{background: .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} .ssw-tab-body .ssw-root{flex:1;min-height:0} .ssw-tab-title{font-size:13px}