Commit Graph

59 Commits (26d4e0852fd3343c3a7025a84376ae0f8fdf68f8)

Author SHA1 Message Date
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
Julian Lam f95308bf33 move sharp require into the method it is used in src/file.js
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp ()
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
Julian Lam 1f8b4bf820 closes
Barış Soner Uşaklı 5d2a7106f6 change upload storage
Barış Soner Uşaklı b35bfb81ce ability to delete uploads from account page
Barış Soner Uşaklı 04979f86a8 delete users uploads on account delete
store uid:<uid>:uploads
Barış Soner Uşaklı c7506d77b0 closes
Peter Jaszkowiak c47c47f7e3 Use less memory to build translation files ()
* Change languages build to use less memory

Add graceful-fs so no ned to worry about fs limits

* Specify encoding for fs.readFile

Use eachLimit since graceful-fs handles that now
Peter Jaszkowiak adc47fd053 Use relative linking ()
* Use relative linking

* Add copyFile method and tests

Closes 

* Fix relative linking on Windows

Hard links and junctions don't work with relative paths

* Fix tests

* Revert ghange to gitignore
Julian Lam 103d9a91a9 Revert "sanitizing uploaded filename without using slugify, in composer, re comment in: #6011"
This reverts commit 9f670fe586.
Julian Lam 9f670fe586 sanitizing uploaded filename without using slugify, in composer, re comment in:
Peter Jaszkowiak da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
Barış Soner Uşaklı c9d502320f file.delete method
Barış Soner Uşaklı 29135dfed3 timeago locale test
Barış Soner Uşaklı 13a04123e0 closes
Julian Lam d18cfced96 Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
Julian Lam 6e7b505ea7 more linting
Julian Lam 72e77772db Merge branch 'master' into develop
Julian Lam 62e0f5f883 Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak 23540afaeb Resolve merge conflicts
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
pichalite 8dab8864f6 Add extensions for cropped images
Julian Lam 7f124a3ccf Merge branch 'master' into develop
Peter Jaszkowiak aaacdb8413 Fix , uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
Julian Lam 8a0a74d95e Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak 186209a0a3 Build plugin `staticDirs`
- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
Peter Jaszkowiak 8c86b2e32c Build pipeline improvements
- Refactor meta/css
- `fs.link` usage consolidated to `file.link`
- rimraf built modules directory to fix error
- Remove `local-assets` flag
Peter Jaszkowiak ec544518e8 Use async v2
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 3fa1c1f927 Fix space-infix-ops linter rule
barisusakli a0ef96a6e1 dont treat url as path, closes
barisusakli aac0313f2e closes
Ben Lubar f5009b1a11 add a hook for plugins like nodebb-plugin-imagemagick that don't want to replace the entire upload system
barisusakli c50d655922 closes
Julian Lam 3a6ad52ac8 closes
Julian Lam 95fb0075c6 re-added missing base64ToLocal method in file lib
barisusakli 99d64db9e0 closes
allow both `.png` and `png`
Julian Lam 96afd13155 Removed mmmagic from dependencies, closes
Julian Lam 051a8e22df Removed allowedFileExtensions meta config
Now, when NodeBB needs to determine file compatibility, jimp
will attempt to open the file for reading. If it fails, file is
considered to be of an invalid type.
psychobunny bc2bf6ef37 fix list of allowed filetypes
barisusakli ca294fc6ec closes
Julian Lam 78863a438f Firing new hook `filter:auth.list`
This new plugins allows SSO services to list whether a
user has authenticated via that service, and will display
as such in the user's profile editing screen.
barisusakli 69ebe7679d removed console .log
barisusakli c98bd87334 better checks for file extensions
jpg allows jpeg
dots dont break extensions
psychobunny 3ed3612047 file upload with spaces / general file upload fix wrt ajaxiy
barisusakli 909fe660a9 decodeURIComponent for uploaded file/image