Commit graph

155 commits

Author SHA1 Message Date
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
mezzode
1df655d40d
Fix sorting help link 2023-06-02 22:18:00 -07:00
abias
fe69f8ee5f Merge branch 'main' into nicer-error-hnadling 2023-05-22 07:47:17 -04:00
SleeplessOne1917
0bd9a17009
Add web share for browsers that have it enabled (#1029)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-21 14:17:56 -04:00
abias
256420b303 Fix isoData bug 2023-05-16 21:07:57 -04:00
abias
4f1d357b5b Refactor how error data is passed from server to client 2023-05-16 20:34:15 -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
SleeplessOne1917
d56d20d0be
Redirect from pages that require auth on logout (#1016)
* Redirect fomr pages that require auth on logout

* Extract helper function

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-15 11:22:35 -04:00
abias
3996cdaae3 Handle error when site not returned 2023-05-14 19:49:55 -04:00
abias
025daaa582 Use node env instead of version for environment specific logic 2023-05-14 16:25:03 -04:00
abias
d944140a76 Merge branch 'main' into nicer-error-hnadling 2023-05-14 11:09:13 -04:00
abias
bcee6aad5b Set up logic for handling errors 2023-05-14 11:08:06 -04:00
abias
ab3fed3ddf Extract helper function 2023-05-13 23:09:05 -04:00
Nutomic
1683a745b5
Dont preselect new post language (#1008)
Lemmy-ui currently preselects the first language in the user
settings when creating a new post or comment. This is a bad
idea because this language might not actually be allowed in
the community. It is better to pass the language as None if
the user didnt specify it explicitly, because then the backend
can smartly choose a language based on the overlap of user
languages and community languages.

This fixes the problem described in
[this thread](https://lemmy.ml/post/1066608), where a user
tries to post in a community that has only English allowed,
with all languages enabled in user settings. In this case
lemmy-ui preselects "undetermined language" as default, which
is not allowed and results in an error. This PR fixes the issue
because it lets the backend automatically select the correct
language (English).
2023-05-13 16:07:05 -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
06bfb7eadf
Fixing some outdated docs links. Fixes #1006 (#1007) 2023-05-11 13:13:09 -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
SleeplessOne1917
699c3ff4b1
Multiple image upload (#971)
* 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

* Update translation logic

* Did suggested PR changes

* Updating translations

* Fix i18 issue

* Make prettier actually check src in hopes it will fix CI issue
2023-04-04 08:40:00 -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
f1147f5891 Fix improper use of map 2023-02-26 11:22:05 -06:00
Anon
d7f4d2ccc1 Fix loading emojis 2023-02-26 11:22:05 -06:00
Anon
c22eafad56 fix casing 2023-02-26 11:22:05 -06:00
Anon
1f15ea5aa8 Add Custom Emoji Support 2023-02-26 11:22:05 -06: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
Anon
e2a29a5bad
Add Taglines support (#854)
* Add Taglines support

* Fix issue with deletion not rendering properly.

* Address PR comments

* Missed alllanguages

* Cleanup tagline match

* Update js client

* Move taglines to siteres

* Only show taglines editor after site setup

* Update js client
2022-11-20 11:08:44 -05:00
Dessalines
765ed9549a
Dont render images in tippy. Fixes #776 (#864) 2022-11-18 21:02:38 -05:00
Dessalines
78a6a19d8d
Add inline markdown rendering for post titles. Fixes #827 (#860) 2022-11-17 21:01:52 -05:00
Dessalines
ee0cdde3b8
Increase markdown field char limit to 50k. Fixes #849 (#850) 2022-11-12 12:06:41 -05:00
Dessalines
24548ccba8
Adding new site setup fields. (#840) 2022-11-09 14:53:07 -05:00
Dessalines
309c93e918
Fix admin default listing type. Fixes #797 (#818) 2022-10-21 15:27:59 -04:00
Dessalines
6bd795c89b Fixing up popup code. 2022-10-21 14:14:28 -04:00
sam365724
059dfbd3a5
Merge branch 'LemmyNet:main' into multiple-images-upload 2022-09-30 22:36:55 +02:00
sam365724
f2a4ebd92a Avoid browser warning about leaving page, handle delete image fail and add user filenames to messages. 2022-09-30 22:28:56 +02:00
Dessalines
dc62cab7e9
Adding private message reporting. Fixes #782 (#806) 2022-09-28 08:50:47 -04:00
Dessalines
93bee57c4c
Adding a loading indicator for post community searching. Fixes #692 (#794) 2022-09-22 18:13:22 +00:00
Dessalines
c5f84649dd
Fix posts pushed from blocked users/comms. Fixes #697 (#792) 2022-09-22 17:13:59 +00:00
Dessalines
c6e3a4213a
Hide create community (#787)
* Adding post and comment language tagging. Fixes #771

* Hiding create community button. Fixes #754
2022-09-22 11:14:58 -04:00
Dessalines
6320357d21
Upgrade inferno v8.0.0 try2 (#790)
* Upgrade non-breaking deps.

* Upgrade to Inferno v8. Fixes #731

* Upgrading inferno-i18next-dess
2022-09-22 11:03:35 -04:00
Dessalines
cc90ded31e Merge branch 'fix/notif_new_fetch_bug' of https://github.com/ernestwisniewski/lemmy-ui into notif_bug 2022-09-21 10:16:54 -04:00
Dessalines
035739fb62
Increase fetch limit for user and community searches. Fixes #756 (#773) 2022-09-21 10:06:24 -04:00
Dessalines
c2f628312f Updating translations. 2022-08-17 19:28:40 -04:00
Dessalines
3bf1cc2797
Adding mod / admin distinguish. (#744) 2022-08-17 19:26:50 -04:00
Anon
a8ab4e0558 Add support for filtering mod logs 2022-08-07 10:26:27 -05:00