-
+ @if (Model.DutyCompletionRecords != null)
+ {
+
@@ -63,6 +65,29 @@
@await Html.PartialAsync("_DutyTable", Model.DutyCompletionRecords!.Where(r => r.ContentType == "Exploration"))
-
-
+
+ }
+ else
+ {
+
+
+
+
+ @await Html.PartialAsync("_DeepDungeonTable", Model.DeepDungeonRecords!.Where(r => r.DeepDungeon == "The Palace of the Dead"))
+
+
+
+ @await Html.PartialAsync("_DeepDungeonTable", Model.DeepDungeonRecords!.Where(r => r.DeepDungeon == "Heaven-on-High"))
+
+
+ @await Html.PartialAsync("_DeepDungeonTable", Model.DeepDungeonRecords!.Where(r => r.DeepDungeon == "Eureka Orthos"))
+
+
+ }
diff --git a/Expedience.Web/Pages/Index.cshtml.cs b/Expedience.Web/Pages/Index.cshtml.cs
index 9b2d608..7be81da 100644
--- a/Expedience.Web/Pages/Index.cshtml.cs
+++ b/Expedience.Web/Pages/Index.cshtml.cs
@@ -1,9 +1,7 @@
-using Expedience.Infrastructure;
+using System;
using Expedience.Infrastructure.Models;
using Expedience.Web.Services;
using Microsoft.AspNetCore.Mvc.RazorPages;
-using System.Diagnostics;
-using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Expedience.Web.Pages
{
@@ -12,8 +10,9 @@ namespace Expedience.Web.Pages
private readonly IApiService _apiService;
public List
? DutyCompletionRecords { get; private set; }
+ public List? DeepDungeonRecords { get; private set; }
- public IndexModel(IApiService apiService)
+ public IndexModel(IApiService apiService)
{
_apiService = apiService;
}
@@ -22,7 +21,17 @@ namespace Expedience.Web.Pages
{
if (expac == null) expac = "EW";
- DutyCompletionRecords = await _apiService.GetDutyCompletionRecordsAsync(expac, cancellationToken);
+ if (expac == "DeepDungeons")
+ {
+ DutyCompletionRecords = null;
+ DeepDungeonRecords = await _apiService.GetDeepDungeonRecordsAsync(cancellationToken);
+ }
+ else
+ {
+ DutyCompletionRecords = await _apiService.GetDutyCompletionRecordsAsync(expac, cancellationToken);
+ DeepDungeonRecords = null;
+ }
+
}
}
}
\ No newline at end of file
diff --git a/Expedience.Web/Pages/Shared/_Layout.cshtml b/Expedience.Web/Pages/Shared/_Layout.cshtml
index 94f3905..ba497ed 100644
--- a/Expedience.Web/Pages/Shared/_Layout.cshtml
+++ b/Expedience.Web/Pages/Shared/_Layout.cshtml
@@ -27,22 +27,22 @@
diff --git a/Expedience.Web/Pages/_DeepDungeonTable.cshtml b/Expedience.Web/Pages/_DeepDungeonTable.cshtml
index 9dd4871..deeec56 100644
--- a/Expedience.Web/Pages/_DeepDungeonTable.cshtml
+++ b/Expedience.Web/Pages/_DeepDungeonTable.cshtml
@@ -4,7 +4,7 @@
@model IEnumerable
}
-
+
|
diff --git a/Expedience.Web/appsettings.Development.json b/Expedience.Web/appsettings.Development.json
index 3d085a4..dc4c888 100644
--- a/Expedience.Web/appsettings.Development.json
+++ b/Expedience.Web/appsettings.Development.json
@@ -6,5 +6,5 @@
"Microsoft.AspNetCore": "Debug"
}
},
- "BaseApiUrl": "https://localhost:7033"
+ "BaseApiUrl": "https://expedience-api.ilitirit.net"
}