Barış Soner Uşaklı
d5e85c2eb3
closes #6476 , closes #6546
7 years ago
Barış Soner Uşaklı
d31d8fa806
move category pageview to controllers
...
so topic views are tracked as category views
7 years ago
Barış Soner Uşaklı
4f893d2aff
closes #6535
7 years ago
Julian Lam
99f1a5380e
closes #6483
7 years ago
Barış Soner Uşaklı
beadcd7857
fix tests, remove dupe exposeUid
7 years ago
Julian Lam
dc386b5b23
Merge branch 'master' into user-blocking
7 years ago
Julian Lam
bfee23adee
basic methods and initial integration for #6463
7 years ago
Barış Soner Uşaklı
0070f5c1b2
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Barış Soner Uşaklı
e1df8bd0f0
closes #6390
7 years ago
Barış Soner Uşaklı
ae0f1847ae
allow multiple origins for access-control-allow-origin header
...
add access-control-allow-credentials header to acp
7 years ago
Peter Jaszkowiak
eaae5b52cd
ACP quick actions ( #6374 )
...
* ACP quick actions
- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"
* Change info alert to black-on-white to match focused search bar
* Fix tests
* Fallback for failed fetch of latest version
7 years ago
Baris Usakli
52ab0a00d9
use the acp config for homePageTitle
7 years ago
Barış Soner Uşaklı
245e1a9159
closes #6334
7 years ago
Barış Soner Uşaklı
5069892b97
pass correct uid to client side
...
-1 spider,0 guest, >0 regular user
7 years ago
Julian Lam
c25d752573
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Julian Lam
98b0bdc7e1
added helmet for better standard of protection across the board
7 years ago
Julian Lam
7edc58b727
stricter Referrer-Policy to reduce unintended information leakage
7 years ago
Julian Lam
9a1f722a05
appending X-Upstream-Hostname header in dev mode
7 years ago
Barış Soner Uşaklı
c707e98423
closes #6331
7 years ago
Barış Soner Uşaklı
e36657d48c
add tpl path to error messages
7 years ago
Julian Lam
1ce448f2a1
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Barış Soner Uşaklı
575b70b5ab
add some checks to templatesOnDemand
7 years ago
Barış Soner Uşaklı
379a156328
add status code to body
7 years ago
Barış Soner Uşaklı
7b6282f530
closes #6308
7 years ago
Barış Soner Uşaklı
d16667a5fb
closes #6304
7 years ago
Barış Soner Uşaklı
ac1f7eefe5
closes #2304
7 years ago
Barış Soner Uşaklı
18ba08183c
fix test
7 years ago
Baris Usakli
c090ec301b
fix lint
7 years ago
Barış Soner Uşaklı
f7aa32cd05
dont crash if res.session.meta is not set
7 years ago
Barış Soner Uşaklı
ff6c6a54c1
make upload permissions global
...
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
8 years ago
Barış Soner Uşaklı
2b6410f201
Merge remote-tracking branch 'refs/remotes/origin/master' into chat-permission
8 years ago
Barış Soner Uşaklı
fb97ff2265
canChat should be false if chat is globally disabled
8 years ago
Peter Jaszkowiak
be00a1c013
Support for using yarn instead of npm, include unread counts on cold load ( #6179 )
...
* Close #6178
* Support for package managers besides npm
- Also fixes issue where upgrade-plugins wouldn't work
8 years ago
Baris Usakli
4a73621dca
chat privilege
8 years ago
Barış Soner Uşaklı
7c1f8891a1
use helper
8 years ago
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
8 years ago
Barış Soner Uşaklı
2574dbc850
closes #6140
8 years ago
Baris Usakli
2065f895d5
closes #6037
8 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
8 years ago
Peter Jaszkowiak
f5385e38bf
Add `/me*` route which redirects to `/user/[userslug]*` ( #6063 )
...
* Add `/me*` route which redirects to the current user's information
- `/me` -> `/user/[usertslug]`
- `/me/bookmarks` -> `/user/[userslug]/bookmarks`
- `/me/settings` -> `/user/[userslug]/settings`
etc
* Add tests for `/me/*`
8 years ago
Barış Soner Uşaklı
b1ea137292
closes #6046
8 years ago
Peter Jaszkowiak
e609e497b3
Provide more error information to logs
...
Provides full stack instead of just message
8 years ago
Baris Usakli
47143a4a09
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Barış Soner Uşaklı
a11058bce2
closes #6004
8 years ago
Barış Soner Uşaklı
41fbf7117d
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Barış Soner Uşaklı
056e4f0601
#6004
8 years ago
Barış Soner Uşaklı
ce3e1f31ab
fix for #6004
8 years ago
Julian Lam
9cbf1597cd
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Baris Usakli
68bcfb2883
closes #5975
8 years ago
Julian Lam
cd6dcff38b
Split up customJS into customHTML and customJS for better organisation ( #5981 )
...
* WIP
* fixed customJS not actually working in footer
* Moving scripts to footer, #5980
* Added upgrade scripts for #5980
8 years ago
Julian Lam
6852c92ed6
Merge remote-tracking branch 'origin/develop'
8 years ago
Peter Jaszkowiak
dc87d7fc0f
Use .js instead of .jst
...
Fix #5934
8 years ago
Julian Lam
dea372a5c5
fixes #5932
8 years ago
Barış Soner Uşaklı
5cc39e8546
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# package.json
# src/views/admin/manage/ip-blacklist.tpl
8 years ago
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
8 years ago
Barış Soner Uşaklı
0498832317
closes #5888
8 years ago
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
8 years ago
Baris Usakli
4ac8d29f06
closes #5847
8 years ago
Barış Soner Uşaklı
493cd16f39
closes #5848
8 years ago
Julian Lam
f59f48c6e1
use setImmediate
8 years ago
Julian Lam
c9c27b86c4
added back logic to strip leading slashes, but after the fix to app.all
8 years ago
Baris Usakli
e9639833c5
add router.all
8 years ago
Julian Lam
233297367b
strip leading slashes from path if double-slash is accidentally used, stripping trailing slash from relative path retrieved from config.json
8 years ago
Baris Usakli
dc110e2e3f
closes #5818
8 years ago
Baris Usakli
59aeee6516
remove addExpiresHeaders
8 years ago
Barış Soner Uşaklı
923bd86662
Widgets refactor ( #5817 )
...
* widgets refactor
render widgets server side
widgets can use all the data the template can use
* fix tests
8 years ago
Baris Usakli
e0de922ede
Revert "widgets refactor"
...
This reverts commit 9e94edb5aa
.
8 years ago
Baris Usakli
9e94edb5aa
widgets refactor
...
render widgets server side
widgets can use all the data the template can use
8 years ago
Baris Usakli
7538210b07
#5772
...
load correct timeago settings on cold load instead of after page load
8 years ago
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)
8 years ago
Barış Soner Uşaklı
b64ba40c67
closes #5772
8 years ago
Barış Soner Uşaklı
22131640fd
closes #5749
8 years ago
psychobunny
50367a971e
req should be req. 👍
8 years ago
Barış Soner Uşaklı
08aaabd33c
closes #5642
8 years ago
Baris Usakli
062bced3dd
cleanup and tests
8 years ago
Barış Soner Uşaklı
f57b5f4e4c
refactor
8 years ago
Barış Soner Uşaklı
29135dfed3
timeago locale test
8 years ago
Barış Soner Uşaklı
01e2263c01
more tests
8 years ago
Barış Soner Uşaklı
608a7d120c
error handler tests
8 years ago
Barış Soner Uşaklı
3a1eba2537
merge
8 years ago
psychobunny
b3bd70235a
refactor ban messaging; add ban duration to message; use bootbox instead of alert
8 years ago
Barış Soner Uşaklı
4900f21dd5
fix crash in header
8 years ago
barisusakli
33e8ecc1f4
closes #5404
8 years ago
Peter Jaszkowiak
64bf542d17
Fix HTML `lang` attribute using the `defaultLang`
...
Themes need `lang="{function.localeToHTML, userLang, defaultLang}"` in
their header.tpl file
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
psychobunny
5985a8a7a3
closes #5574
8 years ago
psychobunny
e121a5a798
closes #5574
8 years ago
Julian Lam
1ebbbdd3f9
Merge remote-tracking branch 'origin/master' into develop
8 years ago
barisusakli
27b030a71c
test for #5523
8 years ago
Julian Lam
860999fa6c
Merge remote-tracking branch 'origin/master' into develop
8 years ago
barisusakli
74d2835a1f
escape body class parts
8 years ago
Julian Lam
793555a344
Merge branch 'master' into develop
8 years ago
barisusakli
992e3128bd
closes #5499
8 years ago
Julian Lam
af2d9fb85b
Merge branch 'master' into develop
8 years ago
barisusakli
e85e35cf0c
closes #5497
8 years ago
barisusakli
2188036148
controllers/users refactor
8 years ago
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
9 years ago
Julian Lam
73879b824c
Merge branch 'master' into develop
9 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=`
9 years ago
Peter Jaszkowiak
2f07c18c5a
All hail the glorious translation prebuilding
9 years ago
Julian Lam
9dcbe875a0
Merge branch 'master' into develop
9 years ago
Julian Lam
2a9088d571
updating checkGlobalPrivacySettings middleware to hook into write-api for auth
9 years ago
Julian Lam
d29361f4c9
added additional visibility masks for profile menu hook, also added isPrivileged user method, closes #5306
9 years ago
Peter Jaszkowiak
ffa2bd14f8
Fix reverse proxies breaking admin translations
9 years ago
barisusakli
53fe432d8a
fix hook
9 years ago
barisusakli
97c0b33cf6
filter:middleware.render
9 years ago
Julian Lam
acf2e4078b
fixes #5263
9 years ago
Julian Lam
33ff5e09bb
updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
9 years ago
Julian Lam
23cdeeb344
linting :shipit:
9 years ago
Julian Lam
a1b49a98e7
locking down session deletion route to admins and global mods only
9 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