From b4bd190b5554dc42a5e20426dd19a1baa6cd6610 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:23:03 +0100 Subject: [PATCH] Instance pages --- src-tauri/tauri.conf.json | 4 +++- src/ui/pages/Home.tsx | 2 +- src/ui/pages/instances/InstanceMods.tsx | 9 +++++++++ src/ui/pages/instances/InstanceOverview.tsx | 21 +++++++++++++++++++++ src/ui/pages/instances/index.tsx | 11 +++++++++++ 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 src/ui/pages/instances/InstanceMods.tsx create mode 100644 src/ui/pages/instances/InstanceOverview.tsx create mode 100644 src/ui/pages/instances/index.tsx diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4a5d0e01..e7654b89 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -13,7 +13,9 @@ "title": "polyfrost-launcher", "width": 1280, "height": 800, - "resizable": false, + "minWidth": 1080, + "minHeight": 600, + "resizable": true, "center": true, "decorations": false, "shadow": true diff --git a/src/ui/pages/Home.tsx b/src/ui/pages/Home.tsx index 5133c06a..66b475df 100644 --- a/src/ui/pages/Home.tsx +++ b/src/ui/pages/Home.tsx @@ -152,7 +152,7 @@ function InstanceGroup(props: InstanceGroupProps) { collisionDetector={closestCenter} > -
+
{item => } diff --git a/src/ui/pages/instances/InstanceMods.tsx b/src/ui/pages/instances/InstanceMods.tsx new file mode 100644 index 00000000..12eaeb6f --- /dev/null +++ b/src/ui/pages/instances/InstanceMods.tsx @@ -0,0 +1,9 @@ +function InstanceMods() { + return ( +
+

Mods Config

+
+ ); +} + +export default InstanceMods; diff --git a/src/ui/pages/instances/InstanceOverview.tsx b/src/ui/pages/instances/InstanceOverview.tsx new file mode 100644 index 00000000..a25ab64f --- /dev/null +++ b/src/ui/pages/instances/InstanceOverview.tsx @@ -0,0 +1,21 @@ +import { Route } from '@solidjs/router'; +import InstanceMods from './InstanceMods'; + +function InstanceOverview() { + return ( +
+

Hello World

+
+ ); +} + +InstanceOverview.prototype.getRoutes = function () { + return ( + <> + + + + ); +}; + +export default InstanceOverview; diff --git a/src/ui/pages/instances/index.tsx b/src/ui/pages/instances/index.tsx new file mode 100644 index 00000000..1cf3dc79 --- /dev/null +++ b/src/ui/pages/instances/index.tsx @@ -0,0 +1,11 @@ +import { A } from '@solidjs/router'; + +function InstancePage() { + return ( +
+ Overview +
+ ); +} + +export default InstancePage;