* De loli-safe wherever it's safe to do so.

* Removed bulma tooltip. Sigh, it came from an impulsive decision out of boredom to begin with.

* Chrome extension and GitHub links in home page will now open in new tab.

* File's link in the dashboard's list will still show the full URL in its tooltip, but it will no longer use bulma tooltip extension.
This commit is contained in:
Bobby Wibowo 2018-04-04 23:47:20 +07:00
parent b4c17277d2
commit b31f28ddcf
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
7 changed files with 16 additions and 19 deletions

View File

@ -1,6 +1,6 @@
# lolisafe, a small safe worth protecting
![loli-safe](https://s.fiery.me/5nYA.png)
![lolisafe](https://s.fiery.me/5nYA.png)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/kanadeko/Kuro/master/LICENSE)
[![Chat / Support](https://img.shields.io/badge/Chat%20%2F%20Support-discord-7289DA.svg?style=flat-square)](https://discord.gg/5g6vgwn)
@ -50,7 +50,7 @@ If you set `enableUserAccounts: true`, people will be able to create accounts on
If you are running lolisafe behind Cloudflare there is support to make the NGINX logs have the users IP instead of Cloudflares IP. You will need to compile NGINX from source with `--with-http_realip_module` as well as uncomment the following line in the NGINX config: `include /path/to/lolisafe/real-ip-from-cf;`
## Using loli-safe
## Using lolisafe
Once the service starts you can start hitting the upload endpoint at `/api/upload` with any file. If you're using the frontend to do so then you are pretty much set, but if using the API to upload make sure the form name is set to `files[]` and the form type to `multipart/form-data`. If the service is running in private mode, dont forget to send a header of type `token: YOUR-CLIENT-TOKEN` to validate the request.
@ -68,9 +68,9 @@ To make it easier and better than any other service, you can download [our Chrom
Because of how nodejs apps work, if you want it attached to a domain name you will need to make a reverse proxy for it.
Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04). Keep in mind that this is only a requirement if you want to access your loli-safe service by using a domain name (ex: `https://i.kanacchi.moe`), otherwise you can use the service just fine by accessing it from your server's IP.
Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04). Keep in mind that this is only a requirement if you want to access your lolisafe service by using a domain name (ex: `https://i.kanacchi.moe`), otherwise you can use the service just fine by accessing it from your server's IP.
## Sites using loli-safe
## Sites using lolisafe
- [lolisafe.moe](https://lolisafe.moe): A small safe worth protecting.
- [safe.moe](https://safe.moe): The world's most ~~un~~safe pomf clone
@ -81,7 +81,7 @@ Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/c
## Author
**lolisafe** © [Pitu](https://github.com/Pitu), Released under the [MIT](https://github.com/WeebDev/loli-safe/blob/master/LICENSE) License.
**lolisafe** © [Pitu](https://github.com/Pitu), Released under the [MIT](https://github.com/WeebDev/lolisafe/blob/master/LICENSE) License.
Authored and maintained by Pitu.

View File

@ -3,7 +3,7 @@ module.exports = {
/*
If set to true the user will need to specify the auto-generated token
on each API call, meaning random strangers won't be able to use the service
unless they have the token loli-safe provides you with.
unless they have the token lolisafe provides you with.
If it's set to false, then upload will be public for anyone to use.
*/
private: true,

View File

@ -8,7 +8,7 @@
"url": "https://github.com/WeebDev/lolisafe"
},
"bugs": {
"url": "https://github.com/WeebDev/loli-safe/issues"
"url": "https://github.com/WeebDev/lolisafe/issues"
},
"engines": {
"node": ">=7.0.0"

View File

@ -11,14 +11,13 @@
<!-- Stylesheets and scripts -->
<link rel="stylesheet" type="text/css" href="libs/bulma/bulma.min.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="libs/bulma/bulma-tooltip.min.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="libs/fontello/fontello.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="css/style.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="css/dashboard.css?v=vvtL7Y3cjD">
<script type="text/javascript" src="libs/sweetalert/sweetalert.min.js?v=vvtL7Y3cjD"></script>
<script type="text/javascript" src="libs/axios/axios.min.js?v=vvtL7Y3cjD"></script>
<script type="text/javascript" src="libs/clipboard.js/clipboard.min.js?v=vvtL7Y3cjD"></script>
<script type="text/javascript" src="js/dashboard.js?v=vvtL7Y3cjD"></script>
<script type="text/javascript" src="js/dashboard.js?v=U4oQBt8aIF"></script>
<!-- Open Graph tags -->
<meta property="og:type" content="website" />

View File

@ -11,7 +11,6 @@
<!-- Stylesheets and scripts -->
<link rel="stylesheet" type="text/css" href="libs/bulma/bulma.min.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="libs/bulma/bulma-tooltip.min.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="libs/fontello/fontello.css?v=vvtL7Y3cjD">
<link rel="stylesheet" type="text/css" href="css/style.css?v=vvtL7Y3cjD">
<script type="text/javascript" src="libs/sweetalert/sweetalert.min.js?v=vvtL7Y3cjD"></script>
@ -136,37 +135,37 @@
<a href="auth" id="loginLinkText"></a>
</h3>
<h3 id="links">
<a href="https://fiery.me" data-tooltip="Home" class="tooltip">
<a href="https://fiery.me" title="Home">
<span class="icon is-medium">
<i class="icon-home icon-2x"></i>
</span>
</a>
<a href="https://blog.fiery.me" data-tooltip="Blog" class="tooltip">
<a href="https://blog.fiery.me" title="Blog">
<span class="icon is-medium">
<i class="icon-archive icon-2x"></i>
</span>
</a>
<a id="ShareX" href="https://safe.fiery.me/sharex.txt" data-tooltip="ShareX" class="tooltip">
<a id="ShareX" href="https://safe.fiery.me/sharex.txt" title="ShareX">
<span class="icon is-medium">
<i class="icon-sharex icon-2x"></i>
</span>
</a>
<a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" data-tooltip="Chrome extension" class="tooltip">
<a href="https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj" target="_blank" title="Chrome extension">
<span class="icon is-medium">
<i class="icon-chrome icon-2x"></i>
</span>
</a>
<a href="faq" data-tooltip="FAQ" class="tooltip">
<a href="faq" title="FAQ">
<span class="icon is-medium">
<i class="icon-help-circled icon-2x"></i>
</span>
</a>
<a href="auth" data-tooltip="Dashboard" class="tooltip">
<a href="auth" title="Dashboard">
<span class="icon is-medium">
<i class="icon-gauge icon-2x"></i>
</span>
</a>
<a href="https://github.com/BobbyWibowo/lolisafe" data-tooltip="GitHub" class="tooltip">
<a href="https://github.com/BobbyWibowo/lolisafe" target="_blank" title="GitHub">
<span class="icon is-medium">
<i class="icon-github-circled icon-2x"></i>
</span>

View File

@ -268,7 +268,7 @@ panel.getUploads = (album, page, element) => {
tr.innerHTML = `
<tr>
<th><input type="checkbox" class="file-checkbox" title="Select this file" data-id="${file.id}" onclick="panel.selectFile(this)"${selected ? ' checked' : ''}></th>
<th><a href="${file.file}" target="_blank" data-tooltip="${file.file}" class="tooltip is-tooltip-right is-tooltip-multiline">${file.name}</a></th>
<th><a href="${file.file}" target="_blank" title="${file.file}">${file.name}</a></th>
<th>${displayAlbumOrUser}</th>
<td>${file.size}</td>
<td>${file.date}</td>

File diff suppressed because one or more lines are too long