mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-10-31 04:02:03 +01:00
Wrap MapPage node markers in react-leaflet-cluster (leaflet.markercluster) with spiderfy-at-max-zoom, zoom-to-bounds on click, clustering disabled at zoom >= 15, and viewport culling so off-screen markers stay out of the DOM. Cluster bubbles render a plain themed count badge. Marker label HTML is now only built when the show-labels toggle is on, halving per-marker DOM weight; hover-to-reveal no longer applies while labels are toggled off.
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"build": "node build.js",
|
|
"dev": "vite --config vite.config.ts",
|
|
"test:frontend": "vitest run --reporter=default --reporter=junit --outputFile.junit=vitest-junit.xml",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:e2e": "playwright test --config=e2e/playwright.config.ts",
|
|
"typecheck:e2e": "tsc -p e2e/tsconfig.json --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.61.1",
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/jest-dom": "^7.0.0",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/leaflet": "^1.9.17",
|
|
"@types/leaflet.markercluster": "^1.5.6",
|
|
"@types/node": "^24.0.0",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^6.0.4",
|
|
"jsdom": "^30.0.0",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^8.1.5",
|
|
"vitest": "^4.1.10"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/ibm-plex-sans": "^5",
|
|
"@fontsource/ibm-plex-mono": "^5",
|
|
"@tailwindcss/cli": "^4",
|
|
"@tanstack/react-query": "^5.101.4",
|
|
"chart.js": "^4",
|
|
"daisyui": "^5",
|
|
"i18next": "^26.0.0",
|
|
"i18next-browser-languagedetector": "^8",
|
|
"leaflet": "^1.9.4",
|
|
"leaflet.markercluster": "^1.5.3",
|
|
"react": "^19",
|
|
"react-chartjs-2": "^5",
|
|
"react-dom": "^19",
|
|
"react-i18next": "^17.0.0",
|
|
"react-leaflet": "^5",
|
|
"react-leaflet-cluster": "^4.1.3",
|
|
"react-markdown": "^10.1.0",
|
|
"react-qr-code": "^2.2.0",
|
|
"react-router": "^8.0.0",
|
|
"rehype-autolink-headings": "^7.1.0",
|
|
"rehype-slug": "^6.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"tailwindcss": "^4"
|
|
},
|
|
"allowScripts": {
|
|
"esbuild@0.25.12": true,
|
|
"@parcel/watcher@2.5.1": true
|
|
}
|
|
}
|