Added new components
This commit is contained in:
5026
infra/staff/package-lock.json
generated
Normal file
5026
infra/staff/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,7 @@
|
||||
"prettier": "^3",
|
||||
"prettier-plugin-organize-imports": "^3.2",
|
||||
"prettier-plugin-packagejson": "^2.5",
|
||||
"typescript": "^5",
|
||||
"typescript": "^5.4.5",
|
||||
"vite": "^5.2"
|
||||
},
|
||||
"packageManager": "yarn@1.22.21"
|
||||
|
||||
47
infra/staff/src/App.css
Normal file
47
infra/staff/src/App.css
Normal file
@@ -0,0 +1,47 @@
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
background-color: #009879;
|
||||
color: white;
|
||||
padding-top: 20px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.sidebar ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sidebar ul li {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sidebar ul li:hover {
|
||||
background-color: lightgreen;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 200px;
|
||||
padding: 20px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.input-form,
|
||||
.fetch-button,
|
||||
table,
|
||||
.footer {
|
||||
margin-top: 20px;
|
||||
}
|
||||
21
infra/staff/src/components/Sidebar.tsx
Normal file
21
infra/staff/src/components/Sidebar.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
import "../App.css";
|
||||
interface SidebarProps {
|
||||
onOptionSelect: (option: string) => void;
|
||||
}
|
||||
|
||||
export const Sidebar: React.FC<SidebarProps> = ({ onOptionSelect }) => {
|
||||
return (
|
||||
<div className="sidebar">
|
||||
<ul>
|
||||
<li onClick={() => onOptionSelect("Disable2FA")}>Disable2FA</li>
|
||||
<li onClick={() => onOptionSelect("Closefamily")}>
|
||||
Closefamily
|
||||
</li>
|
||||
<li onClick={() => onOptionSelect("Passkeys")}>
|
||||
DisablePasskeys
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -303,7 +303,8 @@ internal:
|
||||
# local-domain-suffix: "@example.org"
|
||||
# local-domain-value: 123456
|
||||
# List of user IDs that can use the admin API endpoints.
|
||||
admins: []
|
||||
admins:
|
||||
- 1580559962386438
|
||||
|
||||
# Replication config
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user