Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f0f0d24
refactor: [wip] remove menu opening from global state
TamasKutiTV Jan 6, 2026
861259a
refactor: [wip] move loading of data to a separate provider
TamasKutiTV Jan 7, 2026
288b335
refactor: [wip] use local state for pop-up visibility
TamasKutiTV Jan 9, 2026
6d8acd4
refactor: [wip] remove set point from reducer
TamasKutiTV Jan 9, 2026
a90fd17
refactor: [wip] move and rename
TamasKutiTV Jan 9, 2026
8f0f636
refactor: [wip] remove center from global state
TamasKutiTV Jan 9, 2026
efd8e33
refactor: [wip] rearange map's state
TamasKutiTV Jan 18, 2026
14f1e92
fix: map flashing
TamasKutiTV Jan 23, 2026
1c95691
feat: reimplement analytics
TamasKutiTV Jan 23, 2026
ff8268b
feat: refactor search to it's own screen
TamasKutiTV Jan 25, 2026
a8bf0ef
refactor: change search param to path param for lang
TamasKutiTV Jan 26, 2026
97a2a75
fix: wrong link color for button
TamasKutiTV Jan 26, 2026
f005d77
feat: animate in the list
TamasKutiTV Jan 28, 2026
42a25cd
fix: exiting animation of the map pop-up
TamasKutiTV Jan 28, 2026
fbb8775
feat: show map behind pop-up in mobile
TamasKutiTV Jan 28, 2026
eb28bbe
fix: pre-load blue map marker
TamasKutiTV Jan 28, 2026
ab179bc
feat: show tooltip
TamasKutiTV Jan 28, 2026
93b95c0
fix: better toast
TamasKutiTV Jan 28, 2026
db88a75
chore: remove commented out code
TamasKutiTV Jan 28, 2026
85a7131
chore: small style change for pop-up
TamasKutiTV Jan 29, 2026
8ce82c7
feat: different text for search and list empty state
TamasKutiTV Jan 29, 2026
2492e1f
feat: fill in search from url, fix missing translation
TamasKutiTV Jan 29, 2026
d746684
feat: change list icon
TamasKutiTV Jan 29, 2026
7717186
feat: add tooltips to map controls
TamasKutiTV Jan 30, 2026
64af7d9
refactor: rename hotel to place
TamasKutiTV Feb 7, 2026
7d94e9c
fix: filter coming from the url doesn't apply on markers
TamasKutiTV Feb 8, 2026
f1c5da4
feat: set coordinates on each move as well as filter
TamasKutiTV Feb 8, 2026
96c3034
feat: prevent tooltip from popping up on mobile
TamasKutiTV Feb 9, 2026
16385bd
feat: add utm_source to sharing button
TamasKutiTV Feb 9, 2026
fb008ba
feat: add native share API
TamasKutiTV Feb 9, 2026
c80aa72
chore: add globals to ESLint config
TamasKutiTV Feb 9, 2026
9bf1e7a
feat: improve map location finding
TamasKutiTV Feb 9, 2026
7a0ace5
chore: add tooltip to place map marker
TamasKutiTV Feb 9, 2026
5e77817
chore: add aria-labels to menu open/close buttons
TamasKutiTV Feb 9, 2026
09323f4
feat: add text (desktop only) next to the menu
TamasKutiTV Feb 9, 2026
9eaedec
chore: comment our https setting in vite dev server
TamasKutiTV Feb 9, 2026
da8c73b
fix: button disappearing on mobile browsers
TamasKutiTV Feb 9, 2026
c8965d3
feat: animate the filter panel
TamasKutiTV Feb 9, 2026
f71f50d
chore: replace div with button
TamasKutiTV Feb 9, 2026
18d01ef
chore: move to react 19.2.4
TamasKutiTV Feb 9, 2026
a7198a5
fix: make sure we always scroll back to top
TamasKutiTV Feb 9, 2026
aefd536
feat: use ID from excel sheet data instead of index in the loop
TamasKutiTV Feb 9, 2026
6e89745
fix: missing loader for map
TamasKutiTV Feb 11, 2026
3c7dba4
fix: check for navigator.clipboard
TamasKutiTV Feb 11, 2026
805bff1
fix: preloading url
TamasKutiTV Feb 11, 2026
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ yarn.lock

# downloaded data
/data
/scripts/download-hotels-as-json.*.js
/scripts/download-places-as-json.*.js

# misc
.DS_Store
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ Mivel a node.js szkript behúzza az `src` file-ban található JS modulokat amik
Ezt legegyszerűbben egy command line-ból kiadott [Rollup parancsal](https://rollupjs.org/command-line-interface/) tudjuk megtenni (az `npx` parancsot használva nem kell a Rollupot fel installálni sem a projektbe sem a gépünkre globálisan)

```bash
npx rollup scripts/download-hotels-as-json.js --file scripts/download-hotels-as-json.bundle.js --format esm
npx rollup scripts/download-places-as-json.js --file scripts/download-places-as-json.bundle.js --format esm
```
> ⚠️ A létrejött `scripts/download-hotels-as-json.bundle.js` nem fog bekerülni gitbe.
> ⚠️ A létrejött `scripts/download-places-as-json.bundle.js` nem fog bekerülni gitbe.

### 2) Futasuk a bundle-t

Miután létrehoztuk futassuk le

```bash
node scripts/download-hotels-as-json.bundle.js
node scripts/download-places-as-json.bundle.js
```

> ⚠️ A szkript futásához minimum Node.js 18-as verzió fog kelleni ugyanis a behúzott szkriptben `fetch` API-t kell futattnunk. Ha nem akarsz globálisan frissíteni hanszálj [NVM](https://github.com/nvm-sh/nvm)-t.
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineConfig } from "eslint/config";
import js from "@eslint/js";
import globals from "globals";
import react from "eslint-plugin-react";

export default defineConfig([
js.configs.recommended,
{
files: ["**/*.js"],
plugins: {
Expand All @@ -23,6 +25,10 @@ export default defineConfig([
modules: true,
},
},
globals: {
...globals.browser,
...globals.node,
},
},
},
]);
134 changes: 78 additions & 56 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"leaflet": "^1.9.4",
"leaflet.markercluster": "^1.5.3",
"mkdirp": "^3.0.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react": "~19.2.4",
"react-dom": "~19.2.4",
"react-gtm-module": "^2.0.11",
"react-helmet-async": "^2.0.5",
"react-i18next": "^15.5.3",
Expand All @@ -38,9 +38,11 @@
"devDependencies": {
"@eslint/js": "^9.30.0",
"@testing-library/react": "^16.3.0",
"@vitejs/plugin-basic-ssl": "^2.1.4",
"@vitejs/plugin-react": "^4.5.2",
"eslint": "^9.30.0",
"eslint-plugin-react": "^7.37.5",
"globals": "^17.3.0",
"jsdom": "^26.1.0",
"prettier": "^2.8.4",
"vite": "^6.3.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import loadHotelDataFromCsv from "../src/utils/load-hotel-data-from-csv.js";
import loadPlaceDataFromCsv from "../src/utils/load-place-data-from-csv.js";
import fs from "fs";
import { mkdirp } from "mkdirp";
import path from "path";

function downloadHotelsAsJSON() {
loadHotelDataFromCsv()
function downloadPlacesAsJSON() {
loadPlaceDataFromCsv()
.then(async (data) => {
const filePath = path.join(__dirname, "..", "data", "nerhotel.json");
mkdirp(path.dirname(filePath)).then((dir) => {
Expand All @@ -17,4 +17,4 @@ function downloadHotelsAsJSON() {
});
}

downloadHotelsAsJSON();
downloadPlacesAsJSON();
Loading
Loading