Commit graph

2229 commits

Author SHA1 Message Date
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
Dessalines
0ec0af71bb
Fix husky for yarn 2 . (#2110)
- Context: https://typicode.github.io/husky/getting-started.html#yarn-2
2023-09-02 09:51:58 -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
Dessalines
28d60a12d0
Woodpecker updates. (#2046)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-26 00:40:38 -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
Dessalines
2117f1d0f2
Fixing webpack build. (#2042) 2023-08-07 20:07:09 +00: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
SleeplessOne1917
1a53a247ab
Update translation submodule (#2023)
* Update translation submodule

* Fix translation generation error
2023-08-04 16:24:13 -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
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
Daniele Basso
9c489680de
Fix base.output (see #1911) (#1943) 2023-07-14 16:52:05 -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
Daniele Basso
dbeab6450b
Remove lodash.merge dependency (#1911)
Remove lodash.merge dependency from webpack.config.js file, replacing it with using spread sintax (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax)
2023-07-13 20:05:28 +00: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
cmp
462bdb10c9
Use the 'node' user instead of root when running. (#1894) 2023-07-10 10:50:25 -04:00
Klemen Košir
ed0fd264de
Add community name to featured post action in Modlog (#1891) 2023-07-10 10:48:27 -04:00