2018-04-19 06:22:53 +00:00
|
|
|
{% extends "_layout.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
|
2018-08-30 18:45:51 +00:00
|
|
|
{% block endmeta %}
|
|
|
|
{{ super() }}
|
|
|
|
{% if globals.google_site_verification %}
|
|
|
|
<meta name="google-site-verification" content="{{ globals.google_site_verification }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-18 21:00:36 +00:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ super() }}
|
2018-12-11 12:31:48 +00:00
|
|
|
<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/home.css?v={{ globals.v1 }}">
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
2018-12-11 12:31:48 +00:00
|
|
|
<script src="libs/sweetalert/sweetalert.min.js?v={{ globals.v3 }}"></script>
|
|
|
|
<script src="libs/dropzone/dropzone.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/home.js?v={{ globals.v1 }}"></script>
|
2019-09-01 19:23:16 +00:00
|
|
|
<script src="js/s/utils.js?v={{ globals.v1 }}"></script>
|
2019-01-14 12:44:09 +00:00
|
|
|
<!-- We assign an ID for this so that the script can find out version string for render images -->
|
2019-09-01 19:23:16 +00:00
|
|
|
<script id="renderScript" data-version="{{ globals.v4 }}" src="js/s/render.js?v={{ globals.v1 }}"></script>
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ super() }}
|
2018-12-07 22:10:35 +00:00
|
|
|
<section id="home" class="hero is-fullheight">
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container has-text-centered">
|
2018-04-18 21:00:36 +00:00
|
|
|
<p id="b">
|
2018-04-26 12:53:19 +00:00
|
|
|
<img class="logo" alt="logo" src="images/logo_smol.png?v={{ globals.v2 }}">
|
2018-04-18 21:00:36 +00:00
|
|
|
</p>
|
|
|
|
<h1 class="title">{{ globals.name }}</h1>
|
|
|
|
<h2 class="subtitle">{{ globals.home_subtitle | safe }}</h2>
|
|
|
|
|
2019-08-20 02:16:34 +00:00
|
|
|
<h3 id="maxSize" class="subtitle"></h3>
|
2018-04-18 21:00:36 +00:00
|
|
|
|
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
2018-05-11 14:34:13 +00:00
|
|
|
<div class="column">
|
2018-04-18 21:00:36 +00:00
|
|
|
<a id="loginToUpload" class="button is-danger is-loading" style="display: flex"></a>
|
2018-05-06 14:14:57 +00:00
|
|
|
<div id="albumDiv" class="field has-addons" style="display: none">
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<div class="select is-fullwidth">
|
|
|
|
<select id="albumSelect"></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
2018-07-17 03:21:04 +00:00
|
|
|
<a id="createAlbum" class="button is-breeze" title="Create new album">
|
2018-05-06 14:14:57 +00:00
|
|
|
<i class="icon-plus"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
2019-09-02 10:24:04 +00:00
|
|
|
<div id="tabs" class="tabs is-centered is-boxed" style="display: none">
|
2018-05-12 22:13:26 +00:00
|
|
|
<ul>
|
2019-09-02 10:24:04 +00:00
|
|
|
<li data-id="tab-files" class="is-active">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small"><i class="icon-docs"></i></span>
|
|
|
|
<span>Files</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% if urlMaxSize -%}
|
|
|
|
<li data-id="tab-urls">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small"><i class="icon-link"></i></span>
|
|
|
|
<span>URLs</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{%- endif %}
|
|
|
|
<li data-id="tab-config">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small"><i class="icon-cog-alt"></i></span>
|
|
|
|
<span>Config</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-05-12 22:13:26 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="tab-files" class="tab-content" style="display: none">
|
|
|
|
<div class="field dz-container"></div>
|
2019-09-01 19:23:16 +00:00
|
|
|
<div class="field uploads"></div>
|
2018-05-12 22:13:26 +00:00
|
|
|
</div>
|
|
|
|
{% if urlMaxSize -%}
|
|
|
|
<div id="tab-urls" class="tab-content" style="display: none">
|
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
|
|
|
<textarea id="urls" class="textarea" rows="2"></textarea>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
2018-09-29 22:38:13 +00:00
|
|
|
<p class="help">
|
|
|
|
{% if urlMaxSize !== maxSize -%}
|
2019-09-01 19:23:16 +00:00
|
|
|
Maximum file size for URL upload is <span id="urlMaxSize">{{ urlMaxSize }}</span>.
|
2018-09-29 22:38:13 +00:00
|
|
|
{%- endif %}
|
2018-12-20 11:53:37 +00:00
|
|
|
|
|
|
|
{% if urlExtensionsFilter.length and (urlExtensionsFilterMode === 'blacklist') -%}
|
|
|
|
Blacklisted extensions: {{ urlExtensionsFilter | join(', ') }}.
|
|
|
|
{%- elif urlExtensionsFilter.length and (urlExtensionsFilterMode === 'whitelist') -%}
|
|
|
|
Whitelisted extensions: {{ urlExtensionsFilter | join(', ') }}.
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if urlDisclaimerMessage %}
|
|
|
|
{{ urlDisclaimerMessage | safe }}
|
|
|
|
{% endif -%}
|
2018-09-29 22:38:13 +00:00
|
|
|
</p>
|
2018-05-12 22:13:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<a id="uploadUrls" class="button is-danger is-fullwidth is-unselectable">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-upload-cloud"></i>
|
|
|
|
</span>
|
|
|
|
<span>Upload URLs</span>
|
|
|
|
</a>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-01 19:23:16 +00:00
|
|
|
<div class="field uploads"></div>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
2018-05-12 22:13:26 +00:00
|
|
|
{%- endif %}
|
2019-09-02 10:24:04 +00:00
|
|
|
<div id="tab-config" class="tab-content" style="display: none">
|
|
|
|
<form>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">File size display</label>
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<div class="select is-fullwidth">
|
|
|
|
<select id="siBytes">
|
|
|
|
<option value="default">1000 B = 1 kB = 1 Kilobyte (default)</option>
|
|
|
|
<option value="0">1024 B = 1 KiB = 1 Kibibyte</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Upload chunk size (MB)</label>
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<input id="chunkSize" class="input is-fullwidth" type="number" min="0" step="5">
|
|
|
|
</div>
|
|
|
|
<p class="help">Default is <span id="defaultChunkSize"></span>. Max is <span id="maxChunkSize"></span>.</p>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Parallel uploads</label>
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<input id="parallelUploads" class="input is-fullwidth" type="number" name="parallelUploads" min="0">
|
|
|
|
</div>
|
|
|
|
<p class="help">Default is <span id="defaultParallelUploads"></span>.</p>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<p class="control is-expanded">
|
|
|
|
<button id="saveConfig" type="submit" class="button is-danger is-fullwidth">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-floppy"></i>
|
|
|
|
</span>
|
|
|
|
<span>Save & reload</span>
|
|
|
|
</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-11 14:34:13 +00:00
|
|
|
<div id="tpl" style="display: none">
|
|
|
|
<div class="field">
|
2019-04-18 09:06:14 +00:00
|
|
|
<i class="icon" style="display: none"></i>
|
|
|
|
<img class="is-unselectable" style="display: none">
|
2018-05-11 14:34:13 +00:00
|
|
|
<p class="name is-unselectable"></p>
|
2019-09-01 19:23:16 +00:00
|
|
|
<progress class="progress is-small is-danger" max="100"></progress>
|
2018-05-11 14:34:13 +00:00
|
|
|
<p class="error"></p>
|
|
|
|
<p class="link">
|
|
|
|
<a target="_blank" rel="noopener"></a>
|
|
|
|
</p>
|
|
|
|
<p class="clipboard-mobile is-hidden-desktop" style="display: none">
|
|
|
|
<a class="button is-info is-outlined clipboard-js" style="display: flex">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-clipboard-1"></i>
|
|
|
|
</span>
|
|
|
|
<span>Copy link to clipboard</span>
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3 class="subtitle">
|
|
|
|
<a href="auth" id="loginLinkText"></a>
|
|
|
|
</h3>
|
|
|
|
|
2018-04-19 06:22:53 +00:00
|
|
|
{% include "_partial/links.njk" %}
|
2018-09-20 11:41:17 +00:00
|
|
|
|
|
|
|
{% if gitHash -%}
|
2018-12-07 22:10:35 +00:00
|
|
|
<div class="git-commit columns is-gapless">
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
<div class="column">
|
|
|
|
<span>Git commit: </span><a href="https://github.com/BobbyWibowo/lolisafe/commit/{{ gitHash }}" target="_blank" rel="noopener">{{ gitHash }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
</div>
|
2018-09-20 11:41:17 +00:00
|
|
|
{%- endif %}
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2018-04-21 13:14:34 +00:00
|
|
|
|
2018-04-23 19:58:44 +00:00
|
|
|
{% include "_partial/noscript.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|