130 Commits (41e70901a676474a06fd4950f905f7a42a75cd68)

Author SHA1 Message Date
Barış Soner Uşaklı 99e0895e99 fix: move the check to get methods
all .post methods will have csrf
7 years ago
Barış Soner Uşaklı 9d28b935fd dont load uid 0, -1 from db 7 years ago
Barış Soner Uşaklı b6771836cf closes #6937 7 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
7 years ago
Julian Lam 501b3a79ca
Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
7 years ago
Julian Lam 84433f29ab
Do not require a full refresh on login/logout (#6841)
* no-refresh login as well, plus lots of fixes for missing config on login

* replace config with new set on logout as well

* passing new payload data into new action:app.loggedIn hook, and old action:app.loggedOut hook

* fixed issues with socket.io not properly representing uid on server

* some light refactoring and cleanup

* minor cleanup, fixed spa logout not working after login

* have reconnection handler for socket.io wait 2s to confirm disconnection before reporting -- stops flicker if reconnecting immediately

* Dynamically replace chat and slideout menu on updateHeader()

... instead of just the menu items.

* more efficient calls to Benchpress and translator /cc @pitaj

* fix: chats and notification handlers not working after login

* fix: accidentally calling cb multiple times
7 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 7 years ago
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
7 years ago
Barış Soner Uşaklı 702be3f6de https://github.com/NodeBB/nodebb-theme-persona/issues/363 7 years ago
Barış Soner Uşaklı cf75c79611
Unread changes closes #6781 (#6783)
* WIP

* more unread work

* faster teaser block handling

if user doesn't have anyone blocked don't check

* much faster filtering of blocked posts

* add missing uid

* add tidsByFilter to return

* dont load all pids to find previous non-blocked teaser

* fix unread filters

they no longer use unread/new unread/watched etc they are query strings now

* shorter nav item code

* add unreplied to filters

fix icons not clearing to 0
dont increment unread counters if there is a reply in a topic where you ignored the topic creator
7 years ago
Julian Lam 3522ad0e05 Revert "closes #6664"
This reverts commit f27a0d252c.
7 years ago
Julian Lam f27a0d252c closes #6664 7 years ago
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 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 1ce448f2a1 Merge remote-tracking branch 'origin/master' into develop 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ı 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
7 years ago
Barış Soner Uşaklı 2b6410f201 Merge remote-tracking branch 'refs/remotes/origin/master' into chat-permission 7 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ı 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
Barış Soner Uşaklı 0498832317 closes #5888 8 years ago
Barış Soner Uşaklı 493cd16f39 closes #5848 8 years ago
Baris Usakli dc110e2e3f closes #5818 8 years ago
Baris Usakli 7538210b07 #5772
load correct timeago settings on cold load instead of after page load
8 years ago
Barış Soner Uşaklı b64ba40c67 closes #5772 8 years ago
Barış Soner Uşaklı 08aaabd33c closes #5642 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
barisusakli 27b030a71c test for #5523 8 years ago
barisusakli 992e3128bd closes #5499 8 years ago
barisusakli e85e35cf0c closes #5497 8 years ago
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files 8 years ago
Barış Soner Uşaklı 9079ee5b14 style 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 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 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 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
Barış Soner Uşaklı 041022db63 #5145
dont crash if res.locals.config is undefined
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 478da29423 closes #5020 9 years ago
barisusakli 07fe5057e1 make sure validator.escape() receives strings only 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 514c12aa68 closes #4885 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 bdc23b4a8d add reputation to app.user 9 years ago
pichalite c5e62f9a58 fixes #4454 9 years ago
barisusakli c156d1cb34 closes #4344 9 years ago
barisusakli d7df6c0b06 remove more from config 9 years ago
psychobunny f94cd21f83 #3875 filter:scripts.get now acts like filter:admin.scripts.get; does not get minified 9 years ago
barisusakli f4bfcc7351 removed icon:bgColor and icon:text from db calls
calculates from username on the fly
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 94129287d0 moved non-async code 10 years ago
barisusakli da4034a10a middleware refactor 10 years ago