filesafe/views/faq.njk
Bobby Wibowo 02e2e402c3
!!! MASSIVE OVERHAUL !!!
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.
2019-09-08 08:56:29 +07:00

132 lines
5.5 KiB
Plaintext

{% extends "_layout.njk" %}
{% macro extensions(obj) %}
{% set space = joiner(' ') %}
{% for id, val in obj -%}
{{ space() }}{{ id }}="{{ val }}"
{%- endfor %}
{% endmacro %}
{% block content %}
{{ super() }}
<section class="section">
<div class="container has-text-left">
<h2 class='subtitle'>What is safe.fiery.me?</h2>
<article class="message">
<div class="message-body">
This is a fork of <a href="https://github.com/WeebDev/lolisafe" target="_blank" rel="noopener">lolisafe</a>. GitHub repository of the fork is located <a href="https://github.com/BobbyWibowo/lolisafe" target="_blank" rel="noopener">here</a>.
</div>
</article>
<h2 class='subtitle'>Will you keep my files forever?</h2>
<article class="message">
<div class="message-body">
Unless I receive a copyright complain or some other bullshit, I will.
</div>
</article>
<h2 class='subtitle'>How can I keep track of my uploads?</h2>
<article class="message">
<div class="message-body">
Simply create a user on the site and every upload will be associated with your account, granting you access to your uploaded files through our dashboard.<br>
</div>
</article>
<h2 class='subtitle'>What are albums?</h2>
<article class="message">
<div class="message-body">
Albums are a simple way of sorting uploads together.<br>
As long as you are logged in, you can create albums through the homepage or the dashboard,<br>
then afterwards you can use them with our <a href="https://addons.mozilla.org/en-US/firefox/addon/lolisafe/" target="_blank" rel="noopener">Firefox extension</a> or <a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" rel="noopener">Chrome extension</a>,<br>
which will enable you to <strong>right click -> send file to safe</strong> or to a desired album if you have any.<br>
You will have to set the domain in the extension's settings to <strong>https://safe.fiery.me</strong> though.
</div>
</article>
<h2 class='subtitle'>Why should I use this?</h2>
<article class="message">
<div class="message-body">
I don't know.
</div>
</article>
<h2 class='subtitle'>I saw something too illegal for my tastes here, what should I do?</h2>
<article class="message">
<div class="message-body">
Send a strongly worded email to <a href="mailto:bobby@fiery.me">bobby@fiery.me</a> and I will try to get back to you within 24 hours.
</div>
</article>
<h2 class='subtitle'>I found a bug! -or- I want to request a feature!</h2>
<article class="message">
<div class="message-body">
Feel free to create a GitHub issue <a href="https://github.com/BobbyWibowo/lolisafe/issues/new/choose" target="_blank" rel="noopener">here</a>.</br>
Or if you don't want to use GitHub, then you can also contact me through my email above.
</div>
</article>
<h2 class='subtitle'>Where is the server located at?</h2>
<article class="message">
<div class="message-body">
Paris, France.<br>
We are using Cloudflare though, so you can expect your uploads to be delivered quickly all over the world after they have been cached.
</div>
</article>
<h2 class='subtitle'>Since my uploads are cached, what about after I delete them from the dashboard?</h2>
<article class="message">
<div class="message-body">
We will send API requests to Cloudflare to purge their cache immediately after you delete your uploads from the dashboard.<br>
Cache of their thumbnails will also be purged, if applicable.
</div>
</article>
<h2 class='subtitle'>Do you have a No-JS uploader form?</h2>
<article class="message">
<div class="message-body">
Yes, check out <a href="nojs" target="_blank" rel="noopener">this page</a>.
</div>
</article>
{% if noJsMaxSize and chunkSize -%}
<h2 class='subtitle'>Why is the maximum file size in the No-JS uploader form smaller?</h2>
<article class="message">
<div class="message-body">
This site is using Cloudflare, which limits the maximum upload size.<br>
Since the homepage uploader chunks your uploads through JS magic, it is possible to increase the maximum file size there.
</div>
</article>
{%- endif %}
{% if chunkSize -%}
<h2 class='subtitle'>Does your API support chunked uploads?</h2>
<article class="message">
<div class="message-body">
Yes, the homepage uploader is hard-coded to chunk uploads into {{ chunkSize }} MB pieces by default.<br>
If you want to chunk your API uploads, feel free to read the source code to see how it works.
</div>
</article>
{%- endif %}
<h2 class='subtitle'>What are the allowed extensions here?</h2>
<article class="message">
<div class="message-body">
{% if extensionsFilter.length -%}
{%- if whitelist -%}
We support any file extensions except the following: {{ extensionsFilter | join(', ') }}.
{%- else -%}
We only support the following extensions:
{%- endif -%}<br>
{% set comma = joiner(' ') -%}
{%- for extension in extensionsFilter -%}
{{ comma() }}<code>{{ extension }}</code>
{%- endfor -%}
{%- else -%}
We support any file extensions.
{%- endif %}
</div>
</article>
</div>
</section>
{% endblock %}