Added error handling for cloud panel. Added pager to admin domain overview. Chnagelog
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
@using Moonlight.App.Exceptions
|
@using Moonlight.App.Exceptions
|
||||||
@using Moonlight.App.Services
|
@using Moonlight.App.Services
|
||||||
@using Logging.Net
|
@using Logging.Net
|
||||||
|
@using Moonlight.App.ApiClients.CloudPanel
|
||||||
@inherits ErrorBoundaryBase
|
@inherits ErrorBoundaryBase
|
||||||
|
|
||||||
@inject AlertService AlertService
|
@inject AlertService AlertService
|
||||||
@@ -62,11 +63,11 @@ else
|
|||||||
|
|
||||||
Logger.Warn($"Wings exception status code: {wingsException.StatusCode}");
|
Logger.Warn($"Wings exception status code: {wingsException.StatusCode}");
|
||||||
}
|
}
|
||||||
else if (exception is PleskException pleskException)
|
else if (exception is CloudPanelException cloudPanelException)
|
||||||
{
|
{
|
||||||
await AlertService.Error(
|
await AlertService.Error(
|
||||||
SmartTranslateService.Translate("Error from plesk"),
|
SmartTranslateService.Translate("Error from cloud panel"),
|
||||||
pleskException.Message
|
cloudPanelException.Message
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (exception is NotImplementedException)
|
else if (exception is NotImplementedException)
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
</DeleteButton>
|
</DeleteButton>
|
||||||
</Template>
|
</Template>
|
||||||
</Column>
|
</Column>
|
||||||
|
<Pager ShowPageNumber="true" ShowTotalCount="true"/>
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,6 +3,23 @@
|
|||||||
@{
|
@{
|
||||||
List<string[]> changelog = new List<string[]>
|
List<string[]> changelog = new List<string[]>
|
||||||
{
|
{
|
||||||
|
new[]
|
||||||
|
{
|
||||||
|
"Patch 4, 19.04.2023",
|
||||||
|
"Switched from plesk to cloud panel (fuck you plesk ;) )",
|
||||||
|
"Domain regex fix",
|
||||||
|
"Hide create button on not auth state"
|
||||||
|
},
|
||||||
|
new[]
|
||||||
|
{
|
||||||
|
"Patch 3, 16.04.2023",
|
||||||
|
"Fixed server allocation bug"
|
||||||
|
},
|
||||||
|
new[]
|
||||||
|
{
|
||||||
|
"Patch 2, 16.04.2023",
|
||||||
|
"Fixed xterm addons"
|
||||||
|
},
|
||||||
new[]
|
new[]
|
||||||
{
|
{
|
||||||
"Patch 1, 16.04.2023",
|
"Patch 1, 16.04.2023",
|
||||||
@@ -12,16 +29,6 @@
|
|||||||
"Backup error handling improved",
|
"Backup error handling improved",
|
||||||
"Client side javascript sorted",
|
"Client side javascript sorted",
|
||||||
"Sorted user server list implemented"
|
"Sorted user server list implemented"
|
||||||
},
|
|
||||||
new[]
|
|
||||||
{
|
|
||||||
"Patch 2, 16.04.2023",
|
|
||||||
"Fixed xterm addons"
|
|
||||||
},
|
|
||||||
new[]
|
|
||||||
{
|
|
||||||
"Patch 3, 16.04.2023",
|
|
||||||
"Fixed server allocation bug"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user