Commit Graph

120 Commits (55788382ea57ce6d3c8d7256c90e675e51f628f2)

Author SHA1 Message Date
Julian Lam 55788382ea Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 575b70b5ab add some checks to templatesOnDemand
Barış Soner Uşaklı ac1f7eefe5 closes
Barış Soner Uşaklı 18ba08183c fix test
Peter Jaszkowiak fc19f3af61 Misc fixes and improvements ()
* `setup` command fixes and improvements

- Enable using the `./nodebb setup` command for auto-setup with a JSON argument
- Change CLI so package-install and dependency install are separate steps
- Fix 

* Prevent compiling templates multiple times

- Multiple requests for same template get pooled
- Hopefully fixes the "templateFunction is not a function" error which happens if site is restarted during high-traffic times

* More helpful upgrade template
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
Julian Lam 6852c92ed6 Merge remote-tracking branch 'origin/develop'
Peter Jaszkowiak dc87d7fc0f Use .js instead of .jst
Fix 
Julian Lam dea372a5c5 fixes
Peter Jaszkowiak abffc29128 Use Benchpress ()
* Use Benchpress

* Use Benchpress.compileParse

* Error for template load failure

* Use benchpressjs package

* Compile templates on demand

* Fix user settings page

* Fix admin search to exclude `.jst` files

* Fix 500-embed

So ajaxify can still show an error if the server goes down
Julian Lam 6ec1bfd660 added artificial delay on reset route so that the heat death of the universe will arrive before you manage to identify a valid reset code
Julian Lam f59f48c6e1 use setImmediate
Julian Lam c9c27b86c4 added back logic to strip leading slashes, but after the fix to app.all
Baris Usakli e9639833c5 add router.all
Julian Lam 233297367b strip leading slashes from path if double-slash is accidentally used, stripping trailing slash from relative path retrieved from config.json
Marc-Aurèle DARCHE 6248e5562f Fix /apple-touch-icon not sending uploaded file
This fixes the following error:

$ wget https://nodebb.yourdomain/apple-touch-icon

28/6 09:57:06 [28332] - error: /apple-touch-icon
 Error: ENOENT: no such file or directory, stat '/home/sweet/nodebb/public/assets/uploads/system/touchicon-orig.png'
    at Error (native)
Barış Soner Uşaklı 22131640fd closes
Baris Usakli 062bced3dd cleanup and tests
Barış Soner Uşaklı 29135dfed3 timeago locale test
Barış Soner Uşaklı 01e2263c01 more tests
Barış Soner Uşaklı 608a7d120c error handler tests
Julian Lam af2d9fb85b Merge branch 'master' into develop
barisusakli 2188036148 controllers/users refactor
Julian Lam ddea9f534e running eslint again
Julian Lam 72e77772db Merge branch 'master' into develop
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars
Peter Jaszkowiak 09e868ce5f ESlint no-useless-escape, no-else-return
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
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 ae279fe57f casting some values as int, in ensureSelfOrPrivileged middleware
Julian Lam 73879b824c Merge branch 'master' into develop
Peter Jaszkowiak 2f07c18c5a All hail the glorious translation prebuilding
Julian Lam d29361f4c9 added additional visibility masks for profile menu hook, also added isPrivileged user method, closes
Peter Jaszkowiak ffa2bd14f8 Fix reverse proxies breaking admin translations
Julian Lam 33ff5e09bb updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
Julian Lam 23cdeeb344 linting :shipit:
Julian Lam a1b49a98e7 locking down session deletion route to admins and global mods only
Peter Jaszkowiak c5237443cd Standard language codes ()
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
barisusakli 282ac56bf6 adde expose methods back
used by plugins
barisusakli aefba6e2b1 removed some methods
helpers.getBaseUser
exposeUid, exposeGroupName
barisusakli a0f2e8a8ec use req.uid 👍
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
akhoury 46a57f5d5c rm cls because it's not ready yet
Dravere 2fd6391081 Made the session cookie aware of the possible relative path ()