Commit graph

50 commits

Author SHA1 Message Date
SleeplessOne1917
0d797a7033 Refactor first load handling 2023-06-23 15:41:10 -04:00
dudeami0
d06d7f8123 Cache post listings and restore listing state when using browser back navigation buttons. 2023-06-23 14:27:35 -04:00
dudeami0
d706b6ba27 Moved !isBrowser() check to FirstLoadServer.isFirstLoad 2023-06-23 01:04:03 -04:00
Alec Armbruster
fc40b473d7
move env utils into folder 2023-06-22 09:02:48 -04:00
SleeplessOne1917
eae0990442 Fix I18 next circular reference 2023-06-21 20:54:35 -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
Alec Armbruster
2d4c9dd1c2
make suggested changes 2023-06-20 10:21:31 -04:00
Alec Armbruster
69a123b6d8
update imports 2023-06-19 21:48:38 -04:00
Alec Armbruster
7f48a38b72
Merge branch 'main' into breakout-role-utils 2023-06-17 08:44:47 -04:00
Alec Armbruster
976ed12d07
break out browser and helper methods 2023-06-16 17:25:53 -04:00
abias
9265fc5894 Merge branch 'main' into route-data-refactor 2023-06-15 22:08:14 -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
James Whitmarsh
0754b9ba19 Refactor lets to consts 2023-06-05 22:31:12 +01:00
3143788d19 Changing all bigints to numbers 2023-05-15 15:53:29 -04:00
SleeplessOne1917
d56d20d0be
Redirect from pages that require auth on logout (#1016)
* Redirect fomr pages that require auth on logout

* Extract helper function

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-15 11:22:35 -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
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
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
24548ccba8
Adding new site setup fields. (#840) 2022-11-09 14:53:07 -05:00
sam365724
8fdbaf4499
Fix workaround for broken logout (#836)
Use hostname without port for setting empty cookie, avoids error in browser: 
Cookie “jwt” has been rejected for invalid domain.
2022-11-02 14:32:30 -04:00
Dessalines
130748a0c3
Fix site setup and login. Fixes #699 (#702) 2022-06-27 16:50:47 -04:00
Dessalines
d905c91e1b
Adding option types 2 (#689)
* Not working, because of wrong API types.

* Adding Rust-style Result and Option types.

- Fixes #646

* Updating to use new lemmy-js-client with Options.
2022-06-21 17:42:29 -04:00
Dessalines
b96e16b4e9
Private instances (#523)
* Updating translations.

* Adding registration applications.

* Updating translations.

* Adding verify email route.

* Fix missing signup question bug.

* Updating translations.

* A few fixes from comments on lemmy PR.

* v0.15.0-rc.4

* Some suggestions from PR.

* v0.15.0-rc.5

* Adding optional auth to modlog fetches.

* v0.15.0-rc.6

* Hide deny / approve buttons
2021-12-30 10:26:45 -05:00
Dessalines
e976c45f88
Using console.error for error logs. (#517) 2021-12-02 11:46:32 -05:00
a4f023d250 Fix issue with websocket buffer. 2021-12-02 09:59:31 -05:00
Dessalines
f410648e79
Switching to websocket-ts. #247 (#515) 2021-12-01 15:54:46 -05:00
Dessalines
ba06c1ae47
Trying to catch promise and json parse errors. #489 (#490)
* Trying to catch promise and json parse errors. #489

* A few more promises.
2021-11-17 16:23:46 -05:00
Dessalines
06099fee8a
Reporting (#434)
* Updating translations.

* A first pass at reporting. Fixes #102
2021-09-28 10:38:59 +00:00
Dessalines
bf93e29f4c
Adding JWT secure flag. (#426)
- Couldn't add samesite due to isomorphic library.
- Couldn't add httponly, because the js needs it for calls.
- Fixes #389
2021-09-18 17:59:28 -04:00
Dessalines
9a26d4bbdf
Fix logout bug. Fixes #391 (#424) 2021-09-18 17:23:11 -04:00
Dessalines
b27d982a7b
Feature/user community block (#362)
* Extracting user settings and profile page.

- Auto-collapsing dropdown and navbar on link clicks.
- Fixes #180

* Adding User and Community blocking. Fixes #295

- Added a new settings page.
- Switched to myUserInfo.
- Removing GetFollowedCommunities endpoint

* Fixing blocks
2021-08-19 22:56:18 -04:00
Dessalines
eed07b66aa
Re-organized components folder. (#339)
* Fixing too many large spinners

* Re-organized components folder.

- Cleaned up spans. Fixes #173
- Fixes #320

* Fixing miscolored edit
2021-07-17 16:42:55 -04:00
Dessalines
a0d9e5c672
Fix/ws error messages (#334)
* Updating translations.

* Translation updates

* Adding websocket error and reconnect toasts. Fixes #129
2021-07-17 11:38:28 -04:00
35f1b18e67 Don't restore scroll position on page refresh. Fixes #186 2021-07-16 09:05:28 -04:00
Dessalines
15eb832606
Upgrading deps. (#294)
* Upgrading deps.

* Upgrading deps again
2021-06-03 12:05:59 -04:00
4568e5a5ab Updating claims. 2021-03-19 10:22:47 -04:00
440fda9d51 user_ -> person table migration. 2021-03-15 14:09:31 -04:00
e3a337fb23 Running newer prettier. 2021-02-21 21:39:04 -05:00
6a3329f9a2 Updating v2 API based on nutomics recommends. 2021-01-18 17:42:41 -05:00
368d4199a5 Actually sending ws requests, some other fixes. 2020-12-24 17:05:57 -05:00
ea317af269 First pass at v2_api 2020-12-23 20:58:27 -05:00
e86b870bd5 Fixing mark all as read. Fixes #72 2020-11-18 10:42:41 -06:00
f6e5c8a6eb Updating deps. 2020-11-05 17:51:44 -06:00
1afeb7900e Increasing timeout, removing isomporphic-ws 2020-10-27 10:47:30 -05:00
c10d2f4a76 Moving javascript disabled warning to top. 2020-09-14 10:26:24 -05:00
fd43a890a7 Adding support for join messages. Fixes #8 2020-09-13 10:37:23 -05:00
e8e3612cdb Logging in working, languages working. 2020-09-09 15:33:40 -05:00
95b74ad74c Add post, inbox, and user routes. 2020-09-08 19:48:17 -05:00
241ef72290 Somewhat working webpack. Sponsors and communities pages done. 2020-09-06 22:41:46 -05:00
2eee936026 Partly functioning fuse-box, but moving te webpack now. 2020-09-06 11:15:25 -05:00