mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 08:25:26 +03:00
refactor(nodes): build the node list from the panel's Card and Table
ef99e675 (#7342) gave the Nodes page its own design system: a
hand-rolled table and card, a bundled Source Sans Pro font, a private
colour palette, 9-13px type, and page-only overrides of the sidebar
width, content padding and dark background. It no longer looked like
the rest of the panel, and it bypassed the theming every other page
gets (page-cards.css, the dark and ultra-dark tokens).
The list is now the same Ant Design Card and Table the other list
pages use, with the same small table size, default type scale and
theme tokens:
- Add Node and Node mTLS move from the page heading into the card
toolbar, next to search and the status filter, as on Inbounds/Hosts.
- The page heading and its subtitle are removed; no other page has
one. pages.nodes.fleet.subtitle goes from all 14 locales with it.
- Row actions are text Buttons, client counts are standard Tags, the
status tooltip is the default Tooltip.
- The bundled fonts and the page-only shell overrides are deleted.
Everything #7342 added stays: the All nodes and Master rows, the
telemetry columns, search and filter, the row history panel, and the
stacked layout on narrow containers (now below 720px; wider than that
the table scrolls sideways like the other pages).
Horizontal scroll is CSS on the table container, not the Table scroll
prop: that prop adds a hidden measure row which repeats the header's
select-all button, a focusable control inside aria-hidden content. The
Open link takes the Button primary colour because the default link
blue is 4.1:1 on white. Both were caught by the story's axe check.
The story no longer requires the whole table to fit at 1280 and 1440;
with the panel's normal type size it scrolls there. It now asserts the
page itself never overflows and the table fits from 1664 up.
This commit is contained in:
@@ -1,179 +1,15 @@
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
src: url('./fonts/SourceSansPro-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
src: url('./fonts/SourceSansPro-Semibold.woff2') format('woff2');
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
src: url('./fonts/SourceSansPro-Bold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
.nodes-page.is-dark:not(.is-ultra) {
|
||||
--bg-page: #1c1e23;
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.nodes-page .ant-sidebar:not(.sidebar-pinned) {
|
||||
--sider-rail: 69px !important;
|
||||
}
|
||||
|
||||
.nodes-page .ant-sidebar:not(.sidebar-pinned) .ant-layout-sider-collapsed {
|
||||
flex-basis: 69px !important;
|
||||
width: 69px !important;
|
||||
min-width: 69px !important;
|
||||
max-width: 69px !important;
|
||||
}
|
||||
|
||||
.nodes-page .content-area {
|
||||
padding-inline-start: 23px;
|
||||
}
|
||||
}
|
||||
.nodes-overview {
|
||||
--node-fg: var(--node-text);
|
||||
--node-secondary: var(--node-muted);
|
||||
--node-card: var(--node-surface);
|
||||
--node-field: var(--node-header-bg);
|
||||
--node-line: var(--node-border);
|
||||
--node-fleet: var(--node-fleet-bg);
|
||||
--node-button: var(--node-accent);
|
||||
--node-add-bg: #1269eb;
|
||||
--node-link: #185ea8;
|
||||
--node-good: #317a19;
|
||||
--node-bad: #b42e35;
|
||||
--node-purple: #722ed1;
|
||||
--node-group-bg: #ebedf0;
|
||||
--node-active-bg: #eef6e9;
|
||||
--node-disabled-bg: #eeeff2;
|
||||
--node-depleted-bg: #f9ebeb;
|
||||
--node-online-bg: #e7f0fa;
|
||||
min-width: 0;
|
||||
font:
|
||||
400 13px/1.25 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
color: var(--node-fg);
|
||||
}
|
||||
.dark .nodes-overview,
|
||||
.nodes-page.is-dark:not(.is-ultra) .nodes-overview {
|
||||
--node-fg: #d6d9e0;
|
||||
--node-secondary: #9296a0;
|
||||
--node-card: #23252b;
|
||||
--node-field: #2b2d32;
|
||||
--node-line: #353841;
|
||||
--node-fleet: #252b34;
|
||||
--node-button: #1677ff;
|
||||
--node-link: #8cb8ff;
|
||||
--node-good: #66b740;
|
||||
--node-bad: #eb6469;
|
||||
--node-purple: #bb9df5;
|
||||
--node-group-bg: #30333b;
|
||||
--node-active-bg: #172d12;
|
||||
--node-disabled-bg: #37393e;
|
||||
--node-depleted-bg: #401a1c;
|
||||
--node-online-bg: #102d4b;
|
||||
}
|
||||
.nodes-heading,
|
||||
.nodes-toolbar,
|
||||
.nodes-footnote {
|
||||
/* card-toolbar and card-empty are global classes owned by lazily-loaded page
|
||||
stylesheets: re-declared so a direct /nodes load is styled like the others. */
|
||||
.nodes-card .card-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-inline-start: 12px;
|
||||
}
|
||||
.nodes-heading {
|
||||
align-items: start;
|
||||
justify-content: space-between;
|
||||
margin-block-end: 21px;
|
||||
}
|
||||
.nodes-heading h1 {
|
||||
margin: 0;
|
||||
font:
|
||||
600 25px/34px 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
}
|
||||
.nodes-heading p {
|
||||
margin: 1px 0 0;
|
||||
color: var(--node-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 21px;
|
||||
}
|
||||
.nodes-heading-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding-block-start: 4px;
|
||||
}
|
||||
.nodes-heading .ant-btn,
|
||||
.nodes-toolbar .ant-btn {
|
||||
font-family: inherit;
|
||||
border-radius: 7px;
|
||||
}
|
||||
.nodes-heading .ant-btn {
|
||||
height: 38px;
|
||||
}
|
||||
.nodes-heading .nodes-add {
|
||||
width: 138px;
|
||||
background: var(--node-add-bg);
|
||||
font-weight: 600;
|
||||
}
|
||||
.nodes-heading .nodes-add:hover {
|
||||
background: #145fd1;
|
||||
}
|
||||
.nodes-heading .nodes-mtls {
|
||||
width: 145px;
|
||||
background: var(--node-card);
|
||||
border-color: var(--node-line);
|
||||
}
|
||||
.nodes-toolbar {
|
||||
min-height: 36px;
|
||||
margin-block-end: 13px;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
padding: 6px 0;
|
||||
}
|
||||
.nodes-toolbar .ant-input-affix-wrapper {
|
||||
width: min(278px, 100%);
|
||||
}
|
||||
.nodes-toolbar .ant-input-affix-wrapper,
|
||||
.nodes-toolbar .ant-select {
|
||||
height: 36px;
|
||||
border-radius: 7px;
|
||||
font: inherit;
|
||||
color: var(--node-fg);
|
||||
background: var(--node-field);
|
||||
border-color: var(--node-line);
|
||||
}
|
||||
.nodes-toolbar .ant-input::placeholder,
|
||||
.nodes-toolbar .ant-input-prefix,
|
||||
.node-registered {
|
||||
color: var(--node-secondary);
|
||||
}
|
||||
.nodes-toolbar .ant-input {
|
||||
font: inherit;
|
||||
}
|
||||
.nodes-toolbar .ant-select {
|
||||
width: 148px;
|
||||
}
|
||||
.nodes-toolbar .ant-select-selector {
|
||||
background: transparent;
|
||||
}
|
||||
.node-registered {
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
.nodes-table-card {
|
||||
padding: 15px 11px 30px;
|
||||
border: 1px solid var(--node-line);
|
||||
border-radius: 12px;
|
||||
background: var(--node-card);
|
||||
}
|
||||
/* Global class shared with the other list pages: re-declared here so a direct
|
||||
/nodes load styles it, and kept identical so no page restyles another's. */
|
||||
.card-empty {
|
||||
text-align: center;
|
||||
color: var(--ant-color-text-secondary);
|
||||
@@ -183,86 +19,42 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.nodes-card .nodes-search {
|
||||
width: min(220px, 100%);
|
||||
}
|
||||
.nodes-card .nodes-status-filter {
|
||||
width: 150px;
|
||||
}
|
||||
.node-registered {
|
||||
margin-inline-start: auto;
|
||||
color: var(--ant-color-text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.nodes-table-scroll {
|
||||
overflow-x: auto;
|
||||
container-type: inline-size;
|
||||
}
|
||||
.node-fleet-table {
|
||||
width: 100%;
|
||||
min-width: 920px;
|
||||
table-layout: fixed;
|
||||
border-spacing: 0;
|
||||
color: var(--node-fg);
|
||||
/* Not the Table `scroll` prop: its hidden measure row repeats the header's
|
||||
select-all button, a focusable control inside aria-hidden content. */
|
||||
.nodes-table .ant-table-content {
|
||||
overflow-x: auto;
|
||||
}
|
||||
.node-fleet-table th,
|
||||
.node-fleet-table td {
|
||||
padding: 0 8px;
|
||||
text-align: start;
|
||||
vertical-align: middle;
|
||||
overflow-wrap: anywhere;
|
||||
.nodes-table .ant-table-content > table {
|
||||
width: max-content;
|
||||
min-width: 100%;
|
||||
}
|
||||
.node-fleet-table thead th {
|
||||
height: 44px;
|
||||
padding-inline: 1px;
|
||||
background: var(--node-field);
|
||||
color: var(--node-secondary);
|
||||
.nodes-table .ant-table-tbody > tr > th.node-name-cell {
|
||||
background: transparent;
|
||||
font-weight: inherit;
|
||||
}
|
||||
.nodes-table .ant-table-tbody > tr.node-row-fleet > .ant-table-cell {
|
||||
background: var(--ant-color-fill-quaternary);
|
||||
}
|
||||
.nodes-table .node-enabled {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-fleet-table thead th:nth-child(6),
|
||||
.node-fleet-table thead th:nth-child(8) {
|
||||
font-weight: 700;
|
||||
}
|
||||
.node-fleet-table thead th:first-child {
|
||||
border-start-start-radius: 8px;
|
||||
border-end-start-radius: 8px;
|
||||
}
|
||||
.node-fleet-table thead th:last-child {
|
||||
border-start-end-radius: 8px;
|
||||
border-end-end-radius: 8px;
|
||||
}
|
||||
.node-fleet-table tbody > tr:not(.node-history-row) {
|
||||
height: 70px;
|
||||
}
|
||||
.node-fleet-table td,
|
||||
.node-fleet-table .node-name-cell {
|
||||
border-block-end: 1px solid var(--node-line);
|
||||
}
|
||||
.node-row-remote > td:first-child {
|
||||
padding-inline-end: 0;
|
||||
}
|
||||
.node-fleet-table .node-enabled {
|
||||
text-align: center;
|
||||
color: var(--node-secondary);
|
||||
}
|
||||
.node-fleet-table .node-enabled .ant-switch {
|
||||
min-width: 34px;
|
||||
height: 18px;
|
||||
}
|
||||
.node-fleet-table .node-enabled .ant-switch-handle {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
.node-fleet-table .node-enabled .ant-switch.ant-switch-checked {
|
||||
background: var(--node-button);
|
||||
}
|
||||
.node-row-fleet > * {
|
||||
background: var(--node-fleet);
|
||||
}
|
||||
.node-row-fleet td:first-child {
|
||||
box-shadow: inset 3px 0 var(--node-button);
|
||||
}
|
||||
.node-row-fleet > td:nth-child(5) {
|
||||
padding-inline-end: 2px;
|
||||
}
|
||||
[dir='rtl'] .node-row-fleet td:first-child {
|
||||
box-shadow: inset -3px 0 var(--node-button);
|
||||
}
|
||||
.node-actions-heading,
|
||||
.node-readonly-action,
|
||||
.node-icon-action,
|
||||
.node-expander,
|
||||
.node-status-button {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
@@ -271,74 +63,23 @@
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.node-actions,
|
||||
.node-system-action,
|
||||
.node-status-button {
|
||||
.node-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.node-actions {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 3px;
|
||||
gap: 2px;
|
||||
}
|
||||
.node-actions > .ant-checkbox-wrapper {
|
||||
margin-inline: 8px 5px;
|
||||
margin-inline: 4px;
|
||||
}
|
||||
.node-actions .ant-checkbox-inner {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: var(--node-card);
|
||||
border-color: #636b7b;
|
||||
}
|
||||
.node-actions .ant-checkbox-checked .ant-checkbox-inner {
|
||||
background: var(--node-button);
|
||||
border-color: var(--node-button);
|
||||
}
|
||||
.node-system-action {
|
||||
gap: 12px;
|
||||
padding-inline-start: 9px;
|
||||
color: var(--node-secondary);
|
||||
}
|
||||
.node-system-badge {
|
||||
min-width: 52px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 4px;
|
||||
color: var(--node-fg);
|
||||
background: var(--node-group-bg);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
.node-readonly-action .ant-tag,
|
||||
.node-system-tag,
|
||||
.node-client-counts .ant-tag {
|
||||
margin: 0;
|
||||
}
|
||||
.node-sigma {
|
||||
color: var(--node-link);
|
||||
font-size: 18px;
|
||||
margin-inline-end: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-icon-action,
|
||||
.node-expander {
|
||||
display: inline-grid;
|
||||
place-content: center;
|
||||
width: 18px;
|
||||
height: 24px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.node-icon-delete {
|
||||
color: var(--node-bad);
|
||||
}
|
||||
.node-icon-action:disabled {
|
||||
color: var(--node-secondary);
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
.node-expander {
|
||||
height: 18px;
|
||||
border: 1px solid var(--node-line);
|
||||
border-radius: 4px;
|
||||
background: var(--node-field);
|
||||
color: var(--node-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
.node-name,
|
||||
.node-cell-stack {
|
||||
display: flex;
|
||||
@@ -346,9 +87,7 @@
|
||||
min-width: 0;
|
||||
}
|
||||
.node-name {
|
||||
gap: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
max-width: 160px;
|
||||
}
|
||||
.node-name > span,
|
||||
.node-name > small {
|
||||
@@ -356,83 +95,37 @@
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.node-row-fleet .node-name > span,
|
||||
.node-row-master .node-name > span {
|
||||
font-size: 14px;
|
||||
.node-name > span {
|
||||
font-weight: 500;
|
||||
}
|
||||
.node-row-fleet .node-name > small {
|
||||
font-size: 11px;
|
||||
white-space: normal;
|
||||
.nodes-table small,
|
||||
.node-memory-detail,
|
||||
.node-connection-load {
|
||||
color: var(--ant-color-text-secondary);
|
||||
font-size: var(--ant-font-size-sm, 12px);
|
||||
}
|
||||
.node-name small {
|
||||
color: var(--node-secondary);
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
}
|
||||
.node-open-link:any-link {
|
||||
color: var(--node-link);
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.node-open-link:hover,
|
||||
.node-open-link:focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.node-open-link span {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
.nodes-table .node-open-link {
|
||||
height: auto;
|
||||
padding: 0;
|
||||
}
|
||||
.node-status-button {
|
||||
gap: 5px;
|
||||
width: 100%;
|
||||
text-align: start;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-status-button[data-status='online'] {
|
||||
color: var(--node-good);
|
||||
}
|
||||
.node-status-button[data-status='offline'] {
|
||||
color: var(--node-bad);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.node-status-button .online-dot,
|
||||
.node-status-button .xray-error-dot,
|
||||
.node-status-button .ant-badge-status-dot {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
flex: 0 0 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.node-status-button .online-dot {
|
||||
background: var(--node-good);
|
||||
}
|
||||
.node-status-button .xray-error-dot {
|
||||
background: var(--node-purple);
|
||||
margin-inline-end: 0;
|
||||
}
|
||||
.node-status-info {
|
||||
margin-inline-start: auto;
|
||||
color: var(--node-secondary);
|
||||
font-size: 10px;
|
||||
}
|
||||
.node-status-popup .ant-tooltip-container {
|
||||
width: min(258px, 90vw);
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #414550;
|
||||
border-radius: 8px;
|
||||
color: #d6d9e0;
|
||||
font:
|
||||
400 11px/1.4 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
color: var(--ant-color-text-tertiary);
|
||||
}
|
||||
.node-status-tooltip h3 {
|
||||
margin: 0 0 5px;
|
||||
color: #a6aab4;
|
||||
font:
|
||||
600 11px 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
margin: 0 0 4px;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-status-tooltip dl {
|
||||
margin: 0;
|
||||
@@ -440,224 +133,108 @@
|
||||
.node-status-tooltip dl > div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 25px;
|
||||
line-height: 23px;
|
||||
gap: 24px;
|
||||
}
|
||||
.node-status-tooltip dd {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-status-tooltip dt {
|
||||
color: #a6aab4;
|
||||
}
|
||||
.node-hardware {
|
||||
gap: 6px;
|
||||
.node-hardware,
|
||||
.node-network-speed {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.node-cpu {
|
||||
font:
|
||||
400 11px/15px 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
}
|
||||
.node-ram {
|
||||
font:
|
||||
400 10px/13px 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
}
|
||||
.node-memory-detail {
|
||||
color: var(--node-secondary);
|
||||
font-size: 9px;
|
||||
}
|
||||
.node-network-speed,
|
||||
.node-runtime,
|
||||
.node-connections,
|
||||
.node-system-clients {
|
||||
gap: 5px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.node-network-speed {
|
||||
display: inline-grid;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.node-network-direction {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
}
|
||||
.node-network-up {
|
||||
color: var(--node-link);
|
||||
}
|
||||
.node-row-fleet .node-network-speed,
|
||||
.node-row-master .node-network-speed {
|
||||
font-size: 12px;
|
||||
}
|
||||
.node-connections > span:nth-child(-n + 2) {
|
||||
font-weight: 600;
|
||||
}
|
||||
.node-connection-load,
|
||||
.node-runtime small {
|
||||
color: var(--node-secondary);
|
||||
font-size: 9px;
|
||||
row-gap: 2px;
|
||||
}
|
||||
.node-network-direction,
|
||||
.node-runtime .node-panel-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
}
|
||||
.node-runtime .node-icon-action {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
color: var(--node-link);
|
||||
font-size: 11px;
|
||||
}
|
||||
.node-system-clients {
|
||||
font-size: 11px;
|
||||
}
|
||||
.node-system-clients small {
|
||||
color: var(--node-secondary);
|
||||
font-size: 10px;
|
||||
gap: 4px;
|
||||
}
|
||||
.node-client-counts {
|
||||
display: grid;
|
||||
grid-template-columns: 52fr 54fr 58fr;
|
||||
grid-template-rows: repeat(2, 21px);
|
||||
gap: 4px 6px;
|
||||
align-items: center;
|
||||
}
|
||||
.node-count-total {
|
||||
grid-column: 1;
|
||||
grid-row: 1 / span 2;
|
||||
}
|
||||
.node-client-counts .ant-tag {
|
||||
margin: 0;
|
||||
padding-inline: 2px;
|
||||
text-align: center;
|
||||
line-height: 19px;
|
||||
font:
|
||||
400 11px/19px 'Source Sans Pro',
|
||||
system-ui,
|
||||
sans-serif;
|
||||
color: var(--node-fg);
|
||||
background: var(--node-disabled-bg);
|
||||
}
|
||||
.node-client-counts .node-count-active {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
background: var(--node-active-bg);
|
||||
color: var(--node-good);
|
||||
}
|
||||
.node-client-counts .node-count-disabled {
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
}
|
||||
.node-client-counts .node-count-depleted {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
background: var(--node-depleted-bg);
|
||||
color: var(--node-bad);
|
||||
}
|
||||
.node-client-counts .node-count-online {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
background: var(--node-online-bg);
|
||||
color: var(--node-link);
|
||||
}
|
||||
.node-history-row td {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
max-width: 190px;
|
||||
}
|
||||
.nodes-footnote {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-block-start: 9px;
|
||||
color: var(--node-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 22px;
|
||||
gap: 12px;
|
||||
margin-block-start: 8px;
|
||||
color: var(--ant-color-text-secondary);
|
||||
font-size: var(--ant-font-size-sm, 12px);
|
||||
}
|
||||
@container (max-width: 1205px) {
|
||||
.node-actions > .ant-checkbox-wrapper {
|
||||
margin-inline: 4px;
|
||||
}
|
||||
|
||||
.node-actions > .node-icon-action {
|
||||
width: 17px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 650px) {
|
||||
.nodes-heading {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.nodes-heading-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.node-registered {
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
}
|
||||
@container (width < 920px) {
|
||||
.node-fleet-table,
|
||||
.node-fleet-table thead,
|
||||
.node-fleet-table tbody,
|
||||
.node-fleet-table tr,
|
||||
.node-fleet-table .node-history-row td {
|
||||
@container (width < 720px) {
|
||||
.nodes-table .ant-table-content > table {
|
||||
display: block;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
.node-fleet-table colgroup {
|
||||
.nodes-table .ant-table-thead,
|
||||
.nodes-table .ant-table-tbody,
|
||||
.nodes-table .ant-table-thead > tr,
|
||||
.nodes-table .ant-table-tbody > tr,
|
||||
.nodes-table .ant-table-tbody > tr:not(.ant-table-row) > td {
|
||||
display: block;
|
||||
}
|
||||
.nodes-table colgroup {
|
||||
display: none;
|
||||
}
|
||||
.node-fleet-table thead th:not(:first-child) {
|
||||
.nodes-table .ant-table-thead > tr > th:not(:first-child) {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
}
|
||||
.node-fleet-table thead th:first-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-inline: 10px;
|
||||
.nodes-table .ant-table-thead > tr > th:first-child {
|
||||
border-radius: 8px;
|
||||
}
|
||||
.node-fleet-table tbody > tr:not(.node-history-row) {
|
||||
.nodes-table .ant-table-tbody > tr.ant-table-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
height: auto;
|
||||
margin-block-start: 8px;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--node-line);
|
||||
border: 1px solid var(--ant-color-border-secondary);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.node-row-fleet {
|
||||
background: var(--node-fleet);
|
||||
.nodes-table .ant-table-tbody > tr.node-row-fleet {
|
||||
background: var(--ant-color-fill-quaternary);
|
||||
}
|
||||
.node-fleet-table tbody td,
|
||||
.node-fleet-table .node-name-cell {
|
||||
.nodes-table .ant-table-tbody > tr.ant-table-row > .ant-table-cell {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
text-align: start;
|
||||
}
|
||||
.node-fleet-table .node-name-cell,
|
||||
.node-fleet-table tbody td:first-child {
|
||||
.nodes-table .ant-table-row > .node-name-cell,
|
||||
.nodes-table .ant-table-row > td:first-child {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.node-fleet-table .node-name-cell {
|
||||
.nodes-table .ant-table-row > .node-name-cell {
|
||||
grid-row: 1;
|
||||
}
|
||||
.node-fleet-table td[data-label]::before {
|
||||
.node-name {
|
||||
max-width: none;
|
||||
}
|
||||
.nodes-table td[data-label]::before {
|
||||
display: block;
|
||||
margin-block-end: 4px;
|
||||
color: var(--node-secondary);
|
||||
font-size: 11px;
|
||||
color: var(--ant-color-text-secondary);
|
||||
font-size: var(--ant-font-size-sm, 12px);
|
||||
content: attr(data-label);
|
||||
}
|
||||
.node-fleet-table .node-row-fleet td:first-child {
|
||||
box-shadow: none;
|
||||
}
|
||||
.node-fleet-table .node-history-row td {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,8 +155,11 @@ export const Desktop: Story = {
|
||||
for (const viewport of [1280, 1440, 1664, 1920]) {
|
||||
const container = canvas.getByRole('region', { name: 'Nodes' });
|
||||
container.style.width = `${viewport - 260}px`;
|
||||
const table = container.querySelector('.nodes-table-scroll') as HTMLElement;
|
||||
await expect(table.scrollWidth).toBeLessThanOrEqual(table.clientWidth + 1);
|
||||
await expect(container.scrollWidth).toBeLessThanOrEqual(container.clientWidth + 1);
|
||||
const table = container.querySelector('.ant-table-content') as HTMLElement;
|
||||
if (viewport >= 1664) {
|
||||
await expect(table.scrollWidth).toBeLessThanOrEqual(table.clientWidth + 1);
|
||||
}
|
||||
container.style.width = '';
|
||||
}
|
||||
await userEvent.type(input, 'Frankfurt');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,93 +0,0 @@
|
||||
Copyright 2010-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "تحذف النود \"{name}\"؟",
|
||||
"deleteConfirmContent": "ده هيوقّف مراقبة النود. البانل البعيد نفسه مش هيتأثر.",
|
||||
"fleet": {
|
||||
"subtitle": "راقب العقدة الرئيسية وسائر العقد المتصلة في عرض واحد.",
|
||||
"allNodes": "جميع العُقد",
|
||||
"master": "الرئيسية",
|
||||
"thisPanel": "هذه اللوحة",
|
||||
|
||||
@@ -1409,7 +1409,6 @@
|
||||
"deleteConfirmTitle": "Delete node \"{name}\"?",
|
||||
"deleteConfirmContent": "This stops monitoring the node. The remote panel itself is unaffected.",
|
||||
"fleet": {
|
||||
"subtitle": "Monitor the master and every connected node in one view.",
|
||||
"allNodes": "All nodes",
|
||||
"master": "Master",
|
||||
"thisPanel": "This panel",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "¿Eliminar el nodo \"{name}\"?",
|
||||
"deleteConfirmContent": "Esto detiene la monitorización del nodo. El panel remoto en sí no se ve afectado.",
|
||||
"fleet": {
|
||||
"subtitle": "Supervisa el nodo principal y todos los nodos conectados en una vista.",
|
||||
"allNodes": "Todos los nodos",
|
||||
"master": "Principal",
|
||||
"thisPanel": "Este panel",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "نود «{name}» حذف شود؟",
|
||||
"deleteConfirmContent": "نظارت روی این نود متوقف میشود. خود پنل ریموت تغییری نمیکند.",
|
||||
"fleet": {
|
||||
"subtitle": "مستر و همهٔ نودهای متصل را در یک نما پایش کنید.",
|
||||
"allNodes": "همهٔ نودها",
|
||||
"master": "مستر",
|
||||
"thisPanel": "این پنل",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "Hapus node \"{name}\"?",
|
||||
"deleteConfirmContent": "Ini menghentikan pemantauan node. Panel jarak jauh itu sendiri tidak terpengaruh.",
|
||||
"fleet": {
|
||||
"subtitle": "Pantau node utama dan semua node terhubung dalam satu tampilan.",
|
||||
"allNodes": "Semua node",
|
||||
"master": "Utama",
|
||||
"thisPanel": "Panel ini",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "ノード「{name}」を削除しますか?",
|
||||
"deleteConfirmContent": "ノードの監視を停止します。リモートパネル自体には影響しません。",
|
||||
"fleet": {
|
||||
"subtitle": "マスターと接続中の全ノードをまとめて監視します。",
|
||||
"allNodes": "全ノード",
|
||||
"master": "マスター",
|
||||
"thisPanel": "このパネル",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "Excluir o nó \"{name}\"?",
|
||||
"deleteConfirmContent": "Isso interrompe o monitoramento do nó. O painel remoto em si não é afetado.",
|
||||
"fleet": {
|
||||
"subtitle": "Monitore o nó principal e todos os nós conectados em uma única tela.",
|
||||
"allNodes": "Todos os nós",
|
||||
"master": "Principal",
|
||||
"thisPanel": "Este painel",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "Удалить узел \"{name}\"?",
|
||||
"deleteConfirmContent": "Это остановит мониторинг узла. Сама удалённая панель не будет затронута.",
|
||||
"fleet": {
|
||||
"subtitle": "Следите за главным и всеми подключёнными узлами на одной странице.",
|
||||
"allNodes": "Все узлы",
|
||||
"master": "Главный",
|
||||
"thisPanel": "Эта панель",
|
||||
|
||||
@@ -1409,7 +1409,6 @@
|
||||
"deleteConfirmTitle": "Odstrániť server „{name}“?",
|
||||
"deleteConfirmContent": "Prestane sa sledovať tento server. Samotný vzdialený panel sa nezmení.",
|
||||
"fleet": {
|
||||
"subtitle": "Monitorujte hlavný uzol a všetky pripojené uzly v jednom zobrazení.",
|
||||
"allNodes": "Všetky uzly",
|
||||
"master": "Hlavný uzol",
|
||||
"thisPanel": "Tento panel",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "\"{name}\" düğümü silinsin mi?",
|
||||
"deleteConfirmContent": "Bu işlem düğüm izlemeyi durdurur. Uzak panelin kendisi etkilenmez.",
|
||||
"fleet": {
|
||||
"subtitle": "Ana düğümü ve bağlı tüm düğümleri tek bir görünümde izleyin.",
|
||||
"allNodes": "Tüm düğümler",
|
||||
"master": "Ana düğüm",
|
||||
"thisPanel": "Bu panel",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "Видалити вузол \"{name}\"?",
|
||||
"deleteConfirmContent": "Це зупинить моніторинг вузла. Сама віддалена панель не зазнає змін.",
|
||||
"fleet": {
|
||||
"subtitle": "Стежте за головним і всіма підключеними вузлами на одній сторінці.",
|
||||
"allNodes": "Усі вузли",
|
||||
"master": "Головний",
|
||||
"thisPanel": "Ця панель",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "Xóa nút \"{name}\"?",
|
||||
"deleteConfirmContent": "Việc này dừng giám sát nút. Panel từ xa không bị ảnh hưởng.",
|
||||
"fleet": {
|
||||
"subtitle": "Giám sát nút chính và tất cả các nút đã kết nối trong một chế độ xem.",
|
||||
"allNodes": "Tất cả nút",
|
||||
"master": "Nút chính",
|
||||
"thisPanel": "Bảng điều khiển này",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "删除节点 \"{name}\"?",
|
||||
"deleteConfirmContent": "这将停止监控该节点。远程面板本身不受影响。",
|
||||
"fleet": {
|
||||
"subtitle": "集中监控主节点与所有已连接的节点。",
|
||||
"allNodes": "所有节点",
|
||||
"master": "主节点",
|
||||
"thisPanel": "本面板",
|
||||
|
||||
@@ -1282,7 +1282,6 @@
|
||||
"deleteConfirmTitle": "刪除節點「{name}」?",
|
||||
"deleteConfirmContent": "這將停止監控該節點。遠端面板本身不受影響。",
|
||||
"fleet": {
|
||||
"subtitle": "集中監控主節點和所有已連線的節點。",
|
||||
"allNodes": "所有節點",
|
||||
"master": "主節點",
|
||||
"thisPanel": "本面板",
|
||||
|
||||
Reference in New Issue
Block a user