Skip to content

Commit 2b9a5f3

Browse files
graphical fix, version bump
1 parent 178c364 commit 2b9a5f3

File tree

7 files changed

+58
-25
lines changed

7 files changed

+58
-25
lines changed

src/lib/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,3 +794,7 @@ export const asyncDelay = (time: number) => {
794794
}, time)
795795
);
796796
};
797+
798+
export const PROGRAM_VERSION = "1.0.2";
799+
//own festive mix
800+
export const DEFAULT_PLAYLIST = "https://www.youtube.com/embed/videoseries?loop=1&si=9tV7jJed9H4lPkHr&list=PL5d1YE_8Im7Nh_4krlRdBNBsGJFioTzl5";

src/routes/+layout.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { locales } from '$lib/paraglide/runtime.js';
22
import type { LanguageType } from '$lib/types.js';
3+
import { DEFAULT_PLAYLIST } from "$lib";
34

45
export const load = async (event) => {
56
if (event.cookies.get('set') != 'true') {
67
event.cookies.set('background', '#460809', { path: '/' });
78
event.cookies.set('languages', JSON.stringify(locales), { path: '/' });
89
event.cookies.set(
910
'playlist',
10-
'https://www.youtube.com/embed/videoseries?loop=1&si=9tV7jJed9H4lPkHr&list=PL5d1YE_8Im7Nh_4krlRdBNBsGJFioTzl5',
11+
DEFAULT_PLAYLIST,
1112
{ path: '/' }
1213
);
1314
event.cookies.set('millisecond', 'false', { path: '/' });

src/routes/BottomBar.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { fly } from 'svelte/transition';
66
import IconButton from './items/IconButton.svelte';
77
import type { LanguageType } from '$lib/types';
8+
import { PROGRAM_VERSION } from "$lib";
89
910
let {
1011
settingsModal = $bindable(false),
@@ -50,7 +51,7 @@
5051
<span class="flex grow flex-row gap-2" id="bottom">
5152
<p class="font-bold max-lg:text-xl lg:text-lg">
5253
{m.nameShort({}, { locale: currentLocale as LanguageType })}
53-
1.0.1
54+
{PROGRAM_VERSION}
5455
</p>
5556

5657
<p class="text-lg max-lg:hidden">

src/routes/items/TimezoneItem.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<div
5656
class="flex max-h-6 min-h-6 w-full max-w-full min-w-0! flex-row items-center gap-2 overflow-hidden! **:text-nowrap"
5757
>
58-
<div class="flex w-fit flex-row gap-0 overflow-hidden! **:overflow-hidden!">
58+
<div class="flex w-fit flex-row gap-0 overflow-hidden!">
5959
<span class={!reverse && countdown.days > 0 ? '' : 'text-neutral-500'}>
6060
{Math.abs(countdown.days).toFixed().padStart(2, '0')}:
6161
</span><span
@@ -70,7 +70,7 @@
7070
{Math.abs(countdown.seconds).toFixed().padStart(2, '0')}
7171
</span>
7272
</div>
73-
<div class="flex grow flex-row gap-2">
73+
<div class="flex grow flex-row gap-2 items-center">
7474
<div class="min-w-fit text-xl font-medium">
7575
{mainCity}
7676
</div>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script lang="ts">
2+
import type { Snippet } from 'svelte';
3+
4+
let {
5+
version,
6+
date,
7+
children
8+
}: {
9+
version: string;
10+
date: string;
11+
children: Snippet;
12+
} = $props();
13+
</script>
14+
15+
<div class="flex w-full max-w-full min-w-full flex-col gap-0 text-white">
16+
<div class="flex flex-row items-center gap-2">
17+
<h2 class="text-xl">FestIES {version}</h2>
18+
<p class="italic opacity-50">{date}</p>
19+
</div>
20+
<ul class="list-inside list-disc">
21+
{@render children()}
22+
</ul>
23+
</div>

src/routes/modals/ChangelogModal.svelte

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
<script lang="ts">
22
import Modal from '../Modal.svelte';
33
import Button from '../items/Button.svelte';
4+
import { PROGRAM_VERSION } from '$lib';
5+
import VersionItem from '../items/VersionItem.svelte';
46
57
let { changelogModal = $bindable(false) } = $props();
68
</script>
79

810
<Modal bind:showModal={changelogModal}>
911
<div class="flex w-full grow flex-col gap-2 text-white">
10-
<h2 class="text-xl font-medium">Changelog</h2>
11-
12-
<div class="flex w-full max-w-full min-w-full flex-col gap-0 text-white">
13-
<h2 class="text-xl">FestIES 1.0.0</h2>
14-
<p class="italic opacity-50">30.11.2025</p>
15-
<ul class="list-inside list-disc">
16-
<li>Original version</li>
17-
</ul>
12+
<div class="flex flex-row items-center gap-2">
13+
<h2 class="text-xl font-medium">Changelog</h2>
14+
<p class="italic opacity-50">Current version: {PROGRAM_VERSION}</p>
1815
</div>
1916

20-
<div class="flex w-full max-w-full min-w-full flex-col gap-0 text-white">
21-
<h2 class="text-xl">FestIES 1.0.1</h2>
22-
<p class="italic opacity-50">20.12.2025</p>
23-
<ul class="list-inside list-disc">
24-
<li>
25-
More effects on the bottom (ČD 680 Pendolino, PolRegio train, Forest growing and line of
26-
buildings)
27-
</li>
28-
<li>Small style improvements</li>
29-
</ul>
30-
</div>
17+
<VersionItem version="1.0.0" date="30.11.2025">
18+
<li>Original version</li>
19+
</VersionItem>
20+
21+
<VersionItem version="1.0.1" date="20.12.2025">
22+
<li>
23+
More effects on the bottom (ČD 680 Pendolino, PolRegio train, Forest growing and line of
24+
buildings)
25+
</li>
26+
<li>Small style improvements</li>
27+
</VersionItem>
28+
29+
<VersionItem version="1.0.2" date="23.12.2025">
30+
<li>Removed extra scrollbars</li>
31+
<li>Changelog modal improvements</li>
32+
<li>Added option for dynamic snow amount</li>
33+
<li>Added default playlist in form (bugfix)</li>
34+
</VersionItem>
3135

3236
<Button
3337
text="Close"

src/routes/modals/SettingsModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { enhance } from '$app/forms';
3-
import { dateToString } from '$lib';
3+
import { dateToString, DEFAULT_PLAYLIST } from '$lib';
44
import { m } from '$lib/paraglide/messages';
55
import { locales } from '$lib/paraglide/runtime';
66
import Modal from '../Modal.svelte';
@@ -85,7 +85,7 @@
8585
name="playlist"
8686
class="rounded-lg bg-white p-2 text-gray-700"
8787
placeholder="Enter link here..."
88-
value={data.playlist}
88+
value={data.playlist.length == 0 ? DEFAULT_PLAYLIST : data.playlist}
8989
required
9090
/>
9191
{/if}

0 commit comments

Comments
 (0)