Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,956 changes: 446 additions & 1,510 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
},
"devDependencies": {
"@biomejs/biome": "2.4.2",
"@tailwindcss/vite": "^4.1.18",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^24.10.1",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"@types/three": "^0.182.0",
"@vitejs/plugin-react": "^5.1.1",
"@vitejs/plugin-react": "^6.0.1",
"globals": "^16.5.0",
"lefthook": "^2.1.1",
"tailwindcss": "^4.1.18",
"tailwindcss": "^4.2.2",
"typescript": "~5.9.3",
"vite": "^7.2.4"
"vite": "^8.0.1"
}
}
Binary file added src/assets/2k_jupiter.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/2k_mars.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/2k_sun.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/2k_venus_atmosphere.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/earth_atmos_2048.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/data/planets.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as THREE from "three";
import jupiterTexture from "@/assets/2k_jupiter.jpg";
import marsTexture from "@/assets/2k_mars.jpg";
import sunTexture from "@/assets/2k_sun.jpg";
import venusTexture from "@/assets/2k_venus_atmosphere.jpg";
import earthTexture from "@/assets/earth_atmos_2048.jpg";
import jupiterTexture from "@/assets/2k_jupiter.webp";
import marsTexture from "@/assets/2k_mars.webp";
import sunTexture from "@/assets/2k_sun.webp";
import venusTexture from "@/assets/2k_venus_atmosphere.webp";
import earthTexture from "@/assets/earth_atmos_2048.webp";
import type { Planet } from "@/types/planet";

export const earth: Planet = {
Expand Down
4 changes: 3 additions & 1 deletion src/router/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { lazy } from "react";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Home from "@/pages/Home";
import Simulation from "@/pages/Simulation";

const Simulation = lazy(() => import("@/pages/Simulation"));

export const AppRouter = () => (
<BrowserRouter>
Expand Down
13 changes: 13 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,17 @@ export default defineConfig({
"@": path.resolve(__dirname, "src"),
},
},
build: {
chunkSizeWarningLimit: 800,
rolldownOptions: {
output: {
codeSplitting: {
groups: [
{ name: "three", test: /\/three\// },
{ name: "cannon", test: /@react-three\/cannon/ },
],
},
},
},
},
});