Bobby Wibowo
ae31033c0c
refactor: init UserError, a custom Error object
...
This will be used for errors that are to be delivered to users, AND not
to be logged into the server (as in it stacktraces and all).
This will eventually remove the need to throw string literals.
In this commit, this has only been implemented on albumsController.js,
but more will soon to come.
2021-01-08 07:29:14 +07:00
Bobby Wibowo
0dfdccb25e
refactor: move custom multer storage
...
controllers dir: multerStorageController.js to utils/multerStorage.js
2021-01-08 07:25:27 +07:00
renovate[bot]
5e43c9aab4
Update dependency postcss to ~8.2.3 ( #356 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 05:04:12 +07:00
renovate[bot]
baef942417
Update dependency browserslist to ~4.16.1 ( #354 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 05:04:06 +07:00
renovate[bot]
8279c0a7ce
Update dependency eslint to ~7.17.0 ( #351 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 05:03:52 +07:00
renovate[bot]
5879b264d7
Update dependency gulp-terser to ~2.0.1 ( #355 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-08 03:58:38 +07:00
Bobby Wibowo
1eb6adea96
add elapsed time to scripts/thumbs.js
2021-01-02 03:52:29 +07:00
renovate[bot]
26686298e0
Update dependency knex to ~0.21.15 ( #344 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-02 03:47:58 +07:00
renovate[bot]
c4932578b9
Update dependency systeminformation to ~4.33.5 ( #347 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-02 03:47:50 +07:00
renovate[bot]
37de5e74ce
Update dependency helmet to ~4.3.1 ( #348 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-02 03:47:42 +07:00
renovate[bot]
bac2b88075
Update dependency postcss to ~8.2.2 ( #349 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-02 03:47:34 +07:00
Bobby Wibowo
43a9a5babb
updated README.md's
2020-12-27 19:45:27 +07:00
Bobby Wibowo
0a19b025a0
removed utils.parallelLimit
...
well, that was a pointless endeavor.
i wasn't thinking clearly.
also updated all scripts that previously used them, to use a combo of
for-loop and setInterval to print progress.
2020-12-27 19:44:10 +07:00
Bobby Wibowo
ed27ad18b5
cleaned up README.md
2020-12-27 19:00:27 +07:00
Bobby Wibowo
8c85f977fd
more scripts cleanup, added "yarn rebuild-hashes"
2020-12-27 19:00:00 +07:00
Bobby Wibowo
7f3b947eb0
cleaned up some scripts
2020-12-27 18:54:05 +07:00
BobbyWibowo
3de44243a2
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-27 11:17:13 +00:00
Bobby Wibowo
18db55ba24
Added scripts/rebuild-hashes.js
...
Closes #345
2020-12-27 18:16:01 +07:00
Bobby Wibowo
a8cc0b9534
updated lolisafe.js
...
break loop early
2020-12-27 16:49:22 +07:00
BobbyWibowo
b4b4c08d1a
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-26 16:51:46 +00:00
Bobby Wibowo
441faad4a7
page auto-scroll now only happens when moving page
...
specifically the auto-scroll in uploads/users/albums list.
previously it'd auto scroll to the top for every same-page operation.
now it'd only auto scroll when actually moving page.
so same-page operations such as deleting uploads, editing users, etc.
will no longer scroll away.
2020-12-26 23:50:52 +07:00
BobbyWibowo
3d1374680a
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-26 12:55:39 +00:00
Bobby Wibowo
e85e8e886d
added lolisafe upstream compat to /api/album/:id
...
it will re-map body of /api/album/get/:id into upstream-compatible body.
prep for lolisafe albums support for magane plugin.
/api/album/:id/:page will stil respond with the old format as that's
what the dashboard use and expect.
list views of uploads, users and albums in dashboard will now show
total items count on the table's top right corner.
2020-12-26 19:54:41 +07:00
BobbyWibowo
1382afd8c8
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-26 11:50:53 +00:00
Bobby Wibowo
c5647cb8bf
albums sidebar in dashboard is now collapsible
...
they'll also be collapsed on initial page load
this uses a new client-side dependency, bulma-collapsible
https://github.com/creativebulma/bulma-collapsible
/api/albums to fetch albums list now support simple reply, where only
their ids and names will be returned.
this simple reply will also return all of the user's albums, instead of
being limited to only 9 or 25 entires like before.
fixed add to album in dashboard, and album selector in homepage uploader
being limited to only 25 albums.
2020-12-26 18:49:51 +07:00
BobbyWibowo
98080204da
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-26 09:53:26 +00:00
Bobby Wibowo
d7b11e7e56
try cf purge up to 3 times
...
with preset delay in between (60 secs if rate limited, 5 secs for
unexpected errors)
an alternative to global queue mechanism in #342
not perfect, but easier to implement
closes #342
2020-12-26 16:52:07 +07:00
Bobby Wibowo
3a0810b0be
updated albumsController.js
2020-12-26 15:32:44 +07:00
Bobby Wibowo
664c994855
scanner should NOT be enabled by default
...
Closes #341
2020-12-26 15:21:49 +07:00
Bobby Wibowo
d917bbdf32
apply offset to dashboard icon
2020-12-26 15:10:26 +07:00
Bobby Wibowo
771a3f65d2
query amount of temporary uploads for statistics
2020-12-25 21:18:45 +07:00
renovate[bot]
c6e83653db
Update dependency sharp to ~0.27.0 ( #340 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-25 21:08:43 +07:00
renovate[bot]
2ea469891c
Update dependency systeminformation to ~4.33.1 ( #339 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-25 21:08:34 +07:00
BobbyWibowo
4530449a87
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-25 14:07:36 +00:00
Bobby Wibowo
346d9864f3
improved codes for statistics
...
much more expandable, and should be easier to understand overall.
make more statistics operations run concurrently to speed them up.
make linuxDiskStats config key obsolete by using systeminformation
package to also query for any mounted file systems.
2020-12-25 21:06:21 +07:00
BobbyWibowo
b30d5e4608
AUTO: Rebuilt client assets and bumped v1 version string
2020-12-19 05:07:18 +00:00
Bobby Wibowo
635a9c4a14
no source changes, but obligatory actions trigger
...
recently upgraded actions/setup-node action, just in case doing so could
help refreshing cache or whatever
2020-12-19 12:05:51 +07:00
renovate[bot]
22f56de902
Update dependency eslint to ~7.16.0 ( #338 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-19 12:03:41 +07:00
renovate[bot]
6933a4081d
Update actions/setup-node action to v2 ( #336 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-19 12:03:27 +07:00
renovate[bot]
280d5b8131
Update dependency knex to ~0.21.14 ( #337 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-18 12:26:06 +07:00
renovate[bot]
3cf22397dc
Update dependency eslint-plugin-compat to ~3.9.0 ( #334 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:20:49 +07:00
renovate[bot]
0d6d8d1202
Update dependency systeminformation to ~4.32.0 ( #335 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:20:33 +07:00
renovate[bot]
8717ae8c20
Update dependency browserslist to ~4.16.0 ( #330 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:20:09 +07:00
renovate[bot]
2b9398d181
Update dependency postcss to ~8.2.1 ( #329 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:18:12 +07:00
renovate[bot]
07f91865cc
Update dependency knex to ~0.21.13 ( #333 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:13:24 +07:00
renovate[bot]
cf32e91a2b
Update dependency systeminformation to ~4.31.2 ( #332 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 04:13:05 +07:00
renovate[bot]
f89bae3ac2
Update dependency systeminformation to ~4.31.0 ( #328 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-06 23:15:58 +07:00
renovate[bot]
2914990fd8
Update dependency eslint to ~7.15.0 ( #327 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-06 23:15:32 +07:00
renovate[bot]
e2c4018dab
Update dependency postcss to ~8.1.14 ( #326 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-06 02:29:53 +07:00
renovate[bot]
92b2c753a1
Update dependency browserslist to ~4.15.0 ( #325 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-06 02:29:40 +07:00