Commit graph

2171 commits

Author SHA1 Message Date
Dessalines
4dbf8fd2f1
Fixing woodpecker. (#2402)
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-27 13:04:59 -04:00
SleeplessOne1917
ad07fc4fed
Show user email in registration application (#2400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-03-27 10:17:44 -04:00
matc-pub
70e382b3d9
Rework query parsing (#2396)
* Pass parsed query params as props to components

* Pass parsed query params to fetchInitialData

* Pass router Match to fetchInitialData

* Cast individual routes to their concrete types

Adds an IRoutePropsWithFetch definition for routes with getQueryParams
or fetchInitialData to cause compiler errors when the types no longer
match.

* Don't double decode query parameters.

Problem: A search for "%ab" produces a url with "%25ab". Refreshing
the page results in URLSearchParams turning "%25ab" back into "%ab".
decodeURIComponent() then complains about "%ab" being malformed.

This removes decodeURIComponent() calls for query parameters and
composes all query strings with getQueryString(), which now uses
URLSearchParams. Query parsing already goes through getQueryParams()
which also uses URLSearchParams.

* Fix for PictrsImage when src also has query params

* Small getQueryParams cleanup
2024-03-27 09:25:59 -04:00
SleeplessOne1917
579aea40d0
Notify users that they are banned from a community (#2397)
* Add banned blurb to community sidebar

* Hide interactable parts of posts and comments when banned from community

* Add translation

* Fix some typescript errors

* Fix typescript errors

* PR feedback
2024-03-26 19:03:02 -04:00
SleeplessOne1917
610789242b
Fix registration pending translation bug (#2393) 2024-03-22 18:29:22 -04:00
SleeplessOne1917
a860bdd700
Community visibility setting (#2376)
* Update deps

* Add community visibility to community form for editing and creating

* Add translations

* Make visibility display

* Add translations

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-03-14 12:09:11 -04:00
matc-pub
9a5f9dd18a
Do most of the theme handling from the Theme component (#2390)
* Set data-bs-theme attribute from Theme component

* Handle temporary theme changes in Theme component

* Fetch theme list on AdminSettings component mount

* Include CodeTheme in Theme component

* Improve handling of browser-compact theme

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-14 08:33:49 -04:00
matc-pub
201e5fcd53
Lazy loading less common languages for syntax highlighting (#2388)
* Use fewer syntax highlighter languages.

Reduces client.js size by about 250kB (800kB uncompressed)

Common languages:
bash, c, cpp, csharp, css, diff, go, graphql, ini, java, javascript,
json, kotlin, less, lua, makefile, markdown, objectivec, perl,
php-template, php, plaintext, python-repl, python, r, ruby, rust, scss,
shell, sql, swift, typescript, vbnet, wasm, xml, yaml

Additionally enabled languages:
dockerfile, pgsql

* Configurable syntax highlighter languages

Allows to individually enable languages.

* Lazy load syntax highlighter languages

Allows to enable additional languages that will not be autodetected.

* Include highlight.js in dynamic import check
2024-03-14 08:31:07 -04:00
matc-pub
e832cd2729
Lazy load translations and date-fns, server side support for "Browser Default" language (#2380)
* Lazy load i18n translations.

* Lazy load date-fns

* Fix inconsistent DOMContentLoaded event.

Only when no translations and date-fns have to be dynamically loaded
(e.g. for en-US) the NavBar `componentDidMount` is early enough to
listen for "DOMContentLoaded".

Removes one redundant `requestNotificationPermission()` call.

* Rename interface language code "pt_BR" to "pt-BR".

Browsers ask for "pt-BR", but the "interface_language" saved in the
settings dialog asks for "pt_BR". This change will make the settings
dialog ask for "pt-BR" instead of "pt_BR". For users that already (or
still) have "pt_BR" configured, "pt-BR" will be used, but the settings
dialog will present it as unspecified.

* Use Accept-Language request header

* Prefetch translation and date-fns

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-13 16:39:45 -04:00
Dessalines
c80136ed65
Removing alectrocute and jsit from codeowners. (#2391) 2024-03-13 17:19:07 +00:00
Dessalines
9d10cfe5a1
Adding git-cliff to help generate changelogs. (#2386) 2024-03-08 12:14:05 -05:00
2aff64bcdc
On account deletion add 'delete content' checkbox (fixes #2384) (#2385)
* On account deletion add 'delete content' checkbox (fixes #2384)

* css

* rename

* i18n
2024-03-05 08:58:08 -05:00
SleeplessOne1917
79ed590335
Add badge for local subscribers to communities (#2377)
* Add badge for local subscribers to communities

* Add local subscribers badge

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-27 08:59:18 -05:00
SleeplessOne1917
eb5095b686
Bump dependencies (#2378)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-26 19:16:41 -05:00
SleeplessOne1917
72b3d6b828
Fix links to users and communities not including query in hyperlink (#2368)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:59:26 -05:00
SleeplessOne1917
5eb97edf09
Make code blocks use correct theme when in dark mode (#2367)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:57:49 -05:00
SleeplessOne1917
40ade7df88
Hide WYSIWYG buttons when previewing markdown (#2366)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 17:57:07 -05:00
Die4Ever
77cd46b35b
always show fedilinks (issue #2160) (#2344)
* always show fedilinks (issue #2160)

* fix comment fedilinks title text

* fix comment links title text

* remove unused local variable

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-16 10:20:49 -05:00
Dessalines
1ff4acc049
Changing security.txt to use github security advisories page. (#2334)
* Changing security.txt to use github security advisories page.

- Fixes #2332

* Adding an expires date, one year from build date.

* Add a year to the build date in code.

* Fix dev.dockerfile build date.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-16 10:17:15 -05:00
SleeplessOne1917
7cfe9a1a40
Fix scroll bug when modal closes from browser vack button (#2363)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-02-16 08:15:12 -05:00
SleeplessOne1917
cc0177a4aa
Prevent password length error silent truncation (#2364)
* Prevent password fields from silently truncating too-long passwords

* Use existing i18 translation

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-16 08:12:05 -05:00
Kradyz
64c0ba37d2
Show the community name instead of the creator name when appointing a mod (#2358)
Co-authored-by: nanogarden <nanogarden@fakemail.com>
2024-02-06 19:16:15 +00:00
SleeplessOne1917
71c2206405
Update deps (#2357)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-05 23:30:41 -05:00
Jack Linhart
ae5a2817aa
increase font sizes on all themes (#2352)
* increase font sizes on all themes

* update SCSS variables so auto-gen themes properly in build
2024-02-04 16:17:38 -05:00
Dessalines
140ff8271c
Move to pnpm (#2345)
* Switch from yarn to pnpm.

* Moving from yarn to pnpm.

* Try 2

* Try 3

* Try 4

* Try 5

* Try 6

* Adding qs.

* Try corepack.

* Remove comment.

* Adding prebuild:dev.

* Some fixes.

* Fixing up husky.

* Fixing up version and others.
2024-01-28 22:09:08 -05:00
1787a778f8 v0.19.3 2024-01-22 08:55:26 -05:00
a63b32583f v0.19.3-rc.2 2024-01-20 08:22:29 -05:00
SleeplessOne1917
57b4aacfad
Make it more obvious when a community is locked (#2329)
* Make it more obvious when a community is locked

* Add translations

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-20 08:22:13 -05:00
Dessalines
dee4257082
Downgrade sharp. (#2337) 2024-01-19 17:35:17 -05:00
93fc3a7872 v0.19.3-rc.1 2024-01-19 15:48:42 -05:00
Dessalines
1070aafeef
Upgrading deps. (#2336) 2024-01-19 15:48:24 -05:00
60b42a9958 Updating translations. 2024-01-19 15:24:21 -05:00
Dessalines
f62953797c
Revert "Fix captcha cache control bug" (#2335) 2024-01-19 13:00:15 -05:00
SleeplessOne1917
d6ce6a1afd
Improve TOTP modal (#2327)
* Improve TOTP modal

* Add submit translation

* Update translations

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-19 10:06:54 -05:00
Dessalines
5ba9da1545
Make a separate post markdown field character limit. (#2331)
Context: https://github.com/LemmyNet/lemmy/issues/3262
2024-01-19 00:54:27 +00:00
SleeplessOne1917
7e0652df45
Fix fedi link regression (#2324)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-15 09:37:48 -05:00
SleeplessOne1917
59308bd7ae
Fix captcha cache control bug (#2326)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-15 09:37:12 -05:00
Jon Charter
909e3e0fa8
Add logic to filter view for denied registration applications (#2322)
* Add logic to filter view for denied registrations

* Adjust filter criteria
2024-01-14 13:23:25 -05:00
Kroese
b3d667edb4
Update Dockerfile to Node 21 (#2315) 2024-01-10 19:14:18 -05:00
ubergeek77
a0add1e61c
Clean up Dockerfile (#2314)
* Clean up Dockerfile

* Reduce image size

Recommended by @kroese
2024-01-10 18:50:00 -05:00
9aa19d8bbd v0.19.2 2024-01-10 10:15:50 -05:00
b7bff7aac0 v0.19.2-rc.5 2024-01-09 22:08:57 -05:00
Dessalines
d1bc165327
Adding admin view vote modal. (#2303)
Admins can now click post or comment dropdowns, and view their votes. Should help with vote-trolling.
2024-01-09 18:48:46 -05:00
107e512b7b v0.19.2-rc.4 2024-01-09 09:25:31 -05:00
SleeplessOne1917
e2fa55e122
Fix error page error interpolation (#2302)
* Fix error page error interpolation

* Run prettier

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-07 12:13:05 -05:00
SleeplessOne1917
b41aa874bf
Fix compact theme letter tail cutoff bug (#2301)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-04 12:54:24 -05:00
İsmail Karslı
0bd26aa568
Store volume level on window object (#2307)
* Store volume level on window object

* Store volume level on localStorage, instead of window object

* Refactor video event handlers in PostListing component

* Take `muted` prop into account while storing volume level

* fix

* simplify logic
2024-01-03 18:30:32 +00:00
İsmail Karslı
22f2b47243
Do not auto expand media if blur_nsfw is active and the post is NSFW (#2305)
* Do not auto expand media if blur_nsfw is active and the post is NSFW flagged

* Update src/shared/components/post/post-listing.tsx

* Update src/shared/components/post/post-listing.tsx

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2023-12-30 19:47:27 -05:00
Pseudochron
ab74d3ad90
Fix dark theme highlight color for recent comments, restores colors to 0.18 values (#2297)
* Update darkly-compact.css to set highlight-bg for dark theme

* Revert main.css

* Update darkly-pureblack.css to set highlight-bg for dark theme

* Update darkly-red.css to set highlight-bg for dark theme

* Update darkly.css to set highlight-bg for dark theme

* Update vaporwave-dark.css to set highlight-bg for dark theme

* Update i386.css to set highlight-bg for dark theme

* Update _variables.darkly-pureblack.scss to set $mark-bg-dark

* Update _variables.darkly.scss to set $mark-bg-dark

* Update _variables.i386.scss to set $mark-bg-dark

* Update _variables.vaporwave-dark.scss
2023-12-21 04:39:27 +00:00
53830b52be v0.19.1 2023-12-20 09:27:51 -05:00