Commit graph

137 commits

Author SHA1 Message Date
SleeplessOne1917
1ce6eb3284
Merge branch 'main' into csp_media_src_data_urls 2023-06-25 19:16:46 +00:00
Dominic Mazzoni
434502c678 CSP should allow data urls for media-src or the audio captcha won't work 2023-06-25 12:12:32 -07:00
Alec Armbruster
9938ac6ee4
fix lint error 2023-06-25 10:47:21 -04:00
Alec Armbruster
d1cf01061b
fix error on prod 2023-06-25 10:43:58 -04:00
dankxiaobong
0fee7cba3b
Merge branch 'LemmyNet:main' into added-darkly-compact-552 2023-06-23 21:33:39 +02:00
SleeplessOne1917
847b71319b Change function name 2023-06-23 10:36:21 -04:00
SleeplessOne1917
5d664656a2 Extract date fns setup 2023-06-23 10:10:41 -04:00
SleeplessOne1917
d0dff77377 Replace momentjs with date-fns 2023-06-22 19:33:02 -04:00
SleeplessOne1917
51a6681d15 Omit user-scalable to use default 2023-06-22 12:50:05 -04:00
SleeplessOne1917
955ca826cd Enable users to zoom on mobile 2023-06-22 12:28:27 -04:00
dankxiaobong
37ac318806
Merge branch 'main' into added-darkly-compact-552 2023-06-22 16:53:00 +02:00
Alec Armbruster
a1d935991b
rethink it a bit 2023-06-22 10:43:03 -04:00
Alec Armbruster
5512ee205a
add fallback style tag 2023-06-22 10:32:39 -04:00
Alec Armbruster
8e767f2331
fix merge conflicts 2023-06-22 09:04:25 -04:00
Alec Armbruster
fc40b473d7
move env utils into folder 2023-06-22 09:02:48 -04:00
Scott
0247f8a2cf
Fix buildThemeList() function to ensure no duplicates (#1466)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-22 08:55:11 -04:00
Alec Armbruster
9fc3da0264
Fix grave ReferenceError: fetch is not defined error (#1460)
* use cross-fetch

* remove from utils usage
2023-06-22 07:42:57 -04:00
dankxiaobong
dfe394adca
Merge branch 'LemmyNet:main' into added-darkly-compact-552 2023-06-22 12:29:01 +02:00
SleeplessOne1917
cda9bd0a79
Regenerate manifest on HTTPBase external change (#1459)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 22:45:21 -04:00
SleeplessOne1917
3664b0600b
(Hopefully) fix webmanifest different origin issue (#1457)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 21:04:28 -04:00
Alec Armbruster
043b522ff1
utils.ts organization, round two (#1427)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update src/shared/utils/app/convert-comment-sort-type.ts

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>

* prettier pass

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-21 18:28:24 -04:00
Dessalines
5c55b41971
Upgrade lemmy-js-client to 0.18.0-rc.2 (#1445)
* Updating translations.

* Upgrading lemmy-js-client.
2023-06-21 15:08:21 -04:00
dankxiaobong
376ca28f1d
Merge branch 'main' into added-darkly-compact-552 2023-06-21 14:22:22 +02:00
SleeplessOne1917
3db4fdddcd
Store manifest in memory so it does not need to be generated for every page request (#1433)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 07:55:27 -04:00
dankxiaobong
1c0f4f6002 added litely-compact 2023-06-21 13:46:31 +02:00
dankxiaobong
d56aeb95ca added darkly-compact - issue 552 2023-06-21 11:19:30 +02:00
n3oney
a7d91d3f2c
Merge branch 'main' into patch-1 2023-06-21 00:40:25 +02:00
Alec Armbruster
96abf25d00
fix merge conflicts 2023-06-17 08:07:25 -04:00
Michał
ad2bf18ab4
fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER 2023-06-16 18:32:21 +02:00
Alec Armbruster
b568756b83
formatting 2023-06-16 10:42:35 -04:00
Alec Armbruster
dba041fb90
use tsx ext only when needed 2023-06-16 10:38:40 -04:00
Alec Armbruster
88780ba9ab
refactor server, tidy up, use handlers/middleware/utils pattern 2023-06-16 10:34:36 -04:00
Alec Armbruster
09ac948d4a
add user-scalable=no to meta tag 2023-06-15 11:48:30 -04:00
abias
ab0805432d Make comment border colors semi-transparent 2023-06-14 20:52:31 -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
cmp
0d67c64af9
Make the community title in the sidebar link to the local community. (#1161)
* Make the community title in the sidebar link to the local community.

* Ternary erudaStr for PR.

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-13 06:34:21 -04:00
Dessalines
a605c72859
Another try at sanitize. (#1208)
* Sanitize again.

* Adding sanitize json function.

* Using serialize instead.
2023-06-12 16:17:57 -04:00
Yuri Pieters
10a29f053f Set html lang attr to the interface language 2023-06-12 00:26:01 +01:00
Nutomic
4867e455f8
Alternative way to sanitize isoData (#1129)
* Alternative way to sanitize isoData

* use split/join instead of replaceAll

* Use sanitize, then restore > chars for markdown render
2023-06-09 08:17:02 -04:00
0xDEADCADE
22a4fae0c2
Fix isoData can contain user generated content (#1114)
* Fix isoData can contain user generated content

* Fix formatting
2023-06-08 11:15:03 -04:00
Thomas
6a9d61a6dd
Add media-src * to Content-Security-Policy header 2023-06-06 13:45:17 +01:00
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01: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
83fc9f3949 Make error code always display 2023-05-22 08:38:05 -04:00
abias
256420b303 Fix isoData bug 2023-05-16 21:07:57 -04:00