Removal of WIP Selections for final prod deploy
This commit is contained in:
parent
a78057de8c
commit
4ee7cb014f
5 changed files with 20 additions and 43 deletions
|
@ -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 (
|
|
||||||
<main className='charts'>
|
|
||||||
<div className='column'>
|
|
||||||
<RadarChart weighted={weighted} />
|
|
||||||
<Checkbox labelColor="primary" defaultSelected={weighted} onChange={() => setWeighted(!weighted)}>Weighted Ethics</Checkbox>
|
|
||||||
</div>
|
|
||||||
<EmpireStats />
|
|
||||||
<div className='column'>
|
|
||||||
<PopChart></PopChart>
|
|
||||||
<EthicsBar></EthicsBar>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -17,7 +17,6 @@ export default async function RootLayout({
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body>
|
<body>
|
||||||
<PageNavbar links={navLinks}/>
|
|
||||||
{children}
|
{children}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
27
app/page.tsx
27
app/page.tsx
|
@ -1,14 +1,25 @@
|
||||||
|
'use client';
|
||||||
import '@/app/globals.css';
|
import '@/app/globals.css';
|
||||||
import { Game, GameGroup } from '@/types/stellaris';
|
import { useState } from 'react';
|
||||||
import { GameView } from '@/components/gui/client/game-view';
|
import { RadarChart } from '../components/charts/radar'
|
||||||
import { generateUrl } from '@/components/server/fetchers';
|
import { EmpireStats } from '../components/tables/empires'
|
||||||
|
import { Checkbox } from '@nextui-org/react';
|
||||||
export default async function Home() {
|
import { PopChart } from '@/components/charts/pops';
|
||||||
const games = await fetch(generateUrl('/games')).then((res) => res.json())
|
import { EthicsBar } from '../components/charts/ethicsBar';
|
||||||
|
|
||||||
|
export default function Graphs() {
|
||||||
|
const [weighted, setWeighted] = useState(true);
|
||||||
return (
|
return (
|
||||||
<main>
|
<main className='charts'>
|
||||||
<GameView games={games}/>
|
<div className='column'>
|
||||||
|
<RadarChart weighted={weighted} />
|
||||||
|
<Checkbox labelColor="primary" defaultSelected={weighted} onChange={() => setWeighted(!weighted)}>Weighted Ethics</Checkbox>
|
||||||
|
</div>
|
||||||
|
<EmpireStats />
|
||||||
|
<div className='column'>
|
||||||
|
<PopChart></PopChart>
|
||||||
|
<EthicsBar></EthicsBar>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
"name": "Home",
|
"name": "Home",
|
||||||
"href": "/"
|
"href": "/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Game 15 Info",
|
|
||||||
"href": "/graphs"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Admin Menu",
|
"name": "Admin Menu",
|
||||||
"href": "/admin"
|
"href": "/admin"
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
{
|
{
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"name": "Home New",
|
"name": "Home",
|
||||||
"href": "/"
|
"href": "/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Game 15 Info",
|
|
||||||
"href": "/graphs"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Admin Menu",
|
"name": "Admin Menu",
|
||||||
"href": "/admin"
|
"href": "/admin"
|
||||||
|
|
Reference in a new issue