Skip to content
Draft
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
73 changes: 43 additions & 30 deletions satisfactory-planner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions satisfactory-planner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@vercel/analytics": "^2.0.1",
"react": "^19.2.6",
"react-dom": "^19.2.6"
},
Expand Down
4 changes: 3 additions & 1 deletion satisfactory-planner/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState, useRef, useCallback, useEffect, useLayoutEffect, useMemo } from "react";
import { Analytics } from "@vercel/analytics/react";
import {
GRID, CELL, TOPBAR, BUILDINGS, BUILDING_MAP, CATS, CAT_ICON,
BELT_TIERS, ZONE_PRESETS, FLOOR_OPTIONS, TRANSPORT_TYPES, BUILDING_ROLES,
Expand Down Expand Up @@ -116,7 +117,7 @@ function BuildingRect({placed,def,selected,connectingFrom,tool,onMouseDown,onCon
);
}

// ─── BELT LINE ───────────────────────────────────────────────────────────────
// ─── BELT LINE ───────────────────────────────────────────────────────────��────
function BeltLine({conn,fromB,toB,selected,beltDef,onClick,itemMap}){
const fromSz=getRotatedSize(fromB), toSz=getRotatedSize(toB);
const x1=(fromB.x+fromSz.w/2)*CELL, y1=(fromB.y+fromSz.h/2)*CELL;
Expand Down Expand Up @@ -1447,6 +1448,7 @@ export default function App(){
{/* ═══ MODALS ═══ */}
{zoneDraft&&<ZoneModal draft={zoneDraft} onConfirm={confirmZone} onCancel={()=>setZoneDraft(null)}/>}
{pendingConn&&<ConnectionPicker onPick={pickConn} onCancel={()=>setPendingConn(null)}/>}
<Analytics />
</div>
);
}