mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
5c41fc9249
utilsController.js: + /api/stats: Cache invalidation requests will now only store timestamp of the request instead of purging the cache entirely. Subsequent requests to the API will no longer attempt to generate stats if a previous request before it is still generating, since it can take a while in big sites. So instead, the cached stats will be returned to them, regardless of whether it's still valid. This should avoid "race condition" in sites with multiple admins. * dashboard.js: + Added an appendix into "Delete by names" feature in dashboard to inform staffs that they can use the feature to delete files by other users as well. + Added comments explaning the need of page.domClick() function. + Addition to the change regarding /api/stats route: If there is no cached stats, but a previous request is still generating, inform the user about it. config.sample.js + lolisafe.js: + We now support configuring rate limits through config file. No more hard-coded rate limits. Don't forget to update your config.js accordingly. package.json + yarn.lock: + Updated dependencies. |
||
---|---|---|
.. | ||
.eslintrc.json | ||
album.js | ||
auth.js | ||
dashboard.js | ||
home.js | ||
render.js | ||
sharex.js |