release: dsh-sansheng-liubu v0.2.4 (package at repo root)
删除冗余块,保持左右分栏。
This commit is contained in:
parent
09a0eec338
commit
9b36556fa6
23
client.js
23
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-seat-icon{width:15px;height:15px}
|
||||||
.ssw-detail{min-height:0}
|
.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{height:100%;min-height:0;display:flex;flex-direction:column}
|
||||||
.ssw-tab-body .ssw-root{flex:1;min-height:0}
|
.ssw-tab-body .ssw-root{flex:1;min-height:0}
|
||||||
.ssw-tab-title{font-size:13px}
|
.ssw-tab-title{font-size:13px}
|
||||||
|
|
@ -1517,22 +1519,10 @@ function apply(ctx) {
|
||||||
(0, import_react.createElement)(
|
(0, import_react.createElement)(
|
||||||
"div",
|
"div",
|
||||||
{ className: "ssw-project-line" },
|
{ 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)("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)(
|
const detailActions = (0, import_react.createElement)(
|
||||||
"div",
|
"div",
|
||||||
{ className: "ssw-detail-actions" },
|
{ className: "ssw-detail-actions" },
|
||||||
|
|
@ -1736,13 +1726,12 @@ function apply(ctx) {
|
||||||
),
|
),
|
||||||
(0, import_react.createElement)("p", { className: "ssw-detail-text" }, wb.selected.responsibility),
|
(0, import_react.createElement)("p", { className: "ssw-detail-text" }, wb.selected.responsibility),
|
||||||
detailActions,
|
detailActions,
|
||||||
config,
|
config
|
||||||
report
|
|
||||||
);
|
);
|
||||||
const courtView = (0, import_react.createElement)(
|
const courtView = (0, import_react.createElement)(
|
||||||
"section",
|
"section",
|
||||||
{ className: "ssw-court" },
|
{ className: "ssw-court" },
|
||||||
(0, import_react.createElement)("div", { className: "ssw-org" }, enableBlock, tree),
|
(0, import_react.createElement)("div", { className: "ssw-org" }, tree),
|
||||||
detail
|
detail
|
||||||
);
|
);
|
||||||
let body;
|
let body;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "dsh-sansheng-liubu",
|
"name": "dsh-sansheng-liubu",
|
||||||
"version": "0.2.3",
|
"version": "0.2.4",
|
||||||
"description": "三省六部:每个项目固定十席角色与独立会话的 DSH 插件(第一版)。",
|
"description": "三省六部:每个项目固定十席角色与独立会话的 DSH 插件(第一版)。",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"dsh-plugin",
|
"dsh-plugin",
|
||||||
|
|
|
||||||
|
|
@ -564,21 +564,11 @@ export function apply(ctx) {
|
||||||
|
|
||||||
const projectInfo = h('div', { className: 'ssw-project' },
|
const projectInfo = h('div', { className: 'ssw-project' },
|
||||||
h('div', { className: 'ssw-project-line' },
|
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('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' },
|
const detailActions = h('div', { className: 'ssw-detail-actions' },
|
||||||
wb.ready
|
wb.ready
|
||||||
? h('button', {
|
? h('button', {
|
||||||
|
|
@ -726,10 +716,9 @@ export function apply(ctx) {
|
||||||
h('p', { className: 'ssw-detail-text' }, wb.selected.responsibility),
|
h('p', { className: 'ssw-detail-text' }, wb.selected.responsibility),
|
||||||
detailActions,
|
detailActions,
|
||||||
config,
|
config,
|
||||||
report,
|
|
||||||
)
|
)
|
||||||
const courtView = h('section', { className: 'ssw-court' },
|
const courtView = h('section', { className: 'ssw-court' },
|
||||||
h('div', { className: 'ssw-org' }, enableBlock, tree),
|
h('div', { className: 'ssw-org' }, tree),
|
||||||
detail,
|
detail,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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-seat-icon{width:15px;height:15px}
|
||||||
.ssw-detail{min-height:0}
|
.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{height:100%;min-height:0;display:flex;flex-direction:column}
|
||||||
.ssw-tab-body .ssw-root{flex:1;min-height:0}
|
.ssw-tab-body .ssw-root{flex:1;min-height:0}
|
||||||
.ssw-tab-title{font-size:13px}
|
.ssw-tab-title{font-size:13px}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue