Commit graph

1217 commits

Author SHA1 Message Date
Dessalines
d9ce609365
Upgrading deps. (#2233)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-11-23 22:03:28 -05:00
Dessalines
156cfccf34
Fixing follow from subscribe page. Fixes #2215 (#2229) 2023-11-22 22:44:42 +00:00
Dessalines
cc2ad2d113
Adding creator_is_admin and creator_is_mod, removing pointless functions (#2228) 2023-11-22 11:13:00 -05:00
SleeplessOne1917
dd3842655a
Update bs theme when site theme is changed (#2226) 2023-11-17 09:35:43 -05:00
SleeplessOne1917
4be7310441
Settings Import/export (#2223)
* Add UI for import/export of settings

* Make settings update after import without requiring manual browser refresh

* Address PR feedback

* Add translations
2023-11-16 22:47:33 -05:00
SleeplessOne1917
9fcd5ef54f
Auto focus search input when navigating to search page (#2224) 2023-11-15 16:58:58 -05:00
Dessalines
795dcdb894
Remove previous button for PaginatorCursor (#2221) 2023-11-14 14:36:41 +00:00
SleeplessOne1917
ad300f19d0
Fix back button from posts going back twice instead of once (#2220) 2023-11-14 08:14:28 -05:00
Dessalines
b40a3c3e27
Fixing errors. Fixes #2216 (#2219) 2023-11-13 18:47:03 -05:00
Dessalines
c3a57b114c
Upgrade for lemmy js client 0.19.0-alpha.16 (#2210)
* 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>
2023-11-03 10:00:25 -04:00
SleeplessOne1917
acfcd86b9b
Search page select fix (#2201)
* Fix search page community searchable select

* Fix bug with search page creator select

* Add stricter typing to dedup function

* Fix modlog searchable selects
2023-10-30 16:22:51 -04:00
Jason Grim
c22358e0d2
Fixed markdown parsing error particularly with the spoiler tag. (#2200) 2023-10-25 19:26:14 +00:00
biosfood
069c2c787f
use improved notification system for all notification types (#2190)
* 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
2023-10-24 17:58:00 -04:00
SleeplessOne1917
25b06124fd
Make 2FA input play nicer with phone keyboards (#2199) 2023-10-23 21:25:06 -04:00
Benjamin Barbeau
2b5068187c
Add code highlighting (#2195)
* 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>
2023-10-20 11:18:13 -04:00
Dessalines
538fb5e28c
Updating for new v19 changes. (#2191)
* 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
2023-10-19 20:47:28 -04:00
Dessalines
bb8e4f26ee
Dont hide reply box on other actions. Fixes #1968 (#2189)
* Dont hide reply box on other actions. Fixes #1968

* Removing unecessary check.
2023-10-19 15:35:53 +00:00
SleeplessOne1917
aefd65ae83
Tweak 2fa (#2179)
* Handle 2FA inputs in a way that (hopefully) plays nice with virtual keyboards

* Some tweaks
2023-10-12 20:25:14 -04:00
Kaveh
f5780c22ba
Add RTL/BIDI to post text (#1963) 2023-10-11 12:07:53 -04:00
Dessalines
2c1f4538be
Adding cursor pagination. Fixes #2155 (#2173)
* Adding cursor pagination. Fixes #2155

* Addressing PR comments.

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-10-06 09:08:55 -04:00
SleeplessOne1917
ae4c37ed44
fix: Fix emoji picker custom emoji bug (#2175)
* Make emoji picker insert custom emojis

* Close emoji picker after emoji is selected
2023-10-06 08:56:36 -04:00
SleeplessOne1917
a2473680d4
fix: Prevent login screen from redirecting to signup (#2170) 2023-10-05 15:38:10 -04:00
SleeplessOne1917
c6d6107ddc
feat: Accomodate 2FA changes in UI
* 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
2023-10-04 21:24:23 -04:00
Dessalines
0c18224cf2
Adding scaled sort to UI. Fixes #2156 (#2169) 2023-10-04 21:17:36 -04:00
biosfood
de8255fc9e
fix: Fix notifications (#2132)
* 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>
2023-10-04 16:47:51 -04:00
Lukas
8a2cd127ee
Smart url parsing (#2141)
* 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>
2023-09-28 08:35:15 -04:00
SleeplessOne1917
36dc27f0cc
fix: Fix bug where old settings would linger on page until browser refresh (#2153) 2023-09-28 08:11:49 -04:00
SleeplessOne1917
951c8afebc
fix: Fix bug where user could not block person from profile page (#2151)
* fix: Fix bug where user could not block person from profile page

* fix: Fix linting errors

* chore: Replace arrow function with regular function
2023-09-27 17:36:34 -04:00
SleeplessOne1917
f0ccf93735
feat: Block instance (#2144)
* Start modifying settings

* feat: Finish making block instance setting

* feat: Add translations

* fix: Handle first load fetch

* chore: Fix linting error

* fix: Fix broken import
2023-09-27 14:11:08 -04:00
SleeplessOne1917
d9fe7d1488
Remote follow (#1875)
* Redirect to page user was trying to access on login

* Make modal

* Make modal look better

* Forgot to include in merge

* Get rid of modal

* Add external interaction page

* Tweak success page

* Add loading screen for remote fetch and refactor loading ellipses

* Add error state for remote fetch page

* Add card to federation success page

* Bring back remote fetch modal

* Add autofocus to remote fetch modal input

* Redirect for remote fetch

* Remove dummy data

* Remove duplicate functions

* Update translations

* Update translations

* Fix linting error

* Fix linting errors

* feat: Add toasts for remote follow error conditions
2023-09-25 23:32:37 -04:00
SleeplessOne1917
65e669035d
Remove auth from API request body params (#2140)
* chore: Remove auth param from API request bodies

* chore: Update client to use bearer token
2023-09-25 21:07:26 -04:00
biosfood
a97e608f27
refetch inbox when marking a message as read (#2131) 2023-09-13 09:27:50 -04:00
biosfood
d7a80a184f
allow limited markdown in spoiler summary (#2126)
* allow limited markdown in spoiler summary

* use const in markdown spoiler code
2023-09-13 07:35:27 -04:00
Security-Chief-Odo
f9f8233d6f
Changed blocked instances to not be linked from instance page (#2121)
Co-authored-by: Beehaw Dev <dev@beehaw.dev>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-12 16:56:22 -04:00
biosfood
5e91a4d9af
fix purge submit button in post-listing (#2128) 2023-09-12 16:54:48 -04:00
biosfood
a5366ddf7a
Don't hide the 'show source' button for anonymous users (#2127) 2023-09-11 18:12:57 -04:00
Jarosław
d98009c7d5
Disable "Next" button in Paginator when the next page is empty (#2114)
* 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>
2023-09-07 09:33:43 -04:00
biosfood
8e2609a96d
Add moderator view button (#1993)
* 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
2023-09-06 08:43:19 -04:00
SleeplessOne1917
c49ca9e195
Fix communities search bug (#2108)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-02 14:22:41 -04:00
Jarosław
38ec8c0b06
Display more information why has the login failed (#2109)
* Add registration_application_pending and email_not_verified as a toast message

* Fix linting errors

* Fix more linting errors

* Skip key checks on login error

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-02 13:11:46 -04:00
SleeplessOne1917
7c2defcf0e
Report fix (#2089)
* Fix report dialog not closing once submitted.

* Refactor

* Incorporate suggested changes
2023-08-31 08:34:06 -04:00
Die4Ever
6224c4e378
always show community name with instance for easy copy-pasting to friends (#2073)
* always show community name with instance for easy copy-pasting to friends

I don't like the inconsistency of community names currently, the UI shouldn't be presenting things differently because of technical reasons that are hard for users to understand. This makes it easier to share communities with your friends!

* always show community name with instance, cleanup
2023-08-30 14:52:36 -04:00
cmp
c4f7344564
Ensure markdown links have the noopener and nofollow rel tags as well. (#2100) 2023-08-29 23:39:39 -04:00
dnswrsrx
acc32f2c5d
Move allowed and blocked instance tables to the column right of linked instance table (#2071)
* Move allowed and blocked instance tables into column right of linked

Conserve some vertical space. And I assume linked instance list will
usually belonger than allowed and blocked, combined or not.

* Use tabs to organise instances by status

As per suggestions from the initial PR. Using the suggested Tab
component was implemented.

* Provide a header when there are no instances found

Will be weird if there are no instances linked on this instances page
otherwise.

* Wrap tabs and table in a col-sm-8 div (within a row div)

To restrict the width of the table especially on wider screens
2023-08-29 15:27:50 -04:00
Anon
b4dd0556e4
Federate emoji sizing (#2063)
* Store signifier for emoji image, render using emoji css.

* cleanup

* fix prettier
2023-08-26 00:35:59 -04:00
drumlinish
c8ab91bdd6
Moved title field to the top of post-form (#2039, #2059) (#2061)
* Moved title field to the top of post-form

* Remove whitespace

* Trigger build

* Trigger build

---------

Co-authored-by: drumlin <>
2023-08-14 21:21:40 -04:00
Anon
f27cbb3224
Temp fix to modlog failing to render future dates (#2058) 2023-08-12 22:46:26 -04:00
cmp
da4fd7e39e
Move banned users to a separate admin tab. (#2057) 2023-08-12 05:25:29 -04:00
Domenic Horner
9fd75faa16
Frontend Settings - "Blur NSFW" and "Auto Expand" (#1640)
* fix for en-AU locale

* add setting checkboxes for auto-expand and blur nsfw

* mappings for backend

* blur and nsfw settings

* add icon blur

* fix lint

* revert remove en-au
2023-08-07 13:48:55 -04:00
Dessalines
2efe167f6d
Add open links in new tab (#2032)
* Open links in a new tab setting in UI

* fixes according to review

* also open external links when setting is enabled

* oopsie

* oopsie 2

* pull translations

* Fixing PR comments.

* Fix prettier.

---------

Co-authored-by: Dogeek <simon.bordeyne@gmail.com>
Co-authored-by: Simon Bordeyne <Dogeek@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-07 12:59:19 -04:00