Commit graph

173 commits

Author SHA1 Message Date
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 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
Dessalines 2117f1d0f2
Fixing webpack build. (#2042) 2023-08-07 20:07:09 +00:00
Dessalines 9f2289d466
Upgrading deps, running prettier. (#1987) 2023-07-28 16:15:42 -04:00
SleeplessOne1917 3d58baea7c
User inferno prompt instead of handrolled one (#1867) 2023-07-07 19:33:03 -04:00
Sander Saarend 497fb7014f
Update lemmy-js-client and lemmy-translations (#1848) 2023-07-07 14:53:42 +00:00
Michael Charles Aubrey 1de0fdb8c2
add ruby annotation support (#1831) 2023-07-06 07:44:32 -04:00
SleeplessOne1917 3fc4d85921 Update yarn lock 2023-07-02 18:18:33 -04:00
Diamond a7592d74bb
Enforce SameSite=Strict (#1713) 2023-06-30 09:51:41 -04:00
Dessalines eee1f443a8 Removing unecessary timezone adjusting 2023-06-29 08:59:54 -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
SleeplessOne1917 e8dda77d4b
Fix comments expanding when they're not supposed to (#1540) 2023-06-24 00:06:19 -04:00
SleeplessOne1917 8dc38c7cee Remove unused dep 2023-06-22 23:30:41 -04:00
SleeplessOne1917 d0dff77377 Replace momentjs with date-fns 2023-06-22 19:33:02 -04:00
Dessalines 5c55b41971
Upgrade lemmy-js-client to 0.18.0-rc.2 (#1445)
* Updating translations.

* Upgrading lemmy-js-client.
2023-06-21 15:08:21 -04:00
Jay Sitter cc64a1fec9 feat: Drop dependency for tsconfig-paths-webpack-plugin 2023-06-20 17:40:14 -04:00
Alec Armbruster fe8368548b
add tsconfigpathsplugin to resolve 2023-06-20 15:48:42 -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
Jay Sitter 9f0657ab9b feat(a11y): Add eslint-plugin-jsx-a11y 2023-06-17 15:46:51 -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
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 c311bca8d2
Merge branch 'main' into nicer-error-hnadling 2023-05-23 12:07:08 +00:00
SleeplessOne1917 ffe95ee1c6
Navbar hide menu fix (#1033)
* Fix navbar not closing on mobile when it should

* Get rid of unnecessary HTML tags
2023-05-21 23:31:08 -04:00
abias 5068df6bf5 Merge branch 'main' into nicer-error-hnadling 2023-05-15 20:34:45 -04:00
Dessalines 3143788d19 Changing all bigints to numbers 2023-05-15 15:53:29 -04:00
Dessalines 6ac5435fe9
Upgrade lemmy-js-client to work with bigints. Fixes #1018 (#1022) 2023-05-15 14:39:11 -04:00
abias dbee2533a2 Fix things not working in production build 2023-05-14 23:45:21 -04:00
SleeplessOne1917 2d7c7664ee
Update JS client to version with fixed JSON serialization (#1017) 2023-05-13 13:36:36 -04:00
SleeplessOne1917 b19b51c78c
Add support for PWA (#1005)
* Add logic for dynamically generating web manifest

* Make PWA icon get autogenerated

* Make service worker work

* Tweak things for PWA

* Handle apple icons and refactor

* Update prod dockerfile

* Remove jimp

* Remove unnecessary option

* Use different function syntax
2023-05-11 21:07:59 -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 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 4499579380 Merge branch 'custom-emojis' of https://github.com/makotech222/lemmy-ui into makotech222-custom-emojis 2023-03-27 12:49:46 -04:00
SleeplessOne1917 47daa9d143
refactor: update UI to use new client uploadImage function (#967)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-03-26 22:06:42 -04:00
Anon 4b6851d246
Merge branch 'main' into custom-emojis 2023-03-14 12:59:21 -05:00
Dessalines 07e7e1eb87
Adding 2FA support. Fixes #938 (#939)
* Adding 2FA support. Fixes #938

* Updating totp_2fa names.
2023-03-02 18:30:38 -05:00
Anon 1f15ea5aa8 Add Custom Emoji Support 2023-02-26 11:22:05 -06:00
Dessalines 7e17998777
Upgrading deps (#951) 2023-02-21 16:15:13 -05:00
Dessalines b0755bc010
Adding reports send email to admins option (#932) 2023-02-16 21:07:22 -05:00
Dessalines 8a37db56f3 Upgrading deps. 2023-01-30 22:37:48 -05:00
Dessalines bc2910edbe
Fixing requireapplication string. (#895) 2023-01-18 22:23:07 -05: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 37c200571b
Sanitize article html. Fixes #882 (#883) 2022-12-29 12:35:43 -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
Dessalines 56c79bd2f4
Remove federation strict_allowlist and retry_count. (#867) 2022-11-21 12:40:48 -05:00
Dessalines 765ed9549a
Dont render images in tippy. Fixes #776 (#864) 2022-11-18 21:02:38 -05:00
Dessalines 24548ccba8
Adding new site setup fields. (#840) 2022-11-09 14:53:07 -05:00
Dessalines a4edfd11f9
Strip html from og descriptions. Fixes #830 (#831) 2022-10-21 20:14:53 +00:00
Dessalines ef28f3c4d9 Updating translations. 2022-09-28 22:39:25 -04:00
Dessalines dc62cab7e9
Adding private message reporting. Fixes #782 (#806) 2022-09-28 08:50:47 -04:00