Commit Graph

291 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
BobbyWibowo
b28e609c18 dist: rebuilt client assets and bumped v1 version string 2022-04-15 06:42:08 +00:00
Bobby
18a235fdf9
chore: trigger actions rebuild 2022-04-15 13:41:05 +07:00
BobbyWibowo
d5a8ab471e dist: rebuilt client assets and bumped v1 version string 2022-03-09 15:09:49 +00:00
Bobby
b48d72a5ff
chore: trigger actions rebuild again
to align cache with updated actions modules
2022-03-09 22:08:42 +07:00
BobbyWibowo
aaeb66efcd dist: rebuilt client assets and bumped v1 version string 2022-03-09 00:08:10 +00:00
Bobby
9ade74645d
chore: trigger actions rebuild
mainly to re-cache dependencies against node 16
2022-03-09 07:06:34 +07:00
BobbyWibowo
8dc9ffda45 dist: rebuilt client assets and bumped v1 version string 2022-03-03 12:27:11 +00:00
Bobby
556bb801f4
chore: removed unused css 2022-03-03 19:26:04 +07:00
BobbyWibowo
7388a37cee dist: rebuilt client assets and bumped v1 version string 2022-03-03 11:55:03 +00:00
Bobby
7ee3ec1ef0
style: adhere to keyframes-name-pattern 2022-03-03 18:54:05 +07:00
BobbyWibowo
80e53da69c dist: rebuilt client assets and bumped v1 version string 2022-03-03 11:46:42 +00:00
Bobby
7194f0c838
feat: transition to stylelint v14 environment
stylelint: 13 -> 14
postcss-preset-env: 6 -> 7
eslint-plugin-compat: 3 -> 4

replaced stylelint-config-standard with
stylelint-config-standard-scss

switched to @ronilaukkarinen/gulp-stylelint, a fork of gulp-stylelint,
due to the upstream's maintainer going missing

temporarily disabled some stylelint rules to ease transition
2022-03-03 18:44:43 +07:00
BobbyWibowo
b4b5304716 dist: rebuilt client assets and bumped v1 version string 2021-10-22 14:39:52 +00:00
Bobby
07368e23c4
chore: trigger rebuild to refresh actions' cache 2021-10-22 21:38:14 +07:00
BobbyWibowo
cf2fed6605 dist: rebuilt client assets and bumped v1 version string 2021-06-06 11:33:14 +00:00
Bobby
8d79154e6c
style: phrasing in delete user prompt 2021-06-06 18:31:17 +07:00
BobbyWibowo
1e3bc5aef2 dist: rebuilt client assets and bumped v1 version string 2021-02-12 08:50:42 +00:00
Bobby Wibowo
cf4a1af209
feat: list albums' total size and zip size 2021-02-12 15:48:40 +07:00
BobbyWibowo
5d9d499642 dist: rebuilt client assets and bumped v1 version string 2021-02-12 06:08:19 +00:00
Bobby Wibowo
bba0d38e8e
chore: trigger rebuild to refresh actions' cache 2021-02-12 13:06:10 +07:00
BobbyWibowo
12d49b1d40 dist: rebuilt client assets and bumped v1 version string 2021-01-31 23:15:50 +00: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
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
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
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
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
BobbyWibowo
afa09b0312 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 04:00:40 +00: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
43a9a5babb
updated README.md's 2020-12-27 19:45:27 +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
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
d917bbdf32
apply offset to dashboard icon 2020-12-26 15:10:26 +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
BobbyWibowo
27a2717b48 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-17 22:20:40 +00:00
Bobby Wibowo
c30361e648
fix version requirement for gulp-dart-sass
also bumped v1 version string to trigger rebuilding again
it's mostly so that github actions' yarn cache gets rebuilt too or smth
2020-11-18 05:19:11 +07:00
BobbyWibowo
c1472218bb AUTO: Rebuilt client assets and bumped v1 version string 2020-11-17 18:14:40 +00:00
Bobby Wibowo
a94d482fc5
replaced gulp-sass with gulp-dart-sass
removed node-sass as explicit dev dependency
gulp-dart-sass will already require sass (new dart sass, not node-sass)

added fibers as a new dev dependency
this is a requirement to speed up async sass compiling
https://sass-lang.com/dart-sass

full sub-dependencies upgrade (deleted yarn.lock then did yarn install)

bumped v1 version string to trigger auto rebuild
2020-11-18 01:13:30 +07:00
BobbyWibowo
0eaf34748e AUTO: Rebuilt client assets and bumped v1 version string 2020-11-12 09:10:06 +00:00
Bobby Wibowo
eaf726b726
obligatory versions bump to trigger rebuild 2020-11-12 16:08:52 +07:00
BobbyWibowo
6d674cabaf AUTO: Rebuilt client assets and bumped v1 version string 2020-11-10 15:57:45 +00:00
Bobby Wibowo
98e6c59255
expanded gulp linter to lint server-side JS files
changed reporter formatter for gulp stylelint from verbose to string
this should now only print out issues to console

linted other server-side JS files that i missed out on previous commits

bumped versions.js to trigger github actions
2020-11-10 22:56:18 +07:00
BobbyWibowo
d796b31bd1 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-05 16:11:53 +00:00
Bobby Wibowo
a0777fb1d7
fixed upload urls button not working
would happen when in config uploads.urlMaxSize equals uploads.maxSize
2020-11-05 23:10:22 +07:00
BobbyWibowo
0cfd3fe059 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-04 04:27:31 +00:00
Bobby Wibowo
a0ab3d436e
Slight improvement to error handlers in frontend 2020-11-04 11:26:22 +07:00
BobbyWibowo
762ef3141c AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 17:22:57 +00:00
Bobby Wibowo
5426c6f98d
Updated player.js 2020-11-04 00:21:55 +07:00
BobbyWibowo
e06d927a2b AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 16:11:17 +00:00
Bobby Wibowo
fbf582f09e
Disabled version string in embedded player 2020-11-03 23:10:15 +07:00
BobbyWibowo
2626b03192 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 15:52:30 +00:00
Bobby Wibowo
9c7241d145
Allow filtering audio files with is:audio
For now only support FLAC, MP3, WAV and WMA
More extensions will come at a later date
2020-11-03 22:51:29 +07:00