Commit Graph

352 Commits

Author SHA1 Message Date
Bobby Wibowo
ab81bedffa
I can't ever be satisfied 🎤
* Updated home. All footer links are now using icons.

* Added Chrome extension link to home.

* Updated icons (added some and replaced some).

* Home will now show a different message if private mode is on but guests are still allowed to create accounts.

* Home will no longer show message about creating account if guests are not allowed to create one.

* Updated API route: /api/check. State of whether registration is enabled or not is now exposed with key "enableUserAccounts".
2018-04-04 01:54:42 +07:00
Bobby Wibowo
2f321d0dd4
Updated dashboard
* Added "Clear selection" button. This will clear all selection, in case you have selected like hundreds of files already but decided not to do anything to them in the end.

* Bulk "Add to album" button will now only show its icon only.

* Better un/select all files logic.

* Updated icons (added "cancel" icon for the "Clear selection" button).
2018-04-03 22:59:39 +07:00
Bobby Wibowo
567e3ffdd1
Updated README.md 2018-04-03 22:06:13 +07:00
Bobby Wibowo
c988a5c5ad
Merge branch 'master' into safe.fiery.me 2018-04-03 22:05:27 +07:00
Bobby Wibowo
a61060249f
Updates
* Updated README.md to get rid of all the warnings from linter. Just because.

* Removed an unnecessary logic check in albumsController.addFiles().

* Refactored "successIds" to "updateDbIds" in utilsController.bulkDeleteFilesByIds().
2018-04-03 22:01:19 +07:00
Kana
917cdabcb0
Merge pull request #73 from RyoshiKayo/master
Added CF-Connecting-IP
2018-04-03 10:55:55 -03:00
Bobby Wibowo
77a8b23165
Updated home.html 2018-04-03 00:06:02 +07:00
Kayo
5715a2d1f3
Updated README about CF support 2018-04-01 23:59:03 -07:00
Kayo
35da812a01
Mirrored nginx.sample.conf 2018-04-01 23:54:42 -07:00
Kayo
d7c792fa8a
Add NGINX compile warning 2018-04-01 23:53:26 -07:00
Kayo
535f12b70a
Updated real-ip-from-cf 2018-04-01 23:52:09 -07:00
Kayo
6f7ec5d282
Updated IP's 2018-04-01 23:51:25 -07:00
Bobby Wibowo
8f41cd6f8c
Updates
* Fixed information of selected files being cleared when canceling either add to album or bulk delete prompt.

* Add to album prompt will now show how many files are going to be moved.

* Fixed bulk delete failing to reload file list properly when being used while listing an album.

* Added new ESLint rule "quotes" with option "single". I'm pretty sure Standard used to have this as default. I actually liked that back then.
2018-03-31 23:34:16 +07:00
Bobby Wibowo
4217cf4b0f
Updated description about chunkedUploads in config.sample.js. 2018-03-31 23:05:39 +07:00
Bobby Wibowo
6fa375887b
Merge branch 'master' into safe.fiery.me 2018-03-31 22:57:26 +07:00
Bobby Wibowo
4a2b7b3693
Updates
* File name, album/owner and size in thumbs view will no longer be clipped. Instead their overflow will be hidden in the form of ellipsis.

* Updated screenshot in README.md.
2018-03-31 21:44:06 +07:00
Bobby Wibowo
ceda9e67f7
Updated dashboard
Updated styling so that table cells will no longer wrap its content to new lines. Its container will still allow users to scroll to left and right, so this works better than forcing a minimum width.
2018-03-31 21:32:27 +07:00
Bobby Wibowo
ab1d8907c3
Updated dashboard
* Thumbnail button will no instead be disabled instead of not displayed when the file has no thumbnail.

* Bulk adding files to album will now un-check files that have been successfully moved to the album.
2018-03-31 21:26:53 +07:00
Bobby Wibowo
8724d45ce0
Updates
* Refactored all instances of "An error occurred" by appending an exclamation mark.

* Added the ability to add/remove files to/from album (API route: /api/albums/addfiles - https://s.fiery.me/dCAqLEQ9.mp4).

* Added the ability to purge files associated with an album when deleting the said album (set "purge" key to true in the JSON POST request to /api/albums/delete).

* Updated icons.

* Some other refactors, probably.
2018-03-30 09:39:53 +07:00
Bobby Wibowo
ac242fd9a9
Updated dashboard
* Simplified selectors in dashboard.css.

* Added checkboxes to thumbs view (but there's no un/select all checkbox).
2018-03-30 06:47:31 +07:00
Bobby Wibowo
0067c8fe83
Updates
* Refactored all instances of "err" into "error".

* Added bulk delete feature (API route: /api/uploads/bulkdelete). It accepts an array of IDs (its key must be "ids" in the JSON POST request). Don't forget it still requires a token in the headers. (https://s.fiery.me/6rjMAYoC.mp4)

* Removed fontello.css from auth.html.

* Updated a bunch of styling.

* Added "copy link to clipboard" button to thumbs view.

* Added "view thumbnail" button to list view. Clicking the row will no longer trigger thumb view, instead you have to press that button.

* Updated icons.

* ... and perhaps some others that I can't remember?
2018-03-30 06:22:08 +07:00
Bobby Wibowo
d2086ce4ba
IS LITERALLY CRYING
I broke the delete button apparently.
2018-03-29 03:32:47 +07:00
Bobby Wibowo
76076ac5c2
WHY CAN'T I EVER BE DONE!?
I forgot to make clipboard button on mobile to only appear after succesful upload.
2018-03-29 03:28:40 +07:00
Bobby Wibowo
add259d1b0
PLZ END MY SUFFERING 2018-03-29 03:13:10 +07:00
Bobby Wibowo
be4d16c6c2
Updated home.html and home.js
Removed "copy link" button from home page for desktop (the button for tablet and mobile will still be there).
2018-03-29 03:12:11 +07:00
Bobby Wibowo
0f32319552
Updates
* Small styling update to auth page.

* Changed icons used in dashboard.

* Added ClipboardJS.

* Added "copy link" button in file list (list view only) and album list. They will use ClipboardJS.

* Added "copy link" in upload result. For desktop, there will be small clipboard icons after the links, but for mobile and tablet, there will be a clickable buttons instead.

* Updated placeholder color for input elements.

* Updated "Loading..." in home page to use Bulma's loading spinner instead. It will also now be unclickable while still loading.

* Matched version string for all JS and CSS files.
2018-03-29 03:05:01 +07:00
Bobby Wibowo
2dd724f88f
Updates
* Switched standard to eslint with eslint-config-standard (and 4 more eslint plugins needed by standard).

* Added "curly" eslint rule with "all" option. I like it.

* Refactored all JS files to apply the new "curly" eslint rule.

* Renewed axios.min.js, dropzone.min.js and sweetalert.min.js. Re-minified and added a small comment stating their version and copyright statement.

* Some buttons in dashboard will now show loading icon whenever they're waiting for response from the server.

* Updated README.md and .gitignore.
2018-03-29 00:40:50 +07:00
Bobby Wibowo
e81e706914
Bug fix for chunked uploads support
Previously chunks merging would end up with corrupted files if the files were chunked into more than 10 chunks. It had something to do with incorrect file names sorting. This commit would fix it by prepending zeros to the file names depending on the amount of chunks.
2018-03-28 21:10:20 +07:00
Bobby Wibowo
7770192ca8
Updates
* Improved list view. When a row is clicked, as long as it has a thumbnail, a modal will pop-out to show the thumbnail.

* Improved image placement in thumb view.

* Refactored all instances of id attribute in HTML files to use double quotes instead of single quote.
2018-03-28 19:28:17 +07:00
Bobby Wibowo
66a63ca6d6
Updates (YAY, CHUNKED UPLOADS!)
* Added new dependency: rimraf. This will be used by chunked upload support to bulk delete temporary chunk files.

* Added chunked uploads support :3

* Updated Dropzone to 5.2.0.

* More improvements to thumbnail view. Delete button will now only appear on hover. Some other details, such as file name, size and album/owner will also appear on hover. Touch devices will have all of those appear always visible by default.

* Image thumbnails will now appear on home page after successful uploads (only for WEBP, JPG, JPEG, BMP, GIF and PNG files). WEBP may not work properly in Firefox though.

* Refactored home.js to use const/let and some other stuff.

* Refactored album view. It will now display properly on mobile screen. Download Album button will also no longer be located at the top right, but right below the subtitle.

* Updated some version strings.

* And maybe some others that I can't remember.
2018-03-28 18:36:28 +07:00
Kana
40bfa143c2
Merge pull request #88 from RyoshiKayo/patch-1
Added kayo.pics
2018-03-27 23:04:02 -03:00
Kayo
46bb4079c6
Added kayo.pics
umu
2018-03-26 02:42:03 -07:00
Kayo
a9d0e0a85c
Update github URL 2018-03-25 18:16:53 -07:00
Bobby Wibowo
3fa5b24ee5
Updates
* Better auth handling.

* Deleting a file will no longer cause the dashboard to load the very first page of uploaded files list. It will instead reload the currently viewed page.

* Updated dropzone (I guess).
2018-03-25 02:47:41 +07:00
Bobby Wibowo
83f3b36f15
Updates
* Added "Size" column to list view of uploaded files. The size will be use 'pretty' view (kB, MB, etc).

* Added delete button to thumbs view of uploaded files.

* All instances of "file length" in public views renamed to "file name length". The latter makes more sense.
2018-03-24 23:45:51 +07:00
Bobby Wibowo
20f8fd4957
Updated dashboard.js
I forgot to set the "Preferred file length" menu active when clicked.
2018-03-24 21:49:44 +07:00
Bobby Wibowo
6dccd1c982
Updated dashboard.html
My bad, changed wrong version string (last commit was supposed to change the JS file instead of the CSS file).
2018-03-24 21:21:10 +07:00
Bobby Wibowo
616124446f
Updates (WARNING!)
WARNING: Please turn off lolisafe before upgrading, then run "node database/migration.js" once after upgrading. Ignore all errors/warnings about duplicate column name. Afterwards make sure your config.js follows the new format in config.sample.js (specifically fileLength and generateThumbnails options).

* generateImageThumbnails and generateVideoThumbnails options in config.js is now renamed to an object named generateThumbnails, with image and video as its properties.

* fileLength option is now an object with min, max, default and userChangeable as its properties.

* User may now change their preferred file length (following the previous option, of course).

* Updated a bunch of responses messages. Mainly appending a dot to the messages.

* New APIs:
/fileLength/config to get an object of the current fileLength config (exactly what is in the config.js file).
/fileLength/change to change user's preferred file length.

* And maybe some others ...?
2018-03-24 20:52:47 +07:00
Bobby Wibowo
763d06ff95
I AM SUFFERING 2018-03-20 00:32:12 +07:00
Bobby Wibowo
5b5fe9074e
SOMEONE PLEASE END MY SUFFERING 2018-03-20 00:28:46 +07:00
Bobby Wibowo
6c85dda86a
Updated home.html
Fixed section display thingy. Basically it went out-of-bound in small screens, or something.
2018-03-20 00:25:42 +07:00
Bobby Wibowo
2a78fee990
Updates
Better thumbnail view.
I should really do something about the fact that I literally have to update the query string on every updates. Sheesh.
2018-03-20 00:18:29 +07:00
Bobby Wibowo
18155e464e
Added random bits to query string of js/css files
We need to get client to stop using their cached files due to the massive updates.
2018-03-19 23:58:21 +07:00
Bobby Wibowo
c96f5b0a33
Updates
* Updated Bulma to 0.6.2. Text will look slightly bigger in general now. I may change that in the future.

* Updated SweetAlert to 2.1.0.

* A bunch of other updates to make it compatible with the updated Bulma and SweetAlert.
2018-03-19 23:51:39 +07:00
Kana
0157388217
Merge pull request #85 from BobbyWibowo/pr-retry-names
Patch to allow "retries" when generating random name
2018-03-19 07:53:32 -03:00
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