mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
02e2e402c3
As the title says, this commit is a massive overhaul. I've rewritten/restrucuted almost everything in the controller scripts. Because of that, there's a considerable possibility that I've broken something somewhere. Notable changes: Added temporary uploads. Removed file name length changer from dashboard, in favor of an equivalent in homepage config tab. This allows non-registered users to also set file name length. A bunch of other undocmented stuff. I don't know, I'm too tired to remember them all.
95 lines
2.9 KiB
Plaintext
95 lines
2.9 KiB
Plaintext
{% extends "_layout.njk" %}
|
|
|
|
{% block stylesheets %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="libs/fontello/fontello.css?v={{ globals.v3 }}">
|
|
<link rel="stylesheet" href="css/sweetalert.css?v={{ globals.v1 }}">
|
|
<link rel="stylesheet" href="css/thumbs.css?v={{ globals.v1 }}">
|
|
<link rel="stylesheet" href="css/dashboard.css?v={{ globals.v1 }}">
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src="libs/sweetalert/sweetalert.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="libs/axios/axios.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="libs/clipboard.js/clipboard.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="libs/lazyload/lazyload.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="js/dashboard.js?v={{ globals.v1 }}"></script>
|
|
<script src="js/s/utils.js?v={{ globals.v1 }}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<section id="dashboard" class="section">
|
|
<div id="panel" class="container">
|
|
<h1 class="title">
|
|
Dashboard
|
|
</h1>
|
|
<h1 class="subtitle">
|
|
A simple <strong>dashboard</strong>, to sort your uploaded stuff
|
|
</h1>
|
|
<hr>
|
|
|
|
<div class="columns">
|
|
<div class="column is-one-quarter">
|
|
<aside id="menu" class="menu">
|
|
<p class="menu-label">General</p>
|
|
<ul class="menu-list">
|
|
<li>
|
|
<a href=".">Frontpage</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemUploads">Uploads</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemDeleteByNames">Delete by names</a>
|
|
</li>
|
|
</ul>
|
|
<p class="menu-label">Albums</p>
|
|
<ul class="menu-list">
|
|
<li>
|
|
<a id="itemManageGallery">Manage your albums</a>
|
|
</li>
|
|
<li>
|
|
<ul id="albumsContainer"></ul>
|
|
</li>
|
|
</ul>
|
|
<p id="itemLabelAdmin" class="menu-label" style="display: none">Administration</p>
|
|
<ul id="itemListAdmin" class="menu-list" style="display: none">
|
|
<li>
|
|
<a id="itemServerStats">Statistics</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageUploads">Manage uploads</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageUsers">Manage users</a>
|
|
</li>
|
|
</ul>
|
|
<p class="menu-label">Configuration</p>
|
|
<ul class="menu-list">
|
|
<li>
|
|
<a id="ShareX">ShareX user profile</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemTokens">Manage your token</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemPassword">Change your password</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemLogout">Logout</a>
|
|
</li>
|
|
</ul>
|
|
</aside>
|
|
</div>
|
|
<div id="page" class="column has-text-centered is-third-quarters">
|
|
<img alt="logo" src="images/logo.png?v={{ globals.v2 }}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% include "_partial/noscript.njk" %}
|
|
{% endblock %}
|