规范仿真模型库并完善前端交互
归档仿真模型并补充组件目录、建模规范与校验。 完善控制台、默认节点、视图适配及前端自动化测试。
This commit is contained in:
1 parent
f7f1078911
commit
bbc88a6bbb
71 files changed
+4574
-806
No files matched your search
+150
-176
@@ -369,15 +369,6 @@ textarea {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.status-strip {
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid #e3e8ef;
|
||||
color: #155e75;
|
||||
background: #ecfeff;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
padding: 14px;
|
||||
border-bottom: 1px solid #e3e8ef;
|
||||
@@ -385,13 +376,90 @@ textarea {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.palette-list,
|
||||
.palette-list {
|
||||
display: block;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.parameter-form {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.palette-panel-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.catalog-source {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: #64748b;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.catalog-source > span {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #d49b16;
|
||||
}
|
||||
|
||||
.catalog-source.ready > span {
|
||||
background: #198754;
|
||||
}
|
||||
|
||||
.catalog-source.fallback > span {
|
||||
background: #b45309;
|
||||
}
|
||||
|
||||
.palette-library + .palette-library {
|
||||
margin-top: 18px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid #e3e8ef;
|
||||
}
|
||||
|
||||
.palette-library-heading {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.palette-library-heading strong {
|
||||
color: #17212b;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.palette-library-heading small {
|
||||
color: #64748b;
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.palette-category + .palette-category {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.palette-category-title {
|
||||
margin-bottom: 6px;
|
||||
color: #526172;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.palette-category-items {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.compact-form {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
@@ -523,6 +591,34 @@ textarea {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.icon-generic {
|
||||
position: relative;
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.icon-generic::before,
|
||||
.icon-generic::after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
box-sizing: border-box;
|
||||
border: 1.5px solid #4b5563;
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
content: "";
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.icon-generic::before {
|
||||
left: -4px;
|
||||
}
|
||||
|
||||
.icon-generic::after {
|
||||
right: -4px;
|
||||
}
|
||||
|
||||
.icon-tee::before,
|
||||
.icon-tee::after {
|
||||
position: absolute;
|
||||
@@ -678,6 +774,22 @@ textarea {
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
}
|
||||
|
||||
.sim-node.generic-component .node-label {
|
||||
top: 50%;
|
||||
bottom: auto;
|
||||
display: -webkit-box;
|
||||
max-width: calc(100% - 28px);
|
||||
overflow: hidden;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
transform: translate(-50%, -50%);
|
||||
white-space: normal;
|
||||
background: transparent;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.symbol-cylinder,
|
||||
.symbol-tank,
|
||||
.symbol-pipe,
|
||||
@@ -842,138 +954,6 @@ textarea {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.validation-section {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #e3e8ef;
|
||||
background: #fffdf9;
|
||||
}
|
||||
|
||||
.validation-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.validation-heading span {
|
||||
color: #9a6700;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.validation-list {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.validation-item {
|
||||
display: grid;
|
||||
grid-template-columns: 36px minmax(0, 1fr);
|
||||
gap: 7px;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
padding: 7px;
|
||||
border: 1px solid #e5c0bd;
|
||||
border-radius: 5px;
|
||||
color: #7a271a;
|
||||
text-align: left;
|
||||
background: #fff7f6;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.validation-item.warning {
|
||||
border-color: #ead59a;
|
||||
color: #713f12;
|
||||
background: #fffbeb;
|
||||
}
|
||||
|
||||
.validation-item:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.validation-item span {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.validation-item strong {
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.xml-output {
|
||||
width: calc(100% - 24px);
|
||||
min-height: 220px;
|
||||
margin: 12px;
|
||||
padding: 10px;
|
||||
border: 1px solid #c2ccda;
|
||||
border-radius: 6px;
|
||||
color: #1f2933;
|
||||
font-family: Consolas, "Courier New", monospace;
|
||||
font-size: 12px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.result-section {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.result-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.result-title small {
|
||||
color: #b45309;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.result-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(80px, 1fr) minmax(0, 1.4fr);
|
||||
gap: 8px 10px;
|
||||
align-items: baseline;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.result-grid span {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.result-grid strong {
|
||||
overflow-wrap: anywhere;
|
||||
color: #1f2933;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.run-message {
|
||||
padding: 8px;
|
||||
border: 1px solid #d6dee9;
|
||||
border-radius: 6px;
|
||||
color: #334155;
|
||||
background: #f8fafc;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.component-result {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid #e3e8ef;
|
||||
}
|
||||
|
||||
.component-result > strong {
|
||||
color: #1f2933;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.results-shell {
|
||||
display: grid;
|
||||
grid-template-rows: 62px minmax(0, 1fr);
|
||||
@@ -2032,11 +2012,6 @@ textarea {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.simulation-console.minimized.has-unread {
|
||||
border-color: #1d6fb8;
|
||||
animation: simulation-console-attention 1.2s ease-out 2;
|
||||
}
|
||||
|
||||
.simulation-console-collapsed {
|
||||
display: grid;
|
||||
grid-template-columns: 34px 34px minmax(0, 1fr);
|
||||
@@ -2082,7 +2057,7 @@ textarea {
|
||||
|
||||
.simulation-console-collapsed-open {
|
||||
display: grid;
|
||||
grid-template-columns: 18px auto minmax(0, 1fr) auto 18px;
|
||||
grid-template-columns: 18px auto minmax(0, 1fr) 18px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
@@ -2109,7 +2084,6 @@ textarea {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.simulation-console-collapsed-message,
|
||||
.simulation-console-collapsed-status {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
@@ -2126,21 +2100,6 @@ textarea {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.simulation-console-unread {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
min-width: 24px;
|
||||
height: 20px;
|
||||
padding: 0 5px;
|
||||
border-radius: 10px;
|
||||
color: #ffffff;
|
||||
background: #c13d35;
|
||||
font-size: 10px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.simulation-console-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2361,21 +2320,36 @@ textarea {
|
||||
color: #a9322d;
|
||||
}
|
||||
|
||||
@keyframes simulation-console-attention {
|
||||
0%,
|
||||
100% {
|
||||
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 0 3px rgba(29, 111, 184, 0.2), 0 10px 28px rgba(15, 23, 42, 0.22);
|
||||
}
|
||||
.simulation-console-entry-message {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.simulation-console-entry.xml {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.simulation-console-entry-xml {
|
||||
min-width: 0;
|
||||
max-height: 145px;
|
||||
margin: 0;
|
||||
padding: 8px 9px;
|
||||
overflow: auto;
|
||||
border: 1px solid #cad5e1;
|
||||
border-radius: 4px;
|
||||
color: #172231;
|
||||
background: #f8fafc;
|
||||
font-family: Consolas, "Courier New", monospace;
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.simulation-console.maximized .simulation-console-entry-xml {
|
||||
max-height: calc(100vh - 170px);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.simulation-console.minimized.has-unread {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.simulation-console-progress-track span {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user