Barış Soner Uşaklı
18ba08183c
fix test
2018-01-26 19:26:48 -05:00
Peter Jaszkowiak
fc19f3af61
Misc fixes and improvements ( #6143 )
...
* `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 #6142
* 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
2017-12-04 15:49:44 -05:00
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
2017-11-16 17:43:52 -05:00
Julian Lam
6852c92ed6
Merge remote-tracking branch 'origin/develop'
2017-10-03 13:37:43 -04:00
Peter Jaszkowiak
dc87d7fc0f
Use .js instead of .jst
...
Fix #5934
2017-09-23 12:51:20 -06:00
Julian Lam
dea372a5c5
fixes #5932
2017-09-14 10:15:05 -04:00
Peter Jaszkowiak
abffc29128
Use Benchpress ( #5901 )
...
* 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
2017-08-24 19:26:50 -04:00
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
2017-08-16 12:51:02 -04:00
Julian Lam
f59f48c6e1
use setImmediate
2017-07-25 14:11:54 -04:00
Julian Lam
c9c27b86c4
added back logic to strip leading slashes, but after the fix to app.all
2017-07-25 13:50:37 -04:00
Baris Usakli
e9639833c5
add router.all
2017-07-25 12:11:11 -04:00
Julian Lam
233297367b
strip leading slashes from path if double-slash is accidentally used, stripping trailing slash from relative path retrieved from config.json
2017-07-25 10:39:57 -04:00
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)
2017-06-28 15:02:17 +02:00
Barış Soner Uşaklı
22131640fd
closes #5749
2017-06-08 17:17:46 -04:00
Baris Usakli
062bced3dd
cleanup and tests
2017-05-25 16:40:07 -04:00
Barış Soner Uşaklı
29135dfed3
timeago locale test
2017-05-23 23:32:38 -04:00
Barış Soner Uşaklı
01e2263c01
more tests
2017-05-12 17:53:23 -04:00
Barış Soner Uşaklı
608a7d120c
error handler tests
2017-05-10 21:02:36 -04:00
Julian Lam
af2d9fb85b
Merge branch 'master' into develop
2017-03-06 09:51:11 -05:00
barisusakli
2188036148
controllers/users refactor
2017-03-02 00:14:30 +03:00
Julian Lam
ddea9f534e
running eslint again
2017-02-24 12:47:46 -05:00
Julian Lam
72e77772db
Merge branch 'master' into develop
2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
09e868ce5f
ESlint no-useless-escape, no-else-return
2017-02-18 14:27:26 -07:00
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
a038c66549
ESlint quotes
2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
604358ecc4
ESlint keyword-spacing, no-multi-spaces
2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
2ba46808a1
ESlint one-var, fix comma-dangle
2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
Julian Lam
7f124a3ccf
Merge branch 'master' into develop
2017-02-10 12:55:11 -05:00
Peter Jaszkowiak
aaacdb8413
Fix #5416 , uploads path config setting
...
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
2017-02-08 11:41:34 -07:00
Julian Lam
ae279fe57f
casting some values as int, in ensureSelfOrPrivileged middleware
2017-01-24 12:33:27 -05:00
Julian Lam
73879b824c
Merge branch 'master' into develop
2017-01-20 12:33:17 -05:00
Peter Jaszkowiak
2f07c18c5a
All hail the glorious translation prebuilding
2017-01-14 14:08:52 -07:00
Julian Lam
d29361f4c9
added additional visibility masks for profile menu hook, also added isPrivileged user method, closes #5306
2017-01-11 15:06:28 -05:00
Peter Jaszkowiak
ffa2bd14f8
Fix reverse proxies breaking admin translations
2017-01-07 22:48:57 -07:00
Julian Lam
33ff5e09bb
updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
2016-12-02 10:50:47 -05:00
Julian Lam
23cdeeb344
linting :shipit:
2016-12-02 10:07:33 -05:00
Julian Lam
a1b49a98e7
locking down session deletion route to admins and global mods only
2016-12-02 09:49:52 -05:00
Peter Jaszkowiak
c5237443cd
Standard language codes ( #5218 )
...
* 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
2016-11-23 11:50:49 -05:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
barisusakli
282ac56bf6
adde expose methods back
...
used by plugins
2016-09-14 21:21:32 +03:00
barisusakli
aefba6e2b1
removed some methods
...
helpers.getBaseUser
exposeUid, exposeGroupName
2016-09-14 14:33:39 +03:00
barisusakli
a0f2e8a8ec
use req.uid 👍
2016-08-26 18:55:44 +03:00
barisusakli
8f408faf46
organize middlewares
...
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
2016-08-26 18:50:37 +03:00
akhoury
46a57f5d5c
rm cls because it's not ready yet
2016-06-24 16:57:58 -04:00
Dravere
2fd6391081
Made the session cookie aware of the possible relative path ( #4663 )
2016-05-18 12:43:46 -04:00
akhoury
4245cb2739
adding cls support for ws
2016-02-12 12:20:21 -05:00
akhoury
61c76e4aba
add continuation-local-storage support
2016-02-07 13:16:50 -05:00
Julian Lam
00a22e945d
closes #3899
2016-01-04 16:23:08 -05:00