Commit graph

1508 commits

Author SHA1 Message Date
matc-pub
9a5f9dd18a
Do most of the theme handling from the Theme component (#2390)
* Set data-bs-theme attribute from Theme component

* Handle temporary theme changes in Theme component

* Fetch theme list on AdminSettings component mount

* Include CodeTheme in Theme component

* Improve handling of browser-compact theme

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-14 08:33:49 -04:00
matc-pub
201e5fcd53
Lazy loading less common languages for syntax highlighting (#2388)
* Use fewer syntax highlighter languages.

Reduces client.js size by about 250kB (800kB uncompressed)

Common languages:
bash, c, cpp, csharp, css, diff, go, graphql, ini, java, javascript,
json, kotlin, less, lua, makefile, markdown, objectivec, perl,
php-template, php, plaintext, python-repl, python, r, ruby, rust, scss,
shell, sql, swift, typescript, vbnet, wasm, xml, yaml

Additionally enabled languages:
dockerfile, pgsql

* Configurable syntax highlighter languages

Allows to individually enable languages.

* Lazy load syntax highlighter languages

Allows to enable additional languages that will not be autodetected.

* Include highlight.js in dynamic import check
2024-03-14 08:31:07 -04:00
matc-pub
e832cd2729
Lazy load translations and date-fns, server side support for "Browser Default" language (#2380)
* Lazy load i18n translations.

* Lazy load date-fns

* Fix inconsistent DOMContentLoaded event.

Only when no translations and date-fns have to be dynamically loaded
(e.g. for en-US) the NavBar `componentDidMount` is early enough to
listen for "DOMContentLoaded".

Removes one redundant `requestNotificationPermission()` call.

* Rename interface language code "pt_BR" to "pt-BR".

Browsers ask for "pt-BR", but the "interface_language" saved in the
settings dialog asks for "pt_BR". This change will make the settings
dialog ask for "pt-BR" instead of "pt_BR". For users that already (or
still) have "pt_BR" configured, "pt-BR" will be used, but the settings
dialog will present it as unspecified.

* Use Accept-Language request header

* Prefetch translation and date-fns

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-13 16:39:45 -04:00
2aff64bcdc
On account deletion add 'delete content' checkbox (fixes #2384) (#2385)
* On account deletion add 'delete content' checkbox (fixes #2384)

* css

* rename

* i18n
2024-03-05 08:58:08 -05:00
SleeplessOne1917
79ed590335
Add badge for local subscribers to communities (#2377)
* Add badge for local subscribers to communities

* Add local subscribers badge

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-27 08:59:18 -05:00
SleeplessOne1917
72b3d6b828
Fix links to users and communities not including query in hyperlink (#2368)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:59:26 -05:00
SleeplessOne1917
5eb97edf09
Make code blocks use correct theme when in dark mode (#2367)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:57:49 -05:00
SleeplessOne1917
40ade7df88
Hide WYSIWYG buttons when previewing markdown (#2366)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:57:07 -05:00
Die4Ever
77cd46b35b
always show fedilinks (issue #2160) (#2344)
* always show fedilinks (issue #2160)

* fix comment fedilinks title text

* fix comment links title text

* remove unused local variable

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-16 10:20:49 -05:00
Dessalines
1ff4acc049
Changing security.txt to use github security advisories page. (#2334)
* Changing security.txt to use github security advisories page.

- Fixes #2332

* Adding an expires date, one year from build date.

* Add a year to the build date in code.

* Fix dev.dockerfile build date.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-16 10:17:15 -05:00
SleeplessOne1917
7cfe9a1a40
Fix scroll bug when modal closes from browser vack button (#2363)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-02-16 08:15:12 -05:00
SleeplessOne1917
cc0177a4aa
Prevent password length error silent truncation (#2364)
* Prevent password fields from silently truncating too-long passwords

* Use existing i18 translation

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 08:12:05 -05:00
Kradyz
64c0ba37d2
Show the community name instead of the creator name when appointing a mod (#2358)
Co-authored-by: nanogarden <nanogarden@fakemail.com>
2024-02-06 19:16:15 +00:00
Jack Linhart
ae5a2817aa
increase font sizes on all themes (#2352)
* increase font sizes on all themes

* update SCSS variables so auto-gen themes properly in build
2024-02-04 16:17:38 -05:00
SleeplessOne1917
57b4aacfad
Make it more obvious when a community is locked (#2329)
* Make it more obvious when a community is locked

* Add translations

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-20 08:22:13 -05:00
Dessalines
1070aafeef
Upgrading deps. (#2336) 2024-01-19 15:48:24 -05:00
Dessalines
f62953797c
Revert "Fix captcha cache control bug" (#2335) 2024-01-19 13:00:15 -05:00
SleeplessOne1917
d6ce6a1afd
Improve TOTP modal (#2327)
* Improve TOTP modal

* Add submit translation

* Update translations

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-19 10:06:54 -05:00
Dessalines
5ba9da1545
Make a separate post markdown field character limit. (#2331)
Context: https://github.com/LemmyNet/lemmy/issues/3262
2024-01-19 00:54:27 +00:00
SleeplessOne1917
7e0652df45
Fix fedi link regression (#2324)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-15 09:37:48 -05:00
SleeplessOne1917
59308bd7ae
Fix captcha cache control bug (#2326)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-15 09:37:12 -05:00
Jon Charter
909e3e0fa8
Add logic to filter view for denied registration applications (#2322)
* Add logic to filter view for denied registrations

* Adjust filter criteria
2024-01-14 13:23:25 -05:00
Dessalines
d1bc165327
Adding admin view vote modal. (#2303)
Admins can now click post or comment dropdowns, and view their votes. Should help with vote-trolling.
2024-01-09 18:48:46 -05:00
SleeplessOne1917
e2fa55e122
Fix error page error interpolation (#2302)
* Fix error page error interpolation

* Run prettier

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-07 12:13:05 -05:00
SleeplessOne1917
b41aa874bf
Fix compact theme letter tail cutoff bug (#2301)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-04 12:54:24 -05:00
İsmail Karslı
0bd26aa568
Store volume level on window object (#2307)
* Store volume level on window object

* Store volume level on localStorage, instead of window object

* Refactor video event handlers in PostListing component

* Take `muted` prop into account while storing volume level

* fix

* simplify logic
2024-01-03 18:30:32 +00:00
İsmail Karslı
22f2b47243
Do not auto expand media if blur_nsfw is active and the post is NSFW (#2305)
* Do not auto expand media if blur_nsfw is active and the post is NSFW flagged

* Update src/shared/components/post/post-listing.tsx

* Update src/shared/components/post/post-listing.tsx

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2023-12-30 19:47:27 -05:00
Pseudochron
ab74d3ad90
Fix dark theme highlight color for recent comments, restores colors to 0.18 values (#2297)
* Update darkly-compact.css to set highlight-bg for dark theme

* Revert main.css

* Update darkly-pureblack.css to set highlight-bg for dark theme

* Update darkly-red.css to set highlight-bg for dark theme

* Update darkly.css to set highlight-bg for dark theme

* Update vaporwave-dark.css to set highlight-bg for dark theme

* Update i386.css to set highlight-bg for dark theme

* Update _variables.darkly-pureblack.scss to set $mark-bg-dark

* Update _variables.darkly.scss to set $mark-bg-dark

* Update _variables.i386.scss to set $mark-bg-dark

* Update _variables.vaporwave-dark.scss
2023-12-21 04:39:27 +00:00
SleeplessOne1917
9e68dbef20
Use highlight color for new comments on dark themes that won't burn your (#2295)
eyes out

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2023-12-19 15:41:13 -05:00
SleeplessOne1917
714618c80c
Re-add show source for comments (#2290)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2023-12-18 11:51:44 -05:00
Dessalines
6f1d975e74
Make sure banned toast has correct user. (#2281) 2023-12-13 01:41:10 +00:00
Dessalines
2fff988dc6
Fixing link targets reloading page. Fixes #2275 (#2276) 2023-12-07 16:59:42 +00:00
SleeplessOne1917
8594a30a53
Moderation/content action overhaul (#2258)
* Fix remove post dialog

* Consolidate mod action logic

* Make mod action form less janky

* Move content action dropdown to its own component

* Make reusable component for content action buttons

* Finish up mod dropdown

* Introduce new content dropdown component to post listing

* Fix cancel moderation button bug

* Add icons, tweak UI

* Handle delete/undelete icons

* The thing

* Fix some of the banning related bugs

* Fix mod form ban bugs

* Fix some more bugs

* Make comments use dropdown menu

* Use mod action form with comments

* Make confirmation modal

* Make all the mod action dialogs modals

* Tweak modal

* Fix bug with mod form submit

* Tweak modal more

* More modal tweaking and some feedback toasts

* Use icon pairs for on/off

* Make modals auto focus input

* Implement PR suggestions

* Make UI use async functions where needed

* Make loading state for context action modals

* Hide context actions that users should not be able to do

* Add loading state to confirmation modals

* Use updated translations

* PR feedback

* Add forgotten trnslations

* Fix scrolling bug

---------

Co-authored-by: SleeplessOne <insomnia-void@protonmail.com>
2023-12-06 18:17:02 -05:00
Dessalines
39f86d421e
Fixing communityToChoice. Fixes #2231 . Fixes #2232 . (#2271)
* Fixing communityToChoice. Fixes #2231 . Fixes #2232 .

* Fixing map.

---------

Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-12-06 09:36:15 -05:00
SleeplessOne1917
8a722c939c
Only generate manifest if it isn't already in memory (#2272)
* Only generate manifest if it isn't already in memory

* Remove forward header

---------

Co-authored-by: SleeplessOne <insomnia-void@protonmail.com>
2023-12-06 08:57:31 -05:00
Dessalines
fc234716b0
Adding a few promise.all concurrent fetches to FetchInitialData. #2234 (#2270) 2023-12-05 19:22:16 +00:00
Dessalines
f245d2b517
Changing auth cookie name back to jwt. (#2269) 2023-12-05 12:56:29 -05:00
İsmail Karslı
5784f9e0b5
Added aspect ratio to the video (#2268) 2023-12-05 11:39:44 -05:00
Dessalines
7702c041e5
Move lemmyClient generation into fetchInitialData functions. Fixes #2243 (#2260)
* Trying more ssr fixes. #2243

* Try to enforce cross-fetch again.

* Try to forward cookies.

* Try to forward cookies 2.

* Trying a new cross-fetch.

* Fixing headers

* Fixing some auth issues.

* Fixing isBanned.

* Fix shutdown.

* Pushing up some tries.

* Moving lemmyclient building into fetchInitialData functions.
2023-12-05 03:07:36 +00:00
phiresky
03fcaa0815
fix wrapped http client (#2267)
wrappedhttpclient has two bugs:

1. setHeaders becomes async with errors gobbled up. this is probably not intentional and the result is not awaited at the call site
2. wrappedhttpclient overrides methods in the prototype and not the instance. this means that when a new instance is created, from then on all methdos on all wrappedhttpclients call the inner methods on the newly created client instead of their respective clients

this PR tries to fix both. it is untested so idk if it works

related: #2243
2023-12-04 17:24:15 +00:00
Dessalines
7f4493d4db
Revert "Ignore autogenerated css files from being tracked in the repo (#2256)" (#2259)
This reverts commit a41258c793.
2023-11-30 05:28:14 -05:00
SleeplessOne1917
a41258c793
Ignore autogenerated css files from being tracked in the repo (#2256)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2023-11-29 14:48:02 -05:00
Dessalines
b6050c794a
Fixing comments auto-collapsing. Fixes #2252 (#2253) 2023-11-29 12:29:04 -05:00
Dessalines
7222632389
Trying another SSR fix. #2243 (#2251) 2023-11-29 09:44:31 -05:00
Dessalines
37c72d599e
Disable post voting buttons when logged out. Fixes #2248 (#2249)
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-11-28 22:04:54 -05:00
Dessalines
5ec9baa5a5
Attempting to fix SSR. #2243 (#2247)
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-11-28 21:37:56 -05:00
Dessalines
48ed65639a
Fixing instance blocking. Fixes #2245 (#2246) 2023-11-28 21:12:23 -05:00
Dessalines
69a3a63dfd
Fixing QR code CSP, try 2. Fixes #2241 (#2242)
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-11-28 09:56:28 -05:00
Kroese
aafcfaf649
Fix shutdown behaviour (#2239)
* Handle SIGTERM signal

* Use constants

* Styling

* Prettier

* setTimeout

* Prettier

* Display version

* Display version

* Prettier
2023-11-27 18:37:37 -05:00
SleeplessOne1917
ae4a4cc8af
Update deps (#2237)
Co-authored-by: SleeplessOne <insomnia-void@protonmail.com>
2023-11-26 19:53:24 -05:00
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
fe28c691e3
Fixing QR code CSP. (#2218) 2023-11-13 12:45:27 -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
Daniel Lo Nigro
42d60fe3d5
Simplify favicon (#2176)
Removes Inkscape metadata and resulting unneeded XML namespaces
2023-10-08 00:31:02 +00: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
ab545e0e19
Increase cache-control max-age to 60s (#2124)
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>
2023-09-12 15:27:56 -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
b2927c36a2
Update spoiler icon to diamond shape. (#2102) 2023-08-30 12:42:30 -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