mirror of
https://github.com/SileNce5k/discord_bot_mgmt.git
synced 2025-05-01 08:50:49 +02:00
Initial Commit
Just the very very basics are there now. It is not usable at all yet though.
This commit is contained in:
commit
c0af804da1
15 changed files with 2000 additions and 0 deletions
78
frontend/public/css/main.css
Normal file
78
frontend/public/css/main.css
Normal file
|
@ -0,0 +1,78 @@
|
|||
|
||||
body {
|
||||
background-color: #262626;
|
||||
color: #dedede;
|
||||
font-size: 40px;
|
||||
text-align: center;
|
||||
font-family: "Verdana, Geneva, Tahoma, sans-serif";
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
min-height: 100svh;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
a {
|
||||
color: #dedede;
|
||||
}
|
||||
a:visited {
|
||||
color: #dedede;
|
||||
}
|
||||
|
||||
#nav {
|
||||
/*margin-top:20%;*/
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
#links p {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#incorrect-login{
|
||||
color: #862121;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#check01, ul.dropdown-submenu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.dropdown-label {
|
||||
font-size: 20px;
|
||||
display: inherit;
|
||||
cursor: pointer;
|
||||
background: #6a6a6a;
|
||||
width: 100px;
|
||||
color: white;
|
||||
padding: 10px;
|
||||
font-weight: bolder;
|
||||
position: absolute;
|
||||
border-radius: 12px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#check01:checked~ul.dropdown-submenu {
|
||||
display: inherit;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.user-dropdown{
|
||||
display:flex;
|
||||
top: 8%;
|
||||
right: 10%;
|
||||
position: absolute;
|
||||
}
|
28
frontend/views/dashboard.ejs
Normal file
28
frontend/views/dashboard.ejs
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Discord Bot Management</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="dashboard">
|
||||
<h1 class="dashboard-title">Dashboard</h1>
|
||||
<div class="user-dropdown">
|
||||
<input id="check01" type="checkbox" name="menu" />
|
||||
<label class="dropdown-label" for="check01">
|
||||
<%= user.username %>
|
||||
</label>
|
||||
<ul class="dropdown-submenu">
|
||||
<li><a href="/users/<%= user.user_id %>/settings">Settings</a></li>
|
||||
<li><a href="/logout">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<%= footer %>
|
||||
</body>
|
||||
|
||||
</html>
|
15
frontend/views/index.ejs
Normal file
15
frontend/views/index.ejs
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Discord Bot Management</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
14
frontend/views/invalid_login.ejs
Normal file
14
frontend/views/invalid_login.ejs
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Discord Bot Control Panel</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Not logged in</h1>
|
||||
<p>Please <a href="/login">login</a> before you can access the control panel.</p>
|
||||
<p>Register <a href="/register">here</a></p>
|
||||
</body>
|
||||
</html>
|
19
frontend/views/login.ejs
Normal file
19
frontend/views/login.ejs
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>dbot MGMT Login</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/v1/login" method="post">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" size="29" required>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" size="29" required > <br/>
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
20
frontend/views/login_incorrect.ejs
Normal file
20
frontend/views/login_incorrect.ejs
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>dbot MGMT Login</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/v1/login" method="post">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" size="29" required>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" size="29" required ><br/>
|
||||
<input type="submit" value="Login">
|
||||
<p id="incorrect-login">Username or password incorrect</p>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
15
frontend/views/logout.ejs
Normal file
15
frontend/views/logout.ejs
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Discord Bot Management</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Logging out...</h1>
|
||||
</body>
|
||||
|
||||
</html>
|
21
frontend/views/register.ejs
Normal file
21
frontend/views/register.ejs
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>dbot MGMT Registration</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/v1/register" method="post" >
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" size="29" required>
|
||||
<label for="email" name="email">Email</label>
|
||||
<input type="email" name="email" size="29" required>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" size="29" required >
|
||||
<input type="submit" value="Register">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
22
frontend/views/register_missing.ejs
Normal file
22
frontend/views/register_missing.ejs
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>dbot MGMT Registration</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/v1/register" method="post">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" size="29" required>
|
||||
<label for="email" name="email">Email</label>
|
||||
<input type="email" name="email" size="29" required>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" size="29" required >
|
||||
<p>Missing information, Please enter all the required information.</p>
|
||||
<input type="submit" value="Register">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
15
frontend/views/user_settings.ejs
Normal file
15
frontend/views/user_settings.ejs
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Discord Bot Management</title>
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>This will be the user settings user id:<%= id %></p>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue