From 32d27bc9fbccf37842deeb1840d7c871b6a448c0 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Fri, 2 Aug 2024 12:30:27 +0200 Subject: [PATCH 1/4] feat: Revamp Cluster overview page, make it less empty --- apps/frontend/src/globals.css | 15 +- .../src/ui/components/SettingsRow.tsx | 11 +- .../src/ui/components/base/Button.module.scss | 19 +- apps/frontend/src/ui/pages/Home.tsx | 75 +--- .../src/ui/pages/cluster/ClusterOverview.tsx | 388 +++++++++++------- .../settings/launcher/SettingsGeneral.tsx | 2 +- apps/frontend/src/utils/primitives.ts | 49 ++- 7 files changed, 317 insertions(+), 242 deletions(-) diff --git a/apps/frontend/src/globals.css b/apps/frontend/src/globals.css index fbc756a6..adb6ef8b 100644 --- a/apps/frontend/src/globals.css +++ b/apps/frontend/src/globals.css @@ -3,17 +3,24 @@ body { } /* start lynith's native experience (tm) */ -* { +* { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; user-drag: none; - cursor: default !important; + cursor: default !important; animation-duration: 150ms !important; } -*:hover { - cursor: default !important; +*:hover { + cursor: default !important; +} + +img { + user-select: none; + -webkit-user-drag: none; + user-drag: none; + pointer-events: none; } /* end lynith's native experience (tm) */ diff --git a/apps/frontend/src/ui/components/SettingsRow.tsx b/apps/frontend/src/ui/components/SettingsRow.tsx index 1062d4ff..cbc4f58c 100644 --- a/apps/frontend/src/ui/components/SettingsRow.tsx +++ b/apps/frontend/src/ui/components/SettingsRow.tsx @@ -4,14 +4,17 @@ type SettingsRowProps = ParentProps & { title: JSX.Element; description: JSX.Element; icon: JSX.Element; - onClick?: () => any; + disabled?: boolean; }; function SettingsRow(props: SettingsRowProps) { return (
{props.description}
{props.meta.name}
+{props.meta.name}
{upperFirst(props.meta.loader)} {' '} @@ -364,18 +313,18 @@ function ClusterCard(props: Cluster) { {props.instance.mods && `• ${props.mods} mods`} */}
-
- {line => }
-
-
+
+
+ {line => }
+
+
+ TODO
-+ PID: + {' '} + {pid() || 0} +
+