From 9648ea563be9424195dd9148d1a33cc6827cda1a Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Sun, 7 Jul 2024 14:22:10 -0400 Subject: [PATCH] compiles, needs db update --- Models/User.cs | 3 ++ WebInterface/Views/Users/Details.cshtml | 65 ++++++++++++++++++++----- wwwroot/js/site.js | 8 +-- 3 files changed, 60 insertions(+), 16 deletions(-) diff --git a/Models/User.cs b/Models/User.cs index 92437b4..f856fad 100644 --- a/Models/User.cs +++ b/Models/User.cs @@ -11,6 +11,9 @@ public class User public Guid Id { get; set; } public List Accounts { get; set; } + //if I ever get lots and lots of tags, or some automatic way to register a feature's arbitrary tags, then I can move this off. + public bool Tag_CanTwitchSummon { get; set; } + public string DisplayName { get diff --git a/WebInterface/Views/Users/Details.cshtml b/WebInterface/Views/Users/Details.cshtml index bbda543..8e0a786 100644 --- a/WebInterface/Views/Users/Details.cshtml +++ b/WebInterface/Views/Users/Details.cshtml @@ -1,21 +1,62 @@ @model User +@using System.Text @{ ViewData["Title"] = "User details"; } + + + + + + + + + + + + + + + +
Display Name@Model.DisplayName
Accounts +
+
Permission Tags +
+
-User @Model.DisplayName
-
-
+@section Scripts{ + + } - diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 8bc0b3a..afe475b 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -2,10 +2,10 @@ // for details on configuring this project to bundle and minify static web assets. // Write your JavaScript code. - -function testfunct(caller){ - console.log("[gibberish]"); - console.log(caller); +function Account(displayName, accountId, protocol){ + this.displayName = displayName; + this.accountId = accountId; + this.protocol = protocol; } //todo: figure out what the URL actually needs to be, rather than assuming you get a whole-ass server to yourself. //you selfish fuck... What are you, fox?