Commit graph

90 commits

Author SHA1 Message Date
Jay Sitter
65703793f6 fix: Fix Communities search/filter header #1417 2023-06-21 00:01:31 -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
Alec Armbruster
b1b0fdf5f8
fix missing imports 2023-06-19 19:10:53 -04:00
Alec Armbruster
f8fd90cc2e
fix accidental changes 2023-06-17 08:47:43 -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
d951fb57da fix: Fix missing prop 2023-06-16 22:25:35 -04: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
abias
9fb1a28763 Merge branch 'main' into route-data-refactor 2023-06-16 18:23:06 -04:00
abias
4d716e039b Merge branch 'main' into route-data-refactor 2023-06-16 18:17:17 -04:00
Zetaphor
e13d6145cb Remove extra div in post sidebar 2023-06-16 18:56:06 -03: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
6a9b936d08 Merge branch 'main' into feature/add-ids-and-classes 2023-06-16 14:14:10 -03:00
Zetaphor
da1a4f81df Add ID's and classes to sidebars 2023-06-16 14:12:27 -03:00
Jordan Enterkin
afcffce572
fix block community functionality in sidebar (#1316)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 13:01:09 -04:00
Sunny
1c26a85fff
Make community IDs more easily selectable (#1306)
* Make community IDs more easily selectable

* Use T component for alert

* Use T component for alert

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 11:00:01 -04:00
abias
2a16c85ed0 Cleanup 2023-06-15 22:39:04 -04:00
abias
9265fc5894 Merge branch 'main' into route-data-refactor 2023-06-15 22:08:14 -04:00
Alec Armbruster
cd9de0b2e0
update prop name 2023-06-14 09:39:19 -04:00
Alec Armbruster
b076427e8d
handle loading state on community-form.tsx 2023-06-14 09:32:25 -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
cmp
0d67c64af9
Make the community title in the sidebar link to the local community. (#1161)
* Make the community title in the sidebar link to the local community.

* Ternary erudaStr for PR.

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-13 06:34:21 -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
5068df6bf5 Merge branch 'main' into nicer-error-hnadling 2023-05-15 20:34:45 -04:00
3143788d19 Changing all bigints to numbers 2023-05-15 15:53:29 -04:00
abias
76f0292862 Redirect to login and remove duplicated code 2023-05-14 15:28:38 -04:00
Dessalines
c5fd084577
Using auto-generated types from ts-rs. (#1003)
* Using auto-generated types from ts-rs.

- Fixes #998
- Added support for new `GetFederatedInstances`
- Fixed a few bugs in the process.

* Update imports to use SleeplessOne1917's fix.
2023-05-11 14:32:32 -04:00
Dessalines
f7ace27477
Upgrading deps. (#1004) 2023-05-11 13:06:32 -04:00
SleeplessOne1917
3a88f6e854
Add content warning to modlog and fix modlog routing bug (#994)
* Add content warning to modlog and fix modlog routing bug

* Add translation logic
2023-05-03 22:06:59 -04:00
SleeplessOne1917
2e78191dae
Handle when logged out (#986)
* Add logged out messages to profile and community

* Remove errors when not logged in

* Add logged out translations
2023-05-03 12:09:47 -04:00
SleeplessOne1917
3526baf465
Make pages use query params instead of route params where appropriate (#977)
* feat: Add multiple image upload

* refactor: Slight cleanup

* feat: Add progress bar for multi-image upload

* fix: Fix progress bar

* fix: Messed up fix last time

* refactor: Use await where possible

* Add query params to search page

* Update translation logic

* Did suggested PR changes

* Updating translations

* Fix i18 issue

* Make prettier actually check src in hopes it will fix CI issue

* Make home page use query params in URL

* Remove unnecessary part of private message url

* Make communities page use query params

* Make community page use query params

* Make user profile use query params

* Make modlog use query params

* Replace choices.js searchable select entirely

* Make 404 screen show up when expected

* Refactor query params code

* Remove unnecessary boolean literal

* Fix query param bug

* Address bug with searchable select and initial fetch

* Only import what is needed from bootstrap

* Undo change to comment nodes component

* Convert closure style functions to normal functions

* Updated translations

* Use translation for loading

* Fix create post select community bug

* Fix community query params bug
2023-04-15 10:47:10 -04:00
Dessalines
9bab9c3cab
Don't show icons / banners for banned users and removed communities. (#962)
- Fixes #961
2023-03-26 22:10:35 -04:00
Dessalines
b64f47cfe9
Removing monads. Fixes #884 (#886)
* Removing monads. Fixes #884

* Fixing post fetching.

* Dont show not_logged_in error for navbar.

* Adding the lemmy-js-client RC.

* Fixing registration application mode
2023-01-04 11:56:24 -05:00
Dessalines
afeb64009b
Adding Community Language fixes. #783 (#868)
* Partially done with language tagging. #783

* A few more updates.
2022-12-19 10:57:29 -05:00
Anon
003b177f6e
Add FeaturedPost Support (#873) 2022-12-14 10:03:18 -05:00
Dessalines
24548ccba8
Adding new site setup fields. (#840) 2022-11-09 14:53:07 -05:00