fix: add a quick toggle to hide irrelevant FAQ

categories for personal-use installations.
This commit is contained in:
Bobby 2021-11-23 02:59:54 +07:00
parent de0877ea45
commit cda2ebe565
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 20 additions and 7 deletions

View File

@ -17,11 +17,14 @@
{% set fork_issues = fork_repo + "/issues/new/choose" %} {% set fork_issues = fork_repo + "/issues/new/choose" %}
{% set takedowns_url = "https://safe.fiery.me/takedowns" %} {% set takedowns_url = "https://safe.fiery.me/takedowns" %}
{% set server_location = "Paris, <strong>France</strong>" %} {# HTML supported #} {% set server_location = "Singapore" %} {# HTML supported #}
{% set support = 'Thanks! You can become a patron on my <a href="https://www.patreon.com/bobbywibowo" target="_blank" rel="noopener">Patreon</a>!' %} {# HTML supported #} {% set support = false %} {# HTML supported #}
{% set enable_faq_banned_categories = true %} {% set enable_faq_banned_categories = false %}
{% set enable_faq_tor = true %} {% set enable_faq_tor = false %}
{# Enabling the option below will hide FAQ categories which are irrelevant for personal installation #}
{% set is_for_personal_use = true %}
{# {#
These are the footer links in the homepage and the No-JS uploader (home.njk & nojs.njk respectively). These are the footer links in the homepage and the No-JS uploader (home.njk & nojs.njk respectively).

View File

@ -53,6 +53,7 @@
</article> </article>
{%- endif %} {%- endif %}
{% if not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">Will you keep my uploads forever?</h3> <h3 class="subtitle has-text-white-ter">Will you keep my uploads forever?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -90,12 +91,15 @@
I don't know. I don't know.
</div> </div>
</article> </article>
{%- endif %}
<h3 class="subtitle has-text-white-ter">I saw something too illegal for my tastes here, what should I do?</h3> <h3 class="subtitle has-text-white-ter">I saw something too illegal for my tastes here, what should I do?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
Send a strongly worded email to <a href="mailto:{{ globals.email }}">{{ globals.email }}</a> and I will try to get back to you within <strong>48 hours</strong>.<br> Send a strongly worded email to <a href="mailto:{{ globals.email }}">{{ globals.email }}</a> and I will try to get back to you within <strong>48 hours</strong>.<br>
{% if globals.enable_faq_banned_categories -%}
These include copyright takedown notices and reports about uploads violating banned categories. These include copyright takedown notices and reports about uploads violating banned categories.
{%- endif %}
</div> </div>
</article> </article>
@ -114,6 +118,7 @@
<div class="container has-text-left"> <div class="container has-text-left">
<h2 id="technical" class='title is-spaced'>Technical</h2> <h2 id="technical" class='title is-spaced'>Technical</h2>
{% if not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">What are the allowed extensions here?</h3> <h3 class="subtitle has-text-white-ter">What are the allowed extensions here?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -139,6 +144,7 @@
There had been too many phishing pages being uploaded in the past. There had been too many phishing pages being uploaded in the past.
</div> </div>
</article> </article>
{%- endif %}
{% if globals.server_location -%} {% if globals.server_location -%}
<h3 class="subtitle has-text-white-ter">Where is the server located?</h3> <h3 class="subtitle has-text-white-ter">Where is the server located?</h3>
@ -153,7 +159,7 @@
</article> </article>
{%- endif %} {%- endif %}
{% if config.cloudflare.purgeCache -%} {% if config.cloudflare.purgeCache and not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">Since my uploads are cached, what about after I delete them from the dashboard?</h3> <h3 class="subtitle has-text-white-ter">Since my uploads are cached, what about after I delete them from the dashboard?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -178,7 +184,7 @@
<h3 class="subtitle has-text-white-ter">Are there any Desktop clients?</h3> <h3 class="subtitle has-text-white-ter">Are there any Desktop clients?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
We do have some browser extensions:<br> We do have some browser extensions to assist uploads:<br>
<a href="https://addons.mozilla.org/en-US/firefox/addon/lolisafe/" target="_blank" rel="noopener">Firefox extension</a>. Maintained by me. Its GitHub repository is located <a href="https://github.com/BobbyWibowo/loli-safe-extension" target="_blank" rel="noopener">here</a>.<br> <a href="https://addons.mozilla.org/en-US/firefox/addon/lolisafe/" target="_blank" rel="noopener">Firefox extension</a>. Maintained by me. Its GitHub repository is located <a href="https://github.com/BobbyWibowo/loli-safe-extension" target="_blank" rel="noopener">here</a>.<br>
<a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" rel="noopener">Chrome extension</a>. Maintained by lolisafe's team. Its GitHub repository is located <a href="https://github.com/WeebDev/loli-safe-extension" target="_blank" rel="noopener">here</a>.<br> <a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" rel="noopener">Chrome extension</a>. Maintained by lolisafe's team. Its GitHub repository is located <a href="https://github.com/WeebDev/loli-safe-extension" target="_blank" rel="noopener">here</a>.<br>
With the Chrome extension specifically, you will have to manually set the domain in the extension's settings to <code>https://safe.fiery.me</code>.<br> With the Chrome extension specifically, you will have to manually set the domain in the extension's settings to <code>https://safe.fiery.me</code>.<br>
@ -223,7 +229,7 @@
</article> </article>
{%- endif %} {%- endif %}
{% if globals.fork_repo -%} {% if globals.fork_repo and not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">I found a bug! -or- I want to request a feature!</h3> <h3 class="subtitle has-text-white-ter">I found a bug! -or- I want to request a feature!</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -233,6 +239,7 @@
</article> </article>
{%- endif %} {%- endif %}
{% if not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">How do I delete my own account <strong>and</strong> all the uploads associated with it?</h3> <h3 class="subtitle has-text-white-ter">How do I delete my own account <strong>and</strong> all the uploads associated with it?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -241,6 +248,7 @@
Otherwise, if you do not mind a record of your username being left here, it should be easy to bulk delete all your uploads from the Dashboard anyway. Otherwise, if you do not mind a record of your username being left here, it should be easy to bulk delete all your uploads from the Dashboard anyway.
</div> </div>
</article> </article>
{%- endif %}
</div> </div>
</section> </section>
@ -248,6 +256,7 @@
<div class="container has-text-left"> <div class="container has-text-left">
<h2 id="privacy" class='title is-spaced'>Privacy</h2> <h2 id="privacy" class='title is-spaced'>Privacy</h2>
{% if not globals.is_for_personal_use -%}
<h3 class="subtitle has-text-white-ter">What information is kept with uploads?</h3> <h3 class="subtitle has-text-white-ter">What information is kept with uploads?</h3>
<article class="message"> <article class="message">
<div class="message-body"> <div class="message-body">
@ -273,6 +282,7 @@
My safe have been plagued by aplenty of abuse, so this policy will remain as long as the safe lives on. My safe have been plagued by aplenty of abuse, so this policy will remain as long as the safe lives on.
</div> </div>
</article> </article>
{%- endif %}
<h3 class="subtitle has-text-white-ter">Does the server have some sort of access logs?</h3> <h3 class="subtitle has-text-white-ter">Does the server have some sort of access logs?</h3>
<article class="message"> <article class="message">