From fa98a2595bfcdcde7f249f775137af00758d34d2 Mon Sep 17 00:00:00 2001 From: sai80082 Date: Tue, 7 Apr 2026 19:13:37 +0530 Subject: [PATCH] fix: update Dockerfile and bun.lock --- Dockerfile | 2 +- bun.lock | 9 +++------ src/components/asset-info/AssetInfoPanel.tsx | 13 +++++++++++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 712cfed..d7aa5b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # Install dependencies only when needed FROM oven/bun:1-alpine AS deps WORKDIR /app -COPY package.json bun.lockb ./ +COPY package.json bun.lock ./ RUN bun install --frozen-lockfile # Rebuild the source code only when needed diff --git a/bun.lock b/bun.lock index f4742cd..7888d6b 100644 --- a/bun.lock +++ b/bun.lock @@ -49,7 +49,6 @@ "drizzle-orm": "^0.45.2", "jsonwebtoken": "^9.0.3", "leaflet": "^1.9.4", - "leaflet-defaulticon-compatibility": "0.1.2", "leaflet.heat": "^0.2.0", "lucide-react": "^0.428.0", "next": "15.5.14", @@ -60,10 +59,10 @@ "react-autosuggest": "^10.1.0", "react-day-picker": "9.0.8", "react-dom": "19.2.4", - "react-grid-gallery": "^1.0.1", "react-hot-toast": "^2.6.0", "react-leaflet": "^4.2.1", "react-mentions": "^4.4.10", + "react-photo-album": "^3.5.1", "react-window": "^1.8.11", "recharts": "^2.15.4", "remotion": "4.0.232", @@ -1180,8 +1179,6 @@ "leaflet": ["leaflet@1.9.4", "", {}, "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA=="], - "leaflet-defaulticon-compatibility": ["leaflet-defaulticon-compatibility@0.1.2", "", {}, "sha512-IrKagWxkTwzxUkFIumy/Zmo3ksjuAu3zEadtOuJcKzuXaD76Gwvg2Z1mLyx7y52ykOzM8rAH5ChBs4DnfdGa6Q=="], - "leaflet.heat": ["leaflet.heat@0.2.0", "", {}, "sha512-Cd5PbAA/rX3X3XKxfDoUGi9qp78FyhWYurFg3nsfhntcM/MCNK08pRkf4iEenO1KNqwVPKCmkyktjW3UD+h9bQ=="], "levn": ["levn@0.4.1", "", { "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" } }, "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="], @@ -1404,8 +1401,6 @@ "react-dom": ["react-dom@19.2.4", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.4" } }, "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ=="], - "react-grid-gallery": ["react-grid-gallery@1.0.1", "", { "peerDependencies": { "react": ">=16.14.0" } }, "sha512-+fVd6fH9tm0W+UMgzRHET/gmzSs2/l2sGOuELLaHXMto6UhuZdscj9ILHOYe7hn0GBRUJiczMllsEs7OJz9uPA=="], - "react-hot-toast": ["react-hot-toast@2.6.0", "", { "dependencies": { "csstype": "^3.1.3", "goober": "^2.1.16" }, "peerDependencies": { "react": ">=16", "react-dom": ">=16" } }, "sha512-bH+2EBMZ4sdyou/DPrfgIouFpcRLCJ+HoCA32UoAYHn6T3Ur5yfcDCeSr5mwldl6pFOsiocmrXMuoCJ1vV8bWg=="], "react-is": ["react-is@18.3.1", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="], @@ -1414,6 +1409,8 @@ "react-mentions": ["react-mentions@4.4.10", "", { "dependencies": { "@babel/runtime": "7.4.5", "invariant": "^2.2.4", "prop-types": "^15.5.8", "substyle": "^9.1.0" }, "peerDependencies": { "react": ">=16.8.3", "react-dom": ">=16.8.3" } }, "sha512-JHiQlgF1oSZR7VYPjq32wy97z1w1oE4x10EuhKjPr4WUKhVzG1uFQhQjKqjQkbVqJrmahf+ldgBTv36NrkpKpA=="], + "react-photo-album": ["react-photo-album@3.5.1", "", { "peerDependencies": { "@types/react": "^18 || ^19", "react": "^18 || ^19" }, "optionalPeers": ["@types/react"] }, "sha512-g1uFG+loxdIb8eIOGnrh/71Ao80+XWV+NLfluY9qDDTbS76m+X1K6dpfNtsx1xKr9aw5N1ornkFTWpfyqOoD5Q=="], + "react-refresh": ["react-refresh@0.9.0", "", {}, "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ=="], "react-remove-scroll": ["react-remove-scroll@2.7.2", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="], diff --git a/src/components/asset-info/AssetInfoPanel.tsx b/src/components/asset-info/AssetInfoPanel.tsx index 4f5b20a..c395082 100644 --- a/src/components/asset-info/AssetInfoPanel.tsx +++ b/src/components/asset-info/AssetInfoPanel.tsx @@ -21,8 +21,17 @@ import { Button } from '@/components/ui/button' import { toast } from '@/components/ui/use-toast' import L from 'leaflet' import 'leaflet/dist/leaflet.css' -import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css' -import 'leaflet-defaulticon-compatibility' + +// Fix default marker icons for bundlers that don't support ~ aliases +import markerIcon2x from 'leaflet/dist/images/marker-icon-2x.png' +import markerIcon from 'leaflet/dist/images/marker-icon.png' +import markerShadow from 'leaflet/dist/images/marker-shadow.png' + +L.Icon.Default.mergeOptions({ + iconUrl: markerIcon.src, + iconRetinaUrl: markerIcon2x.src, + shadowUrl: markerShadow.src, +}) export interface IAssetDetail { id: string