Redesigned the DiscordBotCore by splitting it into multiple projects. Created a WebUI and preparing to remove the DiscordBot application

This commit is contained in:
2025-04-04 22:07:30 +03:00
parent 62ba5ec63d
commit a4afb28f36
2290 changed files with 76694 additions and 17052 deletions

View File

@@ -0,0 +1,30 @@
@model SettingsViewModel
@{
ViewData["Title"] = "Settings";
}
<h2>@ViewData["Title"]</h2>
<form asp-action="SaveSettings" method="post">
<div class="form-group">
<label for="Token">Token</label>
<input type="text" class="form-control" id="Token" name="Token" value="@Model.Token" />
@Html.ValidationMessageFor(model => model.Token, "", new { @class = "text-danger" })
</div>
<div class="form-group">
<label for="Prefix">Prefix</label>
<input type="text" class="form-control" id="Prefix" name="Prefix" value="@Model.Prefix" />
@Html.ValidationMessageFor(model => model.Prefix, "", new { @class = "text-danger" })
</div>
<div class="form-group">
<label for="ServerIds">Server IDs</label>
<textarea class="form-control" id="ServerIds" name="ServerIds" rows="5">@string.Join(",", Model.ServerIds)</textarea>
@Html.ValidationMessageFor(model => model.ServerIds, "", new { @class = "text-danger" })
<small class="form-text text-muted">Enter server IDs separated by commas.</small>
</div>
<button type="submit" class="btn btn-primary">Save</button>
</form>