Skip to content

Commit 7cca998

Browse files
committed
πŸ’žπŸ˜΅β€πŸ’« ↝ [SSP-40]: PH Gen 1 working in-test
1 parent b6a322c commit 7cca998

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

β€Žapp/tests/page.tsxβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React, { useState } from "react";
44
import StarnetLayout from "@/components/Layout/Starnet";
55
import DailyMinorPlanetMissions from "@/components/Structures/Missions/Astronomers/DailyMinorPlanet/DailyMinorPlanet";
66
import TotalPoints from "@/components/Structures/Missions/Stardust/Total";
7+
import PlanetGenerator from "@/components/Data/Generator/Astronomers/PlanetHunters/PlanetGenerator";
78
// import { TopographicMap } from "@/components/topographic-map";
89

910
export default function TestPage() {
@@ -12,6 +13,7 @@ export default function TestPage() {
1213
<>
1314
<DailyMinorPlanetMissions />
1415
<TotalPoints />
16+
<PlanetGenerator />
1517
{/* <Greenhouse /> */}
1618
{/* <MiningComponent /> */}
1719
</>

β€Žcomponents/Data/Generator/Astronomers/PlanetHunters/planet-controls.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Slider } from "@/components/ui/slider"
22
import { Label } from "@/components/ui/label"
33
import { Button } from "@/components/ui/button"
44
import { Card, CardContent } from "@/components/ui/card"
5-
import type { PlanetStats } from "../utils/planet-physics"
5+
import type { PlanetStats } from "@/utils/planet-physics"
66

77
interface PlanetControlsProps {
88
stats: PlanetStats

β€Žcomponents/Data/Generator/Astronomers/PlanetHunters/planet-import-export.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from 'react'
22
import { Button } from "@/components/ui/button"
33
import { Textarea } from "@/components/ui/textarea"
44
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
5-
import type { PlanetStats } from '../utils/planet-physics'
5+
import type { PlanetStats } from '@/utils/planet-physics'
66

77
interface PlanetImportExportProps {
88
stats: PlanetStats

β€Žcomponents/Data/Generator/Astronomers/PlanetHunters/planet-info.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Sun, Thermometer, Droplets } from 'lucide-react'
2-
import { Planet } from '../types/greenhouse'
2+
import { Planet } from '@/types/greenhouse'
33

44
interface PlanetInfoProps {
55
planet: Planet;
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
'use client'
22

3-
import { Canvas, useThree } from '@react-three/fiber'
3+
import { Canvas } from '@react-three/fiber'
44
import { OrbitControls, Stars } from '@react-three/drei'
55
import { PlanetMesh } from './planet-mesh'
6-
import type { PlanetStats } from '../utils/planet-physics'
6+
import type { PlanetStats } from '@/utils/planet-physics'
77

88
interface PlanetSceneProps {
99
stats: PlanetStats
10-
}
11-
12-
function Scene({ stats }: { stats: PlanetStats }) {
13-
const { camera } = useThree()
14-
return <PlanetMesh stats={stats} camera={camera} />
15-
}
10+
};
1611

1712
export function PlanetScene({ stats }: PlanetSceneProps) {
1813
return (
1914
<div className="w-full h-[500px] bg-black rounded-lg overflow-hidden">
2015
<Canvas camera={{ position: [0, 0, 8], fov: 45 }}>
2116
<ambientLight intensity={0.5} />
2217
<pointLight position={[10, 10, 10]} intensity={1} />
23-
<Scene stats={stats} />
18+
<PlanetMesh stats={stats} />
2419
<Stars radius={300} depth={50} count={5000} factor={4} />
2520
<OrbitControls
2621
enableZoom={false}
@@ -30,6 +25,5 @@ export function PlanetScene({ stats }: PlanetSceneProps) {
3025
/>
3126
</Canvas>
3227
</div>
33-
)
34-
}
35-
28+
);
29+
};

β€Žcomponents/Data/Generator/Astronomers/PlanetHunters/temperature-display.tsxβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
Β (0)