Compare commits

..

205 Commits

Author SHA1 Message Date
Tudor Stanciu 08f1360f21 Merged PR 82: Monorepo migration
Monorepo migration
2024-03-24 21:25:36 +00:00
Tudor Stanciu 209bb7e91f Merge remote-tracking branch 'frontend/monorepo' into monorepo 2024-03-24 23:12:41 +02:00
Tudor Stanciu 38e01bbd29 Prep for monorepo migration 2024-03-24 22:37:20 +02:00
Tudor Stanciu aff09cfd7e Remove VS Code settings file 2024-03-24 22:32:48 +02:00
Tudor Stanciu 408ddc2642 Prep for monorepo migration 2024-03-24 21:51:09 +02:00
Tudor Stanciu 158efcdc66 [1.2.7] 2023-05-08 01:37:12 +03:00
Tudor Stanciu ba7c26e2a0 translation 2023-05-07 02:01:34 +03:00
Tudor Stanciu f6fe832baa . 2023-05-07 02:00:28 +03:00
Tudor Stanciu 156b0be7fb release notes 2023-05-07 01:59:29 +03:00
Tudor Stanciu 8805ca469e Updated menu component to permanently display the selected item. 2023-05-07 01:58:36 +03:00
Tudor Stanciu e08972292c 1.2.7 - cache reset support 2023-05-07 00:59:52 +03:00
Tudor Stanciu 31ba727f9b cache reset 2023-05-07 00:51:04 +03:00
Tudor Stanciu 2ab22b2113 added jsconfig 2023-05-07 00:34:22 +03:00
Tudor Stanciu 0851d56c73 added reset cache button 2023-05-07 00:24:05 +03:00
Tudor Stanciu 72a349c779 dockerfile and setenv updates 2023-05-06 14:29:59 +03:00
Tudor Stanciu a38603be2c Merged PR 80: environment variables support
environment variables support
2023-05-06 09:22:00 +00:00
Tudor Stanciu 8b1e11c1e3 readme update 2023-05-06 02:32:34 +03:00
Tudor Stanciu 605c1bf4c7 [1.2.5] 2023-04-18 03:58:37 +03:00
Tudor Stanciu 41656b1363 permissions fix 2023-04-18 02:51:52 +03:00
Tudor Stanciu 2b6751335f NotAllowed component 2023-04-18 02:46:21 +03:00
Tudor Stanciu 4dff02b87f MachineCollapsedContent component 2023-04-18 02:22:42 +03:00
Tudor Stanciu feab019df1 disable automatic ping for guest users 2023-04-17 04:05:36 +03:00
Tudor Stanciu 63c7d946e9 removed eslint exception 2023-04-17 03:58:56 +03:00
Tudor Stanciu 27be2a2844 disabled={!canOperateMachines} 2023-04-15 00:59:40 +03:00
Tudor Stanciu 3a211bcb17 refactoring api integration 2023-04-15 00:53:11 +03:00
Tudor Stanciu 0e025e6c68 added user permissions provider 2023-04-15 00:07:15 +03:00
Tudor Stanciu b7affa7677 @flare/tuitio-client-react update 2023-04-10 19:14:22 +03:00
Tudor Stanciu b9726950cc implemented user rights 2023-04-04 18:28:01 +03:00
Tudor Stanciu 6bad079252 bold contact options 2023-04-04 00:40:52 +03:00
Tudor Stanciu 1d58d0f5e7 translations 2023-04-04 00:36:47 +03:00
Tudor Stanciu 1d81b8ec49 added security component in user profile 2023-04-04 00:32:04 +03:00
Tudor Stanciu 4c9491cb74 [1.2.4] 2023-04-02 00:15:08 +03:00
Tudor Stanciu 23acd4dcf2 contacts refactoring 2023-04-01 22:08:16 +03:00
Tudor Stanciu 3d05804625 contacts refactoring 2023-04-01 20:24:18 +03:00
Tudor Stanciu c5e7319324 contact info refactoring 2023-04-01 20:17:23 +03:00
Tudor Stanciu 3d3f8fe811 update 2023-03-31 02:09:06 +03:00
Tudor Stanciu 9c80ed0bfb replaced useTuitioDecodedToken with useTuitioUserInfo 2023-03-31 01:54:45 +03:00
Tudor Stanciu c4275df4bc Upgraded @flare/tuitio-client and @flare/js-utils packages. 2023-03-30 19:33:30 +03:00
Tudor Stanciu f6f7a9fa0b moved token decodint to @flare/tuitio-client-react 2023-03-30 19:31:02 +03:00
Tudor Stanciu 1addddb268 Merge branch 'master' of https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector_Frontend 2023-03-29 18:27:31 +03:00
Tudor Stanciu cb1d07432c @flare/tuitio-client update 2023-03-29 18:27:11 +03:00
Tudor Stanciu 52cd8f53f5 [1.2.3] 2023-03-27 02:15:22 +03:00
Tudor Stanciu f08ba0221b system page 2023-03-27 02:06:32 +03:00
Tudor Stanciu 58e5f61a97 Settings: AppearanceComponent 2023-03-27 01:44:45 +03:00
Tudor Stanciu 46581b33c9 settings page changes 2023-03-27 01:08:55 +03:00
Tudor Stanciu d8bad156dd language component refactoring 2023-03-27 00:27:47 +03:00
Tudor Stanciu eec6d9ceb2 secondary color update 2023-03-26 22:53:31 +03:00
Tudor Stanciu e6d115a21e button colors 2023-03-26 22:44:31 +03:00
Tudor Stanciu 99b4929b2a Timeline component 2023-03-26 22:36:26 +03:00
Tudor Stanciu 853cc9c9ad moved AboutContainer 2023-03-26 05:02:50 +03:00
Tudor Stanciu 5ffed1c995 system description update 2023-03-26 04:56:12 +03:00
Tudor Stanciu d3f359c6dd system description 2023-03-26 04:52:36 +03:00
Tudor Stanciu c61df6b59b system version component update 2023-03-26 02:51:46 +02:00
Tudor Stanciu 484b3d0ab2 SystemVersionContainer 2023-03-26 02:43:28 +02:00
Tudor Stanciu 6d1c2df40b release notes page 2023-03-25 12:57:51 +02:00
Tudor Stanciu 78f7b2db2a about page update 2023-03-25 01:16:11 +02:00
Tudor Stanciu a166e1c9e3 visual components update 2023-03-25 00:28:48 +02:00
Tudor Stanciu 1ad78b3ef1 ViewModeSelection double selection fix 2023-03-24 01:33:37 +02:00
Tudor Stanciu 4195456227 removed secondaryActionsMenuProps 2023-03-24 01:30:49 +02:00
Tudor Stanciu 64684674ba machine view modes update 2023-03-24 00:43:28 +02:00
Tudor Stanciu 6ad7abf3d1 machines accordion view update 2023-03-22 18:20:14 +02:00
Tudor Stanciu 7115649f12 machines view modes update 2023-03-21 19:32:35 +02:00
Tudor Stanciu 94f2138bc7 changed components structure 2023-03-21 18:31:58 +02:00
Tudor Stanciu 3cc5d8f6f3 machines view mode option 2023-03-21 18:14:32 +02:00
Tudor Stanciu 234778cc43 added about menu item 2023-03-20 19:04:29 +02:00
Tudor Stanciu 6af31bdcca removed old stepper component 2023-03-20 18:57:41 +02:00
Tudor Stanciu a49a289b2c Merge branch 'master' of https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector_Frontend 2023-03-20 18:49:52 +02:00
Tudor Stanciu b617d59b69 User profile page 2023-03-20 18:49:35 +02:00
Tudor Stanciu 7e1a64c27b [1.2.2] 2023-03-18 21:11:46 +02:00
Tudor Stanciu 7cd40357ab Account logout method and the latest changes published by Tuitio were implemented 2023-03-18 17:47:59 +02:00
Tudor Stanciu d07e0742f7 login card padding fix 2023-03-17 01:32:38 +02:00
Tudor Stanciu 5fb016a679 [1.2.1] 2023-03-05 02:17:27 +02:00
Tudor Stanciu 06de0a7636 mask machine logs 2023-03-05 02:08:03 +02:00
Tudor Stanciu 6f341415f0 apply mask on sensitive information 2023-03-05 01:39:00 +02:00
Tudor Stanciu d992b5eedc page title translation 2023-03-05 00:52:00 +02:00
Tudor Stanciu 3e9e9534e1 added sensitive info toggle 2023-03-05 00:49:07 +02:00
Tudor Stanciu fea35bab90 [1.2.0] 2023-03-04 23:44:54 +02:00
Tudor Stanciu 5281165a0f Merged PR 73: Application menu
- Added app menu
- login fix and theme implementation
- axios upgrade
- moved stepper
- fix eslint errors
- fix eslint errors
- Break layout into small pieces
- added theme dark mode toggle in settings
- refactoring
- light dark toggle
- translations
- redirect to dashboard from root route
2023-03-04 20:43:57 +00:00
Tudor Stanciu 09b6002546 redirect to dashboard from root route 2023-03-04 22:11:39 +02:00
Tudor Stanciu 39216f85d3 translations 2023-03-04 22:06:55 +02:00
Tudor Stanciu 49d2fa11bd light dark toggle 2023-03-04 21:57:00 +02:00
Tudor Stanciu 9d85810f4e refactoring 2023-03-04 21:14:47 +02:00
Tudor Stanciu 4e58eebd4e added theme dark mode toggle in settings 2023-03-04 21:06:49 +02:00
Tudor Stanciu dfcabbe0ce Break layout into small pieces 2023-03-04 00:37:52 +02:00
Tudor Stanciu 735015c516 fix eslint errors 2023-03-04 00:01:24 +02:00
Tudor Stanciu 956d7b34ff fix eslint errors 2023-03-03 23:56:31 +02:00
Tudor Stanciu 9757bf7561 moved stepper 2023-03-03 23:22:27 +02:00
Tudor Stanciu 6f549512f7 axios upgrade 2023-03-03 23:18:02 +02:00
Tudor Stanciu a7a23144a9 login fix and theme implementation 2023-03-03 18:56:30 +02:00
Tudor Stanciu d1981e72bf Added app menu 2023-03-03 08:48:10 +02:00
Tudor Stanciu f6fbdd94f7 @flare/tuitio-client-react 2023-02-15 01:25:18 +02:00
Tudor Stanciu 4ad8c1657d license 2023-02-14 01:45:11 +02:00
Tudor Stanciu 79c71f86b8 login with enter key 2023-02-14 01:44:07 +02:00
Tudor Stanciu 7f6056baf4 @flare/tuitio-react-client 2023-02-14 01:36:06 +02:00
Tudor Stanciu e1c4b2ca04 removed REACT_APP_NETWORK_RESURRECTOR_SERVER_URL 2023-02-07 00:45:03 +02:00
Tudor Stanciu 3f94695d79 tuitio 2023-02-05 00:44:52 +02:00
Tudor Stanciu 8856f25eac [1.1.2] 2023-02-04 13:33:39 +02:00
Tudor Stanciu aae42cb2f9 remove old scripts 2023-02-04 13:27:41 +02:00
Tudor Stanciu 4f35866f99 remove old notes 2023-02-04 13:25:53 +02:00
Tudor Stanciu 51a7e0faa9 tuitio url 2023-02-04 13:24:19 +02:00
Tudor Stanciu 446e00cab4 fix 2023-01-30 00:50:00 +02:00
Tudor Stanciu 0907c9cedd use functions from @flare/js-utils 2023-01-30 00:48:47 +02:00
Tudor Stanciu 75f7caf2cc dockerfile: node:12-slim => node:14-slim 2022-12-29 23:09:44 +02:00
Tudor Stanciu 24da81ba6e gitignore update 2022-12-29 22:47:39 +02:00
Tudor Stanciu 7944369541 set new domain in configs 2022-12-29 22:47:15 +02:00
Tudor Stanciu c75bf4f9fe remove secrets from source code 2022-11-22 19:39:58 +02:00
Tudor Stanciu f5412469eb Revert "version change"
This reverts commit af78b1862c.
2022-05-14 20:59:41 +03:00
Tudor Stanciu af78b1862c version change 2022-05-14 20:37:26 +03:00
Tudor Stanciu 48b7d3a3ed release script fix 2022-05-09 03:46:23 +03:00
Tudor Stanciu 3bbdb6439a package-lock.json update 2022-05-09 03:25:46 +03:00
Tudor Stanciu 7977367015 1.1.0 2022-05-09 03:06:52 +03:00
Tudor Stanciu 83cdcd1e07 1.1.0 2022-05-09 03:03:00 +03:00
Tudor Stanciu 4b26834425 removed REACT_APP_NETWORK_RESURRECTOR_SERVER_URL from env prod 2022-05-09 01:35:59 +03:00
Tudor Stanciu 29b3f2fc23 author info in package json 2022-05-09 01:34:33 +03:00
Tudor Stanciu 74754e6ba8 @flare/js-utils using 2022-05-09 01:24:52 +03:00
Tudor Stanciu 49b529e671 FIX: Autoprefixer is no longer needed for your stylesheet. 2022-05-08 22:06:42 +03:00
Tudor Stanciu 80b8314106 audit fix 2022-05-08 22:01:13 +03:00
Tudor Stanciu fe7f4132bc Added "@flare/js-utils" from my node registry 2022-05-08 21:14:46 +03:00
Tudor Stanciu 36950175d2 build and release scripts 2022-01-18 19:09:29 +02:00
Tudor Stanciu 8606d8e573 version change 1.0.3 2022-01-18 19:00:47 +02:00
Tudor Stanciu 8eb5f0caa0 Shutdown and restart actions 2022-01-18 17:18:30 +02:00
Tudor Stanciu 5536cddf1b handleError fix 2022-01-18 14:56:18 +02:00
Tudor Stanciu c4ae08f558 useApi fix 2022-01-18 14:26:36 +02:00
Tudor Stanciu c7576a08c2 useApi changes 2022-01-18 14:08:04 +02:00
Tudor Stanciu 0d611d2eb8 removed network resurrector server dependency 2022-01-18 10:21:30 +02:00
Tudor Stanciu b2aa4b3745 f 2021-08-15 03:29:15 +03:00
Tudor Stanciu 1d3bdd6f0a notes update 2021-04-25 00:39:36 +03:00
Tudor Stanciu dfde7c9dec env prod update 2021-04-24 22:44:28 +03:00
Tudor Stanciu 8c6c76b329 msToMinAndSec 2021-04-21 22:52:06 +03:00
Tudor Stanciu 9780b42cd1 disable periodic ping for stopped machines 2021-04-18 18:37:48 +03:00
Tudor Stanciu 18d05c5dcb Machine.PoweredOn 2021-04-18 01:57:48 +03:00
Tudor Stanciu c704d1fe37 REACT_APP_MACHINE_PING_INTERVAL 2021-04-18 01:53:32 +03:00
Tudor Stanciu f66a005b88 REACT_APP_MACHINE_PING_INTERVAL 2021-04-18 01:52:27 +03:00
Tudor Stanciu b1e0b4520f wake component update 2021-04-18 01:35:28 +03:00
Tudor Stanciu 647daee657 wake component 2021-04-17 23:31:35 +03:00
Tudor Stanciu 5e7aa9bbc7 MAC 2021-04-17 22:59:42 +03:00
Tudor Stanciu e3dc3dc18b translations 2021-04-17 20:37:13 +03:00
Tudor Stanciu 1ed2ff01ee logs 2021-04-17 18:45:56 +03:00
Tudor Stanciu 385f3522ad refactor 2021-04-17 18:28:04 +03:00
Tudor Stanciu 896f56b3dd fix 2021-04-17 17:34:41 +03:00
Tudor Stanciu 7b01d3d102 log screen 2021-04-17 17:33:29 +03:00
Tudor Stanciu 8250f361df fix 2021-04-17 14:07:53 +03:00
Tudor Stanciu e9c7bacb06 call server 2021-04-17 03:21:43 +03:00
Tudor Stanciu 964ceb9372 actions 2021-04-17 03:05:52 +03:00
Tudor Stanciu c1caa61862 removed component 2021-04-17 02:55:38 +03:00
Tudor Stanciu c129b4c0e4 changed folders structure 2021-04-17 02:53:46 +03:00
Tudor Stanciu b7bd9b6206 machine actions 2021-04-17 02:39:05 +03:00
Tudor Stanciu 93fdc26886 changed accordion with table 2021-04-17 02:21:49 +03:00
Tudor Stanciu e966a54833 handleReadMachines 2021-04-16 02:22:24 +03:00
Tudor Stanciu 13ab8266c9 network component 2021-04-16 02:04:29 +03:00
Tudor Stanciu 54a75c104d styles changes 2021-04-16 01:53:20 +03:00
Tudor Stanciu 1d71710888 read machines and set the result to state 2021-04-16 00:55:18 +03:00
Tudor Stanciu 74b397b966 Updated docker-notes.txt 2021-02-01 21:20:40 +00:00
Tudor Stanciu ff50554b77 docker notes update 2021-01-11 00:38:12 +02:00
Tudor Stanciu b6745b60f4 docker file and notes update 2020-12-27 00:05:21 +02:00
Tudor Stanciu 85387c15fe docker support 2020-12-26 02:27:53 +02:00
Tudor Stanciu a134c36553 user changed notification 2020-12-24 18:39:28 +02:00
Tudor Stanciu 2d53a734d4 login step update 2020-12-24 18:22:07 +02:00
Tudor Stanciu 84d9fda15d Merged PR 20: logout
- logout
- login style fix
2020-12-24 15:00:19 +00:00
Tudor Stanciu 4286b55d57 Merged PR 19: login step update
login step update
2020-12-24 14:48:43 +00:00
Tudor Stanciu 86008a470a login style fix 2020-12-24 16:48:22 +02:00
Tudor Stanciu 8580f10b0a logout 2020-12-24 16:13:10 +02:00
Tudor Stanciu cff580648a login step update 2020-12-24 15:56:30 +02:00
Tudor Stanciu 6378246286 login page update 2020-12-24 13:16:53 +02:00
Tudor Stanciu 2cc5a31675 initial state fix 2020-12-24 05:48:42 +02:00
Tudor Stanciu 0fbf9d3288 login fields fix 2020-12-24 05:35:05 +02:00
Tudor Stanciu e9c38a5fbc login step update 2020-12-24 05:32:35 +02:00
Tudor Stanciu 80f9e63a9b added react-toastify and updated identity integration 2020-12-24 04:42:32 +02:00
Tudor Stanciu 3fea7708c4 login step refactor 2020-12-24 02:39:48 +02:00
Tudor Stanciu 324c35f7f4 fix 2020-12-24 02:29:07 +02:00
Tudor Stanciu bcee2da91f steps translation 2020-12-24 02:27:29 +02:00
Tudor Stanciu e19b4f6d5c language change feature 2020-12-24 02:21:45 +02:00
Tudor Stanciu 0adbf9af72 removed unused code 2020-12-23 10:42:20 +02:00
Tudor Stanciu 30510d9a73 set token on http requests 2020-12-23 10:39:44 +02:00
Tudor Stanciu 9fa3091ab1 login 2020-12-23 03:37:26 +02:00
Tudor Stanciu 68467cdf4c added axios 2020-12-23 02:52:33 +02:00
Tudor Stanciu 7b3dceac74 translation fix 2020-12-23 02:32:17 +02:00
Tudor Stanciu df9c92d909 added i18next translation 2020-12-23 02:24:38 +02:00
Tudor Stanciu 4b07aae6bc network page 2020-12-23 01:51:23 +02:00
Tudor Stanciu 5f7467e50c NetworkContainer 2020-12-19 15:51:32 +02:00
Tudor Stanciu 22ddc002dd state system 2020-12-19 04:22:38 +02:00
Tudor Stanciu e49aea0c7e application state 2020-12-19 03:38:04 +02:00
Tudor Stanciu 22b301d295 PasswordField component 2020-12-19 03:12:10 +02:00
Tudor Stanciu dd264f79c1 settings step 2020-12-19 02:28:20 +02:00
Tudor Stanciu 549984e67e stepper style update 2020-12-19 02:14:09 +02:00
Tudor Stanciu 653aa1b3f6 main fix 2020-12-19 02:09:35 +02:00
Tudor Stanciu 9a25cb6f93 removed app.css 2020-12-19 02:08:36 +02:00
Tudor Stanciu e94195aa69 remove tests 2020-12-19 01:53:43 +02:00
Tudor Stanciu 91f6e04a9a stepper configurable icons 2020-12-19 01:47:14 +02:00
Tudor Stanciu 7724744588 useStepIconStyles 2020-12-19 01:33:29 +02:00
Tudor Stanciu 43ca37649c StepIcon 2020-12-19 01:33:06 +02:00
Tudor Stanciu 0409ab947e CustomStepConnector 2020-12-19 01:30:55 +02:00
Tudor Stanciu b26f41b128 Rename StepperConnector 2020-12-19 01:30:03 +02:00
Tudor Stanciu 9c2ed89f6e added new stepper - stepper with icons 2020-12-19 01:28:53 +02:00
Tudor Stanciu bbdd246d31 stepper fix 2020-12-19 00:46:02 +02:00
Tudor Stanciu 3d7998dd8c layout fix 2020-12-16 03:29:48 +02:00
Tudor Stanciu a88a89df49 layout fix 2020-12-16 03:25:25 +02:00
Tudor Stanciu d6dde2e517 stepper fix 2020-12-16 03:14:50 +02:00
Tudor Stanciu 66721d451a Added stepper 2020-12-16 03:09:24 +02:00
Tudor Stanciu 9c0dfd68fb Added router 2020-12-16 02:34:07 +02:00
Tudor Stanciu cc316b898d Login component update 2020-12-16 01:29:56 +02:00
Tudor Stanciu 3e8df6c48e Changed favicon; Added login container 2020-12-08 03:03:15 +02:00
Tudor Stanciu 5f96457847 prettier format 2020-12-08 02:41:21 +02:00
Tudor Stanciu f5daf82c7e Added Material UI 2020-12-08 02:34:58 +02:00
Tudor Stanciu bfdb3e866b Initialize project using Create React App 2020-12-08 02:05:31 +02:00
349 changed files with 22373 additions and 6 deletions

View File

View File

@ -1,7 +1,7 @@
<Project>
<Import Project="dependencies.props" />
<PropertyGroup>
<Version>1.2.5</Version>
<Version>1.2.7</Version>
<Authors>Tudor Stanciu</Authors>
<Company>STA</Company>
<PackageTags>NetworkResurrector</PackageTags>

View File

@ -188,6 +188,17 @@
<Content>
General improvements
• Added environment variables support for frontend.
• From now on, there is no hardcoded URL in the source code of the application.
</Content>
</Note>
<Note>
<Version>1.2.7</Version>
<Date>2023-05-07 00:52</Date>
<Content>
Cache reset support
• A new permission called "System administration" has been added.
• The cache can now be reset from UI by a user who has "System administration" permission.
• Updated menu component to permanently display the selected item.
</Content>
</Note>
</ReleaseNotes>

View File

@ -0,0 +1,28 @@
using MediatR;
using Microsoft.Extensions.Logging;
using Netmash.Extensions.Caching.Services;
using NetworkResurrector.Api.PublishedLanguage.Commands;
using NetworkResurrector.Api.PublishedLanguage.Dto;
using System.Threading;
using System.Threading.Tasks;
namespace NetworkResurrector.Api.Application.CommandHandlers
{
internal class ResetCacheHandler : IRequestHandler<ResetCache, CommandResult>
{
private readonly ILogger<CancelMachineHandler> _logger;
private readonly ICacheService _cache;
public ResetCacheHandler(ILogger<CancelMachineHandler> logger, ICacheService cache)
{
_logger=logger;
_cache=cache;
}
public async Task<CommandResult> Handle(ResetCache request, CancellationToken cancellationToken)
{
_cache.Reset();
return await Task.FromResult(new CommandResult());
}
}
}

View File

@ -1,4 +1,5 @@
using MediatR;
using Microsoft.Extensions.Logging;
using NetworkResurrector.Server.Wrapper.Services;
using System;
using System.IO;
@ -23,21 +24,23 @@ namespace NetworkResurrector.Api.Application.Queries
public class QueryHandler : IRequestHandler<Query, Model>
{
private readonly IResurrectorService _resurrectorService;
private readonly ILogger<GetSystemVersion> _logger;
public QueryHandler(IResurrectorService resurrectorService)
public QueryHandler(IResurrectorService resurrectorService, ILogger<GetSystemVersion> logger)
{
_resurrectorService=resurrectorService;
_logger=logger;
}
public async Task<Model> Handle(Query request, CancellationToken cancellationToken)
{
var serverVersion = await _resurrectorService.GetServiceVersion();
var apiVersion = GetApiVersion();
var serverVersion = await GetServerVersion();
var result = new Model
{
Api = apiVersion,
Server = new ServiceVersion(serverVersion.Version, serverVersion.LastReleaseDate)
Server = serverVersion
};
return result;
@ -60,6 +63,20 @@ namespace NetworkResurrector.Api.Application.Queries
var result = new ServiceVersion(version, lastReleaseDate);
return result;
}
private async Task<ServiceVersion> GetServerVersion()
{
try
{
var serverVersion = await _resurrectorService.GetServiceVersion();
return new ServiceVersion(serverVersion.Version, serverVersion.LastReleaseDate);
}
catch (Exception ex)
{
_logger.LogError(ex, "Server version could not be obtained.");
}
return new ServiceVersion("0.0.0", DateTime.MinValue);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More