diff --git a/satisfactory-planner/package-lock.json b/satisfactory-planner/package-lock.json index c499d83..2c05c87 100644 --- a/satisfactory-planner/package-lock.json +++ b/satisfactory-planner/package-lock.json @@ -8,6 +8,7 @@ "name": "satisfactory-planner", "version": "0.0.0", "dependencies": { + "@vercel/analytics": "^2.0.1", "react": "^19.2.6", "react-dom": "^19.2.6" }, @@ -663,9 +664,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -683,9 +681,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -703,9 +698,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -723,9 +715,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -743,9 +732,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -763,9 +749,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -904,6 +887,48 @@ "@types/react": "^19.2.0" } }, + "node_modules/@vercel/analytics": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz", + "integrity": "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==", + "license": "MIT", + "peerDependencies": { + "@remix-run/react": "^2", + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "nuxt": ">= 3", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@remix-run/react": { + "optional": true + }, + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "nuxt": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/@vitejs/plugin-react": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", @@ -1766,9 +1791,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1790,9 +1812,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1814,9 +1833,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1838,9 +1854,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/satisfactory-planner/package.json b/satisfactory-planner/package.json index d671760..6fe237b 100644 --- a/satisfactory-planner/package.json +++ b/satisfactory-planner/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@vercel/analytics": "^2.0.1", "react": "^19.2.6", "react-dom": "^19.2.6" }, diff --git a/satisfactory-planner/src/App.jsx b/satisfactory-planner/src/App.jsx index 359e303..39c97cd 100644 --- a/satisfactory-planner/src/App.jsx +++ b/satisfactory-planner/src/App.jsx @@ -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, @@ -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; @@ -1447,6 +1448,7 @@ export default function App(){ {/* ═══ MODALS ═══ */} {zoneDraft&&setZoneDraft(null)}/>} {pendingConn&&setPendingConn(null)}/>} + ); }