|
4b3f03353d
|
WIP TypeScript convertions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
2022-12-26 00:31:07 +01:00 |
|
Chewbacca
|
72c26bc9bc
|
Merge remote-tracking branch 'origin/develop' into chats
|
2022-11-17 10:58:34 -05:00 |
|
Chewbacca
|
8818763f28
|
Rename files (12): rand
|
2022-11-16 08:35:29 -05:00 |
|
Chewbacca
|
fe34af29d3
|
Rename files (10): service-worker + storage
|
2022-11-16 08:34:53 -05:00 |
|
Justin
|
f16da850fd
|
Add React Query
|
2022-08-31 13:20:53 -04:00 |
|
Justin
|
de7fa347df
|
Specifically import the single lodash function
|
2022-06-17 07:37:53 -04:00 |
|
|
2786fa257b
|
Use import type in some places
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
2022-06-09 21:08:51 +02:00 |
|
Alex Gleason
|
b64be353cc
|
eslint: indent switch statements
|
2022-05-11 16:06:35 -05:00 |
|
Alex Gleason
|
ae01b845de
|
eslint: enforce spacing of imports (and infix ops)
|
2022-05-11 12:40:34 -05:00 |
|
Alex Gleason
|
39b92b96fc
|
Store settings in IndexedDB even on unsupported backends
|
2022-04-29 23:15:41 -05:00 |
|
|
2943b91034
|
Typescript, convert some components to functional
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
|
2022-04-11 21:58:48 +02:00 |
|
Alex Gleason
|
5cd894ab02
|
Truth Social
|
2022-03-21 13:14:26 -05:00 |
|
Alex Gleason
|
635f88f5e8
|
Rewrite code with optional chaining (?.)
|
2022-02-18 21:04:18 -05:00 |
|
Alex Gleason
|
6323c7d70e
|
eslint: enforce gaps between groups with import/order
|
2022-01-10 16:25:06 -06:00 |
|
Alex Gleason
|
966ca91e1a
|
eslint: alphabetize imports with import/order
|
2022-01-10 16:17:52 -06:00 |
|
Alex Gleason
|
2a0e2001d6
|
eslint: enforce import/order
|
2022-01-10 16:01:24 -06:00 |
|
Alex Gleason
|
e42030daae
|
Always check error.response before error.response.status
|
2021-10-20 17:50:35 -05:00 |
|
Alex Gleason
|
c8cec8fdac
|
localforage: create custom KVStore instance, refactor Instance actions
|
2021-10-20 15:17:47 -05:00 |
|
Alex Gleason
|
86950dde42
|
Mastodon: clear token on 401 in VERIFY_CREDENTIALS_FAIL
|
2021-09-26 16:30:45 -05:00 |
|
Alex Gleason
|
65a3ab982c
|
Preload: import auth credentials from Mastodon's initial-state
|
2021-09-15 13:34:22 -05:00 |
|
Alex Gleason
|
ea26e86a94
|
Rename FE_BASE_PATH to FE_SUBDIRECTORY
|
2021-09-05 13:21:39 -05:00 |
|
Alex Gleason
|
905e160749
|
Subdirectory: namespace auth to FE_BASE_PATH
|
2021-09-04 14:18:47 -05:00 |
|
Alex Gleason
|
c624afdfb7
|
Standalone: add external accounts, refresh on logout
|
2021-08-30 16:54:04 -07:00 |
|
Alex Gleason
|
74f4c59004
|
Auth: refactor OAuth token actions
|
2021-08-21 19:45:45 -05:00 |
|
Alex Gleason
|
463b3ba085
|
Auth: store users by their ActivityPub ID instead of their primary key
|
2021-08-21 17:38:19 -05:00 |
|
Alex Gleason
|
5548644bd6
|
eslint: no-extra-semi
|
2021-08-03 14:22:51 -05:00 |
|
Alex Gleason
|
8cc8a465c7
|
Auth: sanitize the initial state
|
2021-07-09 16:24:18 -05:00 |
|
Alex Gleason
|
d3db2e37e3
|
Auth: better data validation
|
2021-07-09 15:54:32 -05:00 |
|
Alex Gleason
|
7b61d319b1
|
Auth: clear me when ME_FETCH_SKIP is dispatched
|
2021-07-09 14:58:49 -05:00 |
|
Alex Gleason
|
377c0fb64a
|
Only delete token if it 403's
|
2021-05-07 21:46:08 -05:00 |
|
Alex Gleason
|
4ee302b63a
|
Delete mismatched auth users, fixes #613
|
2021-04-13 12:03:46 -05:00 |
|
Alex Gleason
|
070a7d410d
|
Handle invalid sessionUser. Don't store invalid sessionUser.
|
2021-04-10 17:15:52 -05:00 |
|
Alex Gleason
|
73a3ee296b
|
Rename action.reload -> action.background
|
2021-03-30 00:45:23 -05:00 |
|
Alex Gleason
|
15d61a98e7
|
Don't update the state when action.reload === false
|
2021-03-30 00:35:27 -05:00 |
|
Alex Gleason
|
db201707bf
|
Middle-click account to open it in a new tab, fixes #603
|
2021-03-29 23:22:54 -05:00 |
|
Alex Gleason
|
8e84c83fdc
|
Refactor persistState()
|
2021-03-29 20:03:27 -05:00 |
|
Alex Gleason
|
aa7e62e8c0
|
Initialize auth refactor
|
2021-03-29 19:51:48 -05:00 |
|
Alex Gleason
|
a1f4fdcbd8
|
Persist current user across reloads, fixes #600
|
2021-03-29 13:02:11 -05:00 |
|
Alex Gleason
|
706e0ea6ac
|
Always redirect home when switching between accounts
|
2021-03-27 14:37:17 -05:00 |
|
Alex Gleason
|
41c7612b47
|
Don't refresh when '_legacy' changes
|
2021-03-25 23:03:58 -05:00 |
|
Alex Gleason
|
c7c0c41ce6
|
Use our own INIT_STORE action instead of relying on Redux's internal actions
|
2021-03-25 22:37:10 -05:00 |
|
Alex Gleason
|
ad3362e3cd
|
auth: persist the state only if changed
|
2021-03-25 20:35:19 -05:00 |
|
Alex Gleason
|
1e2b0c9eee
|
Fix tests
|
2021-03-25 17:12:31 -05:00 |
|
Alex Gleason
|
659cee1c49
|
Refresh the page under more general conditions
|
2021-03-25 15:59:09 -05:00 |
|
Alex Gleason
|
6ead42b06d
|
Handle logout
|
2021-03-25 15:15:37 -05:00 |
|
Alex Gleason
|
7a5fb6abb5
|
Add new account from login page
|
2021-03-25 14:42:09 -05:00 |
|
Alex Gleason
|
94da1f6722
|
Reload the page conditionally
|
2021-03-24 16:49:24 -05:00 |
|
Alex Gleason
|
b4cab46553
|
Only reload with SWITCH_ACCOUNT (for now)
|
2021-03-24 16:24:46 -05:00 |
|
Alex Gleason
|
ee9b4cb969
|
Upgrade user localStorage auth to the new format
|
2021-03-24 16:18:14 -05:00 |
|
Alex Gleason
|
886ab93c70
|
Refactor auth reducer tests, add tests for VERIFY_CREDENTIALS_FAIL
|
2021-03-24 15:01:10 -05:00 |
|