From 6430907af9483d4da82b33c94f87dbb547a12387 Mon Sep 17 00:00:00 2001 From: rand0mC0d3r <11176977+rand0mC0d3r@users.noreply.github.com> Date: Sun, 27 Aug 2023 17:28:08 +0200 Subject: [PATCH] WIP --- src/App.tsx | 14 +++-- src/components/ChatClient.tsx | 6 +- src/components/ControlPanel.tsx | 66 +++++++++++---------- src/components/KeyboardShortcuts.tsx | 6 +- src/components/Preopen.tsx | 33 +++++++++-- src/components/Samples.tsx | 2 +- src/components/StatusCoreGenerator.tsx | 82 ++++++++++++++++++++++++++ 7 files changed, 159 insertions(+), 50 deletions(-) create mode 100644 src/components/StatusCoreGenerator.tsx diff --git a/src/App.tsx b/src/App.tsx index 14d659e..aefa26e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,9 +16,10 @@ import Preopen from './components/Preopen' import Samples from './components/Samples' import Search from './components/Search' import SpeedMonitor from './components/SpeedMonitor' +// import Sidebars from './components/Sidebars' import './App.css' -// import Sidebars from './components/Sidebars' +import StatusCoreGenerator from './components/StatusCoreGenerator' function App() { const [width, setWidth] = useState('100%') @@ -33,7 +34,7 @@ function App() { return <> + {/* */} - + {/* @@ -53,9 +55,11 @@ function App() { {!loggedIn && } + */} + {/* {!loggedIn && } */} + {/* */} - - + - - - + }/> + }/> + }/> diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx index b5727fc..6d9854f 100644 --- a/src/components/ControlPanel.tsx +++ b/src/components/ControlPanel.tsx @@ -172,38 +172,40 @@ export default function ({ Control Panel -
- {toggleBlock('Simulate logged in', loggedIn, setLoggedIn)} - {toggleBlock('Border', hasBorder, setHasBorder)} - {toggleBlock('FullWidth', fullWidth, setFullWidth)} - {toggleOptions('Variant', ['default', 'outlined'], setVariant, variant)} - {toggleOptions('Position', ['top', 'bottom'], setPosition, position)} - {toggleOptions('Width', ['75vw', '100%', '60%', '1400px'], setWidth, width)} - {toggleOptions('Margin', ['0px', '4px', '16px'], setMargin, margin)} -
-
- -