* Use `auth` cookie set by backend instead of `jwt` (fixes#2193)
Requires https://github.com/LemmyNet/lemmy-js-client/pull/208
* Revert "Use `auth` cookie set by backend instead of `jwt` (fixes#2193)"
This reverts commit 442766c1d8.
* Updating for new lemmy-js-client.
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
* only refetch PM counts when marking a message as read
* refresh registration applications and the corresponding unread counter when processing an application
* refetch reports when marking one as resolved
* update unread notifications when logging in
* UnreadCounterService: use async functions
* clarify the meaning of UnreadCounterService.updateInboxCounts
* UnreadCounterService: correct updateAll
* Add highlighting
* Adds it to mdNoImages as well
* Revert "Adds it to mdNoImages as well"
This reverts commit 2f8e3bb0cc.
* Revert "Add highlighting"
This reverts commit 80bcddd4df.
* Prevent yarn.lock from massively updating
* Add code themes locally
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Updating for new v19 changes. WIP.
* Fixing package json.
* Updating for new lemmy-js-client.
* Trying to add node-sass
* Revert "Trying to add node-sass"
This reverts commit 959ea0de13.
* Trying node:20-alpine
* feat: Add modal for totp settings
* Make inputs show up on totp modal
* Make modal work when enabling and disabling 2FA
* Give user better feedback when en/disabling totp
* Use new 2FA flow for login
* Refactor 2fa modal to prevent implementation details from leaking
* chore: Use constant objects where appropriate
* Incorporate translations
* add global service for unread notifications
* update inbox counter when marking a message as read
* adapt NotificationService for new auth parameter
* refactor unread counter service
* user service: refactor moderatesSomething
* use behavioursubjects for unreadcounterservice
* retry tests
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
* handle url paste
* change selection range after paste
* use default paste behaviour if no text is selected
* change to `validUrl` helper function
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Cache headers have been active in production for a while now, and I didnt see any issues reported. So it should be save to increase the max-age to reduce server load further.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Store communityLimit as a constant in the config
* Block Next button on communities list if the next page is empty
* Use this.props instead of undefined props, compare number to the length of the array, not the array itself
* Set nextDisabled prop for Paginator in registration-applications component
* Set nextDisabled prop in Paginator required
* Ignore nextDisabled prop in Paginator component used in person/inbox.tsx and modlog.tsx
* Set nextDisabled to true if community is not yet loaded or no more pages are expected
* Set nextDisabled to false for Paginator in emojis-form.tsx
* Fix swapped bool logic in community.tsx
* Set nextDisabled for Paginator in home.tsx
* Set nextDisabled for Comments and Posts in person-details.tsx
* Set nextDisabled for reports.tsx
* Set nextDisabled for search.tsx
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
* update lemmy-js-client version
* add moderator view to moderator view select
* fix some linting problems introduced in recent lemmy-js-client changes
* remove form id from mardown-textarea submit
* add default delete_content as false
* manually check if a user is an admin
* update lemmy-js-client to 0.19.0-rc.7