Julian Lam
ddea9f534e
running eslint again
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
dd2b930824
Resolve merge conflicts, minify only `.js` files
8 years ago
Julian Lam
8154e29ad5
Merge branch 'master' into develop
8 years ago
Barış Soner Uşaklı
9079ee5b14
style
8 years ago
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
8 years ago
Peter Jaszkowiak
09e868ce5f
ESlint no-useless-escape, no-else-return
8 years ago
Peter Jaszkowiak
a0a50677da
ESlint n-loop-func, yoda
8 years ago
Peter Jaszkowiak
c4bdb72941
ESlint no-unneeded-ternary
...
and no-extend-native, no-sequences
8 years ago
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
8 years ago
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
8 years ago
Peter Jaszkowiak
feb8405f95
ESlint eol-last
8 years ago
Peter Jaszkowiak
41896e1fc7
ESlint lines-around-directive
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
a5a3f3089a
ESlint no-mixed-operators
8 years ago
Peter Jaszkowiak
b1b486f729
ESlint quote-props
8 years ago
Peter Jaszkowiak
3361a72725
ESlint no-plusplus
...
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak
52f2028206
ESlint no-multiple-empty-lines
8 years ago
Peter Jaszkowiak
2ba46808a1
ESlint one-var, fix comma-dangle
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
Julian Lam
fcaefbadca
Merge remote-tracking branch 'origin/master' into develop
8 years ago
barisusakli
30f35c42f6
fix eslint
8 years ago
barisusakli
a3cbe5e090
#5436
8 years ago
barisusakli
21eefb9760
closes #5436
8 years ago
Julian Lam
7f124a3ccf
Merge branch 'master' into develop
8 years ago
Julian Lam
7ba111acdd
Merge pull request #5420 from NodeBB/assets-route
...
/assets/uploads
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
Julian Lam
b5daedb7a3
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Peter Jaszkowiak
bb1bfb0449
Merge branch 'master' into assets-route
8 years ago
barisusakli
a15aaaf389
closes #5394
...
dont allow socket.emits during maintenance mode
8 years ago
Julian Lam
bfd16d188e
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
360a35d0a6
Resolve merge conflicts
8 years ago
barisusakli
ae7f9bac98
prevent crash if uri is malformed
8 years ago
Julian Lam
ae279fe57f
casting some values as int, in ensureSelfOrPrivileged middleware
8 years ago
Julian Lam
73879b824c
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
05b68391dd
Use `/assets` for client assets
...
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
8 years ago
Peter Jaszkowiak
2f07c18c5a
All hail the glorious translation prebuilding
8 years ago
Julian Lam
9dcbe875a0
Merge branch 'master' into develop
8 years ago
Julian Lam
2a9088d571
updating checkGlobalPrivacySettings middleware to hook into write-api for auth
8 years ago
Julian Lam
d29361f4c9
added additional visibility masks for profile menu hook, also added isPrivileged user method, closes #5306
8 years ago
Peter Jaszkowiak
ffa2bd14f8
Fix reverse proxies breaking admin translations
8 years ago
barisusakli
53fe432d8a
fix hook
8 years ago
barisusakli
97c0b33cf6
filter:middleware.render
8 years ago
Julian Lam
acf2e4078b
fixes #5263
8 years ago
Julian Lam
33ff5e09bb
updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
8 years ago
Julian Lam
23cdeeb344
linting :shipit:
8 years ago
Julian Lam
a1b49a98e7
locking down session deletion route to admins and global mods only
8 years ago
barisusakli
6beacdb80c
fix headers for new installs
...
encodeURI(undefined) === "undefined"
9 years ago
Julian Lam
b7fa8c1db1
fixes #5230
9 years ago
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
9 years ago
barisusakli
17f8afd0dc
closes #5230
9 years ago
barisusakli
38bc8ad5ae
maintenance tests
9 years ago
barisusakli
2476ab3684
closes #5202
9 years ago
barisusakli
ce9be7e694
closes #5132
9 years ago
Julian Lam
663f05b972
adding back banReason to header rendering, as it regressed in 1f10e0b
9 years ago
Julian Lam
1f10e0b287
fixed #5166
9 years ago
Julian Lam
f97f45a138
logic to show a modal to banned users when they try to log in via SSO
9 years ago
Sergii Paryzhskyi
e515b791da
Fix eslint rules ( #5117 )
...
* Fix semi linter rule
* Fix semi-spacing linter rule
* Fix no-undef-init linter rule
* Fix space-before-blocks linter rule
9 years ago
barisusakli
a995afbfe0
fix style
9 years ago
Julian Lam
2463e85c0d
allowing moderators access to the account info page
9 years ago
Barış Soner Uşaklı
041022db63
#5145
...
dont crash if res.locals.config is undefined
9 years ago
barisusakli
c972a339e6
fix value
9 years ago
barisusakli
862678eefe
encodeURIComponent header values
9 years ago
Julian Lam
ead4de6c6f
Merge branch 'fix-some-code-lint' of https://github.com/HeeL/NodeBB into HeeL-fix-some-code-lint
9 years ago
Julian Lam
eb16eb318e
exposing links to moderator tools pages in user logged-in dropdown, closes #5113
9 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
9 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
9 years ago
barisusakli
98fff29869
closes #5082
9 years ago
barisusakli
15409f92cd
escape history data, hide moderation note in api
9 years ago
barisusakli
282ac56bf6
adde expose methods back
...
used by plugins
9 years ago
barisusakli
aefba6e2b1
removed some methods
...
helpers.getBaseUser
exposeUid, exposeGroupName
9 years ago
barisusakli
478da29423
closes #5020
9 years ago
barisusakli
07fe5057e1
make sure validator.escape() receives strings only
9 years ago
barisusakli
a0f2e8a8ec
use req.uid 👍
9 years ago
barisusakli
8f408faf46
organize middlewares
...
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
9 years ago
barisusakli
f7540a7edc
closes #4811
9 years ago
barisusakli
409621c661
closes #4843
9 years ago
Mathias Schreck
ce9ee62fa0
Handle callback errors
9 years ago
barisusakli
2103880d61
only extend 5mins if less than 5mins left
9 years ago
barisusakli
514c12aa68
closes #4885
9 years ago
barisusakli
2606844d98
closes #4868
9 years ago
Julian Lam
71a5e4a8a1
better error handling for session revocation if no login session is present, #4214
9 years ago
Ben Lubar
40b57d6cbe
add "Admin Approval for IPs", which works like Normal for new users and Admin Approval for sockpuppet accounts ( #4882 )
9 years ago
barisusakli
fcf145fc81
403 if not logged in, show error
9 years ago
psychobunny
f3c48eb14a
oops, #4832
9 years ago
psychobunny
6df3157748
closes #4832
9 years ago
barisusakli
8ea5752b50
added url property to all routes
9 years ago
akhoury
46a57f5d5c
rm cls because it's not ready yet
9 years ago
Julian Lam
f03018b7cc
updated middlewares so if you have not completed registration, you will be required to do so
9 years ago
barisusakli
bdc23b4a8d
add reputation to app.user
9 years ago
Julian Lam
149565169b
closes #4658
9 years ago
Nate Lee
07c59ae174
changed cls.getItem to equal cls.get from cls.set
...
based off of naming schema
9 years ago
Dravere
2fd6391081
Made the session cookie aware of the possible relative path ( #4663 )
9 years ago
Julian Lam
ef4a94857d
fixed admin lockout timer for subfolder installs @barisusakli :trollface:
9 years ago
Julian Lam
437770538c
work-in-progress commit for #4655
9 years ago
barisusakli
16ba7ee840
fix #1972
9 years ago
barisusakli
2e0763b0a8
closes #1972
9 years ago
Julian Lam
621e0d145e
closes #4617
...
Serving english timeago strings from server instead of round-trip
re-request on failure.
9 years ago
Barış Soner Uşaklı
f0685468f8
Merge pull request #4162 from akhoury/master
...
add continuation-local-storage (CLS) support
9 years ago
barisusakli
702597d759
change /user/uid to /uid/:uid
...
so it doesn't conflict with actual user routes
was causing incorrect redirects if a user had a numeric userslug
@julianlam
9 years ago
psychobunny
4cdeae33e5
don't add "page-xxx-" class if trailing slash exists
9 years ago
barisusakli
eb0aea6390
add /user/<uid> and /post/<pid> redirects
...
change notifications to use new redirects
9 years ago
barisusakli
cef7fb545b
closes #1972
9 years ago
barisusakli
25f3a31ff1
closes #4587
9 years ago
Julian Lam
2e2c8b8e77
fixes #4584
9 years ago
Aziz Khoury
01ee020750
bring back disconnect only for CLS purposes
9 years ago
Aziz Khoury
53e9627001
unify request as a store key for both http and websockets calls
9 years ago
pichalite
c5e62f9a58
fixes #4454
9 years ago
barisusakli
86106971c4
closes #4382
9 years ago
Ben Lubar
3c607f2612
fix two crashes
9 years ago
barisusakli
c71ffed69c
closes #4362
9 years ago
barisusakli
b1284f900d
up toobusy default
9 years ago
Julian Lam
184a2c4540
IP blacklist functionality -- re: #4367
...
Squashed commit of the following:
commit 5c42fd732d091fa66cf5b45a2af5e1697cc1efcd
Author: Julian Lam <julian@nodebb.org>
Date: Mon Mar 14 17:29:45 2016 -0400
allowing blacklist.test to be called synchronously
commit 979faf2dba5e6f6e2ae1bd07341e63678438daf1
Author: Julian Lam <julian@nodebb.org>
Date: Mon Mar 14 17:01:14 2016 -0400
added plain ipv6 support and finished middleware logic
commit d4b72fc1aadff34df3ed7dec52ca8d3c3728a078
Author: Julian Lam <julian@designcreateplay.com>
Date: Fri Mar 11 16:05:31 2016 -0500
WIP IP Banning logic middleware
commit f08b2553890c5522b6a1eaf521fe4e94df40574a
Author: Julian Lam <julian@designcreateplay.com>
Date: Fri Mar 11 15:26:27 2016 -0500
tweaks to ACP, rule validator
commit 868abacaa494e6b8a88bd4ea429b1b066a9ecb2e
Author: Julian Lam <julian@designcreateplay.com>
Date: Fri Mar 11 13:50:05 2016 -0500
IP Banning ACP page, styling, save&load functionality
9 years ago
barisusakli
c156d1cb34
closes #4344
9 years ago
akhoury
07586c9023
merge
9 years ago
Julian Lam
088940d4c7
Squashed commit of the following:
...
commit 49e6c0040cc82c1e2684933a8e167ef14854aff8
Author: Julian Lam <julian@designcreateplay.com>
Date: Thu Feb 25 16:12:15 2016 -0500
added recording and charts for topic and post counts globally and by cid
commit e02ff70757f778aa016fbc42ef10a5da2d07a9d9
Author: Julian Lam <julian@designcreateplay.com>
Date: Thu Feb 25 15:35:49 2016 -0500
added labels to charts
commit e75d83bf3886e5183bcf5fcd848d71c513761e01
Author: Julian Lam <julian@designcreateplay.com>
Date: Thu Feb 25 13:30:47 2016 -0500
added per category graphs to ACP management page
commit e3f543200950925cc9e8bf33cccb592f949a100e
Author: Julian Lam <julian@designcreateplay.com>
Date: Thu Feb 25 12:36:11 2016 -0500
updated analytics to move helper methods to analytics lib and sending per category analytics to ACP page
commit 01891d8f7c408925fcdad18dcaa941e5ebbeb9b2
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Feb 24 16:48:55 2016 -0500
saving per-category analytics, and updated the writeData method to use async for "clarity"
9 years ago
akhoury
bdc8e6f04f
Merge remote-tracking branch 'upstream/master'
9 years ago
Barış Soner Uşaklı
88e4591f88
closes #4194
9 years ago
akhoury
496e5ae8bf
comment
9 years ago
akhoury
7f0c46b3a7
Merge remote-tracking branch 'upstream/master'
9 years ago
akhoury
4245cb2739
adding cls support for ws
9 years ago
barisusakli
d7df6c0b06
remove more from config
9 years ago
akhoury
852a1a178e
oops
9 years ago
akhoury
61c76e4aba
add continuation-local-storage support
9 years ago
psychobunny
f94cd21f83
#3875 filter:scripts.get now acts like filter:admin.scripts.get; does not get minified
9 years ago
psychobunny
9430a626f4
#3875
9 years ago
Julian Lam
00a22e945d
closes #3899
9 years ago
barisusakli
7ad90b4ef6
closes #2659
9 years ago
Julian Lam
ad9a1d0f2c
closes #3989
...
Squashed commit of the following:
commit 23de0708708ed190eafbcd6ea93d43333cb87aa3
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Dec 23 10:48:16 2015 -0500
wired up session revocation, #3989
commit 45a3f18321b74a9b6893d404b6c870f1ec4d95cd
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Dec 23 09:49:27 2015 -0500
session deletion via session uuid
commit 2bf87338cf9bfa2df0b299639421d8da7553c69a
Author: Julian Lam <julian@designcreateplay.com>
Date: Tue Dec 22 13:53:35 2015 -0500
WIP #3989
commit 623f45c3fa8b96f8b6eec0613eb7f9463348ab93
Author: Julian Lam <julian@designcreateplay.com>
Date: Tue Dec 22 10:22:24 2015 -0500
saving more metadata and displaying sessions in UCP #3989
commit d0567ed7cc33a1aea66e921b657f782038f32191
Author: Julian Lam <julian@designcreateplay.com>
Date: Tue Dec 22 10:21:38 2015 -0500
updated fontawesome to v4.5.0
commit 7131c97fe8ab42838eb2915a04e74f80f3d9a133
Author: Julian Lam <julian@designcreateplay.com>
Date: Tue Dec 22 09:39:16 2015 -0500
saving user-agent metadata into user session #3989
commit 661b7e6dba774b80b5dc6d04f89a79f809ff791e
Author: Julian Lam <julian@designcreateplay.com>
Date: Tue Dec 22 09:23:24 2015 -0500
New user auth methods to add/revoke sessions, #3989
9 years ago
Julian Lam
cc4997aeca
fixes #3940
9 years ago
Julian Lam
3a520cdfbf
Successful web installer now doesn't show 503
9 years ago
Julian Lam
9589de551e
added toggler to disable toobusy if necessary
10 years ago
barisusakli
33f07b82f9
closes #3893
10 years ago
barisusakli
ecd777b659
closes https://github.com/NodeBB/nodebb-theme-persona/issues/206
10 years ago
barisusakli
5a9edf5973
closes #3881
10 years ago
Barış Soner Uşaklı
c55abdd095
closes #3815
10 years ago
barisusakli
016aef1716
too busy check on prod
10 years ago
Julian Lam
b8b9da2c30
Squashed commit of the following:
...
commit 62d59620d26bc97c7d689e9af57cd8bff654c79e
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 11:04:27 2015 -0500
tweaked 503 template
commit 15a61cbc239c9d654691d91cdadce59e13d97586
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 10:58:19 2015 -0500
added text about reloading being required if threshold values are changed
commit 3fe87699332ef0628b4db31f4afef245802a7bc0
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 10:53:35 2015 -0500
added ACP settings for toobusy
commit f6a9964baff051072052e6ef99da9e1ffba014df
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 08:53:53 2015 -0500
removed unused 503a template
commit e6d444736baf4c676f8461d30a5504c6e45df163
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 02:01:11 2015 -0500
updated code to send static 503 instead of maintenance-style page
commit 11089ae2bb833e068b01ee77ee745d9fd5344805
Author: Julian Lam <julian@designcreateplay.com>
Date: Wed Nov 4 01:18:45 2015 -0500
added toobusy support so the Node process doesn't fall over at high load
10 years ago
barisusakli
ca4440b8af
closes #3799
10 years ago
barisusakli
f4bfcc7351
removed icon:bgColor and icon:text from db calls
...
calculates from username on the fly
10 years ago
Julian Lam
8d4209d42c
Merge remote-tracking branch 'origin/master' into user-icons
10 years ago
psychobunny
9bef54b5ed
fix title for dashboard
10 years ago
Julian Lam
526afc0910
Merge remote-tracking branch 'origin/master' into user-icons
10 years ago
psychobunny
07c50cba7d
titles for ACP routes
10 years ago
Julian Lam
b52475c270
Merge remote-tracking branch 'origin/master' into user-icons
...
Conflicts:
public/src/client/account/edit.js
src/middleware/middleware.js
src/socket.io/meta.js
src/socket.io/user/picture.js
src/user.js
src/views/admin/manage/group.tpl
10 years ago
barisusakli
751a6c6839
got rid of extra call to user.getSettings
10 years ago
barisusakli
f2d6f931af
closes #3505
10 years ago
barisusakli
f5e7d1ce01
private uploads
10 years ago
barisusakli
3a3c5486b7
expose method
10 years ago
barisusakli
94129287d0
moved non-async code
10 years ago
barisusakli
17dd1ff485
fix next
10 years ago
barisusakli
da4034a10a
middleware refactor
10 years ago
Julian Lam
896abb59d3
Update default gravatar admin option to defaultAvatar
10 years ago
Julian Lam
97dd5500a1
Merge remote-tracking branch 'origin/master' into user-icons
10 years ago
barisusakli
ca294fc6ec
closes #3663
10 years ago
Julian Lam
a4c2626bdc
mobile menu header
10 years ago
Julian Lam
f6d5b52a8b
WIP user-icons
10 years ago
barisusakli
4e2318fa1e
fix title in acp removed extra |
10 years ago
barisusakli
13508ca7f9
closes #3547
10 years ago
barisusakli
75af978145
closes #3646
10 years ago
barisusakli
1dd706d0b2
crash fix, res.locals.config can be undefined
10 years ago
barisusakli
dd5a8e8a88
closes #3568
10 years ago
barisusakli
7c319c9b20
fix browser title on home page
10 years ago
barisusakli
c3719ea5b5
closes #3519
10 years ago
barisusakli
93e6916fe6
moved maintenace mode middleware
10 years ago
barisusakli
25502f0687
closes #3508
10 years ago
barisusakli
48512bff6b
get rid of app.exposeConfigToTemplates
10 years ago
psychobunny
dbc9c07b55
403 browser title
10 years ago
psychobunny
4b91d7ec3d
req.route is not defined if you go to some bogus url
10 years ago
psychobunny
4b5f67eb4d
use [[pages:home]] instead
10 years ago
psychobunny
5dae60faff
closes #3502
10 years ago
psychobunny
8cc91ea6e7
fix crash in middleware.renderHeader
10 years ago
barisusakli
eaefd9d24c
remove meta/title.js and meta.title.build #3481
10 years ago
Barış Soner Uşaklı
1a6e576483
async
10 years ago
barisusakli
fee08cd665
closes https://github.com/NodeBB/NodeBB/pull/3250
10 years ago
Barış Soner Uşaklı
5e9a123e70
Merge pull request #3360 from jsdream/renderHeaderHook
...
Add 'filter:middleware.renderHeader' hook
10 years ago
jsdream
103055b262
Add error check in 'filter:middleware.renderHeader' hook callback
10 years ago
barisusakli
aec4ee5392
crash fix
10 years ago
psychobunny
0150e0e063
closes #3069
10 years ago
psychobunny
275769a801
closes #3435
10 years ago
psychobunny
b3639f3c71
closes #3429
10 years ago
psychobunny
842815e5e9
closes #3445
10 years ago
Julian Lam
08fb30378a
Closes #3302
...
- Fixes issue where the served path for the favicon was incorrect (included relative path when one was not needed)
- Also fixes issue where favicons were just plain not served for subfolder installations
- Fixed unsemantic HTML in ACP/General regarding Site Logo and Favicon fieldsets
10 years ago
barisusakli
0534da0ed1
closes #3389
10 years ago
Julian Lam
03b6b1e15c
Fixed crash on launch if no hooks listen to filter:router.page
...
A previous commit added a new hook, although it executed async.each on a var without a null check, so if no hooks were registered, it was null, and not an empty array, causing async to crash.
10 years ago
Julian Lam
5a50a098d8
added a new middleware and plugin hook
...
- Middleware added: requireUser, redirects to login if there is no user session.
- Hook added: filter:router.page
10 years ago
jsdream
29fcbf6750
Add 'filter:middleware.renderHeader' hook
10 years ago
Julian Lam
df055ce7ea
if buildHeader middleware is called, isAPI is now set to false
10 years ago
barisusakli
954c25823e
closes #3352
10 years ago
barisusakli
9e63aaebb8
added new hook action:middleware.pageView
10 years ago
barisusakli
65ab5733ef
added categories navigation item, ability to change logo url
10 years ago
Julian Lam
da1c347fc2
closes #3297
10 years ago
barisusakli
ffd22f50ff
closes #1999
10 years ago
barisusakli
57c2418157
closes #1306
10 years ago
psychobunny
ff234bccfe
redirectToLogin()
10 years ago
psychobunny
deda4a4ed6
fixes for 503's in maintenance mode
10 years ago
psychobunny
e3ee3de95d
lint
10 years ago
Julian Lam
170126680b
#3213
10 years ago