Commit Graph

10078 Commits

Author SHA1 Message Date
Misty Release Bot
2710037cb1 chore(i18n): fallback strings for new resources: nodebb.error, nodebb.modules 2023-07-12 17:04:32 +00:00
Barış Soner Uşaklı
9b901783fa Chat refactor (#11779)
* first part of chat refactor

remove per user chat zsets & store all mids in chat:room:<roomId>:mids
reverse uids in getUidsInRoom

* feat: create room button

public groups wip

* feat: public rooms

create chats:room zset
chat room deletion

* join socket.io room

* get rid of some calls that load all users in room

* dont load all users when loadRoom is called

* mange room users infinitescroll

dont load all members in api call

* IS for user list

ability to change groups field for public rooms
update groups field if group is renamed

* test: test fixes

* wip

* keep 150 messages

* fix extra awaits

fix dupe code in chat toggleReadState

* unread state for public rooms

* feat: faster push unread

* test: spec

* change base to harmony

* test: lint fixes

* fix language of chat with message

* add 2 methods for perf

messaging.getTeasers and getUsers(roomIds)
instead of loading one by one

* refactor: cleaner conditional

* test fix upgrade script fix

save timestamp of room creation in room object

* set progress.total

* don't check for guests/spiders

* public room unread fix

* add public unread counts

* mark read on send

* ignore instead of throwing

* doggy.gif

* fix: restore delete

* prevent entering chat rooms with

meta.enter

* fix self message causing mark unread

* ability to sort public rooms

* dont init sortable on mobile

* move chat-loaded class to core

* test: fix spec

* add missing keys

* use ajaxify

* refactor: store some refs

* fix: when user is deleted remove from public rooms as well

* feat: change how unread count is calculated

* get rid of cleaned content

get rid of mid

* add help text

* test: fix tests, add back mid

to prevent breaking change

* ability to search members of chat rooms

* remove

* derp

* perf: switch with  partial data

fix tests

* more fixes

if user leaves a group leave public rooms is he is no longer part of any of the groups that have access

fix the cache key used to get all public room ids

dont allow joining chat socket.io room if user is no longer part of group

* fix: lint

* fix: js error when trying to delete room after switching

* add isRoomPublic
2023-07-12 13:03:54 -04:00
Barış Soner Uşaklı
edd8ca997f Merge branch 'master' into develop 2023-07-12 10:59:39 -04:00
Barış Soner Uşaklı
f2152953cd add displayname to parent posts 2023-07-12 10:40:25 -04:00
Barış Soner Uşaklı
e8b40b5884 fix persona defaults
fix missing theme:id
2023-07-12 10:20:20 -04:00
Barış Soner Uşaklı
0a0de353f1 Merge branch 'master' into develop 2023-07-11 11:27:10 -04:00
Barış Soner Uşaklı
509faa5ecc chore: remove log 2023-07-11 11:04:51 -04:00
Julian Lam
2d016af82f feat: simplified api module handler logic, content-type detection/parsing 2023-07-11 11:03:00 -04:00
Misty Release Bot
e72fab5417 Latest translations and fallbacks 2023-07-11 09:18:33 +00:00
Barış Soner Uşaklı
6ae0df4f46 fix: #11787 2023-07-10 18:07:13 -04:00
Barış Soner Uşaklı
bf2c429a18 fix: #11787 2023-07-10 18:07:04 -04:00
Julian Lam
7415b16d2a refactor: use fetch() throughout, instead of jQuery .ajax() 2023-07-10 16:45:05 -04:00
Julian Lam
8a53182657 fix: fetch handler not passing back errors or success payloads 2023-07-10 16:45:05 -04:00
Julian Lam
ed99ea20cb feat: allow FormData object to be passed in to the API module
Currently, only objects can be passed in, and it is automatically serialized into json and sent via jQuery .ajax().

This PR extends the module so a FormData object can be passed in, and updates the module so it uses Fetch API instead of jQuery.

At this time regular requests continue to use jQuery for backwards compatibility.

Use case: file uploads via API.
2023-07-10 16:45:05 -04:00
Barış Soner Uşaklı
a12a9bab7a Merge branch 'master' into develop 2023-07-10 16:23:35 -04:00
Barış Soner Uşaklı
21b510bf24 spec 2023-07-10 16:23:22 -04:00
Barış Soner Uşaklı
bf114c1106 fix: #11786 fix selector for upgradable plugins 2023-07-10 09:05:37 -04:00
Misty Release Bot
60fea51b36 Latest translations and fallbacks 2023-07-10 09:18:31 +00:00
Barış Soner Uşaklı
0a7f52475e fix member IS 2023-07-08 03:02:51 -04:00
Barış Soner Uşaklı
5a42d37e0f fix reconnect logic 2023-07-07 23:58:12 -04:00
Misty Release Bot
8fc1744232 Latest translations and fallbacks 2023-07-05 09:19:03 +00:00
Misty Release Bot
6fd444eefd Latest translations and fallbacks 2023-07-04 09:18:57 +00:00
Misty Release Bot
6e745b882a Latest translations and fallbacks 2023-07-03 09:19:07 +00:00
Misty Release Bot
7370d986a4 Latest translations and fallbacks 2023-07-02 09:18:33 +00:00
Barış Soner Uşaklı
cf3ca1ae30 Merge branch 'master' into develop 2023-07-01 13:31:38 -04:00
Barış Soner Uşaklı
64d3018286 fix: #11773, fix create token button 2023-07-01 13:31:30 -04:00
Misty Release Bot
9df3ccaaa6 Latest translations and fallbacks 2023-07-01 09:18:34 +00:00
Barış Soner Uşaklı
8cc19fac6c add no replies class to navigator 2023-06-30 15:15:22 -04:00
Barış Soner Uşaklı
8b2b4fce37 add no replies class to navigator 2023-06-30 15:13:30 -04:00
Misty Release Bot
48a006533e Latest translations and fallbacks 2023-06-30 09:18:51 +00:00
Misty Release Bot
58bdedaf8b chore(i18n): fallback strings for new resources: nodebb.admin-admin 2023-06-29 15:07:18 +00:00
Barış Soner Uşaklı
311b8b2494 add new string 2023-06-29 11:06:54 -04:00
Misty Release Bot
32dd6c4983 Latest translations and fallbacks 2023-06-29 09:19:12 +00:00
Barış Soner Uşaklı
aefef763db fix: use btn instead of icon 2023-06-27 10:49:36 -04:00
Misty Release Bot
354c2aebc5 Latest translations and fallbacks 2023-06-27 09:19:38 +00:00
Barış Soner Uşaklı
fa4fd5e905 remove unused css 2023-06-26 23:53:55 -04:00
Barış Soner Uşaklı
daa5ac85e9 refactor: show both emails in user list
if user has a confirmed email and a pending email change show both in the acp
2023-06-26 20:33:28 -04:00
Barış Soner Uşaklı
9e75068da2 expand json buttons 2023-06-26 09:46:36 -04:00
Misty Release Bot
097bbc926f Latest translations and fallbacks 2023-06-26 09:19:09 +00:00
Misty Release Bot
bc7e878ae2 Latest translations and fallbacks 2023-06-24 09:18:32 +00:00
Barış Soner Uşaklı
94f0630133 test: fix spec 2023-06-23 00:00:23 -04:00
Barış Soner Uşaklı
299f8864a2 hide nav if only one post, show after reply
hide after purge if only one post left
2023-06-22 23:13:23 -04:00
Barış Soner Uşaklı
cbd98c1b28 fix: closes #11731, set postIndex on pagination 2023-06-22 21:16:11 -04:00
Barış Soner Uşaklı
cfedd0877f fix: pinned topic ordering if parent element has non topic elements
for example
<ul component="category" class="topic-list" itemscope itemtype="http://www.schema.org/ItemList" data-nextstart="{nextStart}" data-set="{set}">
	<meta itemprop="itemListOrder" content="descending">
	{{{each topics}}}
	<!-- IMPORT partials/topics_list_item.tpl -->
	{{{ end }}}
</ul>
2023-06-21 09:54:00 -04:00
Barış Soner Uşaklı
86faed6fd3 feat: add vote privs to topic (#11734)
* feat: add vote privs to topic

* add missing awaits
2023-06-20 14:16:17 -04:00
Misty Release Bot
aff40b2fda Latest translations and fallbacks 2023-06-20 09:19:13 +00:00
Barış Soner Uşaklı
ed01753d2a Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-06-19 12:04:29 -04:00
Barış Soner Uşaklı
281078f5ce fix: delete events not working 2023-06-19 12:04:24 -04:00
Misty Release Bot
118a66f050 Latest translations and fallbacks 2023-06-19 09:18:50 +00:00
Barış Soner Uşaklı
b7a4ce6c1e less margin on copy code btn 2023-06-17 19:31:28 -04:00