Initial refactor
This commit is contained in:
1 parent
bf0f05d589
commit
7b04fcb9fe
6 files changed
+199
-27
No files matched your search
@@ -9,6 +9,7 @@ import ServerStatus from "../../Components/Charts/Servers/ServerStatus";
|
||||
import SearchTextField from "../../Components/TextFields/Search/SearchTextField";
|
||||
import HostsTable from "../../Components/HostsTable";
|
||||
import Pagination from "../../Components/Pagination";
|
||||
import MonitorTable from "../../Components/MonitorTable";
|
||||
|
||||
const Monitors = () => {
|
||||
const navigate = useNavigate();
|
||||
@@ -28,6 +29,7 @@ const Monitors = () => {
|
||||
|
||||
return (
|
||||
<div className="monitors">
|
||||
<MonitorTable monitors={monitorState.monitors} />
|
||||
<div className="monitors-bar">
|
||||
<div className="monitors-bar-title">
|
||||
Hello, {authState.user.firstname}
|
||||
|
||||
@@ -66,24 +66,6 @@
|
||||
font-size: var(--env-var-font-size-medium);
|
||||
}
|
||||
|
||||
.host-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.host-list-item-open {
|
||||
width: var(--env-var-img-width-2);
|
||||
height: var(--env-var-img-width-2);
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.host-list-item-name {
|
||||
font-size: var(--env-var-font-size-medium);
|
||||
font-weight: bold;
|
||||
margin-right: var(--env-var-spacing-1);
|
||||
}
|
||||
|
||||
.host-list-item-precentage {
|
||||
font-size: var(--env-var-font-size-medium);
|
||||
}
|
||||
@@ -101,13 +83,6 @@
|
||||
padding: calc(var(--env-var-spacing-1) / 2);
|
||||
}
|
||||
|
||||
.host-status-box-circle {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
margin-right: calc(var(--env-var-spacing-1) / 2);
|
||||
}
|
||||
|
||||
.host-actions {
|
||||
margin: auto;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { useState } from "react";
|
||||
|
||||
const TestUpload = () => {
|
||||
const [file, setFile] = useState();
|
||||
function handleChange(e) {
|
||||
setFile(URL.createObjectURL(e.target.files[0]));
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<input type="file" onChange={handleChange} />
|
||||
<img src={file} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TestUpload;
|
||||
Reference in new issue
Block a user