From c15939d5d01ad644efaa5bf503fb23b3e52aecff Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 10 Mar 2026 00:08:27 +0100 Subject: [PATCH 01/13] chore(workflows): detached old domain from updating on main branch changes --- .github/workflows/firebase-hosting-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index ee6cf97..b2ba857 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -5,7 +5,7 @@ name: Deploy to Firebase Hosting on merge on: push: branches: - - main + - main-old jobs: build_and_deploy: runs-on: ubuntu-latest From 4c8afe501854f481a05558244687ca329476f83a Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 4 Apr 2026 23:40:53 +0200 Subject: [PATCH 02/13] chore(timetable): added vertical directional arrow --- src/components/Timetable/TimetableContent.vue | 22 +++++++++++++++--- src/http.ts | 23 +++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 src/http.ts diff --git a/src/components/Timetable/TimetableContent.vue b/src/components/Timetable/TimetableContent.vue index 014b610..f7d916d 100644 --- a/src/components/Timetable/TimetableContent.vue +++ b/src/components/Timetable/TimetableContent.vue @@ -146,6 +146,17 @@ }" colspan="2" > + +
+ + + +
@@ -358,7 +369,12 @@
- {{ parseTimetableRunDate(computedTimetableRows[0].scheduledDepartureDate!) }} - {{ @@ -658,10 +674,10 @@ function parseTimetablePath(path: string): TimetablePathData[] { const sceneryData = apiStore.sceneryData?.find((sc) => sc.name == sceneryName) ?? null; const arrivalLineData = arrivalLine - ? sceneryData?.routesInfo.find((rt) => rt.routeName == arrivalLine) ?? null + ? (sceneryData?.routesInfo.find((rt) => rt.routeName == arrivalLine) ?? null) : null; const departureLineData = departureLine - ? sceneryData?.routesInfo.find((rt) => rt.routeName == departureLine) ?? null + ? (sceneryData?.routesInfo.find((rt) => rt.routeName == departureLine) ?? null) : null; return { diff --git a/src/http.ts b/src/http.ts new file mode 100644 index 0000000..ca54329 --- /dev/null +++ b/src/http.ts @@ -0,0 +1,23 @@ +export class HttpClient { + constructor(private readonly baseURL: string) {} + + async get(url: string, params?: Record): Promise { + const absoluteURL = new URL(this.baseURL + '/' + url); + + if (params) { + Object.keys(params).forEach((key) => { + if (params[key] === undefined) return; + + absoluteURL.searchParams.append(key, params[key]); + }); + } + + const data = await fetch(absoluteURL); + + if (!data.ok) { + throw new Error(`Cannot fetch: ${absoluteURL}`); + } + + return data.json(); + } +} From 345c5764f9e45fb2912bf4428453b48f57fe7acb Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 4 Apr 2026 23:41:14 +0200 Subject: [PATCH 03/13] bump(version): v1.1.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ceba4a5..fae18cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "srjp-td2", "private": true, - "version": "1.1.2", + "version": "1.1.3", "type": "module", "scripts": { "dev": "vite --mode staging", From eb3c42de8ff0e3d104b1a905da7a3cb9a6f34fbf Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 4 Apr 2026 23:41:47 +0200 Subject: [PATCH 04/13] chore(http): added error throw on bad response --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index ca54329..f23e062 100644 --- a/src/http.ts +++ b/src/http.ts @@ -15,7 +15,7 @@ export class HttpClient { const data = await fetch(absoluteURL); if (!data.ok) { - throw new Error(`Cannot fetch: ${absoluteURL}`); + throw new Error(`Cannaot fetch: ${absoluteURL}`); } return data.json(); From 99fca9f65d684a3f2ad2e4da1f462ec0bb0d3f87 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 5 Apr 2026 00:45:22 +0200 Subject: [PATCH 05/13] chore(timetable): improved directional arrow design --- src/components/Timetable/TimetableContent.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/components/Timetable/TimetableContent.vue b/src/components/Timetable/TimetableContent.vue index f7d916d..ec1f928 100644 --- a/src/components/Timetable/TimetableContent.vue +++ b/src/components/Timetable/TimetableContent.vue @@ -6,7 +6,7 @@ {{ globalStore.currentTimetableData!.route.replace('|', ' - ') }} -
+
('/api/getTimetables', { - params: fetchParams - }) - ).data; + const response = await apiStore.client.get( + 'api/getTimetables', + fetchParams + ); apiStore.journalDataStatus = DataStatus.SUCCESS; apiStore.journalTimetablesData = response; diff --git a/src/components/TimetableViews/JournalStorageView.vue b/src/components/TimetableViews/JournalStorageView.vue index 422a907..cba67be 100644 --- a/src/components/TimetableViews/JournalStorageView.vue +++ b/src/components/TimetableViews/JournalStorageView.vue @@ -1,6 +1,8 @@ From 8fea27f5a665a3a746eb6441e0c350dc2eb92512 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Apr 2026 15:44:27 +0200 Subject: [PATCH 13/13] chore(release): fixed footer title --- .github/workflows/github-discord-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-discord-releases.yml b/.github/workflows/github-discord-releases.yml index 0908ef3..1e8c875 100644 --- a/.github/workflows/github-discord-releases.yml +++ b/.github/workflows/github-discord-releases.yml @@ -13,5 +13,5 @@ jobs: with: webhook_url: '${{ secrets.WEBHOOK_URL }}' color: '10038562' - footer_title: 'Changelog - GeneraTOR' + footer_title: 'Changelog - Rozkładownik SRJP' footer_timestamp: true
@@ -146,14 +146,9 @@ }" colspan="2" > - -
- @@ -162,13 +157,13 @@
{{ @@ -201,6 +196,7 @@