filesafe/controllers
Bobby Wibowo 264bd88e88
Updated
Improved performance of /api/users/:id (admin's manage users).

Promisify fs.writeFile.

Improved performance of /api/stats.
By a lot in Linux, cause uploads size will be deferred to "du" binary.
In addition, total usage of whichever disk uploads path resides on will
also be queried using "df" binary.
Non-Linux will have to rely on manual calculation by querying DB
for each upload's size.
But logics related to uploads stats were also improved to be almost
twice as fast as before.

Improved parsing of /api/stats results on dashboard.js.
This allows ease of extending server's response by not having to update
dashboard.js by much, if at all.

Improved codes relating to item menus in dashboard's sidebar.
Finally much cleaner now 👍

No longer use /api/upload/delete API route from dashboard.
Single file deletion and bulk files deletion, both from uploads list or
by names, will now properly use a single function that will use
/api/upload/bulkdelete API route.

/api/upload/delete will still be kept indefinitely for backward support.

Fixed oddities with Select all checkbox.

Replaced all instances of modifying HTML element's style attribute with
adding/removing is-hidden CSS helper class.

Rephrased all instances of "files" to "uploads" in any display strings.

Fixed notice message when server is on private mode.

A few other improvements.
2019-09-10 23:31:27 +07:00
..
albumsController.js !!! MASSIVE OVERHAUL !!! 2019-09-08 08:56:29 +07:00
authController.js Updated 2019-09-10 23:31:27 +07:00
pathsController.js Updated 2019-09-10 23:31:27 +07:00
permissionController.js !!! MASSIVE OVERHAUL !!! 2019-09-08 08:56:29 +07:00
tokenController.js !!! MASSIVE OVERHAUL !!! 2019-09-08 08:56:29 +07:00
uploadController.js Updated 2019-09-10 23:31:27 +07:00
utilsController.js Updated 2019-09-10 23:31:27 +07:00