Commit Graph

9837 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
f1a6d39537 dont crash if a loginStrategies is undefined 2018-11-16 14:42:57 -05:00
Barış Soner Uşaklı
c72299ad71 refactor widgets admin
so we dont load the widget-settings.tpl in the upgrade script and only load areas
2018-11-15 15:39:58 -05:00
Barış Soner Uşaklı
9fecad138c limit number of js files minified, dont crash upgrade script of widget-settings is not found 2018-11-15 14:54:12 -05:00
Barış Soner Uşaklı
f0dead7aba more tooltip work 2018-11-14 13:53:35 -05:00
Barış Soner Uşaklı
21402ba803 check joindate 2018-11-13 22:18:20 -05:00
Baris Usakli
d0b67b00db closes #6949 2018-11-13 16:19:30 -05:00
Baris Usakli
adb647a8ae export express app from webserver 2018-11-13 14:11:50 -05:00
Julian Lam
f96208a0c8 fix(uploads): ugly filenames on uploaded asset downloading
During regular processing, a timestamp is prepended to the filename
for any uploaded files. We don't want this to be part of the filename
if an end-user elects to download the file.

This commit adds a middleware to strip out that portion of the
basename and adds the appropriate Content-Disposition header for
files in /uploads/files

Fixes #6953
2018-11-13 13:56:33 -05:00
Peter Jaszkowiak
57b39d5ba2 fix(acp): small UI fixes for ACP privileges category selector (#6946)
- Add dropdown chevron
- Change translations
- Safety against `category` not an object
2018-11-13 12:26:50 -05:00
Baris Usakli
c5a093e1f2 closes #6950 2018-11-13 11:10:09 -05:00
Barış Soner Uşaklı
7dabd13fea remove unused 2018-11-12 17:39:22 -05:00
Barış Soner Uşaklı
de14102ee7 Merge branch 'master' of https://github.com/NodeBB/NodeBB 2018-11-12 17:10:00 -05:00
Barış Soner Uşaklı
d9452bf3d4 fix: custom navigation item not showing groups 2018-11-12 17:09:58 -05:00
Julian Lam
b3f96d28aa fix(acp): hard-to-discover dropdown selector in ACP
Made the dropdown an MDL button fab with better positioning via
a p.lead so that it is more easily discoverable and obvious that
it is a button that can be pressed.

Fixes #6899
2018-11-12 16:44:13 -05:00
Barış Soner Uşaklı
a57d94194f Merge branch 'master' of https://github.com/NodeBB/NodeBB 2018-11-12 14:04:40 -05:00
Barış Soner Uşaklı
157a7d1f0e prevent possible crash if category.posts is undefined 2018-11-12 14:04:38 -05:00
Barış Soner Uşaklı
c593ffd75f closes #6944 2018-11-12 12:42:10 -05:00
Barış Soner Uşaklı
d63db8d20f arrow function 2018-11-12 00:22:10 -05:00
Barış Soner Uşaklı
69bb3293ee misc fixes
handle spider uids properly
2018-11-12 00:20:44 -05:00
Barış Soner Uşaklı
afa84023a2 closes #6942 2018-11-11 18:42:15 -05:00
Barış Soner Uşaklı
96e986a865 optimize suggested topics/search 2018-11-11 17:57:17 -05:00
Barış Soner Uşaklı
07f83c5078 fix redis tests 2018-11-11 16:23:36 -05:00
Barış Soner Uşaklı
f8e219c323 handle empty set, add test 2018-11-11 15:39:17 -05:00
Barış Soner Uşaklı
afa6c71b72 make it a method use batch 2018-11-11 12:22:07 -05:00
Zheyu Shen
f9036e2a6f Update groups members' title when changing group name (#6939)
* Update groups members' title when changing group name

* Fix eslint
2018-11-11 12:03:37 -05:00
Barış Soner Uşaklı
18219bd5f3 closes #6938 2018-11-10 22:52:04 -05:00
Barış Soner Uşaklı
e6c4af7f6f fix lint 2018-11-10 21:15:02 -05:00
Barış Soner Uşaklı
e1eebef398 does this work 2018-11-10 21:13:22 -05:00
Barış Soner Uşaklı
e14b0b38be derprelic 2018-11-10 21:09:29 -05:00
Barış Soner Uşaklı
485fbf7386 show more lines in stack 2018-11-10 21:08:04 -05:00
Barış Soner Uşaklı
b6771836cf closes #6937 2018-11-10 20:51:07 -05:00
Baris Usakli
3425370adb dont use indexOf in map 2018-11-10 11:24:10 -05:00
Barış Soner Uşaklı
973b5fcfe0 closes #6932 2018-11-10 07:35:46 -05:00
Baris Usakli
2c5157aeaa use max.min 2018-11-09 16:48:34 -05:00
Baris Usakli
2ee743d65c add itemsPerPage to search api 2018-11-09 16:47:26 -05:00
Baris Usakli
62787368c6 add searchonly option to searh api 2018-11-09 15:09:47 -05:00
Barış Soner Uşaklı
4724901588 use series 2018-11-09 11:19:15 -05:00
Julian Lam
d027207f88 fix: flags detail page crash if reporter blocks author
Fixed an issue where the flags detail page would crash if the
reporting user flagged a post and then proceeded to block the
post author.

Retrieval of a flag's target data should be irrespective of
block status.

fixes #6925
2018-11-08 13:43:45 -05:00
Julian Lam
95cc27f1ff style(eslint): enforcing newline on chained calls 2018-11-08 11:36:00 -05:00
Julian Lam
a5022ce425 fix: #6922, skin assets not including plugin LESS files 2018-11-07 19:18:11 -05:00
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 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
75816deca7 add cache to redis (#6917)
* add cache to redis

move out cache module from mongo

* fix redis tests

* add callback noop

* fix typo

* del cache on field delete

* make redis/mongo caches separate
2018-11-07 15:04:56 -05:00
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
2018-11-07 13:44:35 -05:00
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
2018-11-07 12:34:12 -05:00
Baris Usakli
968be7d8de make lint happy 2018-11-06 13:35:55 -05:00
Baris Usakli
3c611d85ed closes #6912
- on category setParent dialog do not show children of current category
- break recursion if category parentCid is equal to child cid to prevent
infinite loop
- dont allow setting the parentCid of a category to one of it's children
2018-11-06 13:34:29 -05:00
Barış Soner Uşaklı
6f47446171 closes #6910 2018-11-05 08:20:43 -05:00
Julian Lam
3c8939a80d fix: interstitial redirects failing if done via ajaxify 2018-11-01 19:24:34 -04:00
Barış Soner Uşaklı
2df19c0ae4 fix typo 2018-11-01 10:50:50 -04:00
Barış Soner Uşaklı
ed7399f9ed shorter code 2018-11-01 10:44:53 -04:00