upatde: add prettier
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -4.5px;
|
||||
border: 5px solid transparent;
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
import { useState } from 'react'
|
||||
import reactLogo from './assets/react.svg'
|
||||
import viteLogo from './assets/vite.svg'
|
||||
import heroImg from './assets/hero.png'
|
||||
import './App.css'
|
||||
import { useState } from "react";
|
||||
import reactLogo from "./assets/react.svg";
|
||||
import viteLogo from "./assets/vite.svg";
|
||||
import heroImg from "./assets/hero.png";
|
||||
import "./App.css";
|
||||
|
||||
function App() {
|
||||
const [count, setCount] = useState(0)
|
||||
const [count, setCount] = useState(0);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -115,7 +115,7 @@ function App() {
|
||||
<div className="ticks"></div>
|
||||
<section id="spacer"></section>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export default App
|
||||
export default App;
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/3d/InteractiveObject.tsx
|
||||
// src/components/3d/InteractiveObject.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/ui/CinematicBars.tsx
|
||||
// src/components/ui/CinematicBars.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/ui/LoadingScreen.tsx
|
||||
// src/components/ui/LoadingScreen.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/ui/MapHUD.tsx
|
||||
// src/components/ui/MapHUD.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/ui/MissionHUD.tsx
|
||||
// src/components/ui/MissionHUD.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/components/ui/NarrativeOverlay.tsx
|
||||
// src/components/ui/NarrativeOverlay.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/data/dialogues.ts
|
||||
// src/data/dialogues.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/data/missions.ts
|
||||
// src/data/missions.ts
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/data/zones.ts
|
||||
// src/data/zones.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/hooks/useAudio.ts
|
||||
// src/hooks/useAudio.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/hooks/useCinematic.ts
|
||||
// src/hooks/useCinematic.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/hooks/useGameState.ts
|
||||
// src/hooks/useGameState.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/hooks/useInteraction.ts
|
||||
// src/hooks/useInteraction.ts
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/hooks/useLOD.ts
|
||||
// src/hooks/useLOD.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/hooks/useZoneDetection.ts
|
||||
// src/hooks/useZoneDetection.ts
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@
|
||||
--shadow:
|
||||
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
|
||||
|
||||
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
|
||||
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
|
||||
--sans: system-ui, "Segoe UI", Roboto, sans-serif;
|
||||
--heading: system-ui, "Segoe UI", Roboto, sans-serif;
|
||||
--mono: ui-monospace, Consolas, monospace;
|
||||
|
||||
font: 18px/145% var(--sans);
|
||||
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./index.css";
|
||||
import App from "./App.tsx";
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
);
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/stateManager/AudioManager.ts
|
||||
// src/stateManager/AudioManager.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/stateManager/CinematicManager.ts
|
||||
// src/stateManager/CinematicManager.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/stateManager/GameManager.ts
|
||||
// src/stateManager/GameManager.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/stateManager/ZoneManager.ts
|
||||
// src/stateManager/ZoneManager.ts
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/utils/Debug.ts
|
||||
// src/utils/Debug.ts
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Suspense, lazy } from 'react'
|
||||
const Perf = lazy(() => import('r3f-perf').then((m) => ({ default: m.Perf })))
|
||||
export function DebugPerf() {
|
||||
const debug = new URLSearchParams(window.location.search).has('debug')
|
||||
if (!debug) return null
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<Perf position="top-left" />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
// src/utils/Dispose.ts
|
||||
// src/utils/Dispose.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/utils/EventEmitter.ts
|
||||
// src/utils/EventEmitter.ts
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/utils/Sizes.ts
|
||||
// src/utils/Sizes.ts
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/utils/Time.ts
|
||||
// src/utils/Time.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/Environment.tsx
|
||||
// src/world/Environment.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/Lighting.tsx
|
||||
// src/world/Lighting.tsx
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// src/world/Map.tsx
|
||||
// src/world/Map.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/PostFX.tsx
|
||||
// src/world/PostFX.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/player/Crosshair.tsx
|
||||
// src/world/player/Crosshair.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/player/FPSController.tsx
|
||||
// src/world/player/FPSController.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/zones/FarmZone.tsx
|
||||
// src/world/zones/FarmZone.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/zones/PowerGridZone.tsx
|
||||
// src/world/zones/PowerGridZone.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/zones/ResidentialZone.tsx
|
||||
// src/world/zones/ResidentialZone.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/zones/SchoolZone.tsx
|
||||
// src/world/zones/SchoolZone.tsx
|
||||
|
||||
@@ -1 +1 @@
|
||||
// src/world/zones/WorkshopZone.tsx
|
||||
// src/world/zones/WorkshopZone.tsx
|
||||
|
||||
Reference in New Issue
Block a user