Commit Graph

5096 Commits (6b3eb0144e1828f49380afaf120eee4ec3db4c4c)

Author SHA1 Message Date
Julian Lam 5f3d1c76c8
fix: , autoLocale logic not playing nicely with no-refresh auths ()
* fix: , autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
Barış Soner Uşaklı 2604cf6356 fix:
Julian Lam 6df5668e64 fix: , logout code should do hard page nav to / or data.next
Barış Soner Uşaklı 41357abb59 Merge branch 'master' of https://github.com/NodeBB/NodeBB
Barış Soner Uşaklı f581c052ee feat:
- add category selector to privileges and category create modals
- allow category selector to work for multiple selectors on same page
Julian Lam 28a1fa780a fix: skin not changing after login or logout,
Baris Usakli cd02e03f7b don't crash if meta.config is undefined
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences
Peter Jaszkowiak 89c025d102 feat: close , console message if mismatched origins
Barış Soner Uşaklı 58d4376f7e fix:
Barış Soner Uşaklı e78aea1e86 close
show error instead showing crop modal
Barış Soner Uşaklı ed1bf9a16f add more info to advanced db page
Barış Soner Uşaklı 27c016d68d fix alert
Julian Lam f6b92c1d3e fix: , add cache buster to js-enabled.css
Baris Usakli e3bf21a3a0 closes
Barış Soner Uşaklı 5c48793543 handle quoted strings
Barış Soner Uşaklı dc670a7bb5 closes
after first pass of timeago, title contains "21 lis 2018, 10:30" which is invalid for new Date(), check before passing it to format
Barış Soner Uşaklı 625516e046 if there is no search el return
aka if theme doesnt support it
Barış Soner Uşaklı 63c0a9a3b7 closes
Barış Soner Uşaklı 169a6680d5
Julian Lam 98c14e0e68 fix: removal of scroll anchoring code in favour of browser handling
closes 
Baris Usakli 1454fdceff closes
Barış Soner Uşaklı f4a00f0b5f only init unread topics for loggedin users
dont call isFollowed
Barış Soner Uşaklı 33986f38e3 closes
Barış Soner Uşaklı 1ce15e69ab dont require search and moustrap on topic page until needed
Barış Soner Uşaklı c0a75d735b fix requires
Barış Soner Uşaklı c02d584b53 reduce initial js payload/requests
Baris Usakli 0fd5210d37 really fix pagination on mobile
Baris Usakli 2624e302ab fix navigator on mobile
Baris Usakli c1ab753bc3 use paginationBlock
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
Barış Soner Uşaklı ac549f8bc7 closes
Barış Soner Uşaklı f0dead7aba more tooltip work
Barış Soner Uşaklı 4b6b3d5436 set duration to 0
Barış Soner Uşaklı 85c832fcc6 add tooltip
Barış Soner Uşaklı fe8832ad5c dont update if index didnt change
Barış Soner Uşaklı 7b5c4f343a drag nav
Barış Soner Uşaklı de14102ee7 Merge branch 'master' of https://github.com/NodeBB/NodeBB
Barış Soner Uşaklı d9452bf3d4 fix: custom navigation item not showing groups
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 
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
Barış Soner Uşaklı b6771836cf closes
Barış Soner Uşaklı 973b5fcfe0 closes
Baris Usakli 3e2dffa6d0 fix search in if in query param isn't passed in
Julian Lam f7bd398eb1 style(eslint): newlines in public/src as well
Julian Lam aef1c155cc hey husky wtf you doin'
Julian Lam da10ca084b fix: , allow square brackets in usernames
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 ()
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: , linting 😬
Julian Lam 501b3a79ca
Refactor skins to be built on server-side ()
* 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 
Julian Lam 84433f29ab
Do not require a full refresh on login/logout ()
* 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
Baris Usakli 3c611d85ed closes
- 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
Barış Soner Uşaklı 6f47446171 closes
Barış Soner Uşaklı 61c7aa4b19 closes
Barış Soner Uşaklı fee3ec308a use showSelect
Barış Soner Uşaklı c27be9db5a
Recent refactor ()
* 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
Barış Soner Uşaklı 56c1eac1a5 fix translations on dashboard
Barış Soner Uşaklı 69253d9a7f use chart.js legend
Barış Soner Uşaklı 8abef4c101 bg colors
Barış Soner Uşaklı b916dc562f fix bg colors
Barış Soner Uşaklı 804451cc37 update axis ids
Barış Soner Uşaklı c2191167ee fail colors
Barış Soner Uşaklı 5b842c98ac fix typo
Barış Soner Uşaklı 9f36ce3997
Barış Soner Uşaklı 11c2a65b5a fix config values not showing client side if they were set to 0
Andrew Rodrigues e2ecbae06c add body class when cookie consent warning is open
Andrew Rodrigues c9fc65d901 more efficient selectors (apparently)
Baris Usakli 881185ae59 closes
Barış Soner Uşaklı 9c022afae1
Parse int ()
* 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
Julian Lam 762dac6a4a closes
Julian Lam c95ad2c46a closes
Barış Soner Uşaklı 702be3f6de https://github.com/NodeBB/nodebb-theme-persona/issues/363
Baris Usakli 6dc84deca9 allow admins mods to watch/ignore categories for other users
André Zanghelini 523a2dc54c Add settings page to control watched categories ()
* Add settings page to control watched categories

* Fix passing undefined to pushUnreadCount
Barış Soner Uşaklı 49ba5af5fa
closes ()
Barış Soner Uşaklı 95ace13599 add loading=false
Barış Soner Uşaklı ef55598822 filter messages that are already inserted to DOM
Barış Soner Uşaklı 3554a0a725 closes , if fileSize isn't passed in don't perform check
Barış Soner Uşaklı cf75c79611
Unread changes closes ()
* 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
Barış Soner Uşaklı df4f5f6f27
closes
Barış Soner Uşaklı 71ccd67665 closes
calculate size of base64 image from buffer, still not perfect but better than string.length
Barış Soner Uşaklı 669a5135e1 closes
Barış Soner Uşaklı d880a7ade0 closes
André Zanghelini f3956299eb Add tooltip in taskbar icons ()
* Add tooltip in taskbar icons

* Translate taskbar title when creating taskbar
smyther f120015b54 Fix for user being able to open multiple "delete posts" modals ()
* Implement fix for multiple fork cards showing

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

* Fix linting issue
smyther 0c9907367a Implement fix for multiple fork cards showing ()
Barış Soner Uşaklı ebaea9b6c1 closes
Julian Lam c2c925cacd closes
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
Julian Lam 9d202d9be9 closes
Julian Lam 70f04bd1c2 fixed client-side console error on vote
Andrew Rodrigues 12940b577b closes
Julian Lam a77630c6be closes
Barış Soner Uşaklı c0156640e3 add back alert
Barış Soner Uşaklı 14d810c113 show error if cropper fails
Baris Usakli 976b85ccaa closes
Julian Lam ea2bd33bfa fixes , restored template values in widget containers
Julian Lam 5243ee559a set initial focus on register page
Julian Lam 609f711db0 added logic to handle Chats.switchChat being called with no arguments
Barış Soner Uşaklı d06f795856 fix scroll on back
Julian Lam 352bef0a7f eliminate waitSeconds in rjs config
Barış Soner Uşaklı ec33a12dad closes
djls45 4f0a24cfed Preserve case of respondee's slug when responding to their post.
Julian Lam b7fc8493b7 closes
Julian Lam 266eacac7c closes
Julian Lam a07b45fd0f closes
Julian Lam 7a53fa9469 Added block and unblock button to profile dropdown menu,
Barış Soner Uşaklı 4ed079555e Merge remote-tracking branch 'refs/remotes/origin/master' into blocks
Julian Lam fb42862ec7 check password validity in user delete socket call
Baris Usakli 584f88e092 blocks WIP
Timothy Fike e8a3c23d42 Fix verion regex Fixes ()
Barış Soner Uşaklı 57b7c7ede4 closes
Barış Soner Uşaklı 742ddd358b escape url
Barış Soner Uşaklı ccad95cf73 closes
Barış Soner Uşaklı 017b10d5d6 closes
Barış Soner Uşaklı 4293403451 , use templateToRender clientside if its avaiable
Barış Soner Uşaklı c91b96c133 use data.roomName
Julian Lam 99dc3feeb2 Edit history is now a category-level privilege
Closes 
Barış Soner Uşaklı 779d03cf57 move timestamp to server
Barış Soner Uşaklı d040544773 fix clicking topics after merge modal is closed
Julian Lam a3e724e134 resolve window opener being set if ajaxify overrides on external link
Barış Soner Uşaklı b2d5551960 remove deprecated method
Barış Soner Uşaklı a1e933537b remove deprecated method
Barış Soner Uşaklı 45cc30a91b remove deprecated code
unread counts are loaded on cold load
Barış Soner Uşaklı d60d03d00f closes
Barış Soner Uşaklı d5e85c2eb3 closes , closes
Barış Soner Uşaklı f0a538bd4a closes
Barış Soner Uşaklı b0dad9bd7f closes
Barış Soner Uşaklı 81328806a0 closes
Julian Lam 3688840f1f using modal-unfocused instead, so regular modals still appear on-top of composer
_now_ it closes 
Julian Lam 8164a52fc4 no longer using bringModalToTop, in favour of taskbar modal focused class
re: 
Julian Lam 32edfb6c5a updating chat logic to save uuid in data-uuid attr instead of uuid attr
Barış Soner Uşaklı 11bb2f1560 closes
Barış Soner Uşaklı 6940612688 closes
Barış Soner Uşaklı a7267df404 closes
Barış Soner Uşaklı fc56347c22 closes
Barış Soner Uşaklı 667630ff5d closes
Barış Soner Uşaklı 4e495adcd7 add installing notice and refresh
Julian Lam 8e275df803 closes
Julian Lam 5dc25a3c00 Merge remote-tracking branch 'origin/master' into chat-kick-support
Julian Lam a08572b800 kick support for chats,
Barış Soner Uşaklı 8ed86aaf13 closes
Julian Lam dc386b5b23 Merge branch 'master' into user-blocking
Julian Lam 4bac78a568 wrapping up basic blocking UCP for
Julian Lam 8db98b5cf4 additional UCP integration for
Julian Lam 7089e5c6a6 Merge remote-tracking branch 'origin/master' into develop
Julian Lam f0f30041f5 re:
Andrew Rodrigues 1c09094011 show success alert + rebuild msg when ordering plugins
Julian Lam 877b45ab00 adding old path to uploads as well, to ajaxify shirt-circuit
Julian Lam bdbdf510e0 closes
Julian Lam 364ded4f8e Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 501d02220c closes
Barış Soner Uşaklı 5d2a7106f6 change upload storage
Barış Soner Uşaklı 3fb28e9246 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Barış Soner Uşaklı 4cd0020584 closes
Julian Lam 7ba2ac9f69 Merge remote-tracking branch 'origin/master' into develop
Andrew Rodrigues de9f429b89 prepopulate traffic graph datepicker to make life easier
Barış Soner Uşaklı 927537c759 add private upload info
Barış Soner Uşaklı b35bfb81ce ability to delete uploads from account page
Julian Lam f9f75c6b43 fix accidental client-side invocation of post history controls if it was disabled via ACP
Julian Lam 8e822c7772 Added user consent pages ()
- "Your Rights & Consent" user settings page
Andrew Rodrigues 67c8d4b560 maximize graph w/ fullscreen API
Barış Soner Uşaklı ddd3dfc7f0 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Barış Soner Uşaklı 09ef3999b0 fix lint
Barış Soner Uşaklı a4c24cb66b fix saving multiple selects as json arrays
Barış Soner Uşaklı 47606c8df5 merge
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Barış Soner Uşaklı 8b16a63cc2 closes
Barış Soner Uşaklı 11b15872d6 lint
Barış Soner Uşaklı caf43e3025 closes
Julian Lam 113fed05d8 closes
Barış Soner Uşaklı 749b282cdd add matchwords to search api
Baris Usakli 46576189be closes
Peter Jaszkowiak 968d5e441f Fix rebuild ACP alert not working sometimes ()
Timothy Fike 585d613d4b fix reload actions ()
* fix reload actions

* wait until restart action is complete instead of using timeouts.

* Change Reload nominclature to Rebuild and Restart.
Julian Lam 0158b1aa91 Various password logic fixes on client and server-side
Fixes 
Fixes 
Julian Lam 9aa9183cc3 implementing zxcvbn in reset-code tpl, re:
Peter Jaszkowiak dcf1865b54 Fix ACP alerts to use same system as client ()
* Fix PostCSS warning message

* Fix disconnect indicator styling

Would increase size of quick actions when active

* Use same alert system in ACP and client

- Remove snackbar
- Add styling and fix template for ACP (based on Persona)
Barış Soner Uşaklı 2cbae54025 fix focus
Barış Soner Uşaklı 51bd30fe92 closes
Peter Jaszkowiak eaae5b52cd ACP quick actions ()
* 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
Julian Lam 1e01af4d89 closes
Julian Lam 9197879291 fixes
Julian Lam 693c7a3b85 fix 'invalid date' in post history dropdown,
Julian Lam 5d2e6f0e8e Squashed commit of the following:
commit 7bd46afad7033a466626826d3e29610f41328510
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:41:36 2018 -0400

    fixes 

commit 4b755d5801b2f6d70cea10516f88392708c72f61
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:24:12 2018 -0400

    fixes 

commit 6035e75453a08aee0fef7ff59d57dd5c1e8f4ac9
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:07:23 2018 -0400

    Fixes 
Julian Lam 4d9e2b1160 fixes
Barış Soner Uşaklı 221f9848d2 closes
Julian Lam 346187d65d fixes
Julian Lam 3cbca69b27 closes
Julian Lam c93f943bef Merge branch 'develop'
Barış Soner Uşaklı 7d627fe19a
Barış Soner Uşaklı 245e1a9159 closes
Barış Soner Uşaklı 7b45a6ea8b Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Julian Lam f97b64a0c6 Fixes
While not the most elegant solution, I'm only really interested in
stopping registrations that contain two emails in one field.

The only separators I know of are the comma and semicolon. If
there are more, please let me know.
Julian Lam c25d752573 Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 264893a71b closes
Julian Lam 964fd20213 removed addNoReferrer usage as it is done server-side now
Julian Lam a4a961639d only triggering forum updated messaging if hostname matches, fixes
Julian Lam a86d91a552 wrapping up post history work
Julian Lam 55788382ea Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 825c493c40 show error