Commit Graph

1907 Commits

Author SHA1 Message Date
Bobby Wibowo
288795c6e3
Merge branch 'pr-retry-names' into safe.fiery.me 2018-03-18 23:59:03 +07:00
Bobby Wibowo
5be27c129d
Uses async 2018-03-18 23:32:59 +07:00
Bobby Wibowo
34a08f036f
Updates
* Updated .editorconfig file to match indent styling for GitHub MD files and Nginx Conf files.

* Removed final newline from LICENSE.

* Restored indents to tabs in Nginx Conf files.
2018-03-18 20:41:09 +07:00
Bobby Wibowo
070f4bdafd
Updates
* Updated file name checker to use for-loop instead of do-while-loop.

* Replaced all instances of eslint-disable-line with eslint-disable-next-line.
2018-03-18 20:13:08 +07:00
Bobby Wibowo
dcb72734fe
Patch to allow "retries" when generating random name 2018-03-18 19:21:04 +07:00
Bobby Wibowo
076be2cfec
Updated dependencies and yarn.lock file 2018-03-17 03:17:32 +07:00
Bobby Wibowo
c84f9426f3
Merge branch 'snyk-fix-aa4036f1' into safe.fiery.me 2018-03-17 03:12:31 +07:00
snyk-bot
d5600909be fix: package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:hoek:20180212

Latest report for bobbywibowo/lolisafe:package.json:
https://snyk.io/test/github/bobbywibowo/lolisafe?targetFile=package.json
2018-03-16 20:08:55 +00:00
Bobby Wibowo
f8459d2b75
Updates
Merge changes from master (add more blocked extensions).
2018-03-15 14:54:14 +07:00
Kana
46bf0da5ee
Merge pull request #78 from Shumatsu/no-powershell
Ban of .com and .ps1 uploads
2018-03-15 03:58:40 -03:00
Bobby Wibowo
c5b1e26671
Updates
* Adds 'enabled' column into 'users' table with database/migration.js file.

* Ignore errors when adding new columns in database/migration.js. There's a better method by checking whether the columns already exist before adding them, but this will do for now.
2018-03-14 14:12:12 +07:00
Bobby Wibowo
c2b2f5b14b
Updates
* Properly merged changes from master.

* database/migration.js will now exit after migartion.

* Replaced all instances of createTableIfNotExists() into a combination of hasTable() and createTable() in db.js.
2018-03-14 13:57:09 +07:00
Bobby Wibowo
cb0295e732
Updates
* Patched delete function to continue deleting the file from the database if the physical file is missing from the expected path.

* Patched delete function to not print any error message if the file does not have any thumbnail.

* Patched uploader to check the existence of file with the same name, then try to generate a new random name if true, up to 3 times. If it still can not generate a unique random name after 3 times, it will throw an error saying that it can not allocate a name to the client.
This will be useful when shortening file name in the config file.
2018-03-13 21:51:39 +07:00
Unknown
56e2f3ff5c Adding .jar and .scr files
JAR - java and friends' executable.
SCR - Windows script executable, commonly used in "screenshot" trick.
2018-03-09 21:27:09 +01:00
Unknown
ba8500144b Ban of .com and .ps1 uploads
It seems that COM files can still be run in Windows, and they behave like any other executable.
PS1 files are scripts, so I put them on the list.
2018-03-06 22:29:40 +01:00
Kana
496575dea0
Whoops 2018-03-05 01:40:45 -03:00
iCrawl
8a75ab91a6
update deps and add dockerfile 2018-03-01 22:03:47 +01:00
Bobby Wibowo
c1db799aee
Updates
Replaced all instances of "ocurred" into "occurred".
2018-02-25 02:33:31 +07:00
Kana
1a77649ce3
Merge pull request #75 from pyraxo/master
Add missing column in table 'users'
2018-02-22 13:22:57 -03:00
pyra
b9cad8e4d5
Add missing column in table 'users' 2018-02-23 00:16:02 +08:00
Kana
939b5c52f7 In theory this will enable us to disable users and not break already running instances 2018-02-16 23:50:23 -03:00
RyoshiKayo
d009c2dcf6 Typing is hard 2018-02-11 23:54:05 -05:00
RyoshiKayo
47821474a5 Added CloudFlare Supprt for WeebDev/lolisafe#70 2018-02-11 23:49:11 -05:00
Bobby Wibowo
49cf3b0654
Updates
* Removed unnecessary math operator from lolisafe.js.

* Updated comment about HttpErrorPages (the branch was renamed from "fiery-me" to "fiery.me").
2018-02-10 06:20:34 +07:00
Bobby Wibowo
677d8717e7
Fixes to albums
* It will now properly create "editedAt" and "zipGeneratedAt" columns into "albums" table, which will then be used for the "Download Album" feature. Previously, due to the lack of those columns, people could not download albums. Existing installation will have to do some manual patches, which I will describe further in the commit's comments.

* Thumbnail-less files will properly show the extensions in albums. Previously it would have two dots.
2018-02-07 23:56:32 +07:00
Bobby Wibowo
73f1d40077
Updates
Removed unnecessary JS files from album.handlebars.
2018-02-07 14:02:00 +07:00
Bobby Wibowo
62f142a046
Updates
Patching albums for installations which serve files through a different domain (experimental).
2018-02-07 13:45:18 +07:00
Bobby Wibowo
efbaa24b30
Updates
More experimental changes to compliment the previous commit.
2018-02-07 13:32:26 +07:00
Bobby Wibowo
66f3b0739d
Updates
Experimental changes to allow generating thumbnails only for EITHER images or videos.
2018-02-07 13:22:31 +07:00
Bobby Wibowo
421d53d396
Merge pull request #2 from BobbyWibowo/master
Attempt to merge whatever changes from master
2018-02-04 03:56:26 +07:00
Bobby Wibowo
27050d5ac0
Merge branch 'safe.fiery.me' into master 2018-02-04 03:55:06 +07:00
Kana
48ec9d9559
Merge pull request #69 from RyoshiKayo/master
Added HTTP Version of NGINX sample configuration
2018-02-01 00:28:56 -03:00
Kana
f1cc65a55e
Merge pull request #68 from BobbyWibowo/master
Added safe.fiery.me to README.md.
2018-02-01 00:28:17 -03:00
Bobby Wibowo
a940d14731
Updates
* Added fb_share.png.

* Updated README.md to use fb_share.png (using a copy hosted at safe.fiery.me though).

* Updated all html files to add fb_share.png as an extra og:image tag.
2018-01-31 19:00:12 +07:00
Bobby Wibowo
2f3205bfa5
Updated faq.html
Updated notes about albums.
2018-01-31 17:51:37 +07:00
Bobby Wibowo
1e52b66f58
Updated faq.html
Changed contact mail address.
2018-01-31 17:41:24 +07:00
RyoshiKayo
a9232b905c Added NGINX SSL Version 2018-01-27 06:24:21 +01:00
RyoshiKayo
01f1c600ed Matched ports from sample config 2018-01-27 06:19:40 +01:00
RyoshiKayo
9465cce88a Renamed original NGINX config (SSL Version) 2018-01-27 06:18:16 +01:00
RyoshiKayo
465607cd5b Added HTTP NGINX sample config 2018-01-27 06:16:21 +01:00
Bobby Wibowo
b324eb65fd
Updates
I kinda forgotten to use rounded icons as favicons.
2018-01-27 00:54:06 +07:00
Bobby Wibowo
59bb906098
Updates
Tags, icons, images and stuff.
2018-01-27 00:34:20 +07:00
Bobby Wibowo
6246436aed
Hehe.. 2018-01-25 01:31:31 +07:00
Bobby Wibowo
878bdd484d
Added error pages
Utilizing BobbyWibowo/HttpErrorPages.
2018-01-25 01:13:17 +07:00
Bobby Wibowo
8da92b4eb5
Update
Load "Home" and "Blog" links in current tab.
2018-01-25 00:25:12 +07:00
Bobby Wibowo
60c6357491
Updates
I don't know what I'm doing.
2018-01-24 23:18:01 +07:00
Bobby Wibowo
fc71601074
Updates
* Show horizontal scrollbar for table only when needed.

* Cache-Control for static files.
2018-01-24 23:04:21 +07:00
Bobby Wibowo
32dd070e49
Yet another bunch of updates
* Self-host all libs (including but not limited to Font Awesome icons). LICENSE files were properly included as well.

* Temporarily disabling error pages.

* Added "start" and "pm2" scripts. To be used with "yarn SCRIPT_NAME" or "npm run SCRIPT_NAME".

* Added container for the tables in dashboard. On narrow screens, such as phones, users will then have the ability to use horizontal scroll on the tables.

* Fixed various resource paths. This should now work properly when not being hosted in root domain (e.i. https://fiery.me/lolisafe/).

* Before checking API, the "Running in ..." button will now say "Loading..." instead.
2018-01-24 22:31:23 +07:00
Bobby Wibowo
fb63ed50ea
Sorry.
At first I was concerned due to a particular ESLint rule called "no-undefined", but then after looking more deeply into it, I realized using typeof was unnecessary since "no-global-assign" and "no-shadow-restricted-names" were enabled and thus the previous method surely would not cause any problems.
2018-01-24 19:57:17 +07:00
Bobby Wibowo
5052cd2651
Sorry.
At first I was concerned due to a particular ESLint rule called "no-undefined", but then after looking more deeply into it, I realized using typeof was unnecessary since "no-global-assign" and "no-shadow-restricted-names" were enabled and thus the previous method surely would not cause any problems.
2018-01-24 19:53:31 +07:00