1545 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
980e0a3a71 wait for images to load before scrolling to bottom 2023-08-15 15:06:28 -04:00
Barış Soner Uşaklı
9349cb63cb feat: #11881, limit room names 2023-08-06 17:32:36 -04:00
Barış Soner Uşaklı
0316f324e7 feat: add toMid to chat messages 2023-08-06 02:33:28 -04:00
Barış Soner Uşaklı
e2a198c59a fix 0 timeouts 2023-08-04 13:35:34 -04:00
Barış Soner Uşaklı
881a28eb79 fix: #11875, simplify alerts and show progress
add alerts.info and alerts.warning
2023-08-03 16:09:53 -04:00
Julian Lam
007d735f92 fix: bug where api module would throw if response contained no content-type header 2023-08-03 12:16:03 -04:00
Barış Soner Uşaklı
f4e2e6176e fix: chat mark read regression 2023-08-01 21:19:19 -04:00
Opliko
b709ed9e63 feat: move to npm fontawesome dependency and support fa pro (#11820)
* feat: move to npm fontawesome dependency

* feat: move shims to a separate file

* fix: thin style prefix

* feat: proper style and FA pro handling in icon selector

* docs: add fontawesome properties to openAPI

* fix: default for styles

* feat: select all styles by default

Turns out browsers lazy-load fonts.
So since the actual CSS for each style is small, there is no perf reason for defaulting to free styles for FA pro users.
This means they'll have to only change one setting.

Still, the option to select styles remains for those who want it.

* fix: remove console.log
2023-07-31 11:22:09 -04:00
Barış Soner Uşaklı
f359a76702 feat: #11814, dont check content len for admins 2023-07-26 09:58:16 -04:00
Barış Soner Uşaklı
907c5fa687 feat: closes #11843, refresh search after changing filters 2023-07-26 09:42:10 -04:00
Barış Soner Uşaklı
f7ae8963ce https://github.com/NodeBB/NodeBB/issues/11818 2023-07-19 19:50:41 -04:00
Barış Soner Uşaklı
0dce4c46b5 https://github.com/NodeBB/NodeBB/issues/11818 2023-07-19 04:31:19 -04: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
Julian Lam
2d016af82f feat: simplified api module handler logic, content-type detection/parsing 2023-07-11 11:03:00 -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ı
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
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ı
304f9b6eef remove ?page when changing filters 2023-06-15 09:58:02 -04:00
Julian Lam
da02361b13 feat: do not show the replies container in a post's footer if the only reply present is the next post 2023-06-14 16:53:00 -04:00
Barış Soner Uşaklı
8ca65b0c78 fix: dont send 200 status on admin upload errors (#11707)
* fix: dont send 200 status on admin upload errors

* test: update test

* bring back both checks for error

* test: add statusCode tests
2023-06-13 12:32:48 -04:00
Barış Soner Uşaklı
5adc418fef manage ip address dropdown 2023-06-06 16:58:39 -04:00
Barış Soner Uşaklı
ee8cb3782b fix: closes #11673, topic search for harmony
harmony uses dropdown for search persona and older themes used a hidden input element in the navbar
2023-06-04 16:31:21 -04:00
Barış Soner Uşaklı
c3afe44686 Acp redesign (#11639)
* acp sidebar

* gap in nav

* remove shadow

* label fixes

* color fixes

* feat: settings page wip

* feat: scroll spy 👓

move social into general, store social in meta.config like other settings
write upgrade script

* remove social

* rermove openapi routes

* cleanup, highlight selected nav item

* more cleanup

* advanced margin top

* derp

* match design

* bring back version alert

fix homepage js, since it moved to general settings

* remove unused tpls

these moved to general settings

* remove more  css

* offcanvas for mobile

fix search

* add timeout

* add new props

* manage categories

* small fixes

* category-edit

* feat category page fixes

* add title to settings pages

add user settings page

* small fixes

* some more settings pages

* fix: plugin page titles

* more settings pages

* more padding

* more pages, add acp paginator.tpl

so it doesn't change when active theme changes

* remove placeholder

* dashboard table

* fix: openapi

* fix: controller tests

* use fonts from core

* some small fixes

* fix rep page

* refactor: fix name of upgrade script

* create category modal

group edit

* group/groups pages

* admins mods

* privs

* uploads

* missing margin

* more acp pages

* more pages

* plugins/rewards/widgets

* wrap rewards

* fix widgets

* fix widget clone button

* fix group acp edit link

* update search dropdown

* remove display block from tbody

* use less css

* remove some derp links

* remove striped tables

* remove p tags from lang files

* update email settings

* Update api.tpl

* move tag-whitelist
2023-05-31 11:54:48 -04:00
Barış Soner Uşaklı
cdeaef6b7c fix: #11619, fix selector 2023-05-21 15:29:45 -04:00
Barış Soner Uşaklı
de2f76bbd3 Merge branch 'master' into develop 2023-05-18 18:08:31 -04:00
Barış Soner Uşaklı
d8d486a633 fix: closes #11613, closes #11614
don't add input listener on every send message
2023-05-18 18:08:23 -04:00
Barış Soner Uşaklı
5daaa5ea78 fix: edge case in category filter
selecting a category and then clicking on all categories was breaking selection icons
2023-05-18 13:44:59 -04:00
Barış Soner Uşaklı
db9b807c86 feat: add lang string and drag fix 2023-05-16 10:48:15 -04:00
Barış Soner Uşaklı
4833a2b90c feat: center chat modal attr 2023-05-16 10:30:56 -04:00
Julian Lam
e94c58becd Merge remote-tracking branch 'origin/master' into develop 2023-05-10 12:12:19 -04:00
Barış Soner Uşaklı
e1bb277fb4 feat: add helper to convert isostrings to localeString 2023-05-09 13:24:15 -04:00
Barış Soner Uşaklı
34730caf97 fix: selector for nav scroll
harmony doesn't have topic-header, they all have topic-main-buttons
2023-05-05 14:25:02 -04:00
Barış Soner Uşaklı
e832d365ba refactor: removed parsing for taskbar
harmony doesnt have a taskbar
2023-05-04 15:38:30 -04:00
Barış Soner Uşaklı
0af2b800b3 fix: closes #11561, close dialogs on escape/backdrop click 2023-05-03 12:12:00 -04:00
Julian Lam
2b70063eec fix: #11545, wrong message shown to new users re: email confirmation 2023-05-01 11:09:59 -04:00
Barış Soner Uşaklı
e3551d80d7 feat: allow tag editing from topic tools
closes #7536
closes #7465
closes #11538
2023-04-30 21:17:25 -04:00
Julian Lam
5feb509b16 fix: don't crash if taskbar.tasklist is not defined yet 2023-04-14 16:59:27 -04:00
Julian Lam
70f4d7f099 fix: topic thumbnail removal error
Relaxed DOM selector to accommodate changed tpl
2023-04-11 13:46:12 -04:00
Julian Lam
dd8719a10e fix: upload modal error handler
The underlying API call was updated to v3 style (with standard status/response object in response body), so the existing code always falls back to the default error instead of showing the more specific error sent back by the backend.

Also, the fallback wasn't internationalized, so that's done to.
2023-04-11 10:42:21 -04:00
Barış Soner Uşaklı
2235f6c280 fix: #11451 , use bookmark from localstorage for guests 2023-04-09 15:58:19 -04:00
Barış Soner Uşaklı
645ebec8fa feat: allow multiple topic selects in topic-list
chore: up persona
2023-04-02 15:41:36 -04:00
Barış Soner Uşaklı
29872b4326 make border color important 2023-03-30 14:07:25 -04:00
Barış Soner Uşaklı
2615192fc0 fix: topic labels on topics_list 2023-03-29 19:47:22 -04:00
Barış Soner Uşaklı
28ed6c923c update buildCategoryLabel
no bg image in labels dont put a i tag if no icon
2023-03-29 18:52:30 -04:00