Commit graph

822 commits

Author SHA1 Message Date
SleeplessOne1917
65fc02327e
Merge branch 'main' into nicer-error-hnadling 2023-05-23 23:07:23 +00:00
SleeplessOne1917
ac2a83a7a6
Lint fix (#1035)
* User HTTP instead of HTTPS when fetching icon in docker internal network

* Add debug statement.

* Revert "Add debug statement."

This reverts commit 7fbb12a4bd.

* Revert "User HTTP instead of HTTPS when fetching icon in docker internal network"

This reverts commit 498de660ba.

* Always replace host with internal host

* Fix lint script

* Remove prettier from pre-commit

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-23 18:55:36 -04:00
abias
06a553c7a4 Hopefully stop lint command from erroring 2023-05-23 08:34:20 -04:00
abias
7030eb8949 Merge branch 'nicer-error-hnadling' of https://github.com/SleeplessOne1917/lemmy-ui into nicer-error-hnadling 2023-05-23 08:10:28 -04:00
abias
696c5b0d27 Run prettier 2023-05-23 08:10:13 -04:00
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
1f5493325c Merge branch 'nicer-error-hnadling' of https://github.com/SleeplessOne1917/lemmy-ui into nicer-error-hnadling 2023-05-22 08:38:33 -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
SleeplessOne1917
044cc88d7a
Merge branch 'main' into nicer-error-hnadling 2023-05-22 02:44:29 +00: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
SleeplessOne1917
8d0b2e0bf1
Merge branch 'main' into nicer-error-hnadling 2023-05-21 18:46:20 +00: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
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
SleeplessOne1917
9d8c7dfb0c
Merge pull request #1023 from LemmyNet/remove_bigints
Changing all bigints to numbers
2023-05-15 22:21:34 +00:00
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
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
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
2d7c7664ee
Update JS client to version with fixed JSON serialization (#1017) 2023-05-13 13:36:36 -04:00
SleeplessOne1917
f31cd42d8e Redirect fomr pages that require auth on logout 2023-05-13 10:38:43 -04:00