Commit graph

47 commits

Author SHA1 Message Date
Pat Hartl
7c87bfcf24 Fix mapping for game saves 2024-11-16 11:20:59 -06:00
Pat Hartl
65be58fbf2 Working validate files dialog
Very basic, but it will compare local files against what's available on the server and allow you to selectively replace them. Save paths are ignored to avoid accidental replacement.

Implements #142
2024-11-14 20:53:08 -06:00
Pat Hartl
a734ef9793 Fix incorrect type for cache 2024-11-14 01:51:21 -06:00
Pat Hartl
60337009b1 Fix routes for getting content by version, cache results 2024-11-14 00:54:28 -06:00
Pat Hartl
8cff55ea3e Add ID parameter to controller route 2024-11-13 22:44:48 -06:00
Pat Hartl
7fd07e9de6 Switch HTTP methods 2024-11-12 23:28:05 -06:00
Pat Hartl
e9c542ab49 Rename async controller routes 2024-11-12 23:22:01 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
63d203f87f Map DepotGame cover from attached media 2024-11-11 20:20:02 -06:00
Pat Hartl
f0abe24367 Filter collections and play sessions 2024-11-11 18:33:04 -06:00
Pat Hartl
407093bdce Optimize query, filter play sessions and collections 2024-11-11 18:30:31 -06:00
Pat Hartl
b5bddf806d Optimize controller routes for getting depot and library games 2024-11-11 18:22:30 -06:00
Pat Hartl
f61d6db02a Add HTTP method for library get 2024-11-07 20:25:24 -06:00
Pat Hartl
a98c2c92a2 Add route to get thumbnail 2024-11-07 18:54:46 -06:00
Pat Hartl
23829ca9b3 Merge branch 'v1.1.0' into user-libraries 2024-11-05 20:42:14 -06:00
Pat Hartl
ce105a285f Rename GetImagePath -> GetMediaPath 2024-11-05 19:38:59 -06:00
Pat Hartl
02ac6a00f8 Dialog to verify install files with ability to select replacement files
Implements #142
2024-11-04 17:31:37 -06:00
Pat Hartl
e30a1baef3 Start of migrations, services, controllers 2024-10-31 01:54:34 -05:00
Pat Hartl
0821dfde5c Merge tag 'v1.0.4' into v1.1.0
# Conflicts:
#	LANCommander.Launcher.Services/InstallService.cs
#	LANCommander.Launcher.Services/ProfileService.cs
#	LANCommander.Launcher/UI/Components/DownloadQueue.razor
#	LANCommander.Launcher/wwwroot/css/app.css.map
#	LANCommander.SDK/Enums/InstallStatus.cs
2024-10-28 01:01:57 -05:00
Pat Hartl
3dd91b3b0d Switch all DateTime.Now to use UTC 2024-10-23 23:16:52 -05:00
Pat Hartl
7a9d6ecdba Add file size to game saves 2024-10-23 22:33:28 -05:00
Pat Hartl
2056b06207 Working new login page 2024-10-18 19:15:05 -05:00
Pat Hartl
991771a7f3 Use string constant for administrator role name 2024-10-16 02:06:02 -05:00
Pat Hartl
91829f601d Enable navigation properties for user roles, use service in place of managers 2024-10-16 01:54:51 -05:00
Pat Hartl
2c937d382f Fix issue exporting servers
Some checks failed
LANCommander Release / prep (push) Has been cancelled
LANCommander Release / build_server_linux-arm64 (push) Has been cancelled
LANCommander Release / build_server_linux-x64 (push) Has been cancelled
LANCommander Release / build_server_osx-arm64 (push) Has been cancelled
LANCommander Release / build_server_osx-x64 (push) Has been cancelled
LANCommander Release / build_server_win-arm64 (push) Has been cancelled
LANCommander Release / build_server_win-x64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-x64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-x64 (push) Has been cancelled
LANCommander Release / build_launcher_win-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_win-x64 (push) Has been cancelled
LANCommander Release / build_release (push) Has been cancelled
2024-10-15 02:19:03 -05:00
Pat Hartl
d33ecc30e0 Remove usage of DatabaseContext outside Repository 2024-10-14 00:59:32 -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
a43f940251 Merge branch 'main' into v1.1.0 2024-10-09 19:15:49 -05:00
Pat Hartl
6d6526a5f3 Import mods and expansions, but filter them out
Some checks failed
LANCommander Release / prep (push) Has been cancelled
LANCommander Release / build_launcher_win-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_win-x64 (push) Has been cancelled
LANCommander Release / build_release (push) Has been cancelled
LANCommander Release / build_server_linux-arm64 (push) Has been cancelled
LANCommander Release / build_server_linux-x64 (push) Has been cancelled
LANCommander Release / build_server_osx-arm64 (push) Has been cancelled
LANCommander Release / build_server_osx-x64 (push) Has been cancelled
LANCommander Release / build_server_win-arm64 (push) Has been cancelled
LANCommander Release / build_server_win-x64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_linux-x64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-arm64 (push) Has been cancelled
LANCommander Release / build_launcher_osx-x64 (push) Has been cancelled
2024-10-09 17:41:42 -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
Pat Hartl
320d4e2c5e Allow uploading of archive files via CLI
Implements #111
2024-10-01 17:56:58 -05:00
Pat Hartl
3d9749a9db Add importing/exporting of redistributable and server to CLI 2024-10-01 17:56:06 -05:00
Pat Hartl
5d3ff9cada More logging and error handling for API routes 2024-09-17 00:18:39 -05:00
Pat Hartl
2067214acd Better error handling and logging for API 2024-09-16 20:27:54 -05:00
Pat Hartl
e00aa77597 Move KeyAllocationMethod enum to SDK 2024-09-04 16:48:04 -05:00
Pat Hartl
0fa0960ef5 Allow key allocation via user 2024-09-03 19:57:39 -05:00
Pat Hartl
f060ad7ac4 Consolidate settings access 2024-08-28 20:44:14 -05:00
Pat Hartl
ca1b02c3bf Fix access 2024-08-28 20:34:09 -05:00
Pat Hartl
1c615cbce2 Remove nlog, use Serilog, prefer ILogger 2024-08-28 20:33:59 -05:00
Pat Hartl
c0943f559c Add cmdlets for getting/setting custom fields 2024-08-21 20:19:04 -05:00
Pat Hartl
7588065bae Get mapped games using async 2024-08-19 21:18:05 -05:00
Pat Hartl
bf9ef30b4b Add game importing via CLI 2024-08-12 19:33:26 -05:00
Pat Hartl
131479277b Consolidate enums 2024-08-12 00:15:16 -05:00
Pat Hartl
76106691eb Add ability to track issues with games
Adds an admin section to view and resolve submitted issues and a menu option in the game context menu in the launcher to report an issue.
2024-08-11 14:48:00 -05:00
Pat Hartl
cb061e09c5 Rename server project 2024-08-04 18:44:33 -05:00