Commit graph

1540 commits

Author SHA1 Message Date
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
Nutomic 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
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
Dessalines ff62915ddf
Fix comment insertion from context views. Fixes #2030 (#2031) 2023-08-07 12:53:21 -04:00
SleeplessOne1917 61e0241d89
Fix password autocomplete (#2033) 2023-08-07 12:51:19 -04:00
maxime.io 76a656bc5b
Fix suggested title "&nbsp;" spaces (#2037)
* Fix imported title &nbsp spaces

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

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>

* Fix lint issue

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-07 12:39:44 +00:00
Pavlos Smith d923cfa522
Lemmy 2515 controversial posts and comments (#1727)
* Added buttons to be able to sort posts and comments by controversy rank

* Added buttons to be able to sort posts and comments by controversy rank

* lost changes

* Hiding controversial sort if downvotes disabled (unfinished)

* Finished hiding sort option correctly

* Removed newline

* Removed hiding logic for now, this should be included in a future PR

* woodpecker re-run

* woodpecker re-run

* woodpecker re-run

* Update lemmy js-client version

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-04 16:32:07 -04:00
Milan Damen afafb777b4
Mark post as read when clicking "Expand here" on the preview image on the post listing page (#1600) (#1978)
* Mark post as read when clicking "Expand here" on the preview image on the post listing page (#1600)

* Simplified check for mark post as read

* Implemented mark post as read as a property callback instead of directly using HttpService

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-04 10:47:17 -04:00
SomeoneStoleMyNickname 2531d05191
Expanded the RegEx to check if the title contains new line caracters. Should fix issue #1962 (#1965)
* Expanded the RegEx to check if the title contains new line caracters.
Should fix the issue #1962.
Also added Comments for clarity.

* ran yarn and changed according to recommendations
2023-08-04 10:44:03 -04:00
HKayn 8edf69559e
Fix document title of admin settings being overwritten by tagline and emoji forms (#2003)
* Fix document title of admin settings being overwritten

* Remove obsolete imports
2023-08-03 12:27:06 -04:00
Dessalines 9f2289d466
Upgrading deps, running prettier. (#1987) 2023-07-28 16:15:42 -04:00
SleeplessOne1917 dd42bc2a3d
ES-Lint tweak (#2001) 2023-07-28 16:07:16 -04:00
Hamzah Mansour 908b7c5bb1
Use proper modifier key in markdown text input on macOS (#1995)
* add os detect util, use meta key on macos

* pr feedback
2023-07-28 15:25:02 -04:00
Dessalines 88f89cb953
Fixing comment report showing dot. (#1989)
* Fixing comment report showing dot.

* Using list-unstyled instead of removing <ul and <li
2023-07-26 17:11:40 -04:00
Dessalines 2ccaaf1bcd
Make sure comment score color matches your vote. (#1988)
* Make sure comment score color matches your vote.

* Fixing lints.
2023-07-26 19:51:43 +00:00
creesch 925d9624d5
Allow limited set of markdown in title rendering (#1977) 2023-07-26 13:41:57 -04:00
Nutomic a67c70a449
Allow selecting from all languages in person settings (fixes #1971) (#1985) 2023-07-26 13:39:06 -04:00
djvs d42aabb3ca
Separate final comment row + add classes (#1982)
Co-authored-by: djvs <djvs@users.noreply.github.com>
2023-07-25 14:07:17 -04:00
Ben Wyatt 6331323554
Allow sorting on /communities (#1934)
* Allow sorting on communities page

Just a few minor changes to communities.tsx that add a sort dropdown - same element as the sort dropdown in home.tsx

* Fix alignment of communities.tsx selector row

Simple CSS fix for correct alignment of a few elements

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-17 11:22:01 -04:00
SleeplessOne1917 b7ec7ae311
Add show/hide button to password fields (#1861)
* Make working password inputs

* Make show/hide password button use icon

* Tweak look

* Handle delete account form separately from change settings form

* Adjust password strengthometer position

* Incorporate PR feedback

* Add translations
2023-07-14 13:33:24 -04:00
randfur cd1a11c77a
Fix start_url and scope (#1931)
Remove unused import
2023-07-13 20:01:14 -04:00
Lionir 9e246beb03
Set person_id to myId in handleLeaveModTeam (#1929) 2023-07-12 22:26:21 -04:00
Lemmus.org 021677316d
Remove invalid default option from language list (#1919) 2023-07-12 10:04:16 -04:00
Sander Saarend 5d4edf555e
Fix CSP in dev mode (#1918) 2023-07-12 10:03:49 -04:00
rosenjcb 7a804ff333
Add Toast Messages for Bad Logins (#1874)
* Added toast prompts

* Using generic  message instead.

---------

Co-authored-by: Jacob Rosenzweig <rosenjcb@Jacobs-MacBook-Pro.local>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-12 10:01:47 -04:00
SleeplessOne1917 2911cd8cdb
Comment border tweak (#1820)
* Tweak border depth

* Tweak top level margins
2023-07-10 19:16:03 -04:00
Sander Saarend 546f0ad704
Add nonce-based CSP header (#1907)
* Remove websocket config

* Add nonce based CSP
2023-07-10 14:26:41 -04:00
Klemen Košir ed0fd264de
Add community name to featured post action in Modlog (#1891) 2023-07-10 10:48:27 -04:00
Matthew Miner 53c3cfeade
Use canonical URLs (#1883) 2023-07-10 10:46:36 -04:00
Lemmus.org 6350f68579
Add theme option for compact that respects browser default (#1870) 2023-07-10 10:33:58 -04:00
Lemmus.org 1bd705d7bc
Update post listing to prefer local image when available (#1858) 2023-07-10 10:22:12 -04:00
drumlinish 1774ecdf6c
Disallow /modlog since it is not relevant for bots (#1850) 2023-07-10 10:17:24 -04:00
Anon e80bcf53ac
Fix XSS vuln (#1897) 2023-07-10 07:37:07 -04:00
SleeplessOne1917 3d58baea7c
User inferno prompt instead of handrolled one (#1867) 2023-07-07 19:33:03 -04:00
SleeplessOne1917 45333d8c10
Darkly tweak (#1811)
* Make outline buttons have better contrast in dark themes

* Change secondary color for darkly themes

* Put compact styles back to how they were before

* Forgot to build themes
2023-07-07 14:27:25 -04:00
c-andy-candies 214eae5be5
Reopen PR 1420 Feature add three six and nine months options frontend (#1689)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-07 13:37:50 -04:00
SleeplessOne1917 f854a51090
Dark theme tweaks (#1840)
* Make post titles visible on i386

* Make post titles visible on vaporwave dark

* Undo unnecessary changes
2023-07-07 08:23:25 -04:00
Oliver White 53a5bfe592
fix: Adjust sidebar banner to wrap bellow the title (#1819)
* fix: Adjust sidebar banner to wrap bellow the title

* remove flex and add bottom border when uncollapsed

* use classnames utility
2023-07-07 08:22:50 -04:00
Michael Charles Aubrey 1de0fdb8c2
add ruby annotation support (#1831) 2023-07-06 07:44:32 -04:00
Jay Sitter 9ce164245f
fix: Fix mobile thumbnail being too small (#1814)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-05 15:31:08 -04:00
Dennis Saw 3a89454e82
Use Join Lemmy hostname as link text in footer (#1737)
* Use Join Lemmy URL as link text in footer when there's a user

I think it makes sense to keep a link to the Join Lemmy website even
though there's a logged in user. There's plenty of other useful info on
that website beyond just joining Lemmy.

Using the URL avoids the phrase "Join Lemmy" and should indicate that
you're navigating to said website.

* Extract hostname from the existing URL constant instead

* Just use hostname of join lemmy site in footer

To maintain consistency whether logged in or not.
2023-07-05 11:42:44 -04:00
Jay Sitter 53348d5ac4
fix: Add focus ring color to post action buttons and markdown help link (#1816) 2023-07-05 11:41:12 -04:00
Jay Sitter b45c24537d
fix: Fix focus ring styles for radio button toggles #1772 (#1773) 2023-07-04 17:24:57 -04:00
Alec Armbruster c3ab9e74f8
fix toaster upon user settings change (#1802)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-04 17:08:32 -04:00
jcgurango 26ff0f7e06
Fix home page not using site-level listing type #1612 (#1778)
* Fix home page not using site-level listing type

* Use null handling instead
2023-07-04 17:06:34 -04:00
Jay Sitter 778c3533f0
feat: Subtler user badge style (#1796) 2023-07-04 16:54:38 -04:00
SleeplessOne1917 322a44bf24
Fix data-bs-theme (#1810)
* Fix data-bs-theme

* Add other dark themes

* Add vaporwave-dark to dark theme list
2023-07-04 16:53:28 -04:00
Alec Armbruster 7eddc52c13
Attempt to fix inability to logout from some instances (subdomains) (#1809)
* slight refactor, tweak params

* fix paths

* remove domain

* remove expires

* Use maxAge instead of expires

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-04 12:52:14 -04:00
SleeplessOne1917 f6cbc896af
feat(theme): Vaporwave (#1682)
* Make vaporwave dark theme work

* Tweak vaporwave light theme

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-04 12:13:31 -04:00
Jay Sitter 8323bc9ab6
fix: Revert smaller text size (#1795) 2023-07-04 11:58:54 -04:00
Security-Chief-Odo ba9389c15e
Updated the regex for isAuthPath to reduce false positive hits (#1806)
* OUpdated the regex for isAuthPath to reduce false positive hits as described in issue #1704

* Updated the regex for isAuthPath to reduce false positive hits - Re-ran Linting
2023-07-04 11:13:04 -04:00
Jay Sitter 21c8b64cda fix: Add focus border to markdown toolbar buttons 2023-07-04 00:53:52 -04:00
Jay Sitter b1292b958a
fix: Add data-bs-theme attribute for user dark/light modes (#1782)
* fix: Add data-bs-theme attribute for user dark/light modes

* fix: Remove unnecessary optional chain

* fix: Oops -- add missing files
2023-07-03 20:02:24 -04:00
Jay Sitter 976812a446 Merge remote-tracking branch 'lemmy/main' into fix/fix-long-words-in-titles-overflow
* lemmy/main:
  v0.18.1-rc.9
  fix: Fix comment collapse and vote buttons not having focus style (#1789)
  Add missing modlog reasons (#1787)
  Fix search page breaking on initial load when logged in (#1781)
  feat: Add PR template (#1785)
  v0.18.1-rc.8
  Fix profile loading spinner
  fix: Move getRoleLabelPill to the only component that uses it
  fix: Remove unused hasBadges() function
  fix: Fix badge alignment and break out into component
  fix: Fix up filter row gaps and margins a little
  fix: Fix heading levels
  fix: Simplify row classes a bit
  fix: Fix some gaps in search filters
  fix: Fix row gap on search options
  fix: Add bottom margin to inbox controls
  fix: Small cleanup to search/inbox controls
2023-07-03 17:13:33 -04:00
Jay Sitter 5a95a058ae
fix: Fix comment collapse and vote buttons not having focus style (#1789) 2023-07-03 16:53:10 -04:00
SleeplessOne1917 e829b13053
Add missing modlog reasons (#1787) 2023-07-03 16:52:33 -04:00
SleeplessOne1917 a0cf54c0a0
Fix search page breaking on initial load when logged in (#1781)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 16:43:52 -04:00
SleeplessOne1917 f89a788a9f
Merge branch 'main' into fix-profile-loading-spinner 2023-07-03 14:12:14 +00:00
SleeplessOne1917 34f04e6758
Merge branch 'main' into fix/fix-badges-spacing-componentize 2023-07-03 12:29:55 +00:00
m-gail fa4fe57a86
Fix profile loading spinner 2023-07-03 12:56:22 +02:00
Jay Sitter 8a163fedde fix: Break text on post titles so long words don't overflow 2023-07-02 20:20:08 -04:00
Jay Sitter 1e69129b10
Merge branch 'main' into fix/h1-page-titles 2023-07-02 20:08:55 -04:00
SleeplessOne1917 7389b1f9c8
Merge branch 'main' into fix/use-row-in-filters 2023-07-02 23:56:46 +00:00
Jay Sitter 7b34022e0d
Merge branch 'main' into fix/h1-page-titles 2023-07-02 19:54:03 -04:00
Jay Sitter 4e1e29b9a5
Merge branch 'main' into fix/fix-badges-spacing-componentize 2023-07-02 19:47:41 -04:00
Jay Sitter 6cb49967c2 fix: Move getRoleLabelPill to the only component that uses it 2023-07-02 19:47:12 -04:00
Alec Armbruster c0193fa2de
Merge branch 'main' into fix/expand-button-when-no-link 2023-07-02 19:20:32 -04:00