Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Barış Soner Uşaklı
dc29f4dca2
refactor: switch to using slugify module
4 years ago
Barış Soner Uşaklı
0189945996
refactor: remove util.promisify calls
5 years ago
Barış Soner Uşaklı
2cdb935f1d
feat: remove file.isFileTypeAllowed
5 years ago
Barış Soner Uşaklı
48b41debe6
fix: vulnerability in cover and admin uploads ( #8419 )
...
* fix: vulnerability in cover and admin uploads
* fix: remove old test
* fix: update tests
5 years ago
Baris Usakli
87225a90c3
fix : #8134 , upgrade mkdirp to 1.0.x
5 years ago
Barış Soner Uşaklı
ffe3670ff5
feat: deprecate file.isFileTypeAllowed
...
use image.isFileTypeAllowed, this function was always meant for images
5 years ago
Barış Soner Uşaklı
b842057f26
refactor: remove temp var
5 years ago
Barış Soner Uşaklı
f9d6912b4a
refactor: async/await file
5 years ago
Barış Soner Uşaklı
f5f5f76b12
feat: #7743 plugins/data
6 years ago
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8e6d8295310074b18cc82a504487862.
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
6 years ago
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
6 years ago
Julian Lam
f95308bf33
move sharp require into the method it is used in src/file.js
6 years ago
Barış Soner Uşaklı
b7ead6dc9c
Replace jimp with sharp ( #6774 )
...
* 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
6 years ago
Julian Lam
1f8b4bf820
closes #6576
7 years ago
Barış Soner Uşaklı
5d2a7106f6
change upload storage
7 years ago
Barış Soner Uşaklı
b35bfb81ce
ability to delete uploads from account page #6431
7 years ago
Barış Soner Uşaklı
04979f86a8
delete users uploads on account delete
...
store uid:<uid>:uploads
7 years ago
Barış Soner Uşaklı
c7506d77b0
closes #6247
7 years ago
Peter Jaszkowiak
c47c47f7e3
Use less memory to build translation files ( #6070 )
...
* 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
7 years ago
Peter Jaszkowiak
adc47fd053
Use relative linking ( #6011 )
...
* Use relative linking
* Add copyFile method and tests
Closes #5988
* Fix relative linking on Windows
Hard links and junctions don't work with relative paths
* Fix tests
* Revert ghange to gitignore
7 years ago
Julian Lam
103d9a91a9
Revert "sanitizing uploaded filename without using slugify, in composer, re comment in: #6011"
...
This reverts commit 9f670fe586
.
7 years ago
Julian Lam
9f670fe586
sanitizing uploaded filename without using slugify, in composer, re comment in: #6011
7 years ago
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
7 years ago
Barış Soner Uşaklı
c9d502320f
file.delete method
8 years ago
Barış Soner Uşaklı
29135dfed3
timeago locale test
8 years ago
Barış Soner Uşaklı
13a04123e0
closes #5641
8 years ago
Julian Lam
d18cfced96
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Peter Jaszkowiak
1ed571189c
Make utils and translator easier to require
...
Move utils.walk to file.walk, backwards compatible
8 years ago
Julian Lam
6e7b505ea7
more linting
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Julian Lam
62e0f5f883
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Peter Jaszkowiak
23540afaeb
Resolve merge conflicts
8 years ago
Peter Jaszkowiak
a038c66549
ESlint quotes
8 years ago
Peter Jaszkowiak
604358ecc4
ESlint keyword-spacing, no-multi-spaces
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
pichalite
8dab8864f6
Add extensions for cropped images
8 years ago
Julian Lam
7f124a3ccf
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
aaacdb8413
Fix #5416 , uploads path config setting
...
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
8 years ago
Julian Lam
8a0a74d95e
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Peter Jaszkowiak
186209a0a3
Build plugin `staticDirs`
...
- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
8 years ago
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
8 years ago
Peter Jaszkowiak
ec544518e8
Use async v2
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
8 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
8 years ago
barisusakli
a0ef96a6e1
dont treat url as path, closes #5006
9 years ago
barisusakli
aac0313f2e
closes #4917
9 years ago
Ben Lubar
f5009b1a11
add a hook for plugins like nodebb-plugin-imagemagick that don't want to replace the entire upload system
9 years ago
barisusakli
c50d655922
closes #4325
9 years ago