Commit Graph

338 Commits

Author SHA1 Message Date
izawartka
daa86d7b85 Extract TrackHoverInfoTable component
- Extracted TrackHoverInfoTable as a separate component
2026-08-13 19:02:15 +02:00
izawartka
1d86f0f42f Replace managers with context providers
- Replaced all manager components with context providers
    - GradientsManager -> GradientsContextProvider
    - SettingsManager -> SettingsContextProvider
    - SceneryManager -> SceneryContextProvider
    - ThemeManager -> ThemeContextProvider
- Moved state logic from App to new context providers:
    - DistanceMeterContextProvider
    - SideMenuContextProvider
2026-08-13 19:02:00 +02:00
izawartka
142056b8f1 Align styles for mobile devices
- Updated styles so the page renders properly on mobile devices
- Fixed visible overflowing SideMenu
- Updated global font size to 12px
2026-08-13 18:32:01 +02:00
izawartka
7dcd8ff29d Make BackMaseuko use themes
- Updated BackMaseuko component style to use CSS themes
2026-08-12 20:58:57 +02:00
izawartka
db1c21757a Update icon urls base
- Updated icon urls to use BASE_URL instead of PUBLIC_URL
2026-08-12 20:58:10 +02:00
izawartka
f9494feefa Add .env and package.json version support
- Updated vite config to export the package.json version as env variable
- Added src/helpers/envHelper.js
- Updated some constants to support being set by the .env file
- Renamed Constants.sceneryFiles.fetchDisable to enableBuiltIn
2026-08-12 17:28:44 +02:00
izawartka
87b592e78b Update Scenery Processor script
- Refactored Scenery Processor script and updated it with more options
2026-08-12 17:20:26 +02:00
izawartka
c688e67281 Migrate to Vite
- Migrated the codebase from create-react-app to Vite
2026-08-12 17:19:17 +02:00
izawartka
c4524c5f07 1.7.2 Release tweaks 2026-07-31 17:45:34 +02:00
izawartka
da2290bc88 Add missing signalbox
- Added missing signalbox "SignalBoxBytom"
2026-07-29 22:41:30 +02:00
izawartka
eca2d9dfa7 Add BackMaseuko
- Added homepage link (disabled by default)
2026-07-29 20:48:54 +02:00
izawartka
419fcc7c6d Implement embedded mode
- Implemented embedded mode hiding unnecessary UI elements and tweaking scenery loading process
2026-07-29 19:49:44 +02:00
izawartka
b68d4e76c0 Add embedded dialogs
- Extracted DialogManager component selection to utils/getDialogComponent
- Added EmbeddedDialog
- Updated DialogManager to use EmbeddedDialog instead of Dialog if an app is running in embedded mode
2026-07-29 19:47:28 +02:00
izawartka
895a294098 Add EmbeddedContext
- Added EmbeddedContext and ?embeded=true param support
2026-07-29 19:44:18 +02:00
izawartka
6a0f945a0d Set view to main signalbox on load
- Updated scenery loading to set the view to main signalbox on scenery load
2026-07-28 17:38:58 +02:00
izawartka
e9960c4839 1.7.1 Release tweaks
- Bumped up version to 1.7.1
2026-01-14 23:51:58 +01:00
izawartka
9622bc87fc Add scenery info version 30 support
+Added support for scenery info version 30 (sceneries with info version 29 are still supported)
+Added UUID field in SceneryInfoView
2026-01-14 23:50:01 +01:00
izawartka
91173c13c1 1.7.0 Release tweaks
*Updated buildVersion to 1.7.0
*Updated REAMDE.md
2025-08-18 21:58:59 +02:00
Igor Zawartka
7c7de43749
Merge pull request #11 from izawartka/svg-export
Svg export
2025-08-18 21:52:39 +02:00
izawartka
9d2fef5e73 Added export animation
+Added svg export animation
*Moved Constants.originalPublicBuildUrl to Constants.svgExport.originalPublicBuildUrl
2025-08-18 21:51:08 +02:00
izawartka
6f44d148ed Distance meter export fix
*Fixed background rect of the distance meter being exported
2025-08-18 21:25:01 +02:00
izawartka
24ecffe63b Improved export error handling
*Improved svg export error handling
2025-08-17 18:13:12 +02:00
izawartka
97e1063cb5 Fixed export visibility check
*Fixed export visibility check (some tracks were falsely detected as invisible)
2025-08-17 18:04:44 +02:00
izawartka
cfe28689ff Added metadata export
+Added basic metadata to the exported svg
2025-08-17 18:04:01 +02:00
izawartka
6a04b5feec Added export trimming
*Objects in the exported SVG are now removed if they lay outside of the view
2025-08-17 17:49:13 +02:00
izawartka
4c849d96bb Added SVG export
+Added basic SVG export option
2025-08-17 12:09:16 +02:00
izawartka
e80a28e9c0 Moved parsing tools
*Moved scenery parsing tools to /src/model/parsing/
2025-08-16 14:42:46 +02:00
izawartka
e19d2ff7e4 Updated invisible track check
*Updated Track.hasNoMaterials to detect a track as invisible if it has no sleepers and rails
2025-08-16 14:31:41 +02:00
Igor Zawartka
ad064734d1
Merge pull request #10 from izawartka/light-mode
Light mode
2025-08-16 14:17:47 +02:00
izawartka
48c14f3a95 Updated CSS
*Updated SceneryParserLogView background color
*Updated some light mode color variables
2025-08-16 14:16:07 +02:00
izawartka
ff3ab7049f Fixed more CSS errors
*Sign texts no longer have shadow
*TrackHoverInfo is now using the standard background color
*Fixed z-indexes
*Tweaked disabled text color
2025-08-16 00:15:09 +02:00
izawartka
61026481f8 Updated styling colors
*Changed color values of some theme variables
*Tracks now have different colors depending on the theme
*Changed colors of some elements
2025-08-16 00:07:36 +02:00
izawartka
2f80998a50 Fixed standard signals and map text rendering
*Fixed broken signal icon
*Fixed AlwaysUpText anchor bug
2025-08-15 23:32:18 +02:00
izawartka
06f2d2080f Updated css for the light mode
*Updated all CSS to work with the new light mode
2025-08-15 21:24:48 +02:00
izawartka
285c5b04e8 Added theme toggle
+Added dark-mode and light-mode component icons
+Added ThemeToggle in the toolbar
+Added ThemeManager and ThemeContext
2025-08-15 21:23:46 +02:00
izawartka
0d2580f23e Added SideMenuIcon as a component
*SideMenu icon used in the toolbar is now a component
2025-08-15 20:29:46 +02:00
izawartka
d023eb9dad Icon tweaks
*Moved TrackHoverInfo icons to src/icons/track-hover-info
*Tweaked TrackHoverInfo css
-Removed width and height icon params
2025-08-15 20:28:36 +02:00
izawartka
f5bc06ad8b Optimized objects rendering
*Optimized objects on the map to render only above the specified zoom threshold
2025-08-13 14:04:42 +02:00
izawartka
0ca6f6b9e0 Optimized track rendering
*Optimized track rendering to not always render both scaled and unscaled versions of the track
2025-08-13 13:36:13 +02:00
izawartka
d7fdf0fc7e Updated map text styles
*Updated map text styles to always have shadow
2025-08-13 13:35:15 +02:00
izawartka
40ad1e678b Cleaned up map class names
*Cleaned up map class names and CSS
*Fixed signalbox icons having color property
2025-08-12 23:15:23 +02:00
izawartka
82d2b7d01c 1.6.2 Release tweaks
*Changed buildVersion to 1.6.2
2025-08-12 12:42:39 +02:00
izawartka
362d0aef65 Added slope signs def
+Added slope signs def (just to not how the warning, no icons yet)
2025-08-12 12:33:40 +02:00
izawartka
4106dbd474 Improved invisible track detection
+Added Track.hasNoMaterials()
*Now a track is considered invisible if it has trans-mat set in ALL material slots instead of just one
2025-08-11 22:28:23 +02:00
izawartka
fb90fffcde Optimized electrification resolution
*Optimized electrification resolution to use a chained list for the queue instead of the standard JS array
*Replaced ElectrificationResolver with this in electrification-resolver.js
2025-08-11 22:26:53 +02:00
izawartka
647a324357 Added electrification resolver step mode
+Added electrification resolver step mode. It can be enabled using the appropriate Constant
2025-08-11 21:54:09 +02:00
izawartka
709b279147 Fixed extended signal parser signs parsing
*Fixed some extended signal parsers returning empty signs array instead of dictionary
2025-08-11 20:58:07 +02:00
izawartka
5f57eb24ee Improved switches
+Added support for the speedLimit field in switch definitions
*Updated defined-switches.js, removing unused fields and adding speedLimit
*Changed the header of StandardTrack.createSwitchTrack
2025-08-05 22:31:25 +02:00
izawartka
415878ba02 Updated parse_prefabs.py
+Added track speed limit info parsing in parse_switch_prefabs.py
*Renamed parse-prefabs.py to parse_switch_prefabs.py
*parse_switch_prefabs.py will no longer provide track  slope and banking information unless specified otherwise with the --extended-track-shape flag
*Modified parse_prefabs.py to use argparse
-Removed shebang from parse_prefabs.py script (caused problems on some python installations)
2025-08-05 20:30:54 +02:00
izawartka
56561587fc Removed unused npm packages
-Removed unused npm packages
2025-08-05 00:53:33 +02:00