Skip to content
Open
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
146 changes: 131 additions & 15 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"react-ga4": "^2.1.0",
"react-icons": "^5.5.0",
"react-image-gallery": "^1.4.0",
"react-joyride": "^2.9.3",
"react-leaflet": "^5.0.0",
"react-router-dom": "^7.6.0",
"react-toastify": "^11.0.5",
Expand Down
7 changes: 7 additions & 0 deletions public/markers/australianCapitalTerritory/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [
"accommodation_ACT.json",
"accommodation_campermate.json",
"toiletmap_aus_2025_ACT.json"
]
}
9 changes: 9 additions & 0 deletions public/markers/newSouthWales/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_NSW.json",
"accommodation_campermate.json",
"big4_holiday_parks_NSW.json",
"discovery_parks_NSW.json",
"toiletmap_aus_2025_NSW.json"
]
}
5 changes: 5 additions & 0 deletions public/markers/newZealand/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files": [
"accommodation_campermate.json"
]
}
9 changes: 9 additions & 0 deletions public/markers/northernTerritory/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_NT.json",
"accommodation_campermate.json",
"big4_holiday_parks_NT.json",
"discovery_parks_NT.json",
"toiletmap_aus_2025_NT.json"
]
}
9 changes: 9 additions & 0 deletions public/markers/queensland/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_QLD.json",
"accommodation_campermate.json",
"big4_holiday_parks_QLD.json",
"discovery_parks_QLD.json",
"toiletmap_aus_2025_QLD.json"
]
}
11 changes: 11 additions & 0 deletions public/markers/regions-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "id": "westernAustralia", "name": "Western Australia" },
{ "id": "newSouthWales", "name": "New South Wales" },
{ "id": "victoria", "name": "Victoria" },
{ "id": "queensland", "name": "Queensland" },
{ "id": "southAustralia", "name": "South Australia" },
{ "id": "tasmania", "name": "Tasmania" },
{ "id": "northernTerritory", "name": "Northern Territory" },
{ "id": "australianCapitalTerritory", "name": "Australian Capital Territory" },
{ "id": "newZealand", "name": "New Zealand" }
]
9 changes: 9 additions & 0 deletions public/markers/southAustralia/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_SA.json",
"accommodation_campermate.json",
"big4_holiday_parks_SA.json",
"discovery_parks_SA.json",
"toiletmap_aus_2025_SA.json"
]
}
9 changes: 9 additions & 0 deletions public/markers/tasmania/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_TAS.json",
"accommodation_campermate.json",
"big4_holiday_parks_TAS.json",
"discovery_parks_TAS.json",
"toiletmap_aus_2025_TAS.json"
]
}
9 changes: 9 additions & 0 deletions public/markers/victoria/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
"accommodation_VIC.json",
"accommodation_campermate.json",
"big4_holiday_parks_VIC.json",
"discovery_parks_VIC.json",
"toiletmap_aus_2025_VIC.json"
]
}
16 changes: 16 additions & 0 deletions public/markers/westernAustralia/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"files": [
"accommodation_WA.json",
"accommodation_campermate.json",
"big4_holiday_parks_WA.json",
"discovery_parks_WA.json",
"gas_stations_bp.json",
"gas_stations_fuelwatch.json",
"gas_stations_openstreetmap.json",
"national_parks_simplified.json",
"places.json",
"toiletmap_aus_2025_WA.json",
"western_australia_tourism.json",
"western_australia_visitor_centre.json"
]
}
15 changes: 9 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "./App.css"
import TopMenu from "./components/TopMenu/TopMenu"
import WelcomeModal from "./components/WelcomeModal/WelcomeModal"
import config from "./config"
import { PoiSelectionProvider } from "./contexts/PoiSelectionProvider.tsx" // Added import
import SavedFeaturesProvider from "./contexts/SavedFeaturesProvider"
import { AustralianCapitalTerritory } from "./pages/Australia/AustralianCapitalTerritory"
import { NewSouthWales } from "./pages/Australia/NewSouthWales"
Expand Down Expand Up @@ -67,10 +68,11 @@ function App(): React.ReactNode {
<HashRouter basename="">
<Box sx={{ display: "flex", flexDirection: "column", height: "100vh" }}>
<RedirectHandler />
<SavedFeaturesProvider>
<TopMenu onMenuClick={openDrawer} />
<Box sx={{ flexGrow: 1, overflow: "hidden" }}>
<Routes>
<PoiSelectionProvider> {/* Added PoiSelectionProvider */}
<SavedFeaturesProvider>
<TopMenu onMenuClick={openDrawer} />
<Box sx={{ flexGrow: 1, overflow: "hidden" }}>
<Routes>
<Route path="/" element={<Destinations />} />
<Route path="/australianCapitalTerritory" element={<AustralianCapitalTerritory drawerOpen={drawerOpen} closeDrawer={closeDrawer} />} />
<Route path="/newSouthWales" element={<NewSouthWales drawerOpen={drawerOpen} closeDrawer={closeDrawer} />} />
Expand All @@ -83,8 +85,9 @@ function App(): React.ReactNode {
<Route path="/newZealand" element={<NewZealand drawerOpen={drawerOpen} closeDrawer={closeDrawer} />} />
<Route path="*" element={<NotFound />} />
</Routes>
</Box>
</SavedFeaturesProvider>
</Box>
</SavedFeaturesProvider>
</PoiSelectionProvider> {/* Added PoiSelectionProvider */}
</Box>
<WelcomeModal open={welcomeDialogOpen} onClose={handleClose} />
</HashRouter>
Expand Down
Loading