Commit graph

1277 commits

Author SHA1 Message Date
Raicuparta
6305f593d0
Merge branch 'main' into community-search 2023-06-29 04:22:07 +01:00
Raicuparta
92f6fe914f
Search only communities by default when coming from communities page 2023-06-29 04:12:16 +01:00
Robert C. Maehl
9a04d0c58e
Add Security.txt (#1408)
* Create security-handler.ts

https://securitytxt.org/

* Add SecurityHandler

* Update security-handler.ts

* Update index.tsx

* Ensure external domain.tld is used

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 23:10:13 -04:00
Dessalines
a2716d5f48
Fixing timezone issue with date-fns. Fixes #1680 (#1681)
Co-authored-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>
2023-06-28 23:09:25 -04:00
Sander Saarend
bca438b2c6
Add error toast for 413 content too large response on image uploads (#1675)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 22:53:15 -04:00
Scott
a077924f38
Fix search page to stop couldnt_find_object error (#1669)
* Add silent client and use it for resolve object

* more changes

* Fix more issues

* make double equals a triple equals
2023-06-28 22:44:47 -04:00
Alec Armbruster
38a109ba92
Add fixed width/height to PostListing thumbnail parent (#1660)
* add static width/height for post listing thumbnails

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

Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>

* make hopefully final tweaks

* remove .overflow-hidden

---------

Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 22:44:10 -04:00
Jay Sitter
a30c112048
fix: Add user action buttons to post dropdown #1653 (#1655)
* fix: Add user action buttons to post dropdown #1653

* fix: Fix alignment of preview mini-overlay buttons on thumbs

* fix: Restore mdNoImages import

* fix: Change style and capitalization of post user action buttons

* fix: Move Trasnfer Community button to dropdown

* fix: Remove some changes that shouldn't have been in here

* chore: Empty commit to re-trigger Woodpecker

* fix: Remove some unnecessary aria-labels

* fix: Capitalize first letter on transfer community button

* chore: Empty commit to re-trigger Woodpecker

---------

Co-authored-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-28 22:43:44 -04:00
SleeplessOne1917
ef66dfa6fd
Return appropriate error codes (#1665)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-28 16:44:26 -04:00
SleeplessOne1917
5c16be767c
Add i386 theme (#1662)
* Add i386 theme

* Make searchable selects display properly

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-28 16:43:33 -04:00
32063a5794
Set cache-control headers to reduce server load (fixes #412) (#1641)
* Set cache-control headers to reduce server load (fixes #412)

* add missing file

* remove old middleware folder

* use let

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 16:32:07 -04:00
Alec Armbruster
068e6eb4a2
Merge branch 'main' into bugfix/fix-subscribe-button-layout 2023-06-28 11:43:40 -04:00
Alec Armbruster
2f3aa5a26d
formatting 2023-06-28 11:09:52 -04:00
Alec Armbruster
a8339c38c7
make subscribe/unsub/pending button consistent 2023-06-28 11:06:55 -04:00
Alec Armbruster
3c11b61961
Merge branch 'main' into feat/pureblack-theme 2023-06-28 10:52:24 -04:00
Jay Sitter
7be10eb35b Revert #1463, markdown default lang select 2023-06-28 08:44:39 -04:00
Alec Armbruster
0ef2e8969c
Merge branch 'main' into feat/pureblack-theme 2023-06-28 00:12:10 -04:00
SleeplessOne1917
cf26c3d8e9
Merge branch 'main' into subscribe-fix 2023-06-27 19:28:52 -04:00
Alec Armbruster
874ae62fba
remove hard-coded text foreground color classes (#1658)
Signed-off-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>
2023-06-27 19:08:01 -04:00
SleeplessOne1917
e7c121aff9 Fix subscribe and block community buttons not showing up on first load 2023-06-27 19:01:47 -04:00
Alec Armbruster
68b3940a9b
Merge branch 'main' into fix/thumb-action-button-alignment 2023-06-27 17:16:26 -04:00
Alec Armbruster
8f1b0ad559
refactor 2023-06-27 15:49:14 -04:00
Alec Armbruster
4e161f5f91
refactor again 2023-06-27 15:00:35 -04:00
Alec Armbruster
4944f19143
change me-2 to me-1, no need for me-2 width 2023-06-27 14:39:30 -04:00
Alec Armbruster
f333710077
make mod shrunken label text-primary 2023-06-27 14:36:19 -04:00
Alec Armbruster
0b7e2b7e4d
oops 2023-06-27 14:31:53 -04:00
Alec Armbruster
086052a69a
refactor x2 2023-06-27 14:29:44 -04:00
Alec Armbruster
6d65abc3ee
refactor 2023-06-27 14:10:05 -04:00
Alec Armbruster
e9f3701d8d
Merge branch 'main' of https://github.com/LemmyNet/lemmy-ui into bugfix/make-post-creator-badge-stand-out-more 2023-06-27 13:49:34 -04:00
Alec Armbruster
746b52f378
add @jsit advice 2023-06-27 13:41:31 -04:00
Alec Armbruster
9cf3c33823
fix weird borders when markdown textarea is disabled 2023-06-27 12:59:06 -04:00
Alec Armbruster
c020debf6d
use span 2023-06-27 11:44:17 -04:00
Jay Sitter
1e4e468e5a
Merge branch 'main' into fix/thumb-action-button-alignment 2023-06-27 11:42:31 -04:00
Alec Armbruster
9e1eb5fe19
always show badge on mobile 2023-06-27 11:42:00 -04:00
Alec Armbruster
06736c3df1
Merge branch 'main' of https://github.com/LemmyNet/lemmy-ui into bugfix/make-post-creator-badge-stand-out-more 2023-06-27 11:41:15 -04:00
Alec Armbruster
93e015393c
Merge branch 'main' into feat/pureblack-theme 2023-06-27 11:31:07 -04:00
Alec Armbruster
63337848ed
fix a few colors 2023-06-27 11:30:32 -04:00
Sander Saarend
934cabcec4
Reduce fetchLimit (40 -> 20) (#1638)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-27 10:52:01 -04:00
Jay Sitter
8dfe3c6106
Merge branch 'main' into feat/toggle-body-1595 2023-06-27 08:57:06 -04:00
SleeplessOne1917
34188ebd84
Fix allowed and blocked instances not being fetched for admin settings (#1627)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-27 08:09:55 -04:00
Dessalines
857b0d9db3
Merge branch 'main' into create_space_between_cancel_and_ban_button 2023-06-27 07:46:25 -04:00
Jay Sitter
3439512a1c fix: Restore mdNoImages import 2023-06-26 21:12:43 -04:00
Jay Sitter
ee84634a73 fix: Fix alignment of preview mini-overlay buttons on thumbs 2023-06-26 21:05:50 -04:00
Jay Sitter
5da6f27227 fix: Remove body preview 2023-06-26 20:37:28 -04:00
SleeplessOne1917
eef3ac41d3
Merge branch 'main' into fix/wider-max-width-1536 2023-06-26 20:29:13 -04:00
Jay Sitter
084345f0c5
Merge branch 'main' into fix/wider-max-width-1536 2023-06-26 20:22:38 -04:00
Jay Sitter
af67240163
Merge branch 'main' into feat/hide-avatars-on-listings 2023-06-26 20:22:26 -04:00
Jay Sitter
8b637a1773 fix: Move toggle button to its own function 2023-06-26 20:20:14 -04:00
Jay Sitter
5c964440da fix: Show metadata preview card on all post pages 2023-06-26 20:13:30 -04:00
Pascal de Vink
1dd83dafdc Fix feedback on banning an unbanning
When banning or unbanning, the API call was done, but updating the
frontend failed. This caused a confusing experience for an admin, until
the page was reloaded.
2023-06-26 20:13:30 -04:00
Alec Armbruster
936eb115bc fix vote button alignment 2023-06-26 20:13:30 -04:00
Alec Armbruster
0956863b28 remove icon (#1618)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 20:13:28 -04:00
dullbananas
7efc136ff5 Indicate valid and invalid fields in signup form (#1450)
* Use was-validated class in signup form

* Update signup.tsx

* Update signup.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-26 20:12:41 -04:00
Alec Armbruster
7d63117c28 capitalize button (#1616)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 20:12:41 -04:00
Alec Armbruster
921cd976a4 Move password reset form to separate route, view (#1390)
* rework password reset form

* make self-suggested changes

* cleaning

* validate in handlePasswordReset as well

* update submodule

* partially make suggested changes

* make suggested changes

* resolve merge conflicts

* resolve merge conflicts

* resolve merge conflicts

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 20:12:41 -04:00
Jay Sitter
6edbb027f1 feat(UI): Reduce base font size (#1591)
* feat: Reduce base font size

* chore: Build themes

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 20:12:41 -04:00
Anansi
b2bd193160 Fix: missing semantic css classes and html elements (#1583)
* Fix: missing semantic css classes and html elements.

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.

* Fix: re-added communityref on main element

---------

Co-authored-by: 0xAnansi <0xAnansi@omageni.com>
Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 20:12:41 -04:00
Alec Armbruster
87a5231745 partially revert change 2023-06-26 20:12:41 -04:00
Jay Sitter
a320f1edb1 fix: Remove unnecessary class 2023-06-26 20:12:41 -04:00
Jay Sitter
e84e2bfd1d fix: Remove unnecessary classes 2023-06-26 20:12:41 -04:00
Jay Sitter
6e6bbb06c0 fix: Restore removed classes 2023-06-26 20:12:40 -04:00
Jay Sitter
ffb0ffb255 fix: Remove wrapping li's 2023-06-26 20:12:40 -04:00
Jay Sitter
2547f68a6b fix: Remove extraneous classes 2023-06-26 20:12:40 -04:00
Jay Sitter
a4c819cdeb fix: Move things back to where they were 2023-06-26 20:12:40 -04:00
Jay Sitter
7e7bbde721 chore: Separate post mod buttons into functions 2023-06-26 20:12:40 -04:00
Alec Armbruster
a29cb0e83b remove hook entirely 2023-06-26 20:12:40 -04:00
Alec Armbruster
a6b59b78d2 fix bug collapsing previews when voting 2023-06-26 20:12:40 -04:00
Jay Sitter
4b5fe717ad fix: Remove unnecessary string interpolations 2023-06-26 20:12:40 -04:00
Jay Sitter
319bb4116f fix: Remove smallavatars prop 2023-06-26 19:46:29 -04:00
Jay Sitter
f57bf3bb8b fix: Restore icon avatars; make smaller and roundrect 2023-06-26 19:04:13 -04:00
SleeplessOne1917
6021d20559
Merge branch 'main' into bug/fix-image-collapse-upon-vote 2023-06-26 18:47:49 -04:00
SleeplessOne1917
165d1aa181
Merge branch 'main' into create_space_between_cancel_and_ban_button 2023-06-26 18:46:22 -04:00
Jay Sitter
b2b6f4521f fix: Use Bootstrap file upload form control styles 2023-06-26 18:42:44 -04:00
Pascal de Vink
8e2f83eb4e Fix feedback on banning an unbanning
When banning or unbanning, the API call was done, but updating the
frontend failed. This caused a confusing experience for an admin, until
the page was reloaded.
2023-06-26 18:30:31 -04:00
Alec Armbruster
28661dfacf fix vote button alignment 2023-06-26 18:30:31 -04:00
Alec Armbruster
d816b8f863 remove icon (#1618)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 18:30:31 -04:00
dullbananas
dd09b3cade Indicate valid and invalid fields in signup form (#1450)
* Use was-validated class in signup form

* Update signup.tsx

* Update signup.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-26 18:30:31 -04:00
Alec Armbruster
022c27aec2 capitalize button (#1616)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 18:30:31 -04:00
Alec Armbruster
950dfad659 Move password reset form to separate route, view (#1390)
* rework password reset form

* make self-suggested changes

* cleaning

* validate in handlePasswordReset as well

* update submodule

* partially make suggested changes

* make suggested changes

* resolve merge conflicts

* resolve merge conflicts

* resolve merge conflicts

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 18:30:31 -04:00
Jay Sitter
f5be909d64 feat(UI): Reduce base font size (#1591)
* feat: Reduce base font size

* chore: Build themes

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 18:30:31 -04:00
Anansi
cf10bd64ad Fix: missing semantic css classes and html elements (#1583)
* Fix: missing semantic css classes and html elements.

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.

* Fix: re-added communityref on main element

---------

Co-authored-by: 0xAnansi <0xAnansi@omageni.com>
Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 18:30:31 -04:00
SleeplessOne1917
308785b472 Only give child comments colored borders 2023-06-26 18:30:31 -04:00
Dominic Mazzoni
9dc25f2247 Associate NSFW label with its checkbox 2023-06-26 18:30:31 -04:00
Jay Sitter
8fd08e58e3 fix: Remove unnecessary string interpolations 2023-06-26 18:30:31 -04:00
Jay Sitter
04770d7ef8 fix: Remove unnecessary class 2023-06-26 18:30:31 -04:00
Jay Sitter
32cc2538d4 fix: Remove unnecessary classes 2023-06-26 18:30:30 -04:00
Jay Sitter
984de714cd fix: Restore removed classes 2023-06-26 18:30:30 -04:00
Jay Sitter
bbe897dc01 fix: Remove wrapping li's 2023-06-26 18:30:30 -04:00
Jay Sitter
1db654ecf5 fix: Remove extraneous classes 2023-06-26 18:30:30 -04:00
Jay Sitter
00d7a8dbb7 fix: Move things back to where they were 2023-06-26 18:30:30 -04:00
Jay Sitter
f27bb07fcd chore: Separate post mod buttons into functions 2023-06-26 18:30:30 -04:00
Jay Sitter
d62424d491 Merge remote-tracking branch 'lemmy/main' into fix/wider-max-width-1536
* lemmy/main:
  fix vote button alignment
  Fix feedback on banning an unbanning
  remove icon (#1618)
  Indicate valid and invalid fields in signup form (#1450)
  capitalize button (#1616)
  Move password reset form to separate route, view (#1390)
  feat(UI): Reduce base font size (#1591)
  Fix: missing semantic css classes and html elements (#1583)
2023-06-26 18:24:31 -04:00
Jay Sitter
43253b01d2
Merge branch 'main' into feat/hide-avatars-on-listings 2023-06-26 18:12:04 -04:00
Alec Armbruster
03a4bfad46
remove toUpperCase since the translation is uppercase 2023-06-26 17:19:34 -04:00
SleeplessOne1917
1c5e2f1c04
Merge branch 'main' into bugfix/vote-button-position 2023-06-26 21:15:53 +00:00
Alec Armbruster
937ebfc649
fix vote button alignment 2023-06-26 17:10:39 -04:00
SleeplessOne1917
70e8b05509
Merge branch 'main' into fix_feedback_on_ban_and_unban 2023-06-26 21:08:32 +00:00
Alec Armbruster
2b1647c9b8
partially revert change 2023-06-26 17:04:19 -04:00
Pascal de Vink
6dc9c6376b
Add space between cancel and ban button
When banning a user, the modal has two buttons: cancel and ban. These
buttons are so close to each other that it's hard to see they are
separate buttons.
By putting each button on their own row, there is more space between
them.
2023-06-26 21:58:16 +01:00
Alec Armbruster
1faa9f354b
add tooltip 2023-06-26 16:49:09 -04:00