mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
c9ba16e1d6
Client-side CSS & JS files will now be processed with Gulp. Gulp tasks are configured in gulpfile.js file. CSS files will be optimized with postcss-preset-env, which will auto-add vendor prefixes and convert any parts necessary for browsers compatibility. Afterwards they will be minified with cssnano. JS files will be optimized with bublé, likewise for browsers compatibility. Afterwards they will be minified with terser. Unprocessed CSS & JS files will now be located at src directory, while the processed results will be located at dist directory. Due to bublé, the JS files should now be compatible up to IE 11 at the minimum. Previously the safe would not work in IE 11 due to extensive usage of template literals. Due to that as well, JS files in src directory will now extensively use arrow functions for my personal comfort (as they will be converted too). The server will use the processed files at dist directory by default. If you want to rebuild the files by your own, you can run "yarn build". Gulp is a development dependency, so make sure you have installed all development dependencies (e.i. NOT using "yarn install --production"). --- yarn lint -> gulp lint yarn build -> gulp default yarn watch -> gulp watch yarn develop -> env NODE_ENV=development yarn watch --- Fixed not being able to demote staff into normal users. /api/token/verify will no longer respond with 401 HTTP error code, unless an error occurred (which will be 500 HTTP error code). Fixed /nojs route not displaying file's original name when a duplicate is found on the server. Removed is-breeze CSS class name, in favor of Bulma's is-info. Removed custom styling from auth page, in favor of global styling. Removed all usage of style HTML attribute in favor of CSS classes. Renamed js/s/ to js/misc/. Use loading spinners on dashboard's sidebar menus. Disable all other sidebar menus when something is loading. Changed title HTML attribute of disabled control buttons in uploads & users list. Hid checkboxes and WIP controls from users list. Better error messages handling. Especially homepage will now support CF's HTTP error codes. Updated various icons. Also, added fontello config file at public/libs/fontello/config.json. This should let you edit them more easily with fontello. Use Gatsby icon for my blog's link in homepage's footer. A bunch of other improvements here & there.
112 lines
2.9 KiB
Plaintext
112 lines
2.9 KiB
Plaintext
{% set name = "safe.fiery.me" %}
|
|
{% set root = "https://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" %}
|
|
|
|
{% set home_subtitle = "A <strong>modern</strong> self-hosted file upload service" %}
|
|
|
|
{% set google_site_verification = null %}
|
|
|
|
{#
|
|
This will be appended to the URLs of static files (CSS, JS, images, etc),
|
|
and should be changed on every updates to make sure clients load the very latest version of them.
|
|
v1: CSS and JS files (lolisafe).
|
|
v2: Images and config files (manifest.json, browserconfig.xml, etc).
|
|
v3: CSS and JS files (libs such as bulma, lazyload, etc).
|
|
v4: Renders in /public/render/* directories (to be used by render.js).
|
|
#}
|
|
{% set v1 = "fFS2CGH95j" %}
|
|
{% set v2 = "hiboQUzAzp" %}
|
|
{% set v3 = "fFS2CGH95j" %}
|
|
{% set v4 = "S3TAWpPeFS" %}
|
|
|
|
{#
|
|
These will be the links in the homepage and the No-JS uploader.
|
|
You may remove icons by changing "home_icons" to false.
|
|
It will then automatically use "attrs.title" as the display text.
|
|
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'
|
|
}
|
|
] %}
|