Implemented confi snapshots
This commit is contained in:
@@ -888,6 +888,46 @@ body {
|
||||
font-family: system-ui, sans-serif;
|
||||
}
|
||||
|
||||
/* Config selector widget — a labelled combo of a config set's instances whose
|
||||
choice is written to a panel-local variable. */
|
||||
.configselect {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
background: #1a1f2e;
|
||||
border: 1px solid #2d3748;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
font-family: system-ui, sans-serif;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cs-label {
|
||||
color: #94a3b8;
|
||||
font-size: 0.8rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cs-select {
|
||||
flex: 1;
|
||||
width: auto;
|
||||
background: #0f1117;
|
||||
border: 1px solid #3d4f6e;
|
||||
border-radius: 4px;
|
||||
color: #e2e8f0;
|
||||
font-size: 0.85rem;
|
||||
padding: 2px 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cs-select:focus {
|
||||
outline: none;
|
||||
border-color: #4a9eff;
|
||||
}
|
||||
|
||||
.sv-btn:hover {
|
||||
background: #1d4ed8;
|
||||
}
|
||||
@@ -2210,6 +2250,153 @@ body {
|
||||
.lua-cmt { color: #546e7a; font-style: italic; }
|
||||
.lua-num { color: #f78c6c; }
|
||||
|
||||
/* ── CUE editor (config rules) ───────────────────────────────────────────────── */
|
||||
.cue-editor {
|
||||
position: relative;
|
||||
border: 1px solid #3d4f6e;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: #0a0d14;
|
||||
font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
min-height: 6em;
|
||||
}
|
||||
|
||||
.cue-pre,
|
||||
.cue-textarea {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
margin: 0;
|
||||
padding: 6px 8px;
|
||||
border: none;
|
||||
outline: none;
|
||||
overflow: auto;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
tab-size: 2;
|
||||
font: inherit;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cue-pre {
|
||||
color: #e2e8f0;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cue-textarea {
|
||||
color: transparent;
|
||||
caret-color: #e2e8f0;
|
||||
background: transparent;
|
||||
resize: none;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.cue-textarea:focus {
|
||||
outline: none;
|
||||
box-shadow: inset 0 0 0 1px #4a9eff;
|
||||
}
|
||||
|
||||
.cue-kw { color: #c792ea; font-weight: 600; }
|
||||
.cue-type { color: #82aaff; }
|
||||
.cue-attr { color: #ffcb6b; }
|
||||
.cue-str { color: #c3e88d; }
|
||||
.cue-cmt { color: #546e7a; font-style: italic; }
|
||||
.cue-num { color: #f78c6c; }
|
||||
|
||||
.cue-ac {
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
list-style: none;
|
||||
background: #131826;
|
||||
border: 1px solid #3d4f6e;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
||||
max-height: 14em;
|
||||
overflow: auto;
|
||||
font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
|
||||
font-size: 12px;
|
||||
min-width: 8em;
|
||||
}
|
||||
|
||||
.cue-ac-item {
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
color: #cdd6e4;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cue-ac-item.active,
|
||||
.cue-ac-item:hover {
|
||||
background: #2a4d7a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── Config rules ────────────────────────────────────────────────────────────── */
|
||||
.cfg-rule-set {
|
||||
font-size: 11px;
|
||||
opacity: 0.75;
|
||||
margin-left: auto;
|
||||
margin-right: 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 9em;
|
||||
}
|
||||
|
||||
.cfg-rule-help {
|
||||
margin: 4px 0 6px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.cfg-rule-help code {
|
||||
background: #111726;
|
||||
border: 1px solid #2a3550;
|
||||
border-radius: 3px;
|
||||
padding: 0 3px;
|
||||
font-family: ui-monospace, monospace;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.cfg-rule-check {
|
||||
margin-top: 8px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.cfg-rule-check-ok {
|
||||
background: #11271a;
|
||||
border: 1px solid #2e6b46;
|
||||
color: #b6f0c8;
|
||||
}
|
||||
.cfg-rule-check-err {
|
||||
background: #2a1416;
|
||||
border: 1px solid #7a3038;
|
||||
color: #ffc7cd;
|
||||
}
|
||||
.cfg-rule-violations {
|
||||
margin: 4px 0 0;
|
||||
padding-left: 18px;
|
||||
}
|
||||
.cfg-rule-violations code,
|
||||
.cfg-rule-derived code {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px;
|
||||
padding: 0 3px;
|
||||
font-family: ui-monospace, monospace;
|
||||
}
|
||||
.cfg-rule-derived {
|
||||
display: inline-block;
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* wizard is already wide enough and resizable — no extra :has() rule needed */
|
||||
|
||||
/* ── Synthetic pipeline ─────────────────────────────────────────────────────── */
|
||||
@@ -4155,7 +4342,13 @@ kbd {
|
||||
}
|
||||
.cfg-req { color: #f87171; margin-left: 0.15rem; }
|
||||
.cfg-value-input { width: 10rem; flex: 0 0 auto; }
|
||||
/* Constrain the editing control to its column so it can't overflow and cover
|
||||
the adjacent signal-name label. */
|
||||
.cfg-value-input .prop-input,
|
||||
.cfg-value-input .prop-select { width: 100%; box-sizing: border-box; }
|
||||
.cfg-value-target {
|
||||
flex: 0 1 auto;
|
||||
min-width: 0;
|
||||
font-size: 0.72rem;
|
||||
color: #64748b;
|
||||
overflow: hidden;
|
||||
@@ -4287,6 +4480,200 @@ kbd {
|
||||
.cfg-diff-changed .cfg-diff-status { color: #facc15; }
|
||||
.cfg-diff-unchanged .cfg-diff-status { color: #64748b; }
|
||||
|
||||
/* ── Version history tree (slick git-style pane) ───────────────────────────── */
|
||||
.ver-tree {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.ver-empty { padding: 0.4rem 0; }
|
||||
.ver-node {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 0.6rem;
|
||||
min-height: 2rem;
|
||||
}
|
||||
/* The rail holds the circle and the connector line to the next node below. */
|
||||
.ver-rail {
|
||||
position: relative;
|
||||
flex: 0 0 16px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.ver-dot {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-top: 0.45rem;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #475569;
|
||||
background: #1a1f2e;
|
||||
box-sizing: border-box;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
/* Selected (the revision that is executed/shown) → filled. */
|
||||
.ver-dot-current { background: #2563eb; border-color: #2563eb; }
|
||||
/* Active (the revision currently viewed/edited) → larger. */
|
||||
.ver-dot-active {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: 0.3rem;
|
||||
border-color: #60a5fa;
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
|
||||
}
|
||||
.ver-dot-unsaved { background: transparent; border-style: dashed; border-color: #f59e0b; }
|
||||
.ver-line {
|
||||
position: absolute;
|
||||
top: 0.45rem;
|
||||
bottom: -0.55rem;
|
||||
width: 2px;
|
||||
background: #2d3748;
|
||||
z-index: 0;
|
||||
}
|
||||
.ver-line-dashed {
|
||||
background: repeating-linear-gradient(to bottom, #f59e0b 0, #f59e0b 3px, transparent 3px, transparent 6px);
|
||||
}
|
||||
.ver-body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
flex: 1;
|
||||
padding: 0.3rem 0;
|
||||
border-bottom: 1px solid #1a2030;
|
||||
min-width: 0;
|
||||
}
|
||||
.ver-node-active .ver-body { background: rgba(96, 165, 250, 0.05); border-radius: 4px; }
|
||||
.ver-num {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #cbd5e1;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
min-width: 2.6rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
padding: 0;
|
||||
}
|
||||
.ver-num:hover { color: #fff; }
|
||||
.ver-badge {
|
||||
font-size: 0.62rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
padding: 0.05rem 0.3rem;
|
||||
}
|
||||
.ver-badge-view { background: #475569; }
|
||||
.ver-tag { color: #94a3b8; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ver-time { color: #64748b; font-size: 0.7rem; white-space: nowrap; }
|
||||
.ver-actions { display: flex; gap: 0.3rem; flex: 0 0 auto; }
|
||||
.ver-unsaved .ver-num, .ver-node-unsaved .ver-num { color: #f59e0b; font-weight: 500; font-style: italic; }
|
||||
.ver-compare {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.45rem;
|
||||
border-top: 1px solid #2d3748;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
/* ── Version pane wrappers (embedded sidebars in the editors) ──────────────── */
|
||||
/* Control-logic editor: FlowEditor + history sidebar side by side. */
|
||||
.cl-editor-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cl-editor-main .flow-editor { flex: 1; min-width: 0; }
|
||||
.ver-pane {
|
||||
flex: 0 0 20rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
padding: 0.75rem 0.9rem;
|
||||
border-left: 1px solid #2d3748;
|
||||
background: #11151f;
|
||||
}
|
||||
.ver-pane-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-weight: 600;
|
||||
color: #cbd5e1;
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
/* Synthetic editor: history floats over the right edge of the modal. */
|
||||
.synth-ver-pane {
|
||||
position: absolute;
|
||||
top: 3rem;
|
||||
right: 0;
|
||||
bottom: 3.2rem;
|
||||
z-index: 5;
|
||||
box-shadow: -6px 0 18px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
/* ── Version diff viewer (unified / side-by-side text diff) ────────────────── */
|
||||
.ver-diff-modal {
|
||||
background: #1a1f2e;
|
||||
border: 1px solid #2d3748;
|
||||
border-radius: 10px;
|
||||
width: min(1100px, 96vw);
|
||||
max-height: 88vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
.ver-diff-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
padding: 0.6rem 1rem;
|
||||
border-bottom: 1px solid #2d3748;
|
||||
font-size: 0.85rem;
|
||||
color: #e2e8f0;
|
||||
}
|
||||
.ver-diff-head .cl-confirm-title { flex: 1; }
|
||||
.ver-diff-stats { font-family: ui-monospace, monospace; font-size: 0.78rem; }
|
||||
.ver-diff-add { color: #4ade80; }
|
||||
.ver-diff-del { color: #f87171; }
|
||||
.ver-diff-modes { display: flex; gap: 0.3rem; }
|
||||
.ver-diff-loading { padding: 1rem; }
|
||||
.ver-diff {
|
||||
overflow: auto;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.ver-diff-row { display: flex; white-space: pre; }
|
||||
.ver-diff-ln {
|
||||
flex: 0 0 3rem;
|
||||
text-align: right;
|
||||
padding: 0 0.5rem;
|
||||
color: #475569;
|
||||
user-select: none;
|
||||
background: #151a27;
|
||||
}
|
||||
.ver-diff-sign { flex: 0 0 1.2rem; text-align: center; color: #64748b; }
|
||||
.ver-diff-text { flex: 1; padding-right: 1rem; }
|
||||
.ver-diff-add { background: rgba(34, 197, 94, 0.12); }
|
||||
.ver-diff-del { background: rgba(239, 68, 68, 0.12); }
|
||||
.ver-diff-equal { color: #94a3b8; }
|
||||
.ver-diff-row.ver-diff-add .ver-diff-text { color: #bbf7d0; }
|
||||
.ver-diff-row.ver-diff-del .ver-diff-text { color: #fecaca; }
|
||||
/* Side-by-side grid */
|
||||
.ver-diff-splitrow { display: grid; grid-template-columns: 3rem 1fr 3rem 1fr; white-space: pre; }
|
||||
.ver-diff-cell { padding: 0 0.6rem; min-width: 0; overflow-x: hidden; }
|
||||
.ver-diff-cell.ver-diff-add { background: rgba(34, 197, 94, 0.12); color: #bbf7d0; }
|
||||
.ver-diff-cell.ver-diff-del { background: rgba(239, 68, 68, 0.12); color: #fecaca; }
|
||||
.ver-diff-cell.ver-diff-equal { color: #94a3b8; }
|
||||
.ver-diff-cell.ver-diff-empty { background: #141824; }
|
||||
|
||||
/* ── Config manager: array value editor ────────────────────────────────── */
|
||||
.cfg-value-input-array { width: auto; flex: 1; }
|
||||
.cfg-array { display: flex; flex-direction: column; gap: 0.35rem; }
|
||||
|
||||
Reference in New Issue
Block a user