Commit graph

124 commits

Author SHA1 Message Date
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
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
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
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
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
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
abias
4f1d357b5b Refactor how error data is passed from server to client 2023-05-16 20:34:15 -04:00
abias
24c4427c82 Get rid or forced error 2023-05-15 21:02:34 -04:00
abias
900bf2099b Cleanup 2023-05-15 20:56:08 -04:00
abias
dbee2533a2 Fix things not working in production build 2023-05-14 23:45:21 -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
025daaa582 Use node env instead of version for environment specific logic 2023-05-14 16:25:03 -04:00
abias
76f0292862 Redirect to login and remove duplicated code 2023-05-14 15:28:38 -04:00
abias
8f2d964062 Fix server redirect error 2023-05-14 14:59:42 -04:00
abias
bcee6aad5b Set up logic for handling errors 2023-05-14 11:08:06 -04:00
SleeplessOne1917
b19b51c78c
Add support for PWA (#1005)
* Add logic for dynamically generating web manifest

* Make PWA icon get autogenerated

* Make service worker work

* Tweak things for PWA

* Handle apple icons and refactor

* Update prod dockerfile

* Remove jimp

* Remove unnecessary option

* Use different function syntax
2023-05-11 21:07:59 -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
31715ca75c
Removing extra themes. Fixes #905 (#910) 2023-02-02 21:14:59 -05:00