Planning (the Design canvas' Plan and GridToday, ideas from azedler/roadplanner): a stop's type as its NPS pictogram (marker and list), notes on the trip, its days and stops, + on a leg inserts the next point there; a parking spot per stop (P marker, the route goes there, the walk shown); a link pasted into the search becomes a place (/api/link: the URL's coordinates, else the page's geo meta / JSON-LD / a map link; public addresses only, logged in), added on the leg it lengthens least; avoids for the trip (+ ferries, unpaved) or a day (routed in pieces, joined); Check and Costs folds in the Route panel (no leave time, long days, arriving after sunset, long walks, missing vignettes; fuel from km × consumption × price, stop costs / paid, the budget); Today in drive mode's Menu (stops left, tonight, sunset, Open-Meteo weather, the day's notes, Skip next, Tomorrow). Plugins along the trip's route (Maptool::Corridor, a corridor width; Overpass around:) and plugin settings saved server-side; p4n via a host Firefox's cookies (docs/deployment.adoc). The recording's days (cut where the car stood ≥ 4 h, or by hand) and their export (days, a piece A–B, the whole trip; GPX with times). Track replay in the GNSS simulator. Step advance 5 m past a maneuver. The level gauge (drive mode, from Terrain): lift per wheel to the ramps' steps from roll, pitch, wheelbase and track
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-12-03 23:34:25 +01:00
1 parent 5e31dfaba9
commit 87d7bd2463
36 files changed
+2047 -123

No files matched your search

+173
View File
@@ -2788,6 +2788,50 @@ button.basemap-panel__link[hidden] { display: none; }
color: #c62828;
}
.plugins-panel__route {
flex-basis: 100%;
display: flex;
justify-content: flex-end;
gap: 6px;
}
.plugins-panel__corridor {
font: inherit;
font-size: 12px;
}
.plugins-panel__settings {
flex-basis: 100%;
font-size: 12px;
}
.plugins-panel__settings summary {
color: var(--ui-muted);
cursor: pointer;
}
.plugins-panel__setting {
display: flex;
flex-direction: column;
gap: 2px;
margin: 6px 0;
}
.plugins-panel__setting input {
font: inherit;
}
.plugins-panel__setting small {
color: var(--ui-muted);
white-space: normal;
max-width: 260px;
}
.plugins-panel__save {
font: inherit;
font-size: 12px;
}
.plugins-panel__empty {
color: var(--ui-muted);
white-space: normal;
@@ -4827,5 +4871,134 @@ html.driving .drive-cell--field { position: relative; }
.route-panel__note-editor { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px 36px; font-size: 12px; }
.route-panel__note-editor input { width: 5em; }
.route-panel__note-editor textarea { font: inherit; resize: vertical; }
.route-panel__trip textarea { flex: 1 1 100%; font: 12px inherit; color: var(--ui-fg); background: var(--ui-bg-2); border: none; border-radius: 4px; padding: 3px 6px; resize: vertical; field-sizing: content; }
.route-panel .route-panel__leg.route-panel__leg { display: flex; align-items: center; gap: 6px; }
.route-panel__leg span { flex: 1; }
.route-panel__leg--insert { color: var(--accent); font-weight: 600; }
.route-panel__day-note { list-style: none; margin: 0 0 4px 18px; border-left: 3px solid var(--day); }
.route-panel__note-editor.route-panel__day-note { padding: 0 0 6px 6px; }
.route-panel__check--warn > summary { color: #b45309; }
.route-panel__check ul { list-style: none; margin: 0; padding: 0; }
.route-panel__check li { display: flex; gap: 6px; align-items: center; padding: 3px 0; font-size: 12px; border-bottom: 1px solid var(--ui-line); }
.route-panel__check li span { flex: 1; }
.route-panel__check li::before { width: 14px; font-weight: 800; text-align: center; }
.route-panel__check-bad::before { content: "✗"; color: #c2410c; }
.route-panel__check-warn::before { content: "!"; color: #b45309; }
.route-panel__check-info::before { content: "i"; color: var(--ui-muted); }
.route-panel__costs ul { list-style: none; margin: 0; padding: 0; }
.route-panel__costs li { display: flex; gap: 8px; padding: 3px 0; font-size: 12px; border-bottom: 1px solid var(--ui-line); }
.route-panel__costs li span:nth-child(2) { flex: 1; color: var(--ui-muted); }
.route-panel__costs li span:last-child { font-variant-numeric: tabular-nums; }
.route-panel__money input, .route-panel__trip input[type="number"] { width: 5em; }
.route-panel__day-avoid { display: flex; flex-wrap: wrap; gap: 4px 10px; }
/* where the car stays: a P marker on the map, a row under the stop */
.route-park { width: 20px; height: 20px; border-radius: 4px; background: #1d4ed8; border: 2px solid #fff; color: #fff;
font: 700 12px/20px sans-serif; text-align: center; cursor: grab; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.route-panel__park { display: block; font-size: 12px; }
.route-panel__park::before { content: "P"; display: inline-block; width: 15px; margin-right: 5px; border-radius: 3px; background: #1d4ed8;
color: #fff; font-weight: 700; font-size: 10px; text-align: center; }
.route-panel__park-edit button { font: inherit; }
/* a stop's type: its NPS pictogram in the badge and on the marker */
.route-panel__badge svg { width: 15px; height: 15px; }
.route-marker svg { width: 14px; height: 14px; vertical-align: -2px; }
.route-remote-popup .maplibregl-popup-content { padding: 6px 10px; font-size: 12px; }
.route-remote button { border: none; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
/* Recording (drive_menus.js recordingMenu, the canvas' GridRecording): the
name, four totals, the days a row each with the cuts between them, or the
export form; the actions at the foot. */
.drive-trip__log-state { text-align: left; }
.drive-rec__name { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: center; padding: 0 16px; font-size: calc(20px * var(--s, 1)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-rec__total { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.drive-rec__total b { font-size: calc(24px * var(--s, 1)); font-variant-numeric: tabular-nums; line-height: 1.1; }
.drive-rec__total small { font-size: calc(12px * var(--s, 1)); color: var(--drive-muted); }
.drive-rec__total[data-total="distance"] { grid-area: 3 / 1 / 4 / 3; }
.drive-rec__total[data-total="driving"] { grid-area: 3 / 3 / 4 / 5; }
.drive-rec__total[data-total="standing"] { grid-area: 3 / 5 / 4 / 7; }
.drive-rec__total[data-total="ascent"] { grid-area: 3 / 7 / 4 / 8; }
.drive-rec__days { grid-area: 4 / 1 / -2 / -1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; background: var(--drive-line); }
.drive-rec__days[hidden], .drive-rec__export[hidden] { display: none; }
.drive-rec__day { flex: none; height: var(--cell, 80px); display: flex; align-items: stretch; background: var(--band); border-left: 6px solid var(--day); }
.drive-rec__tick { width: var(--cell, 80px); flex: none; display: flex; align-items: center; justify-content: center; }
.drive-rec__tick input { width: 30px; height: 30px; accent-color: var(--drive-key-on); }
.drive-rec__day .drive-panel__text { flex: 1; justify-content: center; padding: 0 12px; }
.drive-rec__day .drive-panel__look { width: var(--cell, 80px); flex: none; background: none; }
.drive-rec__cutrow { flex: none; height: calc(var(--cell, 80px) / 2); display: flex; align-items: center; gap: 10px; padding-left: 28px; background: var(--band); color: var(--drive-muted); font-size: calc(14px * var(--s, 1)); }
.drive-rec__cutrow span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-panel .drive-rec__cutrow button { height: 100%; padding: 0 16px; background: none; border-left: 1px solid var(--drive-line); font-size: calc(14px * var(--s, 1)); font-weight: 700; }
.drive-rec__live { color: var(--route-driven); font-style: normal; }
.drive-panel__note.drive-rec__live { color: var(--route-driven); font-weight: 700; }
.drive-rec__export { grid-area: 4 / 1 / -2 / -1; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; overflow-y: auto; }
.drive-rec__export fieldset { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 4px; }
.drive-rec__export fieldset.drive-rec__with { flex-flow: row wrap; gap: 4px 24px; }
.drive-rec__export legend { font-size: calc(11px * var(--s, 1)); color: var(--drive-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.drive-rec__export label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: calc(17px * var(--s, 1)); }
.drive-rec__export label small { color: var(--drive-muted); font-size: calc(13px * var(--s, 1)); }
.drive-rec__export input { width: 24px; height: 24px; accent-color: var(--drive-key-on); }
.drive-rec__end { grid-area: -2 / 1 / -1 / 3; }
.drive-panel button.drive-rec__end { background: var(--route-driven); color: #fff; font-size: calc(17px * var(--s, 1)); font-weight: 700; }
.drive-rec__cut { grid-area: -2 / 3 / -1 / 5; }
.drive-rec__go { grid-area: -2 / 5 / -1 / 8; }
.drive-rec__back { grid-area: -2 / 1 / -1 / 4; }
.drive-rec__save { grid-area: -2 / 4 / -1 / 8; }
.drive-panel button.drive-rec__cut,
.drive-panel button.drive-rec__back { font-size: calc(17px * var(--s, 1)); font-weight: 700; }
.drive-panel [data-action][hidden] { display: none; }
.drive-rec__pin { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1a1a1a; border: 3px solid var(--route-driven); display: grid; place-items: center; font: 700 15px/1 system-ui, sans-serif; cursor: grab; }
/* Level (drive_menus.js levelMenu, the canvas' GridLevel): the car from
above with the cm under each wheel, the bubble, roll / pitch now and after. */
.drive-level__plan { grid-area: 2 / 1 / 6 / 5; display: flex; align-items: center; justify-content: center; padding: 6px; }
.drive-level__bubble { grid-area: 2 / 5 / 6 / 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; }
.drive-level__plan svg, .drive-level__bubble svg { width: 100%; height: 100%; min-height: 0; flex: 1 1 0; max-width: calc(var(--cell, 80px) * 3.8); }
.drive-level__plan svg text { font-variant-numeric: tabular-nums; }
.drive-level__body { fill: none; stroke: var(--band-fg); stroke-width: 3; }
.drive-level__axis { stroke: var(--drive-muted); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.drive-level__sub { fill: var(--drive-muted); }
rect.drive-level__none { fill: var(--band-fg); } text.drive-level__none { fill: var(--drive-muted); }
.drive-level__lift { fill: var(--inst-caution); }
.drive-level__over { fill: var(--inst-warning); }
.drive-level__ring { fill: none; stroke: var(--drive-muted); stroke-width: 2; }
.drive-level__ring--inner { stroke-width: 1; stroke-dasharray: 3 4; }
.drive-level__tol { fill: var(--inst-ok); opacity: 0.25; }
.drive-level__dot { fill: var(--inst-caution); stroke: #fff; stroke-width: 2; }
.drive-level__dot--ok { fill: var(--inst-ok); stroke: #fff; stroke-width: 2; }
.drive-level [data-field="roll"] { grid-area: 6 / 1 / 7 / 3; }
.drive-level [data-field="pitch"] { grid-area: 6 / 3 / 7 / 5; }
.drive-level [data-field="after"] { grid-area: 6 / 5 / 7 / 8; }
.drive-level--ok { color: var(--inst-ok); }
.drive-level--over { color: var(--inst-warning); }
/* Today (drive_menus.js todayMenu, the canvas' GridToday) */
.drive-today__stops { grid-area: 2 / 1 / 4 / -1; display: flex; flex-direction: column; overflow: hidden; }
.drive-today__stop { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 0; border-bottom: 1px solid var(--drive-line); }
.drive-today__icon { width: calc(40px * var(--s, 1)); height: calc(40px * var(--s, 1)); flex: none; border-radius: 50%; background: var(--accent); color: #fff;
display: flex; align-items: center; justify-content: center; }
.drive-today__icon--night { background: #3d4a6b; }
.drive-today__icon svg { width: 60%; height: 60%; }
.drive-today__name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drive-today__name b { font-size: calc(19px * var(--s, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-today__name small, .drive-today__eta small { font-size: calc(13px * var(--s, 1)); color: var(--drive-muted); }
.drive-today__eta { display: flex; flex-direction: column; align-items: flex-end; font-size: calc(22px * var(--s, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
.drive-today__tonight { grid-area: 4 / 1 / 5 / 5; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.drive-today__line { font-size: calc(15px * var(--s, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-today__sun { grid-area: 4 / 5 / 5 / 8; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; }
.drive-today--late { color: var(--inst-caution); }
.drive-today__weather { padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; white-space: nowrap; overflow: hidden; }
.drive-today__weather small { color: var(--drive-muted); }
.drive-today__weather[data-w="0"] { grid-area: 5 / 1 / 6 / 3; }
.drive-today__weather[data-w="1"] { grid-area: 5 / 3 / 6 / 5; }
.drive-today__weather[data-w="2"] { grid-area: 5 / 5 / 6 / 8; }
.drive-today__notes { grid-area: 6 / 1 / -2 / -1; padding: 6px 14px; overflow: hidden; font-size: calc(16px * var(--s, 1)); }
.drive-today__notes p { margin: 0 0 6px; }
.drive-today__warn { color: var(--inst-caution); }
.drive-today__skip { grid-area: -2 / 1 / -1 / 3; }
.drive-today__prev { grid-area: -2 / 3 / -1 / 5; }
.drive-today__next { grid-area: -2 / 5 / -1 / 8; }
.drive-panel button.drive-today__skip, .drive-panel button.drive-today__prev, .drive-panel button.drive-today__next { font-size: calc(17px * var(--s, 1)); font-weight: 700; }
.drive-level__advice { grid-area: 7 / 1 / 8 / -1; display: flex; align-items: center; padding: 0 16px; font-size: calc(16px * var(--s, 1)); line-height: 1.3; }
.drive-level__zero { grid-area: -2 / 1 / -1 / 3; }
.drive-level__under { grid-area: -2 / 3 / -1 / 6; }
.drive-level__terrain { grid-area: -2 / 6 / -1 / 8; }
.drive-panel button.drive-level__zero,
.drive-panel button.drive-level__under,
.drive-panel button.drive-level__terrain { font-size: calc(16px * var(--s, 1)); font-weight: 700; }