Commit Graph

158 Commits

Author SHA1 Message Date
renovate[bot]
165c4204d7
Update dependency helmet to ~4.2.0 (#297)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 18:07:53 +07:00
renovate[bot]
6eec4dbfeb
Update dependency knex to ~0.21.11 (#295)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-01 10:27:06 +07:00
Bobby Wibowo
88f852584c
!! REPLACED ClamAV BACKEND: clamdjs -> clamscan !!
Update your config file!
2020-11-01 06:35:56 +07:00
renovate[bot]
1902b1c668
Update dependency knex to ~0.21.10 (#294)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-01 05:19:27 +07:00
renovate[bot]
6d11d9c4b2
Update dependency eslint-config-standard to ~16.0.1 (#290)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-31 11:11:24 +07:00
renovate[bot]
1ce736f517
Update dependency gulp-terser to ~1.4.1 (#291)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-31 11:11:07 +07:00
Bobby Wibowo
c40478dd0a
Upgraded to ESLint 7 2020-10-30 22:54:02 +07:00
Renovate Bot
0fd751d8cd
Update dependency postcss to ~8.1.4 2020-10-30 15:22:59 +00:00
renovate[bot]
42448c2048
Update dependency systeminformation to ~4.27.11 (#287)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-30 22:22:10 +07:00
Renovate Bot
bafba3f798
Update dependency knex to ~0.21.9 2020-10-29 21:48:45 +00:00
renovate[bot]
ee89684a2d
Update dependency systeminformation to ~4.27.10 (#280)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-21 22:59:26 +07:00
renovate[bot]
72db74f854
Update dependency sharp to ~0.26.2 (#281)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-21 22:57:49 +07:00
renovate[bot]
ae71949b3b
Update dependency postcss to ~8.1.2 (#282)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-21 22:56:41 +07:00
renovate[bot]
aa5e5ce87b
Update dependency bulma to ~0.9.1 (#277)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 23:25:47 +07:00
renovate[bot]
991a229050
Update dependency systeminformation to ~4.27.6 (#279)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 23:23:41 +07:00
Bobby Wibowo
57207493a2
Fixed setContentDisposition throwing errors 2020-10-02 04:58:35 +07:00
renovate[bot]
22cd89779d
Update dependency postcss to ~8.1.1 (#278)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 04:06:06 +07:00
renovate[bot]
cbd0142dc5
Update dependency knex to ~0.21.6 (#275)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 03:00:16 +07:00
renovate[bot]
530245aac8
Update dependency eslint-plugin-import to ~2.22.1 (#276)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 02:59:16 +07:00
renovate[bot]
9b2721dfc8
Update dependency postcss to ~8.1.0 (#272)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-27 08:11:37 +07:00
Bobby Wibowo
e0901baa8b
Added postcss as an actual dev dependency
This is required since gulp-postcss no longer has postcss as an explicit
dependency since v9.
2020-09-27 06:17:56 +07:00
renovate[bot]
64e66e4b9a
Update dependency gulp-postcss to v9 (#271)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-27 06:08:28 +07:00
renovate[bot]
0580c374b9
Update dependency node-addon-api to v2.0.2 (#269)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-27 06:04:09 +07:00
Bobby Wibowo
b7399d2d8d
Updated dependencies
helmet: 4.1.0 -> 4.1.1
sharp: 0.26.0 -> 0.26.1
systeminformation: 4.27.3 -> 4.27.5

dev dependencies:
browserslist: 4.14.1 -> 4.14.5
del: 5.1.0 -> 6.0.0
stylelint: 13.7.0 -> 13.7.2

No client assets rebuild needed.
2020-09-27 04:43:35 +07:00
Bobby Wibowo
c8a5f7be16
Added setContentDisposition option
Resolves #192

This added 2 new dependencies:
content-disposition
BobbyWibowo/serve-static

content-disposition:
This has fallback generation for file names that are outside ISO-8859-1.
Plus it was already a sub-dependency due to express to begin with.

BobbyWibowo/serve-static:
A fork of express/serve-static to allow specifying an async setHeaders
function by the name preSetHeaders, that will be awaited before
creating send stream to clients.
2020-09-27 04:33:42 +07:00
Bobby Wibowo
6b2b8e9b0e
Updated dependencies
node-fetch: 2.6.0 -> 2.6.1 (security)

browserslist: 4.14.0 -> 4.14.1
stylelint: 13.6.1 -> 13.7.0

Obligatory bump to versions.json as this commit requires rebuilding
client assets (dev dependencies updates affect style.css).
As usual, rebuilds will be in the next commit by the build bot.
2020-09-07 23:08:53 +07:00
Bobby Wibowo
a34fa97084
Updated dependencies
sharp: 0.25.4 -> 0.26.0
systeminformation: 4.26.11 -> 4.27.3

gulp-terser: 1.3.2 -> 1.4.0
2020-08-28 05:24:42 +07:00
Bobby Wibowo
41fb14e865
Added system & node uptime to Statistics menu
src/js/misc/utils.js: Added page.getPrettyUptime().

Updated dependency:
helmet: 3.23.3 -> 4.1.0

lolisafe.js: Disabled CSP by default.
Since helmet 4, CSP would instead be enabled by default.
2020-08-22 01:35:30 +07:00
Bobby Wibowo
52bc0a7db2
Updated some dependencies
knex: 0.21.2 -> 0.21.5
systeminformation: 4.26.10 -> 4.26.11

browserslist: 4.13.0 -> 4.14.0
gulp-terser: 1.2.1 -> 1.3.2
2020-08-22 01:01:22 +07:00
Bobby Wibowo
34d3601c30
Transitioned styling to Sass
Added new dev dependencies:
bulma, gulp-sass, node-sass

Updated some dependencies

Various other things related to styling

Bumped v1 version string and rebuilt client assets
2020-07-28 21:47:48 +07:00
Bobby Wibowo
63330bdc3f
sqlite3/node-addon-api 2.0.0 -> 2.0.1 2020-07-19 19:03:07 +07:00
Bobby Wibowo
a200f81fd5
Updated dependencies
Rebuilt client assets and bumped v1 version string
2020-07-19 18:23:33 +07:00
Bobby Wibowo
2edb7f8bab
Updated dependencies
Bumped v1 version string and rebuilt client assets
2020-07-02 15:16:13 +07:00
Bobby Wibowo
e552017bfb
Change deps versions from major to minor ranges
Since I'd usually test for new versions of dependencies anyway, only
minor version updates that I personally support for self-update.
2020-06-20 00:17:16 +07:00
Bobby Wibowo
4aeb364d0d
Upgraded all dependencies
Consult package.json
2020-06-18 03:46:27 +07:00
Bobby Wibowo
e7fc354729
Updated dependencies
systeminformation: 4.26.4 -> 4.26.5
As always, full upgrade. So some sub-dependencies were updated as well.
2020-05-29 02:58:56 +07:00
Bobby Wibowo
62a977542e
Switched to BLAKE3 for file hashing [MORE]
UPDATE YOUR CONFIG FILE IF YOU USE CHUNKED UPLOADS!
Read more about this at the end.

Added new dependency: blake3

Hashes will be created as the uploads are being written to disk.
With exception for chunked uploads!
For them specifically, their hashes will be created as they're being
rebuilt into a single file.
Should still be a lot better than the previous case where it had to
re-read the already written files.

To support that feature, added a new file
controllers/multerStorageController.js.
It's just a custom storage engine for Multer.

chunkSize option now allows setting max chunk size from config file.
Previously it was hardcoded to 95MB, but assuming you have paid
Cloudflare plans, you can actually have up to 500MB.

Also moved the option to be after maxSize and before urlMaxSize.
Made a lot more sense to me this way, as chunked uploads only work on
regular uploads.

Updated v1 version string and rebuilt client assets.
2020-05-29 02:52:58 +07:00
Bobby Wibowo
feef65a165
Updated dependencies
systeminformation: 4.26.1 -> 4.26.4
eslint-plugin-compat: 3.6.0 -> 3.7.0
gulp-cli: 2.2.0 -> 2.2.1
2020-05-27 01:12:56 +07:00
Bobby Wibowo
56bc55f9ca
Updated package.json 2020-05-26 03:53:32 +07:00
Bobby Wibowo
559670bd83
Updated dependencies
Added SQLite's WAL files to .gitignore
2020-05-19 23:46:23 +07:00
Bobby Wibowo
23843aa826
Make yarn stash not exit with code 1
when there were no stashes
2020-05-17 00:53:35 +07:00
Bobby Wibowo
9c56dd327a
Updated dependencies
systeminformation: 4.23.9 -> 4.26.1
eslint-plugin-compat: 3.5.1 -> 3.6.0

Renamed all .eslintrc.json to .eslintrc.js.

Removed unnecessary init for missing params in favor of default params.
Buble will take care of compiling that for old browsers.

Bumped ecmaVersion for client JS from 6 (2015) to 7 (2016).
Buble should support compiling ES2016 features as well.

Properly deny some actions when an online section is still loading.

Properly apply progress cursor on items/buttons that shouldn't be used
while an online section is still loading.

Bumped v1 version string and rebuilt client assets.
2020-05-17 00:11:10 +07:00
Bobby Wibowo
51c5a81b18
!!! RUN "yarn migrate" !!!
Added "yarn migrate" as alias for "node ./database/migration.js".
Updated README.md about it.

Added a new column to users database: registration.
It will be used to store user's registration timestamp.
Registration date will be displayed in Dashboard's Manage Users.
Since this is a new column,
existing users will not have registration dates.

Last token change date will now be displayed in Dashboard as well.

<code> elements will now properly have relative font size.

User ID will now be displayed in Edit user dialog for reference purpose.

Bumped v1 version string and rebuilt client assets.
2020-05-16 22:32:32 +07:00
Bobby Wibowo
0fad346df6
Updated package.json 2020-05-16 21:51:08 +07:00
Bobby Wibowo
ee443b5108
Updated dependencies
express-rate-limit: 5.1.1 -> 5.1.3
systeminformation: 4.23.8 -> 4.23.9
2020-04-30 05:58:47 +07:00
Bobby Wibowo
4759995ff3
Updated README.md
Updated screenshot.

Edited claim about node 12 not being tested, as I've tested it.
Couldn't find any issues.

Added a new section about updating when you have modified some files.

Rephrased ClamAV support section a bit.

Updated dependencies:
knex: 0.21.0 -> 0.21.1

Rebuilt yarn.lock file with node 12.
Nothing significant really changed.
Things seem to be backward compatible to node 10.
2020-04-29 13:31:13 +07:00
Bobby Wibowo
e73514b62e
Updated dependencies
sqlite3: 4.1.1 -> 4.2.0
systeminformation: 4.23.5 -> 4.23.8
stylelint: 13.3.1 -> 13.3.1
2020-04-28 06:10:25 +07:00
Bobby Wibowo
8932615fbb
Updated dependencies
Updated README.md to emphasize Node 10.x is the oldest supported version
and that Node 12.x have NOT been tested.

I'll work on testing Node 12.x in the near future though!
2020-04-21 17:12:00 +07:00
Bobby Wibowo
3e3878b93c
Massively overhauled uploads filtering endpoint
Please consult the Help? button again to learn all the syntax changes!
The prompt will now also have its width expanded!

Updated dependency, knex: 0.20.13 -> 0.20.15.

Added new dependency: search-query-parser.

Updated all sub-dependencies.

Critical? Admins-only API /users/edit will no longer return NEW password
salt of the user when randomizing their password.

Added page.escape() function to js/misc/utils.js.
This will be used to escape input in upload filters input box.
The same function used in utilsController.js.

Pretty dates will now use / instead of - for date separator.
This is due to the fact that date range key for filtering uploads
can not accepts dates with - separator.
To avoid inconsistency, we will now use / separator.

Caching system of album public pages will now be disabled during
development (yarn develop).

Cleaned up domClick() function in js/dashboard.js.

If using date or expiry range keys when filtering uploads, attach
client's timezone offset to the API requets.
This will be used by the server to calculate timezone differences.

Success prompt when changing token will now auto-close.

Removed ID column from Manage Users.

Improved success prompt when editing users.
This will properly list all of the edited fields at once,
excluding user group change.
Success message for user group change will require a bit more changes
on the API endpoint, which is a bit annoying.

Rebuilt client-side assets and bumped v1 version string.
2020-04-19 02:52:11 +07:00
Bobby Wibowo
e5041a6d0b
Updated dependencies
systeminformation: 4.23.1 -> 4.23.3
stylelint: 13.3.0 -> 13.3.1

Rebuilt client assets. Affected file:
dist/js/dashboard.js.map

Bumped v1 version string.
2020-04-12 15:29:14 +07:00