Commit graph

621 commits

Author SHA1 Message Date
SleeplessOne1917 c311bca8d2
Merge branch 'main' into nicer-error-hnadling 2023-05-23 12:07:08 +00:00
abias 5af62ebd84 Merge branch 'main' into nicer-error-hnadling 2023-05-23 08:01:09 -04:00
abias ee95bd05fb Always replace host with internal host 2023-05-22 19:15:11 -04:00
abias 19408b26bf Revert "User HTTP instead of HTTPS when fetching icon in docker internal network"
This reverts commit 498de660ba.
2023-05-22 18:42:05 -04:00
abias fd39b21b12 Revert "Add debug statement."
This reverts commit 7fbb12a4bd.
2023-05-22 18:41:33 -04:00
abias 7fbb12a4bd Add debug statement. 2023-05-22 18:15:44 -04:00
abias 498de660ba User HTTP instead of HTTPS when fetching icon in docker internal network 2023-05-22 18:10:16 -04:00
abias 51c0c98faa Add error message paragraph 2023-05-22 12:57:52 -04:00
abias 83fc9f3949 Make error code always display 2023-05-22 08:38:05 -04:00
abias fe69f8ee5f Merge branch 'main' into nicer-error-hnadling 2023-05-22 07:47:17 -04: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
Dessalines 26de38a869
Show parent comment for comment link. Fixes #1030 (#1032)
* Show parent comment for comment link. Fixes #1030

* Changing let to const.
2023-05-21 21:30:13 -04:00
abias f51cc697a7 Merge branch 'rate-limiting-tab' of https://github.com/SleeplessOne1917/lemmy-ui into rate-limiting-tab 2023-05-21 15:32:00 -04:00
abias 9998d64d75 Add heading tag to rate limit form 2023-05-21 15:31:42 -04:00
SleeplessOne1917 f051eee8e9
Merge branch 'main' into rate-limiting-tab 2023-05-21 19:13:03 +00:00
abias 132f241e63 Remove console log 2023-05-21 15:11:20 -04:00
abias 117e85a967 Include forgotten translation 2023-05-21 14:42:17 -04:00
abias a8e2b43952 Remove console logs 2023-05-21 14:41:41 -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
SleeplessOne1917 a447e432db
Show language on posts and comments (#1026)
* Show language on posts and comments

* Revert "Show language on posts and comments"

This reverts commit 54267903fc.

* Change language indicator look
2023-05-21 14:13:25 -04:00
abias e542aa872d Incorporate translations 2023-05-21 14:13:06 -04:00
abias cf58a0c451 Allow user to submit rate limit changes 2023-05-21 12:40:22 -04:00
abias 2e3c1a6cfa Put rate limit options in its own tab 2023-05-21 09:07:22 -04:00
abias b1a7a679f0 Refactor tabs into reuseable component 2023-05-20 15:39:12 -04:00
abias cbee588484 Merge branch 'nicer-error-hnadling' of https://github.com/SleeplessOne1917/lemmy-ui into nicer-error-hnadling 2023-05-19 13:06:34 -04:00
abias 75d2fb8d27 Replace link to issue tracker with proper support spaces 2023-05-19 13:06:14 -04:00
SleeplessOne1917 7241abc25e
Merge branch 'main' into nicer-error-hnadling 2023-05-17 01:10:51 +00: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
SleeplessOne1917 0d30f4c731
Make admin UI for allowing/blocking instances easier to work with (#1012)
* Make admin UI for allowing/blocking instances easier to work with

* Tweak styles

* Remove log statements

* Trim instance names and slight refactor

* Use linkEvent
2023-05-16 09:08:52 -04:00
abias 24c4427c82 Get rid or forced error 2023-05-15 21:02:34 -04:00
abias 900bf2099b Cleanup 2023-05-15 20:56: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
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 dbee2533a2 Fix things not working in production build 2023-05-14 23:45:21 -04:00
abias 23d7751523 Fix error page not showing when site not fetched and adjust styles 2023-05-14 23:01:39 -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 76f0292862 Redirect to login and remove duplicated code 2023-05-14 15:28:38 -04:00
abias 8f2d964062 Fix server redirect error 2023-05-14 14:59:42 -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 f31cd42d8e Redirect fomr pages that require auth on logout 2023-05-13 10:38:43 -04:00
Nutomic 8c06eb9749
Remove "banned" badge from posts and comments (fixes 899) (#1011)
It doesnt need to be emphasized so much that a user is banned.
Anyway this can already be seen in the mod log. For users who
are banned from the entire site it is still shown on the profile.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-11 21:15:04 -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
Dessalines f7ace27477
Upgrading deps. (#1004) 2023-05-11 13:06:32 -04:00
Dessalines 457187693f
Prettier css (#995)
* Add prettier lint for css and scss files.

* Fixing eslint issue.

* Run prettier
2023-05-03 22:09:27 -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 a027595eaa
Get rid of "No Results" showing while search is still loading. (#997) 2023-05-03 21:47:37 -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
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
SleeplessOne1917 e947549cdc
I18 quality of life change (#973)
* I18 quality of life change

* Cleanup
2023-04-03 09:28:56 -04:00
Anon 16cb506147
Optimize Tagline Form page (#972)
* Move taglines to its own tab. Optimize for editing.

* Small fix

* null -> undefined
2023-03-30 16:36:57 -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
Dessalines 9bab9c3cab
Don't show icons / banners for banned users and removed communities. (#962)
- Fixes #961
2023-03-26 22:10:35 -04:00
SleeplessOne1917 1ad36d2c1d
fix: Fix undefined showing up in markdown (#970) 2023-03-26 22:10:08 -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
SleeplessOne1917 fe0ebbeec1
fix: Make search screen able to change type, listing type, and sort when there is no query (#966) 2023-03-26 21:56:49 -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 96827a0dc9 Fix table layout on mobile 2023-02-26 11:22:05 -06: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 578709b986
Only show the determined warning for multiple. (#952) 2023-02-22 08:03:04 -05:00
Dessalines 8df9aa1d5a
Adding ban_from_community to be more clear. Fixes #872 (#943) 2023-02-21 16:12:00 -05:00
Dessalines 49acf514e9
Let any mod feature and lock posts. Fixes #875 (#944)
* Let any mod feature and lock posts. Fixes #875

* Change to amAdmin
2023-02-21 15:53:51 -05:00
Dessalines 12ed6ed31a
Adding a warning for deselecting the undetermined language. (#945)
- Fixes #930
2023-02-21 15:53:35 -05:00
Dessalines a09b301429
Fixing line formatting. (#947) 2023-02-21 15:53:15 -05:00
Dessalines 1b1168d79f
Do local community checks for buttons. Fixes #918 (#948) 2023-02-21 15:52:57 -05:00
Dessalines b1dcd222ab
Check to make sure post is correct. Fixes #934 (#949) 2023-02-21 15:52:34 -05:00
Dessalines 6aa33e6809
Remove buggy navbar search. Fixes #921 (#950) 2023-02-21 15:52:12 -05:00
Dessalines deffaf1ee0
Fix issue with empty markdown content not nulling DB. Fixes #924 (#925)
* Fix issue with empty markdown content not nulling DB. Fixes #924

* Better syntax
2023-02-16 21:10:03 -05:00
Dessalines b0755bc010
Adding reports send email to admins option (#932) 2023-02-16 21:07:22 -05:00
Dessalines 3ad7644725
Fix comment box closing. Fixes #904 (#914) 2023-02-02 21:26:18 -05:00
Dessalines 1dd86fdf91
Fix showing crosspost dupes. Fixes #900 (#912) 2023-02-02 21:15:36 -05:00
Dessalines e03d3c40e6
Fix live updating postres edit. Fixes #908 (#911) 2023-02-02 21:15:21 -05:00
Dessalines 31715ca75c
Removing extra themes. Fixes #905 (#910) 2023-02-02 21:14:59 -05:00
Dessalines 87c30705ef
Fixing post setState error. Fixes #902 (#903) 2023-01-31 20:09:51 -05:00
Dessalines 53b1625026
Fixing PWA install. Fixes #822 (#893) 2023-01-17 14:38:21 -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
Zachary Dunn 62139df0c3
Add id to App component (#880)
Fixes #204. There's already a style block for `#app` so this just sets the id so those styles are applied.
2022-12-22 16:54:52 -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 a6c0643428
Fix csp header for svgs in firefox. Fixes #869 (#870) 2022-11-22 16:39:55 -05:00
Dessalines 56c79bd2f4
Remove federation strict_allowlist and retry_count. (#867) 2022-11-21 12:40:48 -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 36c1c1f262
Fix wrong comment link. Fixes #714 (#865) 2022-11-18 23:39:32 -05:00
Dessalines 765ed9549a
Dont render images in tippy. Fixes #776 (#864) 2022-11-18 21:02:38 -05:00
Dessalines 6e3a6a601b
Move symbols to its own cacheable file. Fixes #809 (#862) 2022-11-18 13:28:05 -05:00
Dessalines f90fa6dd3b
Hide post report images. Fixes #824 (#861) 2022-11-17 21:11:30 -05:00
Dessalines 78a6a19d8d
Add inline markdown rendering for post titles. Fixes #827 (#860) 2022-11-17 21:01:52 -05:00