Commit graph

50 commits

Author SHA1 Message Date
Pat Hartl
0d8cfaf423 Working control of Docker containers 2025-03-25 20:48:19 -05:00
Pat Hartl
c9ffb1eac3 Avoid page crashing if SignalR client can't connect to hub 2025-03-25 20:48:03 -05:00
Pat Hartl
421aea4ab8 Bind hosts dropdown properly, fix form layout 2025-03-25 19:15:05 -05:00
Pat Hartl
da33b45fe4 Make config for server engines more generic 2025-03-25 18:07:03 -05:00
Pat Hartl
15d61f684c Redo migrations, fix default container URI, better error handling on startup 2025-03-25 01:09:21 -05:00
Pat Hartl
d652627881 Fix binding of container selects 2025-03-24 03:18:00 -05:00
Pat Hartl
e86e5d8b44 Use server engines to start/stop servers 2025-03-24 00:19:33 -05:00
Pat Hartl
9279c9ac0d Add form fields for managine Docker container information 2025-03-24 00:18:52 -05:00
Pat Hartl
a49d1914df Abstract server control to IServerEngine, basic implementation of DockerServerEngine 2025-03-23 17:30:50 -05:00
Pat Hartl
f084fa87d8 Fix responsiveness of server control component
Fixes #189
2025-03-21 17:07:54 -05:00
Pat Hartl
dbf6c1b395 Mostly fix server status/control
Currently can't stop the server process, needs more security

Ref #198
2025-03-20 02:32:36 -05:00
Pat Hartl
74f2f67a99 Render times in UI as local time zone 2025-03-17 02:02:17 -05:00
Pat Hartl
aa4621d0d2 Fix not being able to load server edit if no consoles are configured 2025-02-28 22:59:33 -06:00
Pat Hartl
de60ceb04d Fix server starting/stopping, fix server autostart preventing app from starting, fix status update on external close of server 2025-02-25 22:05:23 -06:00
Pat Hartl
7741ba989c Fix sorting of servers
Fixes #180
2025-02-24 20:42:29 -06:00
Pat Hartl
d38432f675 Add server scripts to execute on game start/stop, refactor how play sessions are recorded 2025-02-23 15:39:06 -06:00
Pat Hartl
2877a79b64 Make various fields autofocus 2025-02-23 09:27:34 -06:00
Pat Hartl
e8627b6a87 Use generic implementations 2025-02-16 10:08:05 -06:00
Pat Hartl
759a12da61 Remove reference to DatabaseServiceFactory, fix multiplayer modes and save paths editor 2025-02-09 03:28:00 -06:00
Pat Hartl
af08645396 Remove use of DatabaseServiceFactory, update service dependency injection 2025-02-01 02:21:34 -06:00
Pat Hartl
4ef1c7be21 Optional column picker, working search, show totals, pagination options 2025-01-28 18:23:49 -06:00
Pat Hartl
ee50f77e7d Fix add route for servers 2025-01-26 15:26:35 -06:00
Pat Hartl
efc008fd4a Split server edit view into pages, fix spacing 2025-01-22 18:31:56 -06:00
Pat Hartl
d00fa19502 Make action editor save its own changes 2025-01-22 01:21:11 -06:00
Pat Hartl
84ec503fdc Fix archive editor uploading 2025-01-21 20:43:28 -06:00
Pat Hartl
dc4a49d71a Convert more tables to data tables 2025-01-20 01:23:07 -06:00
Pat Hartl
38e95c9102 Fix import style 2025-01-16 03:22:46 -06:00
Pat Hartl
7c9d92e0dd Fix server importing 2025-01-16 03:08:43 -06:00
Pat Hartl
a7300ed267 Fix server edit 2025-01-14 17:38:55 -06:00
Pat Hartl
6d5e91b3f1 Fix spacing on server list rows 2025-01-14 17:38:36 -06:00
Pat Hartl
7cd47ff910 Fix spacing on page header buttons 2025-01-14 17:38:23 -06:00
Pat Hartl
5ddf4a8cdf Fix spacing on server control 2025-01-14 17:38:06 -06:00
Pat Hartl
66c589c468 Update to AntBlazor v1.1.0 2024-12-31 18:21:41 -06:00
Pat Hartl
a7ddb76937 Add pagination to metadata, redistributable, and server lists 2024-11-27 21:01:25 -06:00
Pat Hartl
0d03fa949e Increase default server page size 2024-11-27 20:03:26 -06:00
Pat Hartl
a5818089cd Include game and icon in server list 2024-11-27 20:03:13 -06:00
Pat Hartl
ffb67180b1 Add eager loading for CreatedBy and UpdatedBy 2024-11-27 19:55:37 -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
9a585629e9 Temporarily disable game icons in server due to database context concurrency issues 2024-11-16 01:45:41 -06:00
Pat Hartl
00b9ca5953 Rename service and repository methods to async 2024-11-12 18:32:46 -06:00
Pat Hartl
991771a7f3 Use string constant for administrator role name 2024-10-16 02:06:02 -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
a5ebc7c8ce Force page load when redirecting 2024-09-19 19:37:00 -05:00
Pat Hartl
36ed11f2dd Fix title when editing games, servers, and redists 2024-09-19 19:26:40 -05:00
Pat Hartl
1c615cbce2 Remove nlog, use Serilog, prefer ILogger 2024-08-28 20:33:59 -05:00
Pat Hartl
8942c82154 Fix xterm initialization 2024-08-12 00:20:59 -05:00
Pat Hartl
131479277b Consolidate enums 2024-08-12 00:15:16 -05:00
Pat Hartl
cb061e09c5 Rename server project 2024-08-04 18:44:33 -05:00