Commit graph

52 commits

Author SHA1 Message Date
abias
b0189658a2 Address PR feedback 2023-06-14 21:14:21 -04:00
abias
ab0805432d Make comment border colors semi-transparent 2023-06-14 20:52:31 -04:00
SleeplessOne1917
31e61e7449
Merge branch 'main' into comment-depth 2023-06-14 23:46:11 +00: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
5f5ef404d2
Fix prompt component (#1223)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 06:33:27 -04:00
Florian Heft
170949f34f Fixed unclickable button paddings
* Remove the wrapping <button> element that
  visually seems clickable but has no click
  handling (only its child link can be
  clicked)
* fixes #1193
2023-06-12 11:40:44 +02:00
Yuri Pieters
6462cd5208 Run prettier 2023-06-11 22:47:57 +01:00
Alec Armbruster
5932fadc3a
make suggested change 2023-06-11 10:06:10 -04:00
Alec Armbruster
b90c0b2bbe
move expand/collapse button 2023-06-11 09:53:08 -04:00
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
SleeplessOne1917
400e62b21c
Add aria attribute to track toggle status of up/down votes. (#1074) 2023-06-05 11:49:03 -04:00
SleeplessOne1917
48c16cc977 Make comment depth easier to track visually 2023-06-03 23:49:49 -04:00
abias
b12399de5f Make comments nested lists 2023-06-03 22:02:07 -04:00
8837cf568e remove badge-muted 2023-05-25 10:52:34 +02:00
15f75a26e9 use badge-muted 2023-05-24 12:22:24 +02:00
90a9f72817 Changes to language tag
- Dont use bright white color because its not that important
- Hide tag in case of undetermined (doesnt add any information)
2023-05-23 22:16:54 +02: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
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
3143788d19 Changing all bigints to numbers 2023-05-15 15:53:29 -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
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
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
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
8df9aa1d5a
Adding ban_from_community to be more clear. Fixes #872 (#943) 2023-02-21 16:12:00 -05:00
Dessalines
1b1168d79f
Do local community checks for buttons. Fixes #918 (#948) 2023-02-21 15:52:57 -05:00
Dessalines
3ad7644725
Fix comment box closing. Fixes #904 (#914) 2023-02-02 21:26:18 -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
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
765ed9549a
Dont render images in tippy. Fixes #776 (#864) 2022-11-18 21:02:38 -05: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
3bf1cc2797
Adding mod / admin distinguish. (#744) 2022-08-17 19:26:50 -04:00
Dessalines
69b623b8fb
Comment Tree paging (#726)
* Updating translations.

* Forgot to add comment-sort-select

* Upgrading deps
2022-07-30 15:28:08 +02:00
Dessalines
96583bee47
Adding purging of comments, posts, communities, and users. (#459)
* Starting on admin purge.

* Updating translations.

* Finishing up item purging.
2022-06-23 15:44:05 -04:00
Dessalines
46c610990a
Expose pending 2 (#662)
* Updating translations.

* Adding better subscribe type.

* Fix extra pending string.
2022-06-23 13:35:53 +00:00
Dessalines
d905c91e1b
Adding option types 2 (#689)
* Not working, because of wrong API types.

* Adding Rust-style Result and Option types.

- Fixes #646

* Updating to use new lemmy-js-client with Options.
2022-06-21 17:42:29 -04:00
8f38213780
Fix comment fedilink (fixes #594) (#595) 2022-03-14 18:33:59 +00:00
Dessalines
e13ab2ee46
Add federated post and comment links. Fixes #569 (#575) 2022-02-14 18:49:57 +00:00
Dessalines
399149b278
Don't allow transfer site. (#551)
* Don't allow transfer site.

* Updating translations.

* Adding leave admin team.
2022-02-14 12:27:43 -05:00
Dessalines
26fbd3c8e2
Fix report page bugs. Fixes #558 (#568) 2022-02-02 09:56:43 -05:00
0da5fb9623
Move lemmy.ml signup message to top of registration page (#554)
* Move lemmy.ml signup message to top of registration page

* Fix warning css class, fix message padding
2022-01-27 13:44:08 -05:00
Dessalines
4915193ae5
Temp bans (#524)
* Updating translations.

* Adding temp bans.

* Using new lemmy-js-client with temp bans

* Fixing some lint and dep issues
2022-01-09 12:53:11 -05:00
Dessalines
b96e16b4e9
Private instances (#523)
* Updating translations.

* Adding registration applications.

* Updating translations.

* Adding verify email route.

* Fix missing signup question bug.

* Updating translations.

* A few fixes from comments on lemmy PR.

* v0.15.0-rc.4

* Some suggestions from PR.

* v0.15.0-rc.5

* Adding optional auth to modlog fetches.

* v0.15.0-rc.6

* Hide deny / approve buttons
2021-12-30 10:26:45 -05:00
Dessalines
fac71d1749
Adding post comment scrolling hack. Fixes #480 (#486) 2021-11-16 09:46:12 -05:00
Dessalines
d664b03ab3
Show bot account info. Fixes #458 (#463) 2021-10-17 21:44:02 -04:00
Luna
5de39ca39d
hide mod actions appropriately fix #441 (#447)
Thx!
2021-10-03 12:18:10 -04:00
Dessalines
06099fee8a
Reporting (#434)
* Updating translations.

* A first pass at reporting. Fixes #102
2021-09-28 10:38:59 +00:00
Dessalines
a2aac813cf
Si simplifier (#418)
* Updating translations.

* Use a number simplifier for counts. Fixes #407
2021-09-18 12:35:49 -04:00
Dessalines
4b23b78efe
Use my fork of inferno-i18next. Fixes #413 (#415) 2021-09-18 10:27:49 -04:00
Dessalines
b27d982a7b
Feature/user community block (#362)
* Extracting user settings and profile page.

- Auto-collapsing dropdown and navbar on link clicks.
- Fixes #180

* Adding User and Community blocking. Fixes #295

- Added a new settings page.
- Switched to myUserInfo.
- Removing GetFollowedCommunities endpoint

* Fixing blocks
2021-08-19 22:56:18 -04:00