filesafe/views/_globals.njk
Bobby Wibowo 86b51fe5f5
Added Cookie Consent, among other things
This adds Cookie Consent library at public/libs/cookieconsent.

Added views/cookiepolicy.njk.

Added a new config option cookiePolicy. Disabled by default.

Updated views/faq.njk to use variables wherever applicable.
The variables are initiated at views/_globals.njk.
The said file also contains variables used at views/cookiepolicy.njk.

Restored messages about Cloudflare to FAQ.
They will be shown only if config.cloudflare.purgeCache is enabled.

Statistics will now capitalize first letters of the keys instead.

Updated background color of SweetAlert modals.

Moved table styling from dashboard.css to style.css (global),
since table will also be used in Cookie Policy page.

Bumped v1 version string and rebuilt client assets.
2020-05-17 03:35:54 +07:00

112 lines
3.1 KiB
Plaintext

{% set name = "safe.fiery.me" %}
{% set motto = "A small safe worth protecting." %}
{% set description = "A pomf-like file uploading service that doesn't suck." %}
{% set keywords = "upload,lolisafe,file,images,hosting,bobby,fiery" %}
{# Used in home.njk and nojs.njk #}
{% set home_subtitle = "A <strong>modern</strong> self-hosted file upload service" %} {# HTML supported #}
{# Used in faq.njk and cookiepolicy.njk #}
{% set rootDomain = "fiery.me" %}
{% set wholeFaq = root + " website and sub-domains" %}
{% set wholeCookie = "This site and " + rootDomain + " website and sub-domains" %}
{% set email = "bobby@fiery.me" %}
{% set forkRepo = "https://github.com/BobbyWibowo/lolisafe" %}
{% set forkHost = "GitHub" %}
{% set forkIssues = forkRepo + "/issues/new/choose" %}
{% set takedownsUrl = "https://safe.fiery.me/takedowns" %}
{% set supportFaq = 'Thanks! You can become a patron on my <a href="https://www.patreon.com/bobbywibowo" target="_blank" rel="noopener">Patreon</a>!' %} {# HTML supported #}
{% set serverLocation = "Paris, <strong>France</strong>" %} {# HTML supported #}
{#
These are the footer links in the homepage and the No-JS uploader (home.njk & nojs.njk respectively).
In the homepage uploader, they will be displayed as icons,
but you can choose to display them as texts by setting "home_icons" to false.
It will then use the text in "attrs.title" of each links.
Note: No-JS uploader page will have icons disabled by default (it will also not load fontello.css).
#}
{% set home_icons = true %}
{% set home_links = [
{
attrs: {
title: 'Home',
href: 'https://fiery.me'
},
icon: 'icon-home icon-2x'
},
{
attrs: {
title: 'Blog (Gatsby)',
href: 'https://blog.fiery.me'
},
icon: 'icon-gatsby icon-2x'
},
{
attrs: {
title: 'Paste (PrivateBin)',
href: 'https://paste.fiery.me'
},
icon: 'icon-privatebin icon-2x'
},
{
attrs: {
id: 'ShareX',
title: 'ShareX user profile',
href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + v2
},
icon: 'icon-sharex icon-2x'
},
{
attrs: {
title: 'Firefox extension',
href: 'https://addons.mozilla.org/en-US/firefox/addon/lolisafe/',
target: '_blank',
rel: 'noopener'
},
icon: 'icon-firefox icon-2x'
},
{
attrs: {
title: 'Chrome extension',
href: 'https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj',
target: '_blank',
rel: 'noopener'
},
icon: 'icon-chrome icon-2x'
},
{
attrs: {
title: 'Bash uploader',
href: 'https://github.com/BobbyWibowo/uguush/tree/fiery-kde',
target: '_blank',
rel: 'noopener'
},
icon: 'icon-terminal icon-2x'
},
{
attrs: {
title: 'FAQ',
href: 'faq'
},
icon: 'icon-help-circled icon-2x'
},
{
attrs: {
title: 'Dashboard',
href: 'auth'
},
icon: 'icon-gauge icon-2x'
},
{
attrs: {
title: 'View on GitHub',
href: 'https://github.com/BobbyWibowo/lolisafe',
target: '_blank',
rel: 'noopener'
},
icon: 'icon-github-circled icon-2x'
}
] %}