Commit Graph

1244 Commits

Author SHA1 Message Date
Bobby Wibowo
ce1e7bb21d
feat: added max age support to newsfeed
Hardcoded to 91 days (~3 months).
2021-01-28 00:18:30 +07:00
BobbyWibowo
220ec14d83 dist: rebuilt client assets and bumped v1 version string 2021-01-27 17:07:46 +00:00
Bobby Wibowo
0b428171bb
refactor: use typeof for undefined in client-side
I didn't notice anything breaking prior to this, but just to be safe.
2021-01-28 00:06:05 +07:00
BobbyWibowo
0f1ba57737 dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:52:31 +00:00
Bobby Wibowo
968494bb37
fix: systeminformation v5 breaking changes
Made the codes for stats generation a bit more readable.

Usage percentage for file systems will now properly reflect "non-root"
usage percentage in ext2/3/4 file systems.
2021-01-27 23:50:45 +07:00
renovate[bot]
51c9cd2ff4
fix(deps): update dependency systeminformation to v5 (#366)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:27:29 +07:00
BobbyWibowo
afc467b4ed dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:26:37 +00:00
Bobby Wibowo
9b63eda26f
fix: bulma v0.9.2 breaking changes (proper fix) 2021-01-27 23:24:53 +07:00
BobbyWibowo
e10d99bb6f dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:21:45 +00:00
Bobby Wibowo
c9d9d69204
fix: bulma v0.9.2 breaking changes 2021-01-27 23:19:39 +07:00
renovate[bot]
8acaca1c92
chore(deps): update dependency bulma to ~0.9.2 (#367)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:16:32 +07:00
renovate[bot]
34426a0a03
chore(deps): update dependency stylelint to ~13.9.0 (#365)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:13:38 +07:00
renovate[bot]
69bb761e53
fix(deps): update dependency helmet to ~4.4.1 (#364)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:13:24 +07:00
renovate[bot]
3f468c7082
fix(deps): update dependency knex to ~0.21.16 (#363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:13:08 +07:00
renovate[bot]
4554b2a87e
chore(deps): update dependency eslint to ~7.18.0 (#362)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:12:45 +07:00
renovate[bot]
fe0781d101
chore(deps): update dependency postcss to ~8.2.4 (#359)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-27 23:12:24 +07:00
Bobby Wibowo
dd55d69612
fix: headers already sent errors 2021-01-09 03:50:03 +07:00
BobbyWibowo
9dc52774be dist: rebuilt client assets and bumped v1 version string 2021-01-08 20:22:09 +00:00
Bobby Wibowo
2838e718cd
chore: trigger dist rebuild 2021-01-09 03:20:18 +07:00
renovate[bot]
a51fdb784f
fix(deps): update dependency systeminformation to ~4.34.5 (#358)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-09 03:19:54 +07:00
renovate[bot]
4646205e32
fix(deps): update dependency systeminformation to ~4.33.8 (#352)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-09 03:18:28 +07:00
Bobby Wibowo
e5cd57f9bf
fix(deps): removed res. sqlite3/node-addon-api
Sqlite3 v5.0.1 from the previous fix(deps) commit already updated their
node-addon-api requirement to v3.

Also rebuilt entire yarn.lock file.
2021-01-09 03:15:51 +07:00
renovate[bot]
4991b92ae2
fix(deps): update dependency sqlite3 to ~5.0.1 (#357)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-09 02:56:36 +07:00
Bobby Wibowo
02a5a7312e
ci(actions): update commit message 2021-01-09 02:55:41 +07:00
BobbyWibowo
9f9debae44 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 19:52:23 +00:00
Bobby Wibowo
f52493291a
feat: same/higher group warning when editing user
Also Object.freeze() permissions object in permissionController.
I don't think it's much to be worried about, as no "set" will be done to
it during the service's operation, but oh well, might as well.
2021-01-09 02:51:23 +07:00
BobbyWibowo
1049f51248 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 04:31:31 +00:00
Bobby Wibowo
da112ce485
feat: 2 digits fractions for percentage in stats 2021-01-08 11:29:36 +07:00
Bobby Wibowo
81cf940160
feat: added audios count to uploads stats
As always, this uses hardcoded whitelisted audio extensions (the ones
that are also internally used for "is:audio" filter).
2021-01-08 11:22:31 +07:00
Bobby Wibowo
991d743ef0
feat: add "files in albums" to albums stats 2021-01-08 11:18:50 +07:00
Bobby Wibowo
defa3f2a8c
perf: skip checking zips on disk for album stats
Closes #353.
2021-01-08 11:03:26 +07:00
BobbyWibowo
afa09b0312 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 04:00:40 +00:00
Bobby Wibowo
6b804e2c9d
style: removed throw/cb literal lint rules 2021-01-08 10:59:10 +07:00
Bobby Wibowo
452542ca36
refactor: Client/ServerError on tokenController 2021-01-08 10:56:09 +07:00
Bobby Wibowo
a5607c00f6
refactor: make use of improved utils.authorize() 2021-01-08 10:50:25 +07:00
Bobby Wibowo
c1562e11f4
refactor: ClientError on utilsController
Improved utils.authorize().

Various fixes to thumbnailer and tags stripper.
2021-01-08 10:48:08 +07:00
Bobby Wibowo
59efef2d18
refactor: Client/ServerError on authController 2021-01-08 10:11:56 +07:00
Bobby Wibowo
1142b64e3c
refactor: no throw literal in utilsController 2021-01-08 09:56:01 +07:00
Bobby Wibowo
b5af733dc2
refactor: Client/ServerError on uploadController 2021-01-08 09:44:04 +07:00
Bobby Wibowo
a37057e099
fix: error icon not showing for url upload errors 2021-01-08 09:43:20 +07:00
Bobby Wibowo
e9d22ea3ea
fix: home uploader not parsing size error properly
Also fixed error icon not showing with errors from finishing chunks.
2021-01-08 09:37:35 +07:00
Bobby Wibowo
a816aac1f1
fix: await instead of return in try-catch block
Otherwise uncaught exceptions on errors.
2021-01-08 09:27:38 +07:00
Bobby Wibowo
721c1c84a9
fix: proper status codes in some album apis 2021-01-08 09:22:31 +07:00
Bobby Wibowo
5781c45a3d
refactor: no throw literal in lolisafe.js 2021-01-08 09:20:00 +07:00
Bobby Wibowo
e2143b4d80
refactor: UserError -> ClientError, ServerError
ClientError will default to 400 HTTP error code.
ServerError will default to 500 HTTP error code.

Following the previous commit, these for now are only being used in
albumsController. More will soon follow.

Additionally fixed existing album names can sometimes be re-used when
editing an album.
2021-01-08 08:44:28 +07:00
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