mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-22 03:44:49 +01:00
admin panel work
This commit is contained in:
@@ -19,4 +19,12 @@ html {
|
||||
|
||||
body {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-bottom: 3px !important;
|
||||
}
|
||||
|
||||
p{
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Security System Controller</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/admin/assets/style.css">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
<body>
|
||||
{{navbar}}
|
||||
<div class="containter">
|
||||
<h1>Welcome to Nikke Private Server Admin Panel</h1>
|
||||
<p>There are no settings to display.</p>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,43 @@
|
||||
// Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
// for details on configuring this project to bundle and minify static web assets.
|
||||
|
||||
// Write your JavaScript code.
|
||||
function runCmd(cmdName, cb, p1, p2)
|
||||
{
|
||||
fetch("/adminapi/RunCmd", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
cmdName: cmdName,
|
||||
p1: p1,
|
||||
p2: p2
|
||||
}),
|
||||
headers: {
|
||||
"Content-type": "application/json; charset=UTF-8"
|
||||
}
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.then((json) => cb(json)).catch((error) => {
|
||||
alert(error)
|
||||
});
|
||||
}
|
||||
|
||||
function runSimpleCmd(cmdName, p1, p2)
|
||||
{
|
||||
runCmd(cmdName, function(json){
|
||||
if (json.ok)
|
||||
alert("Operation completed.")
|
||||
else
|
||||
alert("Error: " + json.error);
|
||||
}, p1, p2);
|
||||
}
|
||||
|
||||
function runSimpleCmdWithPr(cmdName, p1, p2Title)
|
||||
{
|
||||
let p2 = prompt(p2Title);
|
||||
if (p2 === undefined || p2 == null || p2 == "") return;
|
||||
runCmd(cmdName, function(json){
|
||||
if (json.ok)
|
||||
alert("Operation completed.")
|
||||
else
|
||||
alert("Error: " + json.error);
|
||||
}, p1, p2);
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<div class="navbar2">
|
||||
<a href="/admin/dashboard" class="navbar-item">Overview</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user