All checks were successful
Tag and Release Lightless / tag-and-release (push) Successful in 36s
1.11.6 Changelog (In Progress) --- * Update submodule reference * Update dalamud sdk * Reworked the Syncshell Admin Page - Fixed that owners are visible in the list, Removed Pin/Remove/Ban buttons on Owners. - Styling is done similiar as settings page. - Added 1 or 3 day(s) option for inactive check. + Added new functions on the Server Top Bar button - Right click on the button will disconnect you from Lightless - Shift+Left click will open the settings page + Added colors section in the settings to change accent colors. - The nameplate coloring has been moved to this section + Added pin option from Dalamud in the UI. + Added ability to pause syncing while going in Instance/Duty + Added functionality to make syncshell folders + Fixed nameplate bug in PVP + added self-threshold warning Co-authored-by: defnotken <itsdefnotken@gmail.com> Co-authored-by: CakeAndBanana <admin@cakeandbanana.nl> Co-authored-by: thijmenh <thijmenhogenkamp@gmail.com> Co-authored-by: choco <choco@noreply.git.lightless-sync.org> Co-authored-by: cake <cake@noreply.git.lightless-sync.org> Co-authored-by: choco <thijmenhogenkamp@gmail.com> Reviewed-on: #4
54 lines
2.4 KiB
C#
54 lines
2.4 KiB
C#
using LightlessSync.API.Dto.Group;
|
|
using LightlessSync.PlayerData.Pairs;
|
|
using LightlessSync.Services.Mediator;
|
|
using LightlessSync.Services.ServerConfiguration;
|
|
using LightlessSync.UI;
|
|
using LightlessSync.WebAPI;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace LightlessSync.Services;
|
|
|
|
public class UiFactory
|
|
{
|
|
private readonly ILoggerFactory _loggerFactory;
|
|
private readonly LightlessMediator _lightlessMediator;
|
|
private readonly ApiController _apiController;
|
|
private readonly UiSharedService _uiSharedService;
|
|
private readonly PairManager _pairManager;
|
|
private readonly ServerConfigurationManager _serverConfigManager;
|
|
private readonly LightlessProfileManager _lightlessProfileManager;
|
|
private readonly PerformanceCollectorService _performanceCollectorService;
|
|
|
|
public UiFactory(ILoggerFactory loggerFactory, LightlessMediator lightlessMediator, ApiController apiController,
|
|
UiSharedService uiSharedService, PairManager pairManager, ServerConfigurationManager serverConfigManager,
|
|
LightlessProfileManager lightlessProfileManager, PerformanceCollectorService performanceCollectorService)
|
|
{
|
|
_loggerFactory = loggerFactory;
|
|
_lightlessMediator = lightlessMediator;
|
|
_apiController = apiController;
|
|
_uiSharedService = uiSharedService;
|
|
_pairManager = pairManager;
|
|
_serverConfigManager = serverConfigManager;
|
|
_lightlessProfileManager = lightlessProfileManager;
|
|
_performanceCollectorService = performanceCollectorService;
|
|
}
|
|
|
|
public SyncshellAdminUI CreateSyncshellAdminUi(GroupFullInfoDto dto)
|
|
{
|
|
return new SyncshellAdminUI(_loggerFactory.CreateLogger<SyncshellAdminUI>(), _lightlessMediator,
|
|
_apiController, _uiSharedService, _pairManager, dto, _performanceCollectorService);
|
|
}
|
|
|
|
public StandaloneProfileUi CreateStandaloneProfileUi(Pair pair)
|
|
{
|
|
return new StandaloneProfileUi(_loggerFactory.CreateLogger<StandaloneProfileUi>(), _lightlessMediator,
|
|
_uiSharedService, _serverConfigManager, _lightlessProfileManager, _pairManager, pair, _performanceCollectorService);
|
|
}
|
|
|
|
public PermissionWindowUI CreatePermissionPopupUi(Pair pair)
|
|
{
|
|
return new PermissionWindowUI(_loggerFactory.CreateLogger<PermissionWindowUI>(), pair,
|
|
_lightlessMediator, _uiSharedService, _apiController, _performanceCollectorService);
|
|
}
|
|
}
|