Commit Graph

116 Commits

Author SHA1 Message Date
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
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
559670bd83
Updated dependencies
Added SQLite's WAL files to .gitignore
2020-05-19 23:46:23 +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
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
ff54f088bd
Added client assets update detection
/api/check and /api/token/verify will now pass along v1 version string
if used (when config.cacheControl is used) for both home.js and
dashboard.js to use to compare version strings.
This should help notify users using browsers with a bit more overbearing
caching (generally mobile browsers).

Rebuilt client assets and bumped v1 version string

Slight update to yarn.lock (a small syntax change for node-gyp, idk why)
2020-04-30 05:56:28 +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
Bobby Wibowo
f534ac2e4d
Updated all dependencies
Updated lolisafe.js
2020-04-04 22:08:37 +07:00
Bobby Wibowo
6741798085
Updated all dependencies 2020-03-24 15:06:54 +07:00
Bobby Wibowo
3a787ade65
Dropped support for Node 8, and more
Updated all dependencies.

Some latest version of dependencies such as bcrypt and sharp
requires Node 10+.

Updated fontello.css to uses latest version string from versions.js.
When updating version strings in commit
2670db269d, I forgot to rebuild this css.
2020-03-10 00:10:36 +07:00
Bobby Wibowo
2670db269d
Updated dependency systeminformation
And bumped all version strings to update latest cache control.
2020-02-11 17:20:43 +07:00
Bobby Wibowo
c0fc463595
Updated all dependencies
Rebuilt all CSS assets, not sure why.
Probably due to browserslist being updated?

While I was as it, I also updated safe.fiery.me's node version to
10.19.0.
2020-02-09 16:42:08 +07:00
Bobby Wibowo
eee024e0ca
Updated all dependencies 2020-01-11 02:14:23 +07:00
Bobby Wibowo
32e4f8a71c
Upgraded dependencies
knex: 0.20.3 -> 0.20.4
sharp: 0.23.3 -> 0.23.4
sqlite3: 4.1.0 -> 4.1.1

Upgraded dev dependencies:

browserslist: 4.7.3 -> 4.8.2
eslint: 6.7.1 -> 6.7.2
2019-12-08 15:25:26 +07:00
Bobby Wibowo
337a0a61ff
Implemented parallel URL uploads
This doesn't use the server's built-in ability to accept multiple URLs
per API request.
It behaves the same as regular uploads, in that it executes one API call
per file, simultaneously.

I figured this is a better implementation to shift queues faster.

---

Fetch error from URL uploads due to exceeding size limit will no longer
be logged in server's console.

Clients will also see better formatted error message for URL uploads'
file size limit errors.

---

Bumped dependencies:
knex: 0.20.2 -> 0.20.3
systeminformation: 4.15.3 -> 4.16.0

Bumped v1 version string
2019-11-29 17:42:29 +07:00