Commit graph

58 commits

Author SHA1 Message Date
Pat Hartl
fddc5de2e7 Move IGDB and SteamGridDB auth settings to distinct pages 2026-01-18 19:36:24 -06:00
Pat Hartl
20731f355a Fix certain taxonomies (tag, genre, platform) being removed from game on save
Fixes the action, custom field, multiplayer mode, and save path editors from clearing out taxonomies when saving. Also passes the Game/Server/Redistributable ID as a cascading parameter.
2025-12-08 00:51:32 -06:00
Pat Hartl
add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00
Pat Hartl
c477ef1877 UI to edit media thumbnail sizes 2025-09-15 19:19:52 -05:00
Pat Hartl
4bc3a1a1b0 Fix obsolete usage of Vertical 2025-08-12 18:52:15 -05:00
Pat Hartl
a5dab5c094 Merge branch 'main' into refactor/optional-import-export
# Conflicts:
#	LANCommander.Server.Services/GameService.cs
#	LANCommander.Server.Services/ImportService.cs
#	LANCommander.Server.Services/Importers/GameImporter.cs
#	LANCommander.Server.Services/UserService.cs
#	LANCommander.Server/UI/Components/AvatarUploader.razor
#	LANCommander.Server/UI/Components/ImportUploadDialog.razor
2025-07-25 18:42:39 -05:00
Pat Hartl
2e073e9332 Render export dialog, resolve circular DI issues
- Fixed circular DI issues with importers and importer context
- Added additional mappings for data <-> manifest models
- Avoid null reference exceptions when trying to export archives/media where files don't exist
- Consolidate import dialogs
- Render selectable flags in export dialog
- Fixed various media uploaders to use new MediaService.WriteToFile
2025-07-19 17:39:55 -05:00
RattleSN4K3
18823f6e9b Fix calling OnOk and OnCancel after import dialog 2025-06-22 21:23:03 +02:00
Pat Hartl
b21641c769 Update AntBlazor 2025-05-23 02:17:45 -05:00
Pat Hartl
1e7578772f Put addons (mods/expansions) nested under base game in list 2025-05-23 02:17:06 -05:00
RattleSN4K3
028e3bfe0d Option to delete selected Media entries 2025-05-18 01:02:52 +02:00
Pat Hartl
56a87354ef
Merge pull request #251 from RattleSN4K3/fix/MediaListOrderType
Fix Media.Type Select not updating
2025-05-03 16:53:41 -05:00
Pat Hartl
c86e2a2e14
Merge pull request #247 from RattleSN4K3/fix/FixImportMultiplayerModes
Fix import multiplayer modes
2025-04-25 02:29:34 -05:00
RattleSN4K3
c56fa69c49 Use generated thumbnail for manual media, fix manual preview 2025-04-25 07:24:06 +02:00
RattleSN4K3
63a19b58cb Fix Media.Type Select not updated properly when full list is refreshed 2025-04-25 06:44:33 +02:00
RattleSN4K3
0127142cf7 Parse and store multiplayer info notes as description 2025-04-24 20:00:50 +02:00
Pat Hartl
74f2f67a99 Render times in UI as local time zone 2025-03-17 02:02:17 -05:00
Pat Hartl
9d86bf6fd5 Fix add of media in editor
Fixes #216
2025-03-14 00:25:09 -05:00
Pat Hartl
d322b92081 Add FilePicker for save paths
Ref #219
2025-03-13 20:54:31 -05:00
Pat Hartl
93e17148b0 Autofocus game metadata lookup if new game 2025-02-23 09:18:06 -06:00
Pat Hartl
e8627b6a87 Use generic implementations 2025-02-16 10:08:05 -06:00
Pat Hartl
d5d6c52114 Fix add to collection dialog 2025-02-16 02:00:12 -06:00
Pat Hartl
3d4eb34d53 Restore saves and play sessions to game menu 2025-02-12 22:37:56 -06:00
Pat Hartl
bb719f61d8 Pick image on double click 2025-02-12 21:38:18 -06:00
Pat Hartl
1d4ecffe20 Fix save path addition 2025-02-09 15:08:47 -06:00
Pat Hartl
6081edfb4f Update relationships 2025-02-02 14:58:07 -06:00
Pat Hartl
af08645396 Remove use of DatabaseServiceFactory, update service dependency injection 2025-02-01 02:21:34 -06:00
Pat Hartl
077e0b281b Add success message for saving custom fields 2025-01-31 01:49:57 -06:00
Pat Hartl
aa4ba8a056 Add custom fields to games and allow them to be used in scripts / actions 2025-01-30 19:21:02 -06:00
Pat Hartl
f81395065b Prevent save path updating wiping out archives 2025-01-28 17:30:45 -06:00
Pat Hartl
68cb4da4f8 Fix changes to multiplayer modes wiping out archives 2025-01-28 17:24:47 -06:00
Pat Hartl
2edfd7e8fb Fix keys editor 2025-01-21 21:54:00 -06:00
Pat Hartl
c22414fce9 Fix media editor new item 2025-01-21 20:43:59 -06:00
Pat Hartl
bc3e4fb7d4 Fix media editor for new media 2025-01-21 02:46:04 -06:00
Pat Hartl
d22552aa55 Fix spacing on tables, use datatable where possible 2025-01-20 20:00:15 -06:00
Pat Hartl
38e95c9102 Fix import style 2025-01-16 03:22:46 -06:00
Pat Hartl
61d1a10d74 Refactor import dialog, add storage location selector 2025-01-08 17:10:03 -06:00
Pat Hartl
14ea55fb8e Fix infinite rendering loop of GameEditView 2025-01-02 20:04:03 -06:00
Pat Hartl
66c589c468 Update to AntBlazor v1.1.0 2024-12-31 18:21:41 -06:00
Pat Hartl
5de9eccce1 Adjust Blazor server-side to pull data with new context 2024-11-25 22:29:56 -06:00
Pat Hartl
f62d43500f Standardize private method signature 2024-11-22 02:05:44 -06:00
Pat Hartl
1dda11dd0a Switch dependency injection for services that access database 2024-11-22 02:04:04 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
88ad8926c9 Redirect to games list if game ID doesn't exist 2024-10-23 22:27:48 -05:00
Pat Hartl
8df8b3eb4c Null reference check in edit view 2024-10-23 00:49:58 -05:00
Pat Hartl
0c700803c3 Reworked game edit page into separate files per pane
Implements #99
2024-10-22 23:49:21 -05:00
Pat Hartl
2805f34449 WIP fix for MySQL connection concurrency issues
This is a large commit. There are a number of things that this commit does to try to fix various issues that were occurring when the database provider was set to MySQL:
- The DAL `Repository` has been completely refactored to follow best practices. The repository is now being injected into services instead of the database context itself. This allows the DI to handle the repository's lifetime instead of creating a new repository for every transaction and sharing the context across repositories. As part of these changes, there is no more allowed usage of `IQueryable` and all service/repository methods must actually execute database queries before their return. This is to ensure that the context does not stay open longer than it needs to. Abusing `IQueryable`s by tossing them into Blazor components seems to be a big no-no.
- Some deletion behaviors on relationships have been tweaked as MySQL wasn't able to apply migrations with behaviors that were contradictory.
- A `ConnectionInterceptor` was added to try to keep track of `DatabaseContext` lifetimes. This is really only for debugging and should be put into `#if DEBUG` regions. This helped identify some potential issues where some contexts were basically never closing, causing the MySQL connector to not function.
- Docs for generating migrations have been updated to reflect the addition of being able to specify the database provider and connection string when adding a migration, avoiding the need to edit `Settings.yml`
- The application can now be put into a pause state on startup by adding the `--debugger` argument when used from the command line. When a debugger is attached, it resumes execution.
- The application can now log to Seq when using debug build
- Service lifetime on `DatabaseContext` has switched to transient. This may be reverted in the future.
- Lazy loading has been disabled for debugging purposes. It didn't directly help the concurrency issues, but it needs to be tested individually to be re-enabled.
- All usage of `UserManager`, `RoleManager`, and `SignInManager` have been removed from all controllers, pages, and Blazor components. Functionality has been moved to `UserService` and `RoleService`. This might have done the most amount of help, but could probably be improved upon in the future by not relying on them and instead having our own implementation.
- Application startup migrations and server autostarts have been disabled temporarily. There might be an issue of `DatabaseContext` lifetimes that spawn from this.
2024-10-13 20:42:45 -05:00
Pat Hartl
07882e39d2 Add ability to specify multiple upload folders for archives
Implements #97
2024-10-11 01:09:12 -05:00
Pat Hartl
a40de21fc7 Rename settings models 2024-10-07 18:38:27 -05:00
Pat Hartl
91ee1d47a9 Move data and service layers to separate projects, update packages 2024-10-07 18:04:26 -05:00