Commit Graph

1152 Commits

Author SHA1 Message Date
Baris Usakli
e3bf21a3a0 closes #6993 2018-11-23 13:02:34 -05:00
Barış Soner Uşaklı
5c48793543 handle quoted strings 2018-11-22 22:38:17 -05:00
Julian Lam
98c14e0e68 fix: removal of scroll anchoring code in favour of browser handling
closes #6150
2018-11-20 16:56:54 -05:00
Barış Soner Uşaklı
f4a00f0b5f only init unread topics for loggedin users
dont call isFollowed
2018-11-19 15:03:53 -05:00
Barış Soner Uşaklı
1ce15e69ab dont require search and moustrap on topic page until needed 2018-11-18 10:32:08 -05:00
Barış Soner Uşaklı
c02d584b53 reduce initial js payload/requests 2018-11-17 20:50:07 -05:00
Baris Usakli
c343b93a37 optimize ajaxify
- do not call $.timeago twice on topic load and for widgets
- do not use toLocaleString for each timeago string, use a single
Intl.DateTimeFormat instance instead
- do not call format for empty timeago strings, ie a post that isnt
edited doesnt have a timeago string
- do not call isTouchDevice for every element
- remove app.replaceSelfLinks, this is superceded with /me route
- store references to jquery objects in navigator instead of creating
them on every scroll
2018-11-17 14:07:56 -05:00
Barış Soner Uşaklı
ac549f8bc7 closes #6957 2018-11-14 16:33:22 -05:00
Barış Soner Uşaklı
973b5fcfe0 closes #6932 2018-11-10 07:35:46 -05:00
Baris Usakli
3e2dffa6d0 fix search in if in query param isn't passed in 2018-11-09 16:29:08 -05:00
Julian Lam
f7bd398eb1 style(eslint): newlines in public/src as well 2018-11-08 12:11:31 -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
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
Barış Soner Uşaklı
6f47446171 closes #6910 2018-11-05 08:20:43 -05:00
Barış Soner Uşaklı
61c7aa4b19 closes #6885 2018-10-29 10:27:29 -04:00
Barış Soner Uşaklı
c27be9db5a Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
2018-10-27 06:26:50 -04:00
Baris Usakli
881185ae59 closes #6857 2018-10-22 13:07:02 -04:00
Julian Lam
c95ad2c46a closes nodebb/nodebb-theme-persona#339 2018-10-11 14:29:49 -04:00
Baris Usakli
6dc84deca9 allow admins mods to watch/ignore categories for other users 2018-10-05 14:37:44 -04:00
André Zanghelini
523a2dc54c Add settings page to control watched categories (#6648)
* Add settings page to control watched categories

* Fix passing undefined to pushUnreadCount
2018-10-05 13:00:18 -04:00
Barış Soner Uşaklı
95ace13599 add loading=false 2018-09-26 22:05:01 -04:00
Barış Soner Uşaklı
ef55598822 filter messages that are already inserted to DOM 2018-09-26 21:30:29 -04:00
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
2018-09-24 12:58:59 -04:00
Barış Soner Uşaklı
669a5135e1 closes #6768 2018-09-19 14:38:07 -04:00
Barış Soner Uşaklı
d880a7ade0 closes #6771 2018-09-18 18:08:46 -04:00
smyther
f120015b54 Fix for user being able to open multiple "delete posts" modals (#6770)
* Implement fix for multiple fork cards showing

* Fix for admin being able to open multiple 'delete posts' modals

* Fix linting issue
2018-09-17 11:07:10 -04:00
smyther
0c9907367a Implement fix for multiple fork cards showing (#6757) 2018-09-14 10:07:01 -04:00
Julian Lam
c2c925cacd closes #6678 2018-08-31 15:34:36 -04:00
Julian Lam
5c04ec2d63 removed client-side chat message length check in favour of server-side check, firing new hook on messaging.checkContent for hooks to intercept 2018-08-29 14:31:53 -04:00
Julian Lam
70f04bd1c2 fixed client-side console error on vote 2018-08-21 22:30:35 -04:00
Julian Lam
a77630c6be closes #6697 2018-08-10 14:22:33 -04:00
Baris Usakli
976b85ccaa closes #6676 2018-07-27 15:24:14 -04:00
Julian Lam
5243ee559a set initial focus on register page 2018-07-26 13:00:40 -04:00
Julian Lam
609f711db0 added logic to handle Chats.switchChat being called with no arguments 2018-07-25 14:15:42 -04:00
Barış Soner Uşaklı
ec33a12dad closes #6644 2018-07-17 21:14:53 -04:00
djls45
4f0a24cfed Preserve case of respondee's slug when responding to their post. 2018-07-17 15:07:20 -04:00
Julian Lam
7a53fa9469 Added block and unblock button to profile dropdown menu, #6560 2018-07-05 14:20:33 -04:00
Barış Soner Uşaklı
4ed079555e Merge remote-tracking branch 'refs/remotes/origin/master' into blocks 2018-07-03 18:43:43 -04:00
Julian Lam
fb42862ec7 check password validity in user delete socket call 2018-07-03 16:38:51 -04:00
Baris Usakli
584f88e092 blocks WIP 2018-07-03 15:12:23 -04:00
Barış Soner Uşaklı
57b7c7ede4 closes #6607 2018-06-27 14:36:12 -04:00
Barış Soner Uşaklı
ccad95cf73 closes #6579 2018-06-18 14:37:37 -04:00
Barış Soner Uşaklı
017b10d5d6 closes #6544 2018-06-15 12:35:49 -04:00
Julian Lam
99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
2018-06-07 14:00:51 -04:00
Barış Soner Uşaklı
779d03cf57 move timestamp to server 2018-06-06 16:21:48 -04:00
Barış Soner Uşaklı
d040544773 fix clicking topics after merge modal is closed 2018-06-06 13:16:04 -04:00
Barış Soner Uşaklı
45cc30a91b remove deprecated code
unread counts are loaded on cold load
2018-06-03 15:03:45 -04:00
Barış Soner Uşaklı
f0a538bd4a closes #6536 2018-06-01 14:38:43 -04:00
Barış Soner Uşaklı
b0dad9bd7f closes #6369 2018-05-31 15:05:12 -04:00