From 0f8b1a4729e684f4b93ede50baa90cb445bba90d Mon Sep 17 00:00:00 2001 From: alekswilc Date: Fri, 11 Apr 2025 16:48:47 +0200 Subject: [PATCH] update license year. --- packages/backend/scripts/clear-redis.js | 2 +- packages/backend/src/http/responseBuilder.ts | 2 +- .../backend/src/http/routes/activePlayer.ts | 2 +- packages/backend/src/http/routes/admin.ts | 2 +- packages/backend/src/http/routes/leaderboard.ts | 2 +- packages/backend/src/http/routes/log.ts | 2 +- packages/backend/src/http/routes/profile.ts | 2 +- packages/backend/src/http/routes/stations.ts | 2 +- packages/backend/src/http/routes/stats.ts | 2 +- packages/backend/src/http/routes/trains.ts | 2 +- packages/backend/src/http/server.ts | 2 +- packages/backend/src/index.ts | 2 +- packages/backend/src/modules/stations.ts | 2 +- packages/backend/src/modules/trains.ts | 2 +- packages/backend/src/mongo/admin.ts | 2 +- packages/backend/src/mongo/profile.ts | 2 +- packages/backend/src/mongo/stationLog.ts | 2 +- packages/backend/src/mongo/trainLog.ts | 2 +- packages/backend/src/types/player.ts | 2 +- packages/backend/src/types/typings.d.ts | 2 +- packages/backend/src/util/PlayerUtil.ts | 2 +- packages/backend/src/util/SimrailClient.ts | 2 +- packages/backend/src/util/contants.ts | 17 +++++++++++++++++ packages/backend/src/util/functions.ts | 2 +- packages/backend/src/util/git.ts | 2 +- packages/backend/src/util/imgproxy.ts | 2 +- packages/backend/src/util/time.ts | 2 +- packages/frontend/index.html | 2 +- packages/frontend/postcss.config.cjs | 2 +- packages/frontend/src/App.tsx | 2 +- .../src/components/mini/alerts/Error.tsx | 2 +- .../src/components/mini/alerts/Success.tsx | 2 +- .../src/components/mini/alerts/Warning.tsx | 2 +- .../components/mini/header/DarkModeSwitcher.tsx | 2 +- .../src/components/mini/header/Header.tsx | 2 +- .../src/components/mini/icons/AlertIcons.tsx | 2 +- .../src/components/mini/icons/ArrowIcon.tsx | 2 +- .../mini/icons/DarkModeSwitchIcons.tsx | 2 +- .../src/components/mini/icons/SidebarIcons.tsx | 2 +- .../src/components/mini/icons/UserIcons.tsx | 2 +- .../components/mini/loaders/ContentLoader.tsx | 2 +- .../src/components/mini/loaders/PageLoader.tsx | 2 +- .../src/components/mini/modal/ConfirmModal.tsx | 17 +++++++++++++++++ .../src/components/mini/sidebar/Sidebar.tsx | 2 +- .../mini/sidebar/SidebarLinkGroup.tsx | 2 +- .../src/components/mini/util/CardDataStats.tsx | 2 +- .../src/components/mini/util/PageMeta.tsx | 2 +- .../src/components/mini/util/Paginator.tsx | 2 +- .../src/components/mini/util/Search.tsx | 2 +- .../pages/active/ActiveStationTable.tsx | 2 +- .../pages/active/ActiveTrainTable.tsx | 2 +- .../pages/leaderboard/LeaderboardTable.tsx | 2 +- .../src/components/pages/log/StationLog.tsx | 2 +- .../src/components/pages/log/TrainLog.tsx | 2 +- .../src/components/pages/logs/StationTable.tsx | 2 +- .../src/components/pages/logs/TrainTable.tsx | 2 +- .../src/components/pages/profiles/Profile.tsx | 2 +- .../components/pages/profiles/ProfilesTable.tsx | 2 +- packages/frontend/src/css/satoshi.css | 2 +- packages/frontend/src/css/style.css | 2 +- packages/frontend/src/hooks/useAuth.tsx | 17 +++++++++++++++++ packages/frontend/src/hooks/useColorMode.tsx | 2 +- packages/frontend/src/hooks/useLocalStorage.tsx | 2 +- packages/frontend/src/i18n/index.ts | 2 +- packages/frontend/src/layout/DefaultLayout.tsx | 2 +- packages/frontend/src/lib.d.ts | 2 +- packages/frontend/src/main.tsx | 2 +- packages/frontend/src/pages/Home.tsx | 2 +- .../activePlayers/ActiveStationsPlayers.tsx | 2 +- .../pages/activePlayers/ActiveTrainPlayers.tsx | 2 +- packages/frontend/src/pages/errors/NotFound.tsx | 2 +- .../src/pages/leaderboard/Leaderboard.tsx | 2 +- packages/frontend/src/pages/log/Log.tsx | 2 +- .../frontend/src/pages/logs/StationLogs.tsx | 2 +- packages/frontend/src/pages/logs/TrainLogs.tsx | 2 +- .../frontend/src/pages/profiles/Profile.tsx | 2 +- .../frontend/src/pages/profiles/Profiles.tsx | 2 +- packages/frontend/src/react-app-env.d.ts | 2 +- packages/frontend/src/types/active.ts | 2 +- packages/frontend/src/types/leaderboard.ts | 2 +- packages/frontend/src/types/log.ts | 2 +- packages/frontend/src/types/profile.ts | 2 +- packages/frontend/src/types/station.ts | 2 +- packages/frontend/src/types/stats.ts | 2 +- packages/frontend/src/types/train.ts | 2 +- packages/frontend/src/util/fetcher.ts | 2 +- packages/frontend/src/util/time.ts | 2 +- packages/frontend/tailwind.config.cjs | 2 +- packages/frontend/vite.config.js | 2 +- readme.md | 2 +- 90 files changed, 138 insertions(+), 87 deletions(-) diff --git a/packages/backend/scripts/clear-redis.js b/packages/backend/scripts/clear-redis.js index 03b0b6b..1b34aaa 100644 --- a/packages/backend/scripts/clear-redis.js +++ b/packages/backend/scripts/clear-redis.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/responseBuilder.ts b/packages/backend/src/http/responseBuilder.ts index 47e4ea9..35e8fe1 100644 --- a/packages/backend/src/http/responseBuilder.ts +++ b/packages/backend/src/http/responseBuilder.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/activePlayer.ts b/packages/backend/src/http/routes/activePlayer.ts index 099bb1a..93fb001 100644 --- a/packages/backend/src/http/routes/activePlayer.ts +++ b/packages/backend/src/http/routes/activePlayer.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/admin.ts b/packages/backend/src/http/routes/admin.ts index 25e87be..70c111d 100644 --- a/packages/backend/src/http/routes/admin.ts +++ b/packages/backend/src/http/routes/admin.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/leaderboard.ts b/packages/backend/src/http/routes/leaderboard.ts index b5e1144..678666f 100644 --- a/packages/backend/src/http/routes/leaderboard.ts +++ b/packages/backend/src/http/routes/leaderboard.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/log.ts b/packages/backend/src/http/routes/log.ts index f37069d..5c4676b 100644 --- a/packages/backend/src/http/routes/log.ts +++ b/packages/backend/src/http/routes/log.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/profile.ts b/packages/backend/src/http/routes/profile.ts index 6d9e922..b3477b3 100644 --- a/packages/backend/src/http/routes/profile.ts +++ b/packages/backend/src/http/routes/profile.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/stations.ts b/packages/backend/src/http/routes/stations.ts index 8fb0440..abc10c8 100644 --- a/packages/backend/src/http/routes/stations.ts +++ b/packages/backend/src/http/routes/stations.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/stats.ts b/packages/backend/src/http/routes/stats.ts index ba39fb5..a189587 100644 --- a/packages/backend/src/http/routes/stats.ts +++ b/packages/backend/src/http/routes/stats.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/routes/trains.ts b/packages/backend/src/http/routes/trains.ts index b2307ec..3ce61fe 100644 --- a/packages/backend/src/http/routes/trains.ts +++ b/packages/backend/src/http/routes/trains.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/http/server.ts b/packages/backend/src/http/server.ts index 26c2de9..52fe685 100644 --- a/packages/backend/src/http/server.ts +++ b/packages/backend/src/http/server.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index 819a9dd..ed29dca 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/modules/stations.ts b/packages/backend/src/modules/stations.ts index 5f5e6e8..769a979 100644 --- a/packages/backend/src/modules/stations.ts +++ b/packages/backend/src/modules/stations.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/modules/trains.ts b/packages/backend/src/modules/trains.ts index 5ddd49d..6eba648 100644 --- a/packages/backend/src/modules/trains.ts +++ b/packages/backend/src/modules/trains.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/mongo/admin.ts b/packages/backend/src/mongo/admin.ts index 6b08422..51a7be4 100644 --- a/packages/backend/src/mongo/admin.ts +++ b/packages/backend/src/mongo/admin.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/mongo/profile.ts b/packages/backend/src/mongo/profile.ts index 34921a8..73f3e82 100644 --- a/packages/backend/src/mongo/profile.ts +++ b/packages/backend/src/mongo/profile.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/mongo/stationLog.ts b/packages/backend/src/mongo/stationLog.ts index 48b7dc2..b777667 100644 --- a/packages/backend/src/mongo/stationLog.ts +++ b/packages/backend/src/mongo/stationLog.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/mongo/trainLog.ts b/packages/backend/src/mongo/trainLog.ts index ba111ca..06d88a4 100644 --- a/packages/backend/src/mongo/trainLog.ts +++ b/packages/backend/src/mongo/trainLog.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/types/player.ts b/packages/backend/src/types/player.ts index b2cc770..53bfbe9 100644 --- a/packages/backend/src/types/player.ts +++ b/packages/backend/src/types/player.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/types/typings.d.ts b/packages/backend/src/types/typings.d.ts index 0530859..10b6914 100644 --- a/packages/backend/src/types/typings.d.ts +++ b/packages/backend/src/types/typings.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/PlayerUtil.ts b/packages/backend/src/util/PlayerUtil.ts index 2b4280e..1d369be 100644 --- a/packages/backend/src/util/PlayerUtil.ts +++ b/packages/backend/src/util/PlayerUtil.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/SimrailClient.ts b/packages/backend/src/util/SimrailClient.ts index 1d46f6f..bc2a001 100644 --- a/packages/backend/src/util/SimrailClient.ts +++ b/packages/backend/src/util/SimrailClient.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/contants.ts b/packages/backend/src/util/contants.ts index 00af241..3d8e2c4 100644 --- a/packages/backend/src/util/contants.ts +++ b/packages/backend/src/util/contants.ts @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * See LICENSE for more. + */ + + import wcmatch from "wildcard-match"; /* diff --git a/packages/backend/src/util/functions.ts b/packages/backend/src/util/functions.ts index 5c1397f..272ac5e 100644 --- a/packages/backend/src/util/functions.ts +++ b/packages/backend/src/util/functions.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/git.ts b/packages/backend/src/util/git.ts index 1e4f45c..07267d3 100644 --- a/packages/backend/src/util/git.ts +++ b/packages/backend/src/util/git.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/imgproxy.ts b/packages/backend/src/util/imgproxy.ts index 985e4eb..32bac3b 100644 --- a/packages/backend/src/util/imgproxy.ts +++ b/packages/backend/src/util/imgproxy.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/backend/src/util/time.ts b/packages/backend/src/util/time.ts index c945ca5..a573ebf 100644 --- a/packages/backend/src/util/time.ts +++ b/packages/backend/src/util/time.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Aleksander Wilczyński (aleks@alekswilc.dev) + * Copyright (C) 2025 Aleksander Wilczyński (aleks@alekswilc.dev) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/packages/frontend/index.html b/packages/frontend/index.html index a9052c4..b63296d 100644 --- a/packages/frontend/index.html +++ b/packages/frontend/index.html @@ -1,5 +1,5 @@