Commit Graph

1755 Commits

Author SHA1 Message Date
renovate[bot]
4d4dffc5ae
fix(deps): update dependency express to ~4.18.1 (#485)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:13:05 +07:00
renovate[bot]
29aac8bbc1
chore(deps): update actions/cache action to v3 (#487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:12:54 +07:00
renovate[bot]
247fdce962
chore(deps): update dependency stylelint to ~14.8.2 (#484)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:11:09 +07:00
renovate[bot]
4eb54b93c1
fix(deps): update dependency express-rate-limit to ~6.4.0 (#486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:10:58 +07:00
renovate[bot]
e5f3809424
chore(deps): update dependency postcss-preset-env to ~7.5.0 (#483)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:07:36 +07:00
renovate[bot]
829b076b1e
chore(deps): update dependency eslint-plugin-n to ~15.2.0 (#482)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:06:38 +07:00
renovate[bot]
2f01088d78
chore(deps): update dependency eslint to ~8.14.0 (#481)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 02:06:28 +07:00
Bobby
4ecec788d0
feat: console logs of temp uploads check ups 2022-05-07 02:01:33 +07:00
Bobby
5d3ef6e566
feat: perms.group() to get user's group name 2022-05-07 01:36:38 +07:00
Bobby
b4e32a6001
fix: removed readline dependency
it was honestly never supposed to be written that way
but i very rarely used it so i never noticed

the actual readline module that we use is a node core module
https://nodejs.org/docs/latest-v12.x/api/readline.html#readline_readline_createinterface_options

additionally improved its formatting and whatnot
2022-05-07 01:35:07 +07:00
renovate[bot]
52c121721b
fix(deps): update dependency sqlite3 to ~5.0.8 (#480)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 00:59:32 +07:00
renovate[bot]
cd4ee101ef
chore(deps): update dependency postcss to ~8.4.13 (#479)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 00:58:25 +07:00
BobbyWibowo
647f0b308d dist: rebuilt client assets and bumped v1 version string 2022-05-06 15:24:06 +00:00
Bobby
8419b18e8a
chore: trigger actions 2022-05-06 22:22:53 +07:00
Bobby
0804ce9185
ci(actions): fix node_modules caching
https://github.com/actions/setup-node/issues/416
2022-05-06 22:21:56 +07:00
BobbyWibowo
b17ea6c8bd dist: rebuilt client assets and bumped v1 version string 2022-05-06 14:59:37 +00:00
Bobby
b35f4ae6eb
fix: remove token from local storage if invalid
this required expanding our custom error classes with support for
arbitrary internal api error codes

however it'll only be used for invalid token errors for now (10001)

no plan to assign codes to other existing api errors
at that point it's probably better to redo the whole api infrastructure
2022-05-06 21:58:23 +07:00
BobbyWibowo
3f900a1ac5 dist: rebuilt client assets and bumped v1 version string 2022-05-06 13:49:36 +00:00
Bobby
ba9c9eddd7
feat: datasets of bytes and timestamps
on the associated front-end elements

perhaps useful for those that want to hack the display with userscript,
without having to dig cached values in global page object
2022-05-06 20:48:24 +07:00
Bobby
4fa3a54729
feat: show am/pm on date
we are cheating by using Date.toLocaleString(), that is fixed to "en"
locale, for the time portion of the date
2022-05-06 20:45:40 +07:00
Bobby
395361d5fc
fix: count of album zips generated in stats
change logic to list physical files instead, since the zipGeneratedAt
attribute may still exist despite site owners having already done
physical clean-ups
2022-05-05 14:54:21 +07:00
Bobby
ecdeaa8b8a
chore: logger.inspect 2022-05-05 14:33:16 +07:00
Bobby
30b8f0040c
fix: delete album only worked for own albums 2022-05-05 14:30:41 +07:00
BobbyWibowo
dbc0a82186 dist: rebuilt client assets and bumped v1 version string 2022-05-05 06:59:53 +00:00
Bobby
450bf72e7a
feat: allow mods to actually delete albums 2022-05-05 13:58:54 +07:00
Bobby
a0adefc740
fix: album public page failing when no description 2022-05-05 13:23:18 +07:00
BobbyWibowo
11030ff2f5 dist: rebuilt client assets and bumped v1 version string 2022-05-05 06:18:53 +00:00
Bobby
39b7d96b8f
feat: static preview of album description markdown
in dashboard's edit album prompt
2022-05-05 13:17:32 +07:00
Bobby
7dd4f50e9e
feat: allow markdown in album description 2022-05-05 12:55:21 +07:00
Bobby
595dd81455
feat: apply access-control-allow-origin globally
instead of only on some arbitrary routes

configurable via config, please check sample, disabled by default

i still recommend configuring from your own http server (nginx, etc.),
if you want to have a more complex per-routes headers
2022-05-02 13:58:04 +07:00
Bobby
c89de676db
chore: ignore .node-version 2022-05-02 12:20:15 +07:00
Bobby
007ad3ddc0
feat: allow helmet to be disabled entirely
by setting the config value into an empty object

if otherwise falsy value, old behavior will still be used for
backwards-compatibility
2022-04-30 12:01:12 +07:00
renovate[bot]
51d4bf954a
chore(deps): update dependency browserslist to ~4.20.3 (#475)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-30 06:46:51 +07:00
renovate[bot]
53f51de2bc
fix(deps): update dependency systeminformation to ~5.11.14 (#478)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-30 06:42:59 +07:00
renovate[bot]
51f0f4db3b
chore(deps): update dependency postcss-preset-env to ~7.4.4 (#476)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-30 06:42:17 +07:00
renovate[bot]
e34e0e18bd
fix(deps): update dependency sqlite3 to ~5.0.6 (#477)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-30 06:41:58 +07:00
Bobby
3d94ae599e
feat: debug log for clean files 2022-04-23 05:01:56 +07:00
Bobby
88d32a6dcf
refactor: uploadController.js 2022-04-23 04:48:59 +07:00
Bobby
86c26cb50c
feat: some bypass support to passthrough scanning
only usergroup and file extension bypass

real file size can't be determined before passthrough scan,
so there's no bypass by max file size
please read the comments in sample config file

refactored utils.clamscan into utils.scan
2022-04-23 04:44:01 +07:00
renovate[bot]
2522b1a10f
fix(deps): update dependency sharp to ~0.30.4 (#473)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 02:58:10 +07:00
renovate[bot]
a80db00116
fix(deps): update dependency sqlite3 to ~5.0.5 (#474)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 02:56:09 +07:00
renovate[bot]
50327903a0
chore(deps): update dependency eslint-config-standard to ~17.0.0 (#471)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 02:53:47 +07:00
renovate[bot]
7f6fcf3833
chore(deps): update dependency stylelint to ~14.7.1 (#472)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 02:53:01 +07:00
BobbyWibowo
c9e84b5c24 dist: rebuilt client assets and bumped v1 version string 2022-04-20 20:10:08 +00:00
Bobby
c3f8e3e213
fix(deps): add waversurfer.js source map 2022-04-21 03:09:10 +07:00
BobbyWibowo
cf1475197e dist: rebuilt client assets and bumped v1 version string 2022-04-20 12:31:21 +00:00
Bobby
cf9c4ce7cb
fix: player.js 2022-04-20 19:29:35 +07:00
Bobby
43837cac20
chore: stray console.log in dashboard.js 2022-04-20 19:29:08 +07:00
Bobby
e9e2d4993b
fix(deps): update video.js and its plugins 2022-04-20 19:28:40 +07:00
Bobby
f6a86226a2
fix: re-disable new default helmet modules
this is to align with original behavior pre-Helmet v5 update

this only changes sample config file, and fallback values when helmet
option is missing from config file

otherwise decide at your own discretion (refer to the comments)
2022-04-20 18:37:10 +07:00