1616 Commits (d586b8b6b554d6c0f8459d3f4e0d9e4782b4270d)

Author SHA1 Message Date
Barış Soner Uşaklı b179f0fc0f fix: use component instead of class name 4 years ago
Julian Lam 2fe53cf849 feat: `GET /api/v3/chats/:roomId/messages` 4 years ago
Julian Lam aaa6f752d0 refactor: put message api calls behind `/messages` prefix, #10097 4 years ago
Julian Lam 16ba16cdc4 fix: deprecate chats.leave 4 years ago
Julian Lam fe17c94c35 feat: `DELETE /api/v3/chats/:roomId/users` and `DELETE /api/v3/chats/:roomId/users/:uid` 4 years ago
Julian Lam d62ee84637 feat: `POST /chats/:roomId/users` 4 years ago
Julian Lam 6eea6451d2 feat: `GET /chats/:roomId/users` [breaking] 4 years ago
Julian Lam d5fd098ecf feat: `POST /chats/:roomId/:mid` and `DELETE /chats/:roomId/:mid` 4 years ago
Julian Lam f48ed3658a feat: `PUT /chats/:roomId/:mid` 4 years ago
Julian Lam 9a4fd5dc7e feat: `PUT /api/v3/chats/:roomId` 4 years ago
Julian Lam eeffb9d978 feat: `POST /api/v3/chats/:roomId` 4 years ago
Barış Soner Uşaklı a115b771f0 fix: #10096, don't display preview for links if hostname doesnt match 4 years ago
Barış Soner Uşaklı a9f81215cf fix: only render preview on topic page 4 years ago
Nazim d23ac79839 Revert 4 years ago
Barış Soner Uşaklı fdaf8274cf fix: #10090, remove left over necro posts messages 4 years ago
Barış Soner Uşaklı c4042c70de feat: #9506, allow seeing and editing your queued posts
allow regular users access to post queue
allow regular users to edit their queued post/topic title
allow regular users to remove their post from post queue
ability to send a notification to user without removing from post queue
allow accessing single post queue items from notifications
4 years ago
Barış Soner Uşaklı 633061f4a7 refactor: remove comment 4 years ago
Barış Soner Uşaklı d4f3ee67fa refactor: use .map to return promises 4 years ago
Barış Soner Uşaklı 6ad0472106 breaking: remove socket.emit('topics.post')
remove socket.emit('topics.search')
remove socket.emit('topics.getTopic')
4 years ago
Barış Soner Uşaklı bd1cb2d4f9 breaking: remove socket.emit('posts.delete')
remove socket.emit('posts.restore')
remove socket.emit('posts.purge')
remove socket.emit('posts.deletePosts')
remove socket.emit('posts.purgePosts')
4 years ago
Barış Soner Uşaklı 236d4e8056 fix: #10068, update data-index values after sort 4 years ago
Barış Soner Uşaklı 9af2335134 fix: #10068, baseIndex should be read before sort update fix off by one error 4 years ago
Barış Soner Uşaklı 906dc5675e fix: handle start=0 stop=0 for topics.getTopicPosts
add more tests
4 years ago
Barış Soner Uşaklı 621c142f8e refactor: alerts 4 years ago
Barış Soner Uşaklı 0a6eeb933e lint: fix 4 years ago
Barış Soner Uşaklı cba78aee16 refactor: use alerts.error/success 4 years ago
Barış Soner Uşaklı 1980feed46 refactor: use alerts module 4 years ago
Barış Soner Uşaklı 36aa60346b breaking: remove action:category.loaded, use action:topics.loading
action:category.loaded will not fire on infintite load of topics
4 years ago
Baris Usakli d378bf4c9c fix: quote button staying on screen on slow computers 4 years ago
Barış Soner Uşaklı fb363957d1 refactor: tab rules 4 years ago
Barış Soner Uşaklı d5bfd51267 fix: #10010, handle reverse sorting for topic events
dont add events to dom if sort is most votes
if sorting is reverse add new events after the main post or at the top instead of bottom
4 years ago
Barış Soner Uşaklı 4359e5c97c refactor: remove tabs after declaration 4 years ago
Barış Soner Uşaklı 258f368e32 refactor: add filter:topic.getPosts
this hook only fires when loading the posts of a topic cold load + infinite scroll
do not remove posts if they have index =-1
use topics.getTopicPosts instead of getMainPostAndReplies
4 years ago
Barış Soner Uşaklı 231472354e perf: create user tooltips on demand 4 years ago
Barış Soner Uşaklı 7f8783555b Revert "perf: remove createUserTooltips"
This reverts commit facc10e40f.
4 years ago
Baris Usakli facc10e40f perf: remove createUserTooltips 4 years ago
Barış Soner Uşaklı 8b4510cc70 refactor: deprecate app.logout
use logout module instead
move header related code out of app.js
4 years ago
Barış Soner Uşaklı f352be63dc refactor: deprecate app.openChat/newChat
use chat.openChat/newChat instead
4 years ago
Barış Soner Uşaklı 1a9b15989b refactor: move search functions from app.js to search module
deprecate:
app.handleSearch, use search.init(options) instead
app.enableTopicSearch, use search.enableQuickSearch(options) instead
app.prepareSearch, use search.showAndFocusInput() instead
4 years ago
Barış Soner Uşaklı 3d2398ac4c test: lint 4 years ago
Barış Soner Uşaklı 518552543d refactor: move warnings/messages out of app.js 4 years ago
Barış Soner Uşaklı 41e0240010 fix: dont show previews on mobile 4 years ago
Barış Soner Uşaklı 054685265d fix: category load more btn visibility 4 years ago
Barış Soner Uşaklı f728abda06 fix: remove tooltip on ajaxify 4 years ago
Barış Soner Uşaklı 9fbb3b11ef perf: only load posts once 4 years ago
Barış Soner Uşaklı 5a0efd2d42 fix: don't use # for previews 4 years ago
Barış Soner Uşaklı 8c67031609 feat: show posts previews if enabled on mouse over 4 years ago
Barış Soner Uşaklı a7f235dbac fix: topic events not rendered in infinitescroll 4 years ago
Barış Soner Uşaklı e8c17feedb refactor: use utils.debounce 4 years ago
Barış Soner Uşaklı 50b2ebf844 fix: remove unused code 4 years ago
Julian Lam 5a328485dd Revert "fix: only show email confirmation warning toast on pages that it applies"
This reverts commit 1bd1cc74a4.
4 years ago
Barış Soner Uşaklı 64192731a0 refactor: use search api for topic search 4 years ago
Barış Soner Uşaklı 47df62e700 fix: clicking outside postContainer should close tooltip 4 years ago
Barış Soner Uşaklı fec7ebed04 fix: tooltip 4 years ago
Barış Soner Uşaklı 66fca4e066 feat: quote tooltip 4 years ago
gasoved b0a24d6dd5
refactor: var to const and let (#9885)
* refactor: var to const and let

* fix: missed global bootbox usage

* refactor: align with eslint expectations
4 years ago
gasoved 227456fb17
fix: no global bootbox (#9879)
* fix: require bootbox (easy ones)

* fix: require bootbox (ugly ones)

* fix(eslint): a lengthy line
4 years ago
Barış Soner Uşaklı 96f5312de9 fix: #9865, don't display register messages after login 4 years ago
Barış Soner Uşaklı a7668a7fb1 refactor: use utils.debounce
fixes socket message spam in chat resize
4 years ago
Barış Soner Uşaklı 4404e81991
fix: switch inf. scroll to xhr (#9854)
this fixes infinitescroll when url has custom query parameters
also fixes infinitescroll for plugins like QnA
fixes infinitescroll on tags page
deprecate topics.loadMoreSortedTopics
deprecate topics.loadMoreFromSet
4 years ago
Barış Soner Uşaklı 9f0e55ad3e fix: #9819, show same time info for ban 4 years ago
Barış Soner Uşaklı 75ebe78619 fix: escape moderation note before adding to dom 4 years ago
Julian Lam 66eaae44a6 feat: add client-side static hook to fire immediately before any topic action (hint: delete `action` to stop default behaviour) 4 years ago
Barış Soner Uşaklı 6a55c02702 fix: #9790, get baseIndex on update for infinitescroll 4 years ago
Barış Soner Uşaklı 2657804c1f fix: #9790, fix sorting of more than one page of pinned topics 4 years ago
Julian Lam 1bd1cc74a4 fix: only show email confirmation warning toast on pages that it applies 4 years ago
psychobunny ae793b4a44 chore: found some hooks that don't play well docgen 4 years ago
Julian Lam 55693ec1b0 fix: lint 4 years ago
Julian Lam e803737a4b feat: add confirmation modal to topic event deletion 4 years ago
Julian Lam 152f194aee
Server-side rendering of topic events (#9733)
* style: reformat list of helpers exported

* refactor: move topic events partial into a helper, invoke helper in topic.tpl (see persona), update how events are added to the DOM via addTopicEvents

closes #9731

* style: lint
4 years ago
Barış Soner Uşaklı 60bf564321 fix: #9729, insert new posts after topic events 4 years ago
Barış Soner Uşaklı 794bf01b21 feat: allow changing default search in 4 years ago
Anton Grigoryev 342503e07a
Feat: Client-side hooks - replace window.trigger (#9679)
* feat/clientside-hooks: replace window.trigger with hooks.fire

* feat(clientside-hooks): Move hooks require to the top

* fix: simplifying complex logical expression

* fix: client-side hook for translator - post-review fixes
4 years ago
Barış Soner Uşaklı 8bf2896d6c fix: lint 4 years ago
Barış Soner Uşaklı 358ad74054 feat: closes #9684, allow event deletion
fix: topic events appearing before necro messages
feat: add move topic event
feat: add ability to delete specific topic events via events.purge
4 years ago
Julian Lam 0e05cbe1f7 feat: show instructional modal after email change request 4 years ago
gasoved a917210c5b feat: invites no longer require email 4 years ago
Julian Lam 7c1d1c777b refactor(emails): remove email validation on client and server side 4 years ago
Julian Lam 12b2a979a0 feat: removal of emailExists socket listener 4 years ago
Julian Lam ef4e74bfc8 refactor: client-side to use flag notes API 4 years ago
Julian Lam cc6cbfcdc4
Flags API (#9666)
* feat: new routes for flags API

+ flag get
+ flag creation, migration from socket method
+ flag update, migration from socket method
* fixed bug where you could not unassign someone from a flag

* feat: tests for new flags API

added missing files for schema update

* fix: flag tests to use Write API instead of sockets

* feat: flag notes API + tests

* chore: remove debug line

* test: fix breaking test on mongo
4 years ago
Julian Lam 09bac6bd7e fix: convert some hooks to use hooks module
re: julianlam/nodebb-plugin-markdown#130
4 years ago
Barış Soner Uşaklı 7b4c0a1683 fix: keep query params when switching chat 4 years ago
psychobunny e588948ff5 feat: add undoTimeout to moving posts as well #9599 4 years ago
psychobunny 05cc7ccb60 feat: make undoTimeout configurable, closes #9599 4 years ago
Mats c448ba6f5a
Fixes flag note editing, deletion, and template update (#9581)
* Fixes flag note editing, deletion, and template update

Flag note datetime should be int.
Corrects argument order for note reloading.

* Chore: add missing radix

* fix: empty append bug

This line results in an error message popping up when clicking the flag notes text box, as the 'appendNote' case fires with no text. I can't tell that it serves any function.
4 years ago
Mats f9b248b87f fix: updates navigation menu user icon 4 years ago
Mats e6ef094079
Re-enable "change username" button after failed attempt (#9568)
* Re-enable "change username" button after failed attempt

* chore: proper indentation
4 years ago
gasoved cb1dd0a3db
fix: infinite scroll with small number of items #9524 (#9525) 4 years ago
gasoved 8faa6e4515
feat: filter flags by username #8489 (#9451)
* feat: filter flags by username #8489

* feat: toggle flag filter text
4 years ago
psychobunny e50408b461 fix: restore original behavior for up/downvoting when logged out 4 years ago
psychobunny 60eed8d89f fix: let recent replies respect oldest/newest sort settings 4 years ago
Barış Soner Uşaklı dbb59228f2 feat: add action:posts.loaded 4 years ago
gasoved aa0137b1c4
feat: rescheduling (editing ST) (#9445) 4 years ago
psychobunny 01f63e5d58 fix: change email button stays disabled if user submitted an invalid email 4 years ago
psychobunny cfdef77b28 fix: use app.logout() to clear session after deleting user
I think this was originally changed when we added logging in/out without refreshing, but didn't change this back after reverting that feature
4 years ago
gasoved 077330b764
feat: scheduled topics (#9399)
* feat: scheduled topics

* refactor: linting fixes

* fix: tests

* fix(test): race condition

* fix: make a single request
4 years ago
Barış Soner Uşaklı 262e059fa6 fix: inf scroll with subfolder install 4 years ago
Barış Soner Uşaklı 617f4730a0 fix: crash if unreadTopics is undefined 4 years ago
Barış Soner Uşaklı f45c0aab51 fix: dont crash if login el doesnt exist 4 years ago
Barış Soner Uşaklı 52082e1296 feat: add resolve flag to post tools 4 years ago
Julian Lam 98bf4064e7 refactor: account edit logic and template, closes #9364 4 years ago
Barış Soner Uşaklı 696c489524 feat: add back topic id input 4 years ago
Julian Lam beaac0a1ab fix: allow hidden inputs in user settings page 4 years ago
Julian Lam 28f6931e16 refactor: move picture change client-side logic to its own rjs module 4 years ago
Julian Lam 955021247e feat(user): icon background selector in change picture modal 4 years ago
Barış Soner Uşaklı fa91525a6d fix: use bootbox module 4 years ago
Barış Soner Uşaklı 3595473485 feat: load user posts/topics via xhr on infinitescroll 4 years ago
Peter Jaszkowiak cc9d6fd08b chore: eslint max-len 4 years ago
Peter Jaszkowiak 62869bae3d chore: eslint function-paren-newline 4 years ago
Barış Soner Uşaklı 0cca6893f3 fix: #9275, 4 years ago
Barış Soner Uşaklı 550cd995e8 fix: remove console.log 4 years ago
Barış Soner Uşaklı a4878a5b22 fix: markread selector 4 years ago
Barış Soner Uşaklı 3090a2aee4 fix: position when scrolling up
if sorting is newest to oldest scrollTop wont be changed if you are at the top of the page
4 years ago
Barış Soner Uşaklı 47299ea587
Categories refactor (#9257)
* feat: wip categories pagination

* feat: add subCategoriesPerPage setting

* feat: add load more sub categories button to category page

* fix: openapi spec

* feat: show sub categories left on category page

hide button when no more categories left

* breaking: rename categories to allCategories on /search

categories contains the search results

* fix: spec

* refactor: remove cidsPerPage

* fix: tests

* feat: use component for subcategories

* fix: prevent negative subCategoriesLeft

* feat: new category filter/search WIP

* feat: remove categories from /tag

* fix: dont load all categories when showing move modal

* feat: allow adding custom categories to list

* breaking: dont load entire category tree on post queue

removed unused code
add hooks to filter/selector
add options to filter/selector

* feat: make selector modal work again

* feat: replace old search module

* fix: topic move selector

* feat: dont load all categories on create category modal

* fix: fix more categorySelectors

* feat: dont load entire category tree on group details page

* feat: dont load all categories on home page and user settings page

* feat: add pagination to /user/:userslug/categories

* fix: update schemas

* fix: more tests

* fix: test

* feat: flags page, dont return entire category tree

* fix: flag test

* feat: categories manage page

dont load all categories
allow changing root category
clear caches properly

* fix: spec

* feat: admins&mods page

dont load all categories

* fix: spec

* fix: dont load all children when opening dropdown

* fix: on search results dont return all children

* refactor: pass all options, rename options.cids to options.selectedCids

* fix: #9266

* fix: index 0

* fix: spec

* feat: #9265, add setObjectBulk

* refactor: shoter updateOrder

* feat: selectors on categories/category

* fix: tests and search filter

* fix: category update test

* feat: pagination on acp categories page

show order in set order modal

* fix: allow drag&drop on pages > 1 in /admin/manage/categories

* fix: teasers for deep nested categories

fix sub category display on /category page

* fix: spec

* refactor: use eslint-disable-next-line

* refactor: shorter
4 years ago
Julian Lam 67e3fb6498 fix: register returnTo logic to match login route
Login route saves the previous page by checking for the X-Return-To header. This header is automatically set by ajaxify.
Login takes this value and saves it to `req.session`.

Up until now, `/register` saved the previous URL in a hidden input, and redirected based on that value, but it occasionally conflicted with req.session.returnTo. It was also confusing because it did not match how login handled the values.

This commit updates the route handling so it works identically to `/login`.
4 years ago
gasoved a2a7557cc0 refactor: update dom after diff deletion better 4 years ago
gasoved 4447a64eaa refactor: removed 3 lines 4 years ago
gasoved eb642f40b9 feat: #9109, ability to delete a post's diffs 4 years ago
psychobunny 58655e9a0b fix: invalid API call when unfollowing a user 4 years ago
Barış Soner Uşaklı d1364c3130
Categories refactor (#9233)
* feat: wip categories pagination

* feat: add subCategoriesPerPage setting

* feat: add load more sub categories button to category page

* fix: openapi spec

* feat: show sub categories left on category page

hide button when no more categories left

* breaking: rename categories to allCategories on /search

categories contains the search results

* fix: spec

* refactor: remove cidsPerPage

* fix: tests

* feat: use component for subcategories

* fix: prevent negative subCategoriesLeft
4 years ago
Julian Lam 4bb3b0323d feat: guard password fields in login/register against accidental caps lock 4 years ago
Julian Lam 8e93bf7362 feat(topic-events): client-side handling on topic event log 4 years ago
Julian Lam df2fdd56ba fix(topic-events): repeated invocations of Posts.addTopicEvents caused dupes to be added to DOM 4 years ago
Julian Lam 9559fad8ac refactor(topic-events): expose addTopicEvents method in topic posts lib
+ allow it to accept an array of events, or fall back to ajaxify data otherwise
4 years ago
Julian Lam 882e6a159c feat(topic-events): handle newest_to_oldest sort in topic events, WIP 4 years ago
Julian Lam ab2e1ecb40 feat(topic-events): work in progress topic events logic and client-side implementation 4 years ago
Julian Lam 966c4117ec refactor(api): post move to write API 4 years ago
Barış Soner Uşaklı 0fa4c11ea6 fix: don't chagne scrollTop if at the top of page 4 years ago
Julian Lam e118e59ce0 refactor(api): post diffs to use write API 4 years ago
Barış Soner Uşaklı 183cabe90f fix: #9150, fix selector so it doesn't add img-responsive to profile pics 5 years ago
Julian Lam 32e36f7b2e feat(api): group ownership API route, switch client-side to use API route 5 years ago
Julian Lam 1cd2689cf6 refactor(api): deprecated groups update socket in favour of API lib 5 years ago
Julian Lam e640a41a78 refactor(api): update group deletion calls to use write API 5 years ago
Barış Soner Uşaklı 2ef72a94c2 fix: #9136, fix move topic/post timeout errors 5 years ago
Barış Soner Uşaklı b7b588f5c8 fix: trigger action:posts.edited 5 years ago
Barış Soner Uşaklı feecd66506 fix: api usage 5 years ago
Barış Soner Uşaklı a15ef53c70 feat: add new client side hooks 5 years ago
Barış Soner Uşaklı 3ed55799ab fix: #9114, fix client side groups update for memberPostCids 5 years ago
Barış Soner Uşaklı 6669496dba
Navigator (#9049)
* feat: navigator changes

* fix: remove extra code

* feat: add lang keys
5 years ago
Barış Soner Uşaklı 5f0f476b57 feat: #9005, use timestamp in profile/cover images
delete current one if keepAllUserImages is turned off
fix typo in data
5 years ago
Barış Soner Uşaklı 954dc5b7be feat: #8983, update pin tooltip in topic 5 years ago
Barış Soner Uşaklı 1269103fbb fix: #8984, post-queue ux 5 years ago
Barış Soner Uşaklı 4c7374ea33 fix: flicker on tooltips if server call takes long time 5 years ago
Julian Lam e1432caf92 feat: add cancel button to pin expiration modal 5 years ago
Julian Lam 15c6f32c93 refactor: pin/lock threadTools to use topicCommand, rewrote topicCommand to match categoryCommand signature 5 years ago
Barış Soner Uşaklı c037779fa1 feat: add topicOwnerPost #8778 5 years ago
Julian Lam d584516947 fix: #8943, session mismatch modal thrown on login (race condition) 5 years ago
Barış Soner Uşaklı f20c12ee40 fix: add client side check for userslug #8939 5 years ago
Barış Soner Uşaklı cf903e4e8f fix: #8931, fix lang string 5 years ago