Commit Graph

1304 Commits

Author SHA1 Message Date
Bobby Wibowo
ae6d7936c7
feat: blacklist extensions for strip tags
GIFs are known to not work without custom globally-installed libvips
with ImageMagick or GraphicsMagick support.
https://sharp.pixelplumbing.com/api-output#gif
https://sharp.pixelplumbing.com/install#custom-libvips

It's highly recommended to update your config following the changes to
the sample config file.

This also addressed a bug where images would still get recorded to DB
despite them not existing physically due to strip tags errors.
2021-02-01 06:13:37 +07:00
Bobby Wibowo
274d922b2f
refactor: simplified a regex in home.js 2021-02-01 06:08:26 +07:00
Bobby Wibowo
5a74776978
fix: thumbnails not generated with mixed case
e.g. .jpG, .JPG, .PnG, etc.

Also simplified some codes.
2021-02-01 05:23:53 +07:00
Bobby Wibowo
37076049e1
style: sort extension names in home.js 2021-02-01 05:20:47 +07:00
Bobby Wibowo
c921db7ee2
docs: better extension names parsing 2021-01-29 23:17:56 +07:00
Bobby Wibowo
631d14d887
feat: better extension names parsing
It will now preserve upper/lower/mixed case.

It will now properly preserve all tarballs (#370).
2021-01-29 23:15:24 +07:00
Bobby Wibowo
a752bb89e8
fix: added failsafe to available disk stats 2021-01-29 22:44:58 +07:00
renovate[bot]
5842793d47
fix(deps): update dependency sharp to ~0.27.1 (#368)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-29 22:38:26 +07:00
renovate[bot]
785fd40a24
fix(deps): update dependency systeminformation to ~5.0.7 (#369)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-29 22:37:53 +07:00
BobbyWibowo
6142674007 dist: rebuilt client assets and bumped v1 version string 2021-01-27 17:20:44 +00:00
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