From a337ca8a5fbc329b470ad47a77788812208e7f64 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 3 Jul 2025 01:21:37 -0400 Subject: [PATCH] configuration frontend is probably fine --- WebInterface/Views/Configuration/Index.cshtml | 127 +++++++++++++----- 1 file changed, 94 insertions(+), 33 deletions(-) diff --git a/WebInterface/Views/Configuration/Index.cshtml b/WebInterface/Views/Configuration/Index.cshtml index 12751be..a2b6473 100644 --- a/WebInterface/Views/Configuration/Index.cshtml +++ b/WebInterface/Views/Configuration/Index.cshtml @@ -1,28 +1,88 @@ @model vassago.Models.Configuration +@using Newtonsoft.Json; +@using vassago.Behavior; @{ } home/configuration - + +
- - + + + @{ + if(Model.DiscordTokens != null) for(var i = 0; i < Model.DiscordTokens.Count; i++) + { + Html.Raw(""); + Html.Raw($""); + Html.Raw($""); + Html.Raw(""); + } + } + + + + - - + + + @{ + if(Model.TwitchConfigs != null) for(var i = 0; i < Model.TwitchConfigs.Count; i++) + { + Html.Raw(""); + Html.Raw($""); + Html.Raw(""); + Html.Raw(""); + } + } + + + - - + + + @{ + if(Model.Webhooks != null) for(var i = 0; i< Model.Webhooks.Count; i++) + { + var wh = JsonConvert.DeserializeObject(Model.Webhooks[i]); + + + + + } + } + + + + + + + @@ -36,30 +96,31 @@ + + +
Discord
Discord
+ +
-
Twitch
Twitch
"); + Html.Raw(""); + Html.Raw(""); + Html.Raw("
+ +
Webhooks
Webhooks
+ + + + + + +
+ +
- - -@section Scripts{ - -} + + +
+ + + +
+
+ +
+ + + + +
+
+ +
+ + + +
+