diff --git a/package.json b/package.json index 54c23986..4aeaa078 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepage", - "version": "1.83.0", + "version": "1.84.0", "private": true, "type": "module", "scripts": { diff --git a/src/lib/components/TimePicker.svelte b/src/lib/components/TimePicker.svelte new file mode 100644 index 00000000..66c64f79 --- /dev/null +++ b/src/lib/components/TimePicker.svelte @@ -0,0 +1,326 @@ + + +
+
+ + + +
+ + {#if open} + + {/if} +
+ + diff --git a/src/lib/components/hikes/JourneyPlanner.svelte b/src/lib/components/hikes/JourneyPlanner.svelte new file mode 100644 index 00000000..3cb3fd1a --- /dev/null +++ b/src/lib/components/hikes/JourneyPlanner.svelte @@ -0,0 +1,1189 @@ + + +
+
+ + +
0}> + {#if fromFixed} + + {#if fromCurrent}Aktueller Standort{:else}{fromText}{/if} + + {:else if fromCurrent} + + Aktueller Standort + + + {:else} + onFieldInput('from', e.currentTarget.value)} + onfocus={() => onFieldInput('from', fromText)} + /> + + {#if activeField === 'from' && suggestions.length > 0} +
    + {#each suggestions as s (s)} +
  • + +
  • + {/each} +
+ {/if} + {/if} +
+ +
+ {#if toFixed} + + {#if toCurrent}Aktueller Standort{:else}{toText}{/if} + + {:else if toCurrent} + + Aktueller Standort + + + {:else} + onFieldInput('to', e.currentTarget.value)} + onfocus={() => onFieldInput('to', toText)} + /> + + {#if activeField === 'to' && suggestions.length > 0} +
    + {#each suggestions as s (s)} +
  • + +
  • + {/each} +
+ {/if} + {/if} +
+ + {#if canSwap} + + {/if} +
+ +
+
+ + +
+ + +
+ + + + {#if error} +

{error}

+ {/if} + + {#if connections && connections.length > 0} +
    + {#each enriched as e, i (i)} +
  1. + + + {#if expanded === i} +
    + {#each e.steps as step, si (si)} + {#if step.kind === 'walk'} +
    +
    + {:else} + {@const Icon = step.Icon} +
    + +
    +
    + {step.dep.time} + {step.dep.station} + {#if step.dep.platform}Gl. {step.dep.platform}{/if} +
    +
    + + {#if step.headsign}Richtung {step.headsign}{/if} +
    +
    + {step.arr.time} + {step.arr.station} + {#if step.arr.platform}Gl. {step.arr.platform}{/if} +
    +
    +
    + {/if} + {/each} +
    + {/if} +
  2. + {/each} +
+ {#if searchChLink} + + Ganzer Fahrplan + {/if} +

Verbindungen: transport.opendata.ch

+ {/if} +
+ +