Commit graph

128 commits

Author SHA1 Message Date
Jay Sitter
1d0e96dbc4
fix: Remove Bootstrap JS in sidebars (#1434)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 08:05:32 -04:00
SleeplessOne1917
4da34c1370
Merge branch 'main' into breakout-role-utils 2023-06-20 21:12:18 +00:00
djvs
5033b024f6 component classes v2 2023-06-20 14:46:16 -04:00
Alec Armbruster
b8fd516f02
Merge branch 'main' into breakout-role-utils 2023-06-20 10:17:52 -04:00
Alec Armbruster
e4f9c31cfa
make suggested changes 2023-06-20 10:17:16 -04:00
Jay Sitter
c77086a9d5
feat: Bootstrap 5 (#1378)
* feat: Use Bootstrap 5; remove Bootstrap 4

* feat: Add link decoration override global var

* fix: Change sr-only to visually-hidden

* fix: Fix missing toggle button classes

* fix: Use darker green to pass 3:1 contrast and allow foreground color generation

* fix: Replace all mr- and ml- classes with me- (end) and ms- (start) classes

* fix: Replace all pr- and pl- classes with pe- (end) and ps- (start) classes

* fix: Replace custom-select with form-select d-inline-block

* fix: Change max-width to Bootstrap 4's max-width

* fix: Fix badge colors

* fix: Replace deprecated btn-block class with d-block

* fix: Temporary fix for missing btn-block styles

* fix: Fix margin-left auto and margin-right auto

* fix: Fix default border color

* fix: Fix some button widths

* fix: Fix form row margins

* fix: Remove theme color maps; no longer necessary in Bootstrap 5

* fix: Remove unused gray

* test commit

* fix: Fix deprecated input-group-append usage

* fix: Add missing col-form-label classes

* fix: Fix some column widths

* fix: Fix language dropdown style regression

* fix: Fix toast background color

* fix: Fix missing colors in red themes

* fix: Fix default radio button appearance for toggles

* fix: Fix missing margin in search form

* fix: Fix search form widths

* fix: Fix rate limit form columns

* fix: Fix search filters layout

* fix: Fix weird table background issue; re-compile from main updates

* fix: Fix modlog filter layout

* fix: Fix some horizontal margins

* fix: Fix incorrect usage of input-group

* chore: Empty commit to re-trigger Woodpecker job

* fix: Fix incorrect Bootstrap 5 padding class

* fix: Tighten up the home filter bars for the hell of it

* fix: Fix home filter bar gap

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:01:29 -04:00
Alec Armbruster
69a123b6d8
update imports 2023-06-19 21:48:38 -04:00
Dessalines
02ffa85b58
Merge branch 'main' into breakout-role-utils 2023-06-19 10:04:19 -04:00
SleeplessOne1917
8df8c71a1f
Merge branch 'main' into main 2023-06-18 13:43:12 +00:00
sunaurus
3f80010434
Always allow users to control whether they see NSFW content 2023-06-18 14:05:01 +03:00
Jay Sitter
f702cbd256 fix: Fix build error 2023-06-17 19:27:11 -04:00
Jay Sitter
ffaa3c4fc5 fix: Remove unused var 2023-06-17 19:16:52 -04:00
Jay Sitter
3564c6c379 fix: Fix some small style issues 2023-06-17 17:01:14 -04:00
Jay Sitter
c8758317f7 fix: Fix Trending sidebar card too 2023-06-17 15:32:49 -04:00
Jay Sitter
cf5c8a1c07 fix(a11y): Fix some mobile styles for Sidebar Cards 2023-06-17 15:24:55 -04:00
Jay Sitter
072d253baa fix(a11y): Apply same accordion/collapse markup to Subscribed Communities sidebar card 2023-06-17 15:09:10 -04:00
Jay Sitter
878e0f0f85 fix: Add .accordion wrapper around sidebar to obtain negative bottom margin 2023-06-17 14:24:13 -04:00
Jay Sitter
ff4d37d03a fix(a11y): Fix some a11y issues in Site Sidebar and use native Bootstrap Collapse and Card classes 2023-06-17 13:52:23 -04:00
Alec Armbruster
7f48a38b72
Merge branch 'main' into breakout-role-utils 2023-06-17 08:44:47 -04:00
Jay Sitter
4ec7c26707
Merge branch 'main' into feat/add-badges-common-component 2023-06-16 21:31:03 -05:00
Jay Sitter
8bbb6c9652 Merge remote-tracking branch 'origin/main' into feat/add-badges-common-component
* origin/main:
  handle login failures correctly
  wrap login call in try/catch for error handling
  Remove extra div in post sidebar
  Add a class to the more button on a comment node
  Switch navbar classes to ids
  Adding a few more 0.18.0 API changes. (#1324)
  Use aside semantic HTML tag for sidebars
  Use article semantic HTML tag for posts/comments
  Use footer semantic HTML tag
  Adding codeowners.
  Add lemmy-site class for easier detection
  Add ID's and classes to sidebars
  Add clases and ID's to post form/listing
  Add classes to post and comment repy textareas
  Rename markdown-textarea ID's
  Add nav and footer ID's
2023-06-16 20:35:44 -04:00
Alec Armbruster
3ee47d38b8
Merge branch 'LemmyNet:main' into breakout-role-utils 2023-06-16 18:57:20 -04:00
Jay Sitter
f8f1f49250 feat: Move Badges to common component 2023-06-16 18:31:47 -04:00
SleeplessOne1917
f0a7b58ee3
Merge branch 'main' into route-data-refactor 2023-06-16 22:24:29 +00:00
abias
9fb1a28763 Merge branch 'main' into route-data-refactor 2023-06-16 18:23:06 -04:00
SleeplessOne1917
7e01c9e166
Merge branch 'main' into feature/login-error 2023-06-16 22:21:12 +00:00
ayan4m1
93e3598328 handle login failures correctly 2023-06-16 18:18:36 -04:00
ayan4m1
55512a2eae wrap login call in try/catch for error handling 2023-06-16 18:18:36 -04:00
abias
4d716e039b Merge branch 'main' into route-data-refactor 2023-06-16 18:17:17 -04:00
abias
71336002e7 Fix first loads not working 2023-06-16 18:12:14 -04:00
Alec Armbruster
9c37cea106
Merge branch 'main' into breakout-role-utils 2023-06-16 17:33:46 -04:00
Alec Armbruster
976ed12d07
break out browser and helper methods 2023-06-16 17:25:53 -04:00
SleeplessOne1917
e456121137
Merge branch 'main' into feature/add-ids-and-classes 2023-06-16 21:17:48 +00:00
Alec Armbruster
0854af3794
break out all role utils 2023-06-16 17:07:55 -04:00
Dessalines
e0cc7ba3c3
Adding a few more 0.18.0 API changes. (#1324)
- Removes number_online
2023-06-16 17:06:14 -04:00
Zetaphor
9a943e1f2e Use aside semantic HTML tag for sidebars 2023-06-16 17:27:55 -03:00
Zetaphor
da1a4f81df Add ID's and classes to sidebars 2023-06-16 14:12:27 -03:00
Alec Armbruster
80e2c9602e
Admin Settings: Bugfixes (#1313)
* move loading state to AdminSettings, pass as prop, tweak margin on some labels, add missing bind

* default loading state to false on setup.tsx, add util

* rename util to make more sense

* make @dessalines suggested changes
2023-06-16 11:52:47 -04:00
abias
2a16c85ed0 Cleanup 2023-06-15 22:39:04 -04:00
abias
88842a52c0 Merge branch 'main' into route-data-refactor 2023-06-15 22:11:19 -04:00
abias
9265fc5894 Merge branch 'main' into route-data-refactor 2023-06-15 22:08:14 -04:00
Alec Armbruster
114ad262c3
use .replace() instead 2023-06-15 12:38:42 -04:00
Alec Armbruster
4da9bcd793
go back if last history action was push, fix bug preventing navigation to / working from login 2023-06-15 12:29:24 -04:00
Alec Armbruster
520efdcada
trim all username state input 2023-06-14 09:47:33 -04:00
SleeplessOne1917
2b1af707c3
Use http client (#1081)
* Beginning work on websocket -> http client conversion.

* About 30% done.

* half done.

* more done.

* Almost passing lint.

* Passing lint, but untested.

* Add back in event listeners.

* Fixing some community forms.

* Remove webpack cache.

* fixing some more.

* Fixed ISOwrappers.

* A few more fixes.

* Refactor utils

* Fix instance add/remove buttons

* Not catching errors in isoWrapper.

* Wrap Http client

* Fixing up tagline and ratelimit forms.

* Make all http client wrapping be in one place

* Reworking some more forms.

* Upgrading lemmy-js-client.

* Fixing verify email.

* Fix linting errors

* Upgrading woodpecker node.

* Fix comment scrolling rerender bug.

* Fixing a few things, commenting out props for now.

* v0.18.0-beta.1

* Trying to fix woodpecker, 1.

* Trying to fix woodpecker, 2.

* Handroll prompt

* Add navigation prompt to other pages

* Fix prompt navigation bug

* Fix prompt bug introduced from last bug fix

* Fix PWA bug

* Fix isoData not working

* Fix search page update url

* Fix sharp issue.

* v0.18.0-beta.2

* Make create post pre-fetch communities

* Fix bug from last commit

* Fix issue of posts/comments not being switched when changing select options

* Fix unnecessary fetches on home screen

* Make circular icon buttons not look stupid

* Prevent unnecessary fetches

* Make login experience smoother

* Add PWA shortcuts

* Add related application to PWA

* Update translations

* Forgot to add post editing.

* Fixing site setup.

* Deploy script setup.

* v0.18.0-beta.4

* Sanitize again.

* Adding sanitize json function.

* Upping version.

* Another sanitize fix.

* Upping version.

* Prevent search nav item from disappearing when on search page

* Allow admin and mod actions on non-local comments.

* Fix mobile menu collapse bug

* Completely fix prompt component

* Fix undefined value checks in use_http_client_2 (#1230)

* fix: filter out undefined from posts

* fix: emoji initialisation passing undefined

* fix: || => ?? to be more explicit

* linting

---------

Co-authored-by: Alex Maras <alexmaras@gmail.com>

* Re-add accidentally removed state

* Fix dropdown bug

* Use linkEvent where appropriate

* Fix navigation warnings.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Alex Maras <dev@alexmaras.com>
Co-authored-by: Alex Maras <alexmaras@gmail.com>
2023-06-14 08:20:40 -04:00
SleeplessOne1917
5f5ef404d2
Fix prompt component (#1223)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 06:33:27 -04:00
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
abias
feb4c434d1 Refactor route data 2023-05-29 20:40:00 -04:00
abias
98167b50dc Add translations 2023-05-23 19:31:33 -04:00
abias
9998d64d75 Add heading tag to rate limit form 2023-05-21 15:31:42 -04:00