mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 05:56:53 +00:00
827e682684
The editor gains a card under the waypoints: along the tour. It offers what the tour type stops for as chips (a hike viewpoints, huts and shelters, drinking water, food, summits, toilets, picnic spots, campsites, sights; a paddle tour put-ins, boat rental and the like, the first three ticked) and how far from the route to look, 250 m to 2 km. Only its button searches. Each place found shows how far it lies from the route, straight across, and where along the route; its pin is on the map in its category's colour, and a click there opens it in the card. Opened, a place says its kind and source, its address, opening hours as the source has them with a note to check them, and its website. The answer says when it is out of date (the route or the choices changed since), offline, failed, partly searched, cut short at the first part of a long tour, or more than shown. Nothing about the tour changes by searching. An opened place can go in as a stop: after the point chosen, the one before it along the route suggested, by the button alone, as one step undo takes back. It becomes a stop of the tour on the place's spot, not a place of the trip. A leg drawn by hand or a fixed line (a via ferrata, a portage) is not cut: the point after which it would go says why and offers no button. Once the new route is in, the card says what the stop added, as the difference of the route planned before and after; while it is planned it says so, and where either route could not be planned it says that rather than guess. The search merges a place OpenStreetMap maps twice, as a point and as its outline, by its name and spot. The library repository takes its offline error from a shared online-only module, which the search uses too.
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"src": {
|
|
"@typescript-eslint/no-non-null-assertion": 404,
|
|
"@typescript-eslint/no-misused-promises": 874,
|
|
"no-console": 88,
|
|
"complexity": 230,
|
|
"@typescript-eslint/no-explicit-any": 147,
|
|
"trek/no-swallowed-catch": 133,
|
|
"max-params": 35,
|
|
"trek/store-without-selector": 69,
|
|
"react-hooks/refs": 559,
|
|
"react-hooks/set-state-in-effect": 197,
|
|
"@typescript-eslint/no-floating-promises": 167,
|
|
"react-hooks/exhaustive-deps": 121,
|
|
"@typescript-eslint/no-unused-vars": 129,
|
|
"react-hooks/immutability": 28,
|
|
"max-lines-per-function": 133,
|
|
"react-hooks/static-components": 78,
|
|
"react-hooks/preserve-manual-memoization": 15,
|
|
"no-useless-assignment": 7,
|
|
"no-empty": 19,
|
|
"trek/no-window-globals": 41,
|
|
"react-refresh/only-export-components": 46,
|
|
"unused-disable-directive": 6,
|
|
"max-depth": 21,
|
|
"react-hooks/void-use-memo": 1,
|
|
"@typescript-eslint/no-unused-expressions": 2,
|
|
"react-hooks/purity": 2,
|
|
"preserve-caught-error": 53,
|
|
"no-useless-escape": 1
|
|
},
|
|
"suppressed": {
|
|
"@typescript-eslint/no-explicit-any": 40,
|
|
"react-hooks/exhaustive-deps": 46
|
|
},
|
|
"tests": {
|
|
"@typescript-eslint/no-explicit-any": 491,
|
|
"@typescript-eslint/no-non-null-assertion": 1946,
|
|
"@typescript-eslint/no-misused-promises": 22,
|
|
"@typescript-eslint/no-unused-vars": 51,
|
|
"@typescript-eslint/no-floating-promises": 33,
|
|
"trek/no-window-globals": 332,
|
|
"trek/no-swallowed-catch": 14,
|
|
"react-hooks/globals": 5,
|
|
"react-hooks/refs": 22,
|
|
"@typescript-eslint/no-this-alias": 1,
|
|
"trek/store-without-selector": 3,
|
|
"@typescript-eslint/no-unsafe-function-type": 2,
|
|
"no-console": 2,
|
|
"react-refresh/only-export-components": 1
|
|
}
|
|
}
|