Commit Graph

1484 Commits

Author SHA1 Message Date
Bobby
48a22b9271
chore: re-include src/libs to stylelint 2022-05-27 12:40:53 +07:00
Bobby
a3aeb63790
fix: let wavesurfer use its default backend
forcefully setting it to WebAudio seemingly disable progress bar on my
Firefox Desktop for some reason
perhaps it actually disabled the fallback mechanism
2022-05-27 11:50:03 +07:00
BobbyWibowo
897523363b dist: rebuilt client assets and bumped v1 version string 2022-05-27 04:34:44 +00:00
Bobby
f54ce96c23
feat: wavesurfer use WebAudio backend by default
supposedly it will automatically fallback to MediaElement on unsupported
browsers
2022-05-27 11:33:32 +07:00
Bobby
3ec7e6c76c
fix: responsive video.js audio waveform 2022-05-27 11:32:35 +07:00
BobbyWibowo
b3535969dd dist: rebuilt client assets and bumped v1 version string 2022-05-24 00:03:19 +00:00
Bobby
110aab097b
chore: versioned git urls in comments
future-proofing
2022-05-24 07:02:06 +07:00
Bobby
9cc4832717
feat: same error for invalid user or pass on login
every now and then i got curious of what people add to their forks,
and sometimes i'd be like, "hey, that makes sense!"

i remember that back in the days, i switched to nunjucks because of
someone's fork too
we used to use handlebars, which i've had some misgivings with for
awhile back then

either way all i'm saying is that it's the case this time around with
this commit
thanks for reading

49d12004e8
2022-05-24 06:56:58 +07:00
BobbyWibowo
630d95be02 dist: rebuilt client assets and bumped v1 version string 2022-05-21 09:57:57 +00:00
Bobby Wibowo
57d984336c
chore: trigger assets rebuild 2022-05-21 16:56:32 +07:00
renovate[bot]
011bc0cb89
fix(deps): update dependency jszip to ~3.10.0 (#501)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:46:56 +07:00
renovate[bot]
dc8684d7ff
chore(deps): update dependency postcss-preset-env to ~7.6.0 (#499)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:46:44 +07:00
renovate[bot]
d510a4fc4d
fix(deps): update dependency helmet to ~5.1.0 (#500)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:45:32 +07:00
renovate[bot]
ed12ad1274
chore(deps): update dependency stylelint to ~14.8.3 (#498)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:44:54 +07:00
renovate[bot]
6187425c23
chore(deps): update dependency del to ~6.1.0 (#497)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:41:20 +07:00
renovate[bot]
415bb48d96
chore(deps): update dependency gulp-eslint-new to ~1.4.4 (#495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:41:11 +07:00
renovate[bot]
392c3955f8
chore(deps): update dependency postcss to ~8.4.14 (#496)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:39:35 +07:00
renovate[bot]
008fb56671
chore(deps): update dependency cssnano to ~5.1.9 (#494)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:39:05 +07:00
renovate[bot]
3cb0c8eaf5
chore(deps): update dependency eslint to ~8.16.0 (#492)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:38:55 +07:00
renovate[bot]
b1de2a40d8
fix(deps): update dependency systeminformation to ~5.11.15 (#491)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:38:41 +07:00
renovate[bot]
b13af979c6
chore(deps): update dependency bulma to ~0.9.4 (#490)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-21 16:38:21 +07:00
Bobby
d2b8656800
fix: url uploads stricter error handling
this should properly dispose of unfinished write & hasher streams on
any errors if they have been initiated

also do content-length header check a bit more early
2022-05-08 15:35:28 +07:00
Bobby
ce71a9e8d6
feat: better size check for url uploads
first layer is via sending HEAD request to the url to determine its size
via content-length header
however not all hosts properly set the header, so we ignore it if
it isn't a valid number

next via size option in fetch(), which supposedly limits response body
size during the request itself (?)

lastly via checking actual bytes written to physical file as reported by
fs.createWriteStream()
2022-05-08 15:19:29 +07:00
Bobby
71a6adc3d3
fix: url uploads failing with missing content-type 2022-05-08 15:15:10 +07:00
Bobby
851eaacd8e
fix(deps): @bobbywibowo/serve-static v0.18.0-alpha
align to versions used in express@4.18.1

additionally no longer always require() the package even when not needed
2022-05-08 13:03:24 +07:00
Bobby
eeb1611b2a
fix: failsafes for chunks timeout 2022-05-08 12:01:18 +07:00
Bobby
f3b7d5e56d
fix: empty string for age header failing 2022-05-08 12:00:27 +07:00
BobbyWibowo
04d2dff0f6 dist: rebuilt client assets and bumped v1 version string 2022-05-06 19:18:39 +00:00
Bobby
2d147e748b
feat: usergroup-based file retention periods
this supersedes the old temporaryUploadAges, while maintaining full
backwards-compatibility.

please consult config.sample.js if you want to start using this
2022-05-07 02:17:31 +07:00
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