mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
8b4b0e79c5
Removed its dependency towards albums' editedAt property. Editing album's metas (name, description, etc) will no longer update its editedAt property. Instead it will now ONLY be updated when adding/removing files to/from it. Just like how it was meant to be, which was to be used to check whether it's necessary to re-generate their downloadable ZIPs. Albums public page cache will still be properly invalidated when adding/removing files to/from it, as well as after editing their metas. Added views/album-notice.njk to be used to render okay-ish notice when an album's public page is still being generated. I was originally thinking of using it for disabled albums as well, but I refrained from it to reduce the possibility of disabled album IDs from being easily scanned (as it just returns 404 now). Removed invalidatedAt property from stats cache. Instead their caches will immediately be nullified as they should (thus frees up memory slightly as well). Stats cache for albums will now only be cleared when truly necessary. As in, adding/removing files to/from albums will no longer clear them. Updated Nunjucks files to properly use h1, h2, h3 tags in actual hierarchical orders. Elements that don't need to use hX tags will now use P instead. Nothing changes visually, only structurally. Fixed some elements in Nunjucks using single quotes instead of double quotes. They'd have worked the same, but consistency. Added h1 title in FAQ page. Make text for no JS warning a bit bigger, and improved the phrasing a little bit.
109 lines
3.7 KiB
Plaintext
109 lines
3.7 KiB
Plaintext
{% set metaTitle = "Dashboard" %}
|
|
{% set metaUrl = '/dashboard' %}
|
|
|
|
{% extends "_layout.njk" %}
|
|
|
|
{% block stylesheets %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="libs/fontello/fontello.css{{ versions[1] }}">
|
|
<link rel="stylesheet" href="css/sweetalert.css{{ versions[1] }}">
|
|
<link rel="stylesheet" href="css/thumbs.css{{ versions[1] }}">
|
|
<link rel="stylesheet" href="css/dashboard.css{{ versions[1] }}">
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src="libs/sweetalert/sweetalert.min.js{{ versions[3] }}"></script>
|
|
<script src="libs/axios/axios.min.js{{ versions[3] }}"></script>
|
|
<script src="libs/clipboard.js/clipboard.min.js{{ versions[3] }}"></script>
|
|
<script src="libs/lazyload/lazyload.min.js{{ versions[3] }}"></script>
|
|
{# Polyfill smooth scroll for older browsers #}
|
|
<script src="libs/smoothscroll/smoothscroll.min.js{{ versions[3] }}"></script>
|
|
{# We assign an ID for this so that the script can find out its own version #}
|
|
<script id="mainScript" src="js/dashboard.js{{ versions[1] }}"></script>
|
|
<script src="js/misc/utils.js{{ versions[1] }}"></script>
|
|
{% endblock %}
|
|
|
|
{% block endmeta %}
|
|
{% include "_partial/noscript-refresh.njk" %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<section id="dashboard" class="section is-hidden">
|
|
<div id="panel" class="container">
|
|
<h1 class="title">
|
|
Dashboard
|
|
</h1>
|
|
<p class="subtitle">
|
|
A simple <strong>dashboard</strong>, to sort your uploaded stuff
|
|
</p>
|
|
<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 is-unselectable">
|
|
<li>
|
|
<a href="." class="is-relative">Frontpage</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemUploads" class="is-relative">Uploads</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemDeleteUploadsByNames" class="is-relative">Delete uploads by names</a>
|
|
</li>
|
|
</ul>
|
|
<p class="menu-label">Albums</p>
|
|
<ul class="menu-list is-unselectable">
|
|
<li>
|
|
<a id="itemManageYourAlbums" class="is-relative">Manage your albums</a>
|
|
</li>
|
|
<li>
|
|
<ul id="albumsContainer"></ul>
|
|
</li>
|
|
</ul>
|
|
<p id="itemLabelAdmin" class="menu-label is-hidden">Administration</p>
|
|
<ul id="itemListAdmin" class="menu-list is-unselectable is-hidden">
|
|
<li>
|
|
<a id="itemStatistics" class="is-relative is-hidden">Statistics</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageUploads" class="is-relative is-hidden">Manage uploads</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageAlbums" class="is-relative is-hidden">Manage albums</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageUsers" class="is-relative is-hidden">Manage users</a>
|
|
</li>
|
|
</ul>
|
|
<p class="menu-label">Configuration</p>
|
|
<ul class="menu-list is-unselectable">
|
|
<li>
|
|
<a id="ShareX" class="is-relative">ShareX user profile</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemManageToken" class="is-relative">Manage your token</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemChangePassword" class="is-relative">Change your password</a>
|
|
</li>
|
|
<li>
|
|
<a id="itemLogout" class="is-relative">Logout</a>
|
|
</li>
|
|
</ul>
|
|
</aside>
|
|
</div>
|
|
<div id="page" class="column has-text-centered is-third-quarters">
|
|
<img alt="logo" src="images/logo.png{{ versions[2] }}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% include "_partial/loader.njk" %}
|
|
{% include "_partial/noscript.njk" %}
|
|
{% endblock %}
|