Commit graph

162 commits

Author SHA1 Message Date
Sander Saarend
27222a4f30 Add nonce-based CSP header (#1907)
* Remove websocket config

* Add nonce based CSP
2023-07-10 14:34:14 -04:00
drumlinish
9e69f4f7c9 Disallow /modlog since it is not relevant for bots (#1850) 2023-07-10 14:34:14 -04:00
SleeplessOne1917
322a44bf24
Fix data-bs-theme (#1810)
* Fix data-bs-theme

* Add other dark themes

* Add vaporwave-dark to dark theme list
2023-07-04 16:53:28 -04:00
SleeplessOne1917
f6cbc896af
feat(theme): Vaporwave (#1682)
* Make vaporwave dark theme work

* Tweak vaporwave light theme

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-04 12:13:31 -04:00
SleeplessOne1917
a0cf54c0a0
Fix search page breaking on initial load when logged in (#1781)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 16:43:52 -04:00
Alec Armbruster
af22947c0f
fix req.cookie nonexistent -.- 2023-06-30 10:35:57 -04:00
Alec Armbruster
0bcb2d77be
wip 2023-06-30 10:04:19 -04:00
Alec Armbruster
7743fa98b9
wip 2023-06-30 10:04:01 -04:00
Alec Armbruster
c804cf958a
Merge branch 'main' of https://github.com/LemmyNet/lemmy-ui into fix-cache-auth 2023-06-30 09:52:15 -04:00
Diamond
a7592d74bb
Enforce SameSite=Strict (#1713) 2023-06-30 09:51:41 -04:00
Alec Armbruster
da45ffb46b
fix cache auth method 2023-06-30 09:42:09 -04:00
SleeplessOne1917
cc184a86c8 Fix authorized route false flag 2023-06-29 18:12:22 -04:00
SleeplessOne1917
2d88e42cab Fix dev caching issue 2023-06-29 16:33:08 -04:00
Alec Armbruster
d8ee0ec78a
change max-age to 5 for non-authed responses 2023-06-29 13:33:30 -04:00
SleeplessOne1917
339cefa2b0 Cache static data for a day 2023-06-29 13:14:48 -04:00
SleeplessOne1917
751495702c
Use git hash to break cache (#1684)
* Use git hash to break cache

* Address PR feedback

* Make hash docker agnostic

* Add trailing slash

* Update .prettierignore

Co-authored-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>

* Remove debugging log

* implement getStaticDir util

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com>
2023-06-29 10:29:33 -04:00
SleeplessOne1917
005135d4f2
Allow audio captcha through CSP (#1690)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-29 07:20:45 -04:00
Dessalines
6b1ea447e5
Fixing lints. (#1686) 2023-06-29 01:24:52 -04:00
Robert C. Maehl
9a04d0c58e
Add Security.txt (#1408)
* Create security-handler.ts

https://securitytxt.org/

* Add SecurityHandler

* Update security-handler.ts

* Update index.tsx

* Ensure external domain.tld is used

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 23:10:13 -04:00
SleeplessOne1917
ef66dfa6fd
Return appropriate error codes (#1665)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-28 16:44:26 -04:00
SleeplessOne1917
5c16be767c
Add i386 theme (#1662)
* Add i386 theme

* Make searchable selects display properly

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-28 16:43:33 -04:00
32063a5794
Set cache-control headers to reduce server load (fixes #412) (#1641)
* Set cache-control headers to reduce server load (fixes #412)

* add missing file

* remove old middleware folder

* use let

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 16:32:07 -04:00
Alec Armbruster
6d92c07c89
Merge branch 'main' into feat/pureblack-theme 2023-06-26 15:50:14 -04:00
Alec Armbruster
96cf021105
Move password reset form to separate route, view (#1390)
* rework password reset form

* make self-suggested changes

* cleaning

* validate in handlePasswordReset as well

* update submodule

* partially make suggested changes

* make suggested changes

* resolve merge conflicts

* resolve merge conflicts

* resolve merge conflicts

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 14:54:38 -04:00
Alec Armbruster
94d223b162
add darkly-pureblack theme 2023-06-26 10:37:39 -04:00
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