Commit Graph

2020 Commits

Author SHA1 Message Date
renovate[bot]
9766707c62
chore(deps): update dependency gulp-eslint-new to ~1.6.0 (#582)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-17 11:34:42 +07:00
renovate[bot]
a7f6c8a4e1
fix(deps): update dependency rate-limiter-flexible to ~2.3.10 (#581)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-17 11:33:55 +07:00
renovate[bot]
5bbd1d16e9
chore(deps): update dependency browserslist to ~4.21.4 (#577)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-17 11:31:34 +07:00
renovate[bot]
75d9272421
chore(deps): update dependency eslint to ~8.23.1 (#578)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-17 11:30:53 +07:00
renovate[bot]
6dde5be4ff
chore(deps): update dependency postcss-preset-env to ~7.8.2 (#579)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-17 11:30:29 +07:00
Bobby
03fce89b0c
feat(deps): update hyper-express to ~6.4.8
consult https://github.com/kartikk221/hyper-express/releases for all the
changes thus far since 6.4.2
2022-09-17 11:29:24 +07:00
Bobby
ecaa272a3d
revert(deps): restore hyper-express@6.4.2
https://github.com/kartikk221/hyper-express/discussions/115

kekw..
2022-09-14 13:53:26 +07:00
renovate[bot]
6f2d87353b
fix(deps): update dependency helmet to v6 (#572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-14 10:33:27 +07:00
Bobby
a470803475
feat(deps): update hyper-express to ~6.4.7
Issues I linked in PR #565 has now been fixed in hyper-express@6.4.7

Closes #565
2022-09-14 10:28:40 +07:00
Bobby
cc5625fabf
fix: url upload fetch timeout failsafe 2022-09-14 06:04:18 +07:00
Bobby
93dc820368
feat: fetch() with AbortController for timeout
to be used with URL uploads

please consult the comments in the source files

this adds new dependency abort-controller
2022-09-14 01:33:31 +07:00
renovate[bot]
234fd0c0a5
fix(deps): update dependency rate-limiter-flexible to ~2.3.9 (#574)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-10 18:23:54 +07:00
renovate[bot]
46fb2b5c0b
chore(deps): update dependency postcss-preset-env to ~7.8.1 (#573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-10 18:23:41 +07:00
renovate[bot]
7894ba3fb2
chore(deps): update dependency eslint-plugin-n to ~15.2.5 (#567)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-04 13:28:14 +07:00
renovate[bot]
deedcd3c54
chore(deps): update dependency eslint-plugin-promise to ~6.0.1 (#568)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-04 13:26:42 +07:00
renovate[bot]
c6e98bafd8
chore(deps): update dependency eslint to ~8.23.0 (#569)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-04 13:26:32 +07:00
renovate[bot]
cf3c52c7b4
chore(deps): update dependency stylelint to ~14.11.0 (#570)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-04 13:26:13 +07:00
renovate[bot]
3d77e01b5f
fix(deps): update dependency knex to ~2.3.0 (#571)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-04 13:25:14 +07:00
Bobby
7f7f21862d
chore: update README.md 2022-08-29 08:25:08 +07:00
Bobby
3df67f87be
feat: timeout url uploads to 10s
uwebsockets.js has a 10s timeout of no communication between client and
server, for it to simply drop the connection

there's no point waiting any further at that point since we can't reply
to client anymore
2022-08-24 04:37:13 +07:00
Bobby
6ad8ed7ae6
fix: only accept files upload with files[] field
was always supposed to only accept said field, but i forgot to include
the logic during migration from expressjs to hyper-express
2022-08-24 04:17:07 +07:00
Bobby
14a340922c
fix: remove node: prefix in require()
this feature was only later backported to v14.18.0, meanwhile we want to
support the whole v14.x version range
2022-08-24 04:02:37 +07:00
Bobby
96522a425f
chore: indents 2022-08-23 15:16:02 +07:00
Bobby
ab4f8263de
feat: ignore option for ServeStaticQuick class 2022-08-23 15:13:04 +07:00
Bobby
414afc7ae6
feat: allow specifying root path in serve classes
when used on non-root paths
2022-08-23 15:12:25 +07:00
Bobby
ff7ec4aeaf
fix: /users/edit throw with empty edits 2022-08-23 15:09:47 +07:00
Bobby
2b6fd37ba1
feat: use execFile() to parse git commit
does not pointlessly spawn a new shell
2022-08-21 22:16:24 +07:00
Bobby
82937b57db
feat: assert lolisafe process working directory
in case lolisafe is attempted to be ran from elsewhere
2022-08-21 22:15:19 +07:00
Bobby
8fcfc29ea3
feat: package.json scripts
explicitly enable NODE_ENV=production env var for start scripts
2022-08-21 21:44:24 +07:00
Bobby
09fea107f3
feat: env SERVE_STATIC_QUICK=0 yarn start
restore an older behavior of serving static files with
ServeLiveDirectory middleware instead of ServeStaticQuick, in case of
issues with streaming files from disk via createReadStream

if you do encounter this issue, serving uploaded files with node will
likely encounter issues as well, but you can choose to serve them
directly with nginx, etc., so i guess it's not beyond hope
2022-08-21 21:23:14 +07:00
Bobby
3f08b966ef
chore: typos in README 2022-08-20 06:55:25 +07:00
Bobby
3ba93c3a95
chore: link volta in readme 2022-08-20 06:53:06 +07:00
Bobby
18ff2f0893
feat: volta pinned node & yarn versions 2022-08-20 06:38:37 +07:00
Bobby Wibowo
bd71035517
fix: missing cpu temp and swap logic 2022-08-19 10:48:45 +07:00
renovate[bot]
83c6cee482
chore(deps): update dependency postcss-preset-env to ~7.8.0 (#564)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:45:55 +07:00
renovate[bot]
e554c0c031
chore(deps): update dependency eslint to ~8.22.0 (#563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:43:46 +07:00
renovate[bot]
0cd747aa22
chore(deps): update dependency stylelint to ~14.10.0 (#562)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:43:34 +07:00
renovate[bot]
bfe46b90cb
chore(deps): update dependency cssnano to ~5.1.13 (#561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:40:35 +07:00
renovate[bot]
96c7d6b7e4
chore(deps): update dependency postcss to ~8.4.16 (#559)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:40:25 +07:00
renovate[bot]
f3e4f1cd57
fix(deps): update dependency systeminformation to ~5.12.6 (#560)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-19 10:40:04 +07:00
BobbyWibowo
1ddc8eeabd dist: rebuilt client assets and bumped v1 version string 2022-08-19 03:39:23 +00:00
Bobby Wibowo
991cfe134e
feat: add cpu temp and swap memory to statistics
temp is currently hard-coded to C

also increased system info caching to 1s
2022-08-19 10:38:24 +07:00
Bobby Wibowo
86d9db3137
feat: split service info in statistics
additionally add cpu detail in system info
2022-08-19 10:18:35 +07:00
Bobby Wibowo
ea30e5dee5
feat: enable persistent cache for nojs uploader
also slight improvement to NunjucksRenderer class
2022-08-19 09:50:08 +07:00
Bobby Wibowo
19eac1d98a
chore: routes/nojs.js 2022-08-19 09:30:09 +07:00
Bobby Wibowo
0d05da40b0
fix: fallback deletion url to relative path
if homeDomain is not configured via config file or env var

the deletion url is a frontend page, so it cannot simply assume it's on
the same domain as uploaded files
2022-08-19 09:29:11 +07:00
BobbyWibowo
b18b2ee312 dist: rebuilt client assets and bumped v1 version string 2022-08-19 00:42:07 +00:00
Bobby Wibowo
29c05a9046
fix: home uploader standardized headers set
it'd previously set the string-representation for non-string values
e.g. "null" for null, etc.

auth token is now also set on as axios' default common headers,
just like in dashboard.js, etc., to avoid re-setting it everytime
2022-08-19 07:40:48 +07:00
Bobby Wibowo
6c929efa7b
fix: less strict missing token header check
previously would still assume token is provided when the header is
simply an empty string, which may be unavoidable for some clients
2022-08-19 07:30:32 +07:00
Bobby Wibowo
59c5c8b7b0
fix: guest uploads hanging
caused by auth middleware not passing the request when token is missing
2022-08-19 07:01:45 +07:00