From 4ee7cb014fcf10925c6dd33cb42330acc14179e9 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 6 Aug 2023 02:47:34 +0200 Subject: [PATCH] Removal of WIP Selections for final prod deploy --- app/graphs/page.tsx | 25 ------------------------- app/layout.tsx | 1 - app/page.tsx | 27 +++++++++++++++++++-------- public/routes.json | 4 ---- public/routes_api.json | 6 +----- 5 files changed, 20 insertions(+), 43 deletions(-) delete mode 100644 app/graphs/page.tsx diff --git a/app/graphs/page.tsx b/app/graphs/page.tsx deleted file mode 100644 index d8ea658..0000000 --- a/app/graphs/page.tsx +++ /dev/null @@ -1,25 +0,0 @@ -'use client'; -import '@/app/globals.css'; -import { useState } from 'react'; -import { RadarChart } from '../../components/charts/radar' -import { EmpireStats } from '../../components/tables/empires' -import { Checkbox } from '@nextui-org/react'; -import { PopChart } from '@/components/charts/pops'; -import { EthicsBar } from '../../components/charts/ethicsBar'; - -export default function Graphs() { - const [weighted, setWeighted] = useState(true); - return ( -
-
- - setWeighted(!weighted)}>Weighted Ethics -
- -
- - -
-
- ) -} diff --git a/app/layout.tsx b/app/layout.tsx index f9812b0..bd05dfd 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -17,7 +17,6 @@ export default async function RootLayout({ return ( - {children} diff --git a/app/page.tsx b/app/page.tsx index c09f113..f5a8046 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,14 +1,25 @@ +'use client'; import '@/app/globals.css'; -import { Game, GameGroup } from '@/types/stellaris'; -import { GameView } from '@/components/gui/client/game-view'; -import { generateUrl } from '@/components/server/fetchers'; - -export default async function Home() { - const games = await fetch(generateUrl('/games')).then((res) => res.json()) +import { useState } from 'react'; +import { RadarChart } from '../components/charts/radar' +import { EmpireStats } from '../components/tables/empires' +import { Checkbox } from '@nextui-org/react'; +import { PopChart } from '@/components/charts/pops'; +import { EthicsBar } from '../components/charts/ethicsBar'; +export default function Graphs() { + const [weighted, setWeighted] = useState(true); return ( -
- +
+
+ + setWeighted(!weighted)}>Weighted Ethics +
+ +
+ + +
) } diff --git a/public/routes.json b/public/routes.json index a8cacc2..25089f0 100644 --- a/public/routes.json +++ b/public/routes.json @@ -4,10 +4,6 @@ "name": "Home", "href": "/" }, - { - "name": "Game 15 Info", - "href": "/graphs" - }, { "name": "Admin Menu", "href": "/admin" diff --git a/public/routes_api.json b/public/routes_api.json index f2c9c29..25089f0 100644 --- a/public/routes_api.json +++ b/public/routes_api.json @@ -1,13 +1,9 @@ { "links": [ { - "name": "Home New", + "name": "Home", "href": "/" }, - { - "name": "Game 15 Info", - "href": "/graphs" - }, { "name": "Admin Menu", "href": "/admin"