Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions ui/src/lib/AdvancedOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import { generateTimes } from './generateTimes';
import ViaStopOptions from './ViaStopOptions.svelte';
import Slider from './components/ui/slider/Slider.svelte';
import { Settings } from '@lucide/svelte';
let {
advancedOptionsOpen = $bindable(false),
useRoutedTransfers = $bindable(),
Expand Down Expand Up @@ -454,8 +455,8 @@
{/snippet}

<Dialog.Root bind:open={advancedOptionsOpen}>
<Dialog.Trigger class={buttonVariants({ variant: 'ghost' })}>
{t.advancedSearchOptions}
<Dialog.Trigger class={buttonVariants({ variant: 'outline' })} title={t.advancedSearchOptions}>
<Settings />
</Dialog.Trigger>
<Dialog.Content class="flex max-h-[90vh] max-w-2xl flex-col">
<Dialog.Header>
Expand Down
14 changes: 11 additions & 3 deletions ui/src/lib/SearchMask.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@
<div class="flex min-h-0 flex-row gap-2 flex-wrap">
<DateInput bind:value={time} />
<RadioGroup.Root
class="flex"
class="flex gap-0 grow"
bind:value={() => (arriveBy ? 'arrival' : 'departure'), (v) => (arriveBy = v === 'arrival')}
>
<Label
for="departure"
class="flex items-center rounded-md border-2 border-muted bg-popover p-1 px-2 hover:bg-accent hover:text-accent-foreground [&:has([data-state=checked])]:border-blue-600 hover:cursor-pointer"
class="flex grow justify-center items-center border-input rounded-l-md px-2 py-1 bg-accent text-gray-500 hover:bg-blue-100 [&:has([data-state=checked])]:bg-blue-600 [&:has([data-state=checked])]:text-white hover:cursor-pointer"
>
<RadioGroup.Item
value="departure"
Expand All @@ -194,7 +194,7 @@
</Label>
<Label
for="arrival"
class="flex items-center rounded-md border-2 border-muted bg-popover p-1 px-2 hover:bg-accent hover:text-accent-foreground [&:has([data-state=checked])]:border-blue-600 hover:cursor-pointer"
class="flex grow justify-center items-center border-input rounded-r-md px-2 py-1 bg-accent text-gray-500 hover:bg-blue-100 [&:has([data-state=checked])]:bg-blue-600 [&:has([data-state=checked])]:text-white hover:cursor-pointer"
>
<RadioGroup.Item value="arrival" id="arrival" class="sr-only" aria-label={t.arrival} />
<span>{t.arrival}</span>
Expand Down Expand Up @@ -247,5 +247,13 @@
bind:pedestrianProfile
{hasDebug}
/>
<Button
class="flex grow bg-blue-600 hover:!bg-blue-700 text-white font-bold"
variant="default"
title={t.search}
onclick={() => {}}
>
{t.search}
</Button>
</div>
</div>
1 change: 1 addition & 0 deletions ui/src/lib/i18n/bg.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Търсене',
ticket: 'Билет',
ticketOptions: 'Опции за билет',
includedInTicket: 'Включено в билета',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/cs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Hledat',
ticket: 'Jízdenka',
ticketOptions: 'Možnosti jízdenky',
includedInTicket: 'Zahrnuté v jízdence',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/de.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Suchen',
ticket: 'Fahrschein',
ticketOptions: 'Fahrscheinoptionen',
includedInTicket: 'Im Fahrschein enthalten',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Search',
ticket: 'Ticket',
ticketOptions: 'Ticket Options',
includedInTicket: 'Included in ticket',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/fr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Rechercher',
ticket: 'Billet',
ticketOptions: 'Options de billet',
includedInTicket: 'Inclus dans le billet',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/pl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
search: 'Wyszukaj',
ticket: 'Bilet',
ticketOptions: 'Opcje biletu',
includedInTicket: 'Zawarte w ramach biletu',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import pl from './pl';
import cs from './cs';

export type Translations = {
search: string;
ticket: string;
ticketOptions: string;
includedInTicket: string;
Expand Down
Loading