mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
Step 7 of the Vue→React migration. Ports the overview/index entry: dashboard page, status + xray cards, panel-update / log / backup / system-history / xray-metrics / xray-log / version modals, and the custom-geo subsection. Adds the shared JsonEditor (CodeMirror 6) and useStatus hook used by the config modal. Removes the unused react-hooks/set-state-in-effect disables now that the rule is off globally.
26 lines
579 B
CSS
26 lines
579 B
CSS
.json-editor-host {
|
|
border: 1px solid var(--ant-color-border, #d9d9d9);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background: var(--ant-color-bg-container, #fff);
|
|
}
|
|
|
|
.json-editor-host .cm-editor,
|
|
.json-editor-host .cm-editor.cm-focused {
|
|
outline: none;
|
|
}
|
|
|
|
.json-editor-host:focus-within {
|
|
border-color: var(--ant-color-primary, #1677ff);
|
|
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
|
|
}
|
|
|
|
body.dark .json-editor-host {
|
|
border-color: #3a3a3c;
|
|
background: #1e1e1e;
|
|
}
|
|
|
|
html[data-theme="ultra-dark"] .json-editor-host {
|
|
border-color: #1f1f1f;
|
|
background: #0a0a0a;
|
|
}
|