Make the pages more consistent

This commit is contained in:
Telesphoreo 2022-04-18 17:02:08 -05:00
parent cbc7907aea
commit 7760eb6ff2
11 changed files with 72 additions and 11 deletions

View file

@ -66,6 +66,10 @@ publishing {
}
tasks.getByName<Jar>("jar") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName.set("Plex-HTTPD")
archiveVersion.set("")
from("src/main/resources") {
exclude("dev/**")
}
}

View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<title>${TITLE} - Plex HTTPD</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="/">Plex HTTPD</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link ${ACTIVE_HOME}" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link ${ACTIVE_ADMINS}" href="/api/admins/">Admins</a>
</li>
<li class="nav-item">
<a class="nav-link ${ACTIVE_INDEFBANS}" href="/api/indefbans/">Indefinite Bans</a>
</li>
<li class="nav-item">
<a class="nav-link ${ACTIVE_LIST}" href="/api/list/">List</a>
</li>
<li class="nav-item">
<a class="nav-link ${ACTIVE_PUNISHMENTS}" href="/api/punishments/">Punishments</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle ${ACTIVE_SCHEMATICS}" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Schematics
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="/api/schematics/download/">Download</a></li>
<li><a class="dropdown-item" href="/api/schematics/upload/">Upload</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div style="text-align: center;" class="col-auto m-0 row justify-content-center p-4">
</div>
</body>
</html>

View file

@ -1,4 +1,4 @@
Admins
ADMINS
<h2>Plex HTTPD</h2>
<h2>Admins</h2>
<h5 class="alert alert-danger mb-3 w-auto p-3" role="alert"><b>Error:</b> ${MESSAGE}</h5>

View file

@ -1,4 +1,4 @@
Indefinite Bans
INDEFBANS
<h2>Plex HTTPD</h2>
<h2>Indefinite Bans</h2>
<h5 class="alert alert-danger mb-3 w-auto p-3" role="alert"><b>Error:</b> ${MESSAGE}</h5>

View file

@ -1,6 +1,7 @@
Punishments
PUNISHMENTS
<h2>Enter the UUID or username of the player you want to lookup</h2>
<h2>Punishment Search</h2>
<label for="uuid"><h5>Enter the UUID or username of the player you want to lookup</h5></label>
<div class="input-group mb-3 w-75 p-3">
<input id="uuid" type="text" autocomplete="off" autofocus class="form-control">
<button class="btn btn-outline-primary" type="submit"

View file

@ -1,4 +1,4 @@
Punishments
PUNISHMENTS
<h2>Plex HTTPD</h2>
<h2>Punishment Search</h2>
<h5 class="alert alert-danger mb-3 w-auto p-3" role="alert"><b>Error:</b> ${MESSAGE}</h5>

View file

@ -1,4 +1,4 @@
Punishments
PUNISHMENTS
<h2>Plex HTTPD</h2>
<h2>Punishment Search</h2>
<h5 class="alert alert-success mb-3 w-auto p-3" role="alert">${MESSAGE}</h5>

View file

@ -1,7 +1,8 @@
Schematics
SCHEMATICS
<h2>Plex HTTPD</h2>
<h5>A list of schematics is below. You can click on the schematic name to download it.</h5>
<h2>Schematic Download</h2>
<label for="schemList"><h5>A list of schematics is below. You can click on the schematic name to download it.</h5>
</label>
<div class="input-group mb-3 w-75 p-3">
<input type="text" autocomplete="off" autofocus class="form-control" oninput="filterTable(this.value)"
placeholder="Search for a schematic...">

View file

@ -1,8 +1,8 @@
Schematics
SCHEMATICS
<h2>Plex HTTPD</h2>
<h2>Schematic Upload</h2>
<div class="cos-xs-8 col-lg-5">
<label for="formFile" class="form-label">Please select a schematic file to upload.</label>
<label for="formFile" class="form-label"><h5>Please select a schematic file to upload.</h5></label>
<form class="input-group justify-content-center" enctype="multipart/form-data" method="post"
action="/api/schematics/uploading">
<div class="input-group">

View file

@ -1,4 +1,4 @@
Schematics
SCHEMATICS
<h2>Plex HTTPD</h2>
<h2>Schematic Upload</h2>
<h5 class="alert alert-danger mb-3 w-auto p-3" role="alert"><b>Error:</b> ${MESSAGE}</h5>

View file

@ -1,4 +1,4 @@
Schematics
SCHEMATICS
<h2>Plex HTTPD</h2>
<h2>Schematic Upload</h2>
<h5 class="alert alert-success mb-3 w-auto p-3" role="alert">${MESSAGE}</h5>