first commit

This commit is contained in:
2025-01-23 01:12:17 +03:00
parent 651afd6e36
commit 1b09267e47
27 changed files with 4274 additions and 0 deletions

16
views/index.pug Normal file
View File

@@ -0,0 +1,16 @@
html
head
title Личный кабинет
body
h1 Личный кабинет
p Имя пользователя: #{username}
p Скин:
form(method="post" enctype="multipart/form-data" action="/api/uploadskin")
input(type="file" name="file")
input(type="submit" value="Загрузить")
if can_have_cloak
p Плащ:
form(method="post" enctype="multipart/form-data" action="/api/uploadCape")
input(type="file", name="file")
input(type="submit", value="Загрузить")
a(href="/api/logout") Выйти

29
views/login.pug Normal file
View File

@@ -0,0 +1,29 @@
html
head
title Вход
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no")
meta(name="description" content="")
link(href="css/particles.css" rel="stylesheet")
link(href="css/auth.css" rel="stylesheet")
body
div(id="tsparticles")
main(class="box")
h2 Вход
form(method="post", action="/api/login")
div(class="inputBox")
label(for="username") Ник
input(type="text" name="username" id="username" placeholder="ваш ник на сервере" required=true)
div(class="inputBox")
label(for="password") Пароль
input(type="password" name="password" id="password" placeholder="ваш пароль" required=true)
div
button(type="submit" name="" style="float: left;") Войти
a(class="button" href="register" style="float: left;") Регистрация
script(src="https://cdn.jsdelivr.net/npm/tsparticles@1.34.1/tsparticles.min.js" integrity="sha256-D6LXCdCl4meErhc25yXnxIFUtwR96gPo+GtLYv89VZo=" crossorigin="anonymous")
script(type="text/javascript" src="js/particles.js")

32
views/register.pug Normal file
View File

@@ -0,0 +1,32 @@
html
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no")
meta(name="description" content="")
link(href="css/particles.css" rel="stylesheet")
link(href="css/auth.css" rel="stylesheet")
title Регистрация
body
div(id="tsparticles")
main(class="box")
h2 Регистрация
form(action="/api/register" method="POST")
div(class="inputBox")
label(for="username") Ник
input(type="text" name="username" id="username" placeholder="ваш ник на сервере" required)
div(class="inputBox")
label(for="password") Пароль
input(type="password" name="password" id="password" placeholder="ваш пароль" required)
div(class="inputBox")
label(for="passwordConfirm") Повтор пароля
input(type="password" name="passwordConfirm" id="passwordConfirm" placeholder="повторите пароль" required)
if require_token
div(class="inputBox")
label(for="inviteToken") Токен приглашения
input(type="text" name="inviteToken" id="inviteToken" placeholder="код приглашения" required)
button(type="submit" name="" style="float: left;") Зарегистрироваться
a(class="button" href="login" style="float: left;") Войти
script(src="https://cdn.jsdelivr.net/npm/tsparticles@1.34.1/tsparticles.min.js" integrity="sha256-D6LXCdCl4meErhc25yXnxIFUtwR96gPo+GtLYv89VZo=" crossorigin="anonymous")
script(type="text/javascript" src="js/particles.js")