aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFiles
* Add comment.Guilhem Moulin48 hours1
|
* Make LAYERS object hierarchical.Guilhem Moulin48 hours1
| | | | | | | | (First the MVT basename, then feature layernames.) More refactoring (such as consolidation of LAYERS/STYLES/mapLayers) would be nice, but not worth doing at the moment since we're planing to switch to WebGL rendering once https://github.com/openlayers/openlayers/issues/15807 and https://github.com/openlayers/openlayers/issues/16246 are fixed.
* Enable strict mode on main.js.Guilhem Moulin2 days1
|
* Bump copyright years.Guilhem Moulin2 days1
|
* ESLint: silence css/no-invalid-properties.Guilhem Moulin2 days1
| | | | | | | | | | | | | It appears var() validation from https://github.com/eslint/css/pull/148 doesn't look if the variable have been defined in the sourced .css files, yielding many false positive 68:30 error Can't validate with unknown variable '--bs-body-bg-rgb' css/no-invalid-properties 69:22 error Can't validate with unknown variable '--bs-modal-border-radius' css/no-invalid-properties […] So we disable these rules for now. (According to the PR, property values containing var() were skipped prior to v0.9.0.)
* Upgrade eslint to 9.29.x.Guilhem Moulin2 days2
|
* Upgrade vite to 6.3.x.Guilhem Moulin2 days2
|
* Upgrade OpenLayers to 10.6.x.Guilhem Moulin2 days2
|
* Add comments.Guilhem Moulin3 days1
|
* Setup a timeout to adjust the time filter at midnight.Guilhem Moulin4 days1
| | | | | | | We use usual integer comparison against the feature's timestamp internally, so for relative filters we need to adjust boundaries at midnight. The help text needs updating too if the modal is open and the relative dialog checked.
* Seal popover fields.Guilhem Moulin4 days1
|
* Undo splitting out to multiple files.Guilhem Moulin4 days5
| | | | | | | | | | | | The reason is that we want the different modules to produce side-effects (to avoid creating functions and keeping references to it) and we therefore need to control the order in which they are inlined during `vite build`. Unfortunately this doesn't seem to be possible right now, cf. https://github.com/storybookjs/storybook/issues/30768 . This reverts commits 670bba058d83620abdb3e8db5fd4ea89dba08142, 05a018f27aba3a20fd581cb88daa8afbbd3407de and 0fc7bdd8bf374c36fa0ba27702d1fafed09277ac.
* Factor out map setup into separate file.Guilhem Moulin4 days3
| | | | | | This allows importing `map` in other modules, thereby eliminating the need for creating and exporting functions that would be called only once.
* Minor refactoring.Guilhem Moulin4 days1
|
* vite configuration: aliases to absolute files.Guilhem Moulin4 days1
| | | | | | This avoids the following warning: [vite] warning: rewrote […] to node_modules/[…] but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
* Dispose popover/overlay when opening the age filter dialog.Guilhem Moulin4 days1
| | | | | We might filter away the feature currently selected so it makes sense to clear the feature list first.
* Move example files to a separate directory.Guilhem Moulin5 days2
|
* Improve comments.Guilhem Moulin5 days1
|
* Refactor popover field definitions.Guilhem Moulin5 days1
|
* Shuffle VBK vindkraftverk layers around.Guilhem Moulin5 days1
| | | | To match the ordering from https://vbk.lansstyrelsen.se/ .
* CSS: Improve style for maximized popovers.Guilhem Moulin5 days2
| | | | | In particular, fix a bug where not the entire height was used for the popover body.
* ESLint configuration: Fix source path globs.Guilhem Moulin5 days1
| | | | We don't want to lint anything under ./dist/, for instance.
* Refactor popover handling.Guilhem Moulin5 days2
| | | | | In particular, make the definition object hierarchical and rename its fields.
* Popover: Set 'grabbing-area-grabbed' class on the right element.Guilhem Moulin7 days1
|
* Factor out Popover handling into separate module.Guilhem Moulin7 days3
|
* ESLint: Prettify configuration file.Guilhem Moulin7 days1
|
* ESLint: Silence CSS warnings and errors.Guilhem Moulin7 days2
|
* ESLint: Fix no-loss-of-precision error.Guilhem Moulin7 days1
| | | | Fixes: https://eslint.org/docs/latest/rules/no-loss-of-precision
* ESLint: Remove unused variables.Guilhem Moulin7 days2
| | | | And also fix `isVisible()` along the way.
* ESLint: Remove useless escapes.Guilhem Moulin7 days1
|
* Move *.css files to ./src.Guilhem Moulin7 days3
|
* ESLint: Remove unused imports.Guilhem Moulin7 days1
|
* Add a `lint` script to npm's package.json.Guilhem Moulin7 days1
| | | | To be used with `npm run lint`.
* Install ESLint in dev mode.Guilhem Moulin7 days3
| | | | Using `npm init @eslint/config@latest`.
* Split `layers` object into separate file.Guilhem Moulin7 days2
| | | | | | This rather large commit merely moves the object declaration into the new file and adjusts the import declarations accordingly. This will serve as basis for a future refactoring commit.
* Run `npm update --save`.Guilhem Moulin7 days1
|
* Add comment/warning.Guilhem Moulin7 days1
|
* Ensure age filter only applies to layers which expose the feature.Guilhem Moulin8 days1
|
* Improve wording in layer list.Guilhem Moulin8 days1
|
* Style: Make text in <p> elements of the age filter dialog selectable.Guilhem Moulin8 days1
|
* Age filter dialog: Improve wording.Guilhem Moulin8 days2
|
* Rename “age” to “ts”.Guilhem Moulin8 days1
| | | | Cf. 231d64cbd14c2d1ccb6468dc9666d4433e39834c in tools.
* Add ability to filter over feature “age”.Guilhem Moulin8 days2
| | | | | Right now this is only implemented for avverk, mrr and vbk as other layers don't export the property.
* Use optional chaining operator (?.).Guilhem Moulin9 days1
| | | | | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining That simplifies the logic slightly.
* info-modal: Show copyright years.Guilhem Moulin9 days1
|
* Rename #modal-info to #info-modal for consistency.Guilhem Moulin10 days3
|
* Info modal: improve CSS and move background stuff at the bottom.Guilhem Moulin10 days2
|
* Refactor button selection logic.Guilhem Moulin10 days1
| | | | Thereby making it easier to extend if needs be.
* CSS: Add 50px to the legend's max-width.Guilhem Moulin10 days1
|
* Popover Consolidate building of <a> tags for links.Guilhem Moulin10 days1
|