Commit graph

79 commits

Author SHA1 Message Date
Jay Sitter
f9f4caf260 feat: Redesign the format bar / textarea into a single bordered area with divider 2023-06-16 19:49:28 -04:00
Jay Sitter
ebba5bdd80 feat: Move text formatting bar above textarea 2023-06-16 17:47:43 -04:00
Jay Sitter
b228214cd0
Re-arrange elements beneath markdown textarea #1057 (#1288)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 10:53:46 -04:00
Yuri Pieters
882efe128a
Match more specific locales to supported ones (#1241)
To do this, replace the current system for choosing the language with one that makes use of i18next features.

Co-authored-by: Yuri Pieters <yuri@zopatista.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 10:49:23 -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
Zetaphor
31257b9dd4
Add title to pictrs-image
This adds a title tag to images, uses the alt tag value. This improves accessibility for sighted users and screen readers.
2023-06-13 12:24:15 -05:00
SleeplessOne1917
5f5ef404d2
Fix prompt component (#1223)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 06:33:27 -04:00
SleeplessOne1917
800c1655fe
Merge branch 'main' into avatar-aspect-ratio-fix 2023-06-12 21:12:49 +00:00
SleeplessOne1917
a7450325a1
Make preview button say "edit" when in preview mode (#1164)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-12 14:14:03 -04:00
SleeplessOne1917
1f12ce9790
Add shortcut for submitting post (#1163)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-12 14:13:33 -04:00
Alec Armbruster
636d87e4cc
Merge branch 'main' into avatar-aspect-ratio-fix 2023-06-12 13:10:25 -04:00
Alec Armbruster
0d868d9005
format with prettier 2023-06-12 13:09:50 -04:00
Alec Armbruster
1aa934584f
add .img-cover class, implement 2023-06-12 13:00:18 -04:00
Yuri Pieters
10a29f053f Set html lang attr to the interface language 2023-06-12 00:26:01 +01:00
Adam Shea
1f118e8bcc
Remove unnecessary comments 2023-06-10 12:12:48 +00:00
Adam Shea
cc64f71072
Added additional keybinds 2023-06-10 09:15:22 +00:00
SleeplessOne1917
cd6a2f47a1
Merge branch 'main' into 1078-language-select-disable-warning 2023-06-10 00:58:04 +00:00
Adam Shea
400f345182
Added Ctrl-K keybind 2023-06-09 21:30:12 +00:00
Sean Spade
23c4b685ed chore: switched to enabling language warning by prop rather than disabling 2023-06-08 23:36:35 -04:00
Sean Spade
9d45b4afe3 fix: Adds ability to hide language warning 2023-06-08 23:36:35 -04:00
SleeplessOne1917
21a290a940
Merge branch 'main' into fix/1039 2023-06-05 23:27:50 +00:00
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
James Whitmarsh
3cb3fc6b1e Fix aria-label for language select 2023-06-05 22:06:54 +01:00
abias
7face53efd Merge branch 'main' into rate-limiting-tab 2023-05-23 19:14:44 -04:00
abias
132f241e63 Remove console log 2023-05-21 15:11:20 -04:00
abias
a8e2b43952 Remove console logs 2023-05-21 14:41:41 -04:00
abias
cf58a0c451 Allow user to submit rate limit changes 2023-05-21 12:40:22 -04:00
abias
b1a7a679f0 Refactor tabs into reuseable component 2023-05-20 15:39:12 -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
3143788d19 Changing all bigints to numbers 2023-05-15 15:53:29 -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
76f0292862 Redirect to login and remove duplicated code 2023-05-14 15:28:38 -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
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
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
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
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
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
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
12ed6ed31a
Adding a warning for deselecting the undetermined language. (#945)
- Fixes #930
2023-02-21 15:53:35 -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
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