Commit Graph

375 Commits

Author SHA1 Message Date
Bobby
8cbdca4efc
fix: always try to load file as image in info page 2022-06-28 13:02:38 +07:00
BobbyWibowo
6b8b1528e2 dist: rebuilt client assets and bumped v1 version string 2022-06-28 05:54:03 +00:00
Bobby
2465864c53
feat: copy to clipboard button in file info page 2022-06-28 12:52:50 +07:00
Bobby
9eb46b7986
feat: add link to file info page in dashboard 2022-06-28 12:31:35 +07:00
Bobby
8f20423163
feat: add info icon to fontello 2022-06-28 12:31:13 +07:00
Bobby
e6ae519af1
chore: src/js/player.js 2022-06-28 12:03:56 +07:00
Bobby
b17b24b159
feat: new page /file/:identifier
this will display all information recorded from the specified file, but
only to the users that own them (it requires token)

this page also has a delete file button, allowing us to provide link to
this page for sharex deletion url option

once again, this is only for authenticated users, and will only show
file that the users own, unless said user is a moderator or higher
2022-06-28 12:03:49 +07:00
Bobby
5eefc0b1d0
chore: add version to sharex config
i assume sharex may have config migration feature one day by comparing
version strings
2022-06-28 11:58:41 +07:00
Bobby
2b195652a5
fix: long file names in dashboard preview dialogs 2022-06-28 08:57:49 +07:00
Bobby
9e4d477d09
chore: improved some README.md's 2022-06-28 08:17:02 +07:00
BobbyWibowo
ac4ac73d50 dist: rebuilt client assets and bumped v1 version string 2022-06-24 03:01:52 +00:00
Bobby Wibowo
5db35a1023
ci(actions): fix sass-embedded
it seems that when caniuse-lite gets updated, sass-embedded will get
removed from cached node_modules
so we try to always re-install it perhaps
2022-06-24 10:00:56 +07:00
BobbyWibowo
4e08be96a9 dist: rebuilt client assets and bumped v1 version string 2022-06-24 02:58:38 +00:00
Bobby Wibowo
6f355e9132
chore: trigger assets rebuild 2022-06-24 09:57:36 +07:00
BobbyWibowo
a1dddac5f0 dist: rebuilt client assets and bumped v1 version string 2022-06-22 10:18:59 +00:00
Bobby Wibowo
784f50d9a1
chore: trigger assets rebuild 2022-06-22 17:17:57 +07:00
BobbyWibowo
55413fcfb7 dist: rebuilt client assets and bumped v1 version string 2022-06-22 10:10:20 +00:00
Bobby Wibowo
06857dff02
fix: render.js 2022-06-22 17:09:32 +07:00
BobbyWibowo
682c00a0bb dist: rebuilt client assets and bumped v1 version string 2022-06-22 09:53:33 +00:00
Bobby Wibowo
8a9f0b412f
feat: removed default home renders 2022-06-22 16:52:14 +07:00
BobbyWibowo
e79bb77a25 dist: rebuilt client assets and bumped v1 version string 2022-06-22 04:46:11 +00:00
Bobby Wibowo
954df13aa2
fix: better null domain fallback logic 2022-06-22 11:22:35 +07:00
BobbyWibowo
1face70eca dist: rebuilt client assets and bumped v1 version string 2022-06-08 14:54:56 +00:00
Bobby Wibowo
e8b7a85b8d
chore: src/js/.eslintrc.js 2022-06-08 21:53:43 +07:00
BobbyWibowo
1cd9894333 dist: rebuilt client assets and bumped v1 version string 2022-05-27 06:46:02 +00:00
Bobby
b2a11ae42c
feat: added loop button to video.js player 2022-05-27 13:44:46 +07:00
Bobby
7d2e2d97e0
feat: use fontello for video.js seek buttons 2022-05-27 13:44:22 +07:00
BobbyWibowo
0d6323053f dist: rebuilt client assets and bumped v1 version string 2022-05-27 06:37:44 +00:00
Bobby
ab94bf1c38
feat: added 3 new icons to fontello
fast forward, fast backward, clockwise/loop/repeat
2022-05-27 13:36:24 +07:00
BobbyWibowo
832ce2df5c dist: rebuilt client assets and bumped v1 version string 2022-05-27 05:43:07 +00:00
Bobby
7c44e9dbb8
fix: align src/libs/fontello.css with stylelint 2022-05-27 12:41: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
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
BobbyWibowo
628d4aab55 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 15:38:31 +00:00
Bobby Wibowo
12cffb022d
Added waveform in embedded player if playing audio
Added LICENSE files

Moved videojs plugins into their own sub-directories in libs directory
2020-11-03 22:37:24 +07:00
BobbyWibowo
3e98307986 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 14:26:16 +00:00
Bobby Wibowo
519d4154e7
Updated 2020-11-03 21:25:07 +07:00
BobbyWibowo
4cbf0c6fa5 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 14:21:07 +00:00
Bobby Wibowo
bffc9c88e5
Audio files now work with the embedded player 2020-11-03 21:17:57 +07:00
BobbyWibowo
daa2a2f1fa AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 13:59:43 +00:00
Bobby Wibowo
3da75cd602
linted src/css/player.scss 2020-11-03 20:58:45 +07:00
Bobby Wibowo
f5e70b2d96
Added experimental embedded video.js player thingy 2020-11-03 20:56:32 +07:00
BobbyWibowo
b7d3d496e7 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-30 18:13:11 +00:00
Bobby Wibowo
47dd512910
Removed custom ESLint curly rule
Sigh, why did you do this, past me..?

Also fixed "Delete uploads by names".
2020-10-31 01:12:09 +07:00
BobbyWibowo
a86967c251 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-30 15:55:14 +00:00
Bobby Wibowo
c40478dd0a
Upgraded to ESLint 7 2020-10-30 22:54:02 +07:00
BobbyWibowo
b49231dd0e AUTO: Rebuilt client assets and bumped v1 version string 2020-10-12 15:06:24 +00:00
Bobby Wibowo
51016667cd
Bumped all versions 2020-10-12 22:05:28 +07:00
BobbyWibowo
3129e8f5b7 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-11 10:33:49 +00:00