Tom Hacohen
566261b91a
lint: fix all remaining warnings!
5 years ago
Tom Hacohen
11dd883f5f
lint: replace tslint with eslint and fix new warnings and errors.
5 years ago
Tom Hacohen
a252078d65
Use the new getCryptoManager when editing journals/userInfos.
...
This also fixes an issue when editing and deleting journals after an encryption
password change.
5 years ago
Tom Hacohen
f5df8cb4e1
api: import updated version from the ios repo.
...
Improves types and adds functionality to getting crypto managers.
5 years ago
Tom Hacohen
5aa9640987
store: fix fetchCount to include fetching entries and userInfo.
5 years ago
Tom Hacohen
a557ec1fd2
Fix creation of default journals for new accounts.
...
I don't know when it stopped working or why, but this fixes it.
It was obviously an error, and was caused by sloppy typing.
6 years ago
Tom Hacohen
46fe1ceeb6
Gracefully handle wrong encryption passwords.
...
Until now we just showed integrity error which could be one of many issues.
Now we show an explicit error message and only clear the encryption password
cache rather than the whole cache.
6 years ago
Tom Hacohen
9b7f24eb8a
Store actions: Rename createEntries -> addEntries.
6 years ago
Tom Hacohen
f26af1e1ac
Journal actions: split fetchAll and fetching journal entries.
6 years ago
Tom Hacohen
8cc20ec3ed
Fix removal of deleted jorunals from the journal list.
...
Fixes #36 .
6 years ago
Tom Hacohen
ae3f32cc01
Store: handle addJournal correctly (include empty entry list).
...
Fixes #35 .
6 years ago
Tom Hacohen
9913adc756
Update tslint config and update code to conform.
6 years ago
Tom Hacohen
5c94954c96
Store reducers: fix inconsistent empty lines.
6 years ago
Tom Hacohen
812c8df61a
store reducers: fix copy paste for type.
6 years ago
Tom Hacohen
7e406e4f77
Split the store construction to a separate file.
6 years ago
Tom Hacohen
43044750e3
Add support for settings (route and store).
6 years ago
Tom Hacohen
e4de0605f9
Fix all the issues that came with switching to react scripts
6 years ago
Tom Hacohen
c5fc6f23f5
Jounal store: simplify the store functions and change the list to a hash
...
It's always been a massive mess, this improves it.
6 years ago
Tom Hacohen
5b79e0f107
Implement journal update.
6 years ago
Tom Hacohen
ae26e34eb4
Update react, typescript recompose and etc.
6 years ago
Tom Hacohen
73897700d9
Automatically create the default journals if there are none.
6 years ago
Tom Hacohen
1e1033fdf1
Actions fetchAll: return a promise rather than undefined.
6 years ago
Tom Hacohen
8e7243964d
Automatically create user info when there is none.
6 years ago
Tom Hacohen
71e20bb65f
UserInfo: Fix persistance of user info to cache.
7 years ago
Tom Hacohen
1ee224bd0b
Add an action to fetch userInfo.
7 years ago
Tom Hacohen
4833a98763
Split fetching credentials and key derivation.
7 years ago
Tom Hacohen
2608a354ea
Add an action to derive the encryption key.
7 years ago
Tom Hacohen
8d3a06cdfd
Split the login credentials and the encryption key.
...
We do this so we can persist the login info to local storage, but
still keep the encryption key safe.
This version will fails if you clear the session storage. This will be
fixed in the next commit.
7 years ago
Tom Hacohen
e48ebc5137
Fix entries fetching by creating a fetchAll action.
7 years ago
Tom Hacohen
e38409203c
Remove fetching status from the store.
...
This was causing constant invalidations and therefore killing our performance.
7 years ago
Tom Hacohen
e58ddf8545
Implement shallow compare for the journal reducer.
...
The reason why we need it is that we don't have a concept of etag for
journal fetching, which means we were setting the store on each fetch
causing everything that depends on the journals to invalidate.
This triggers a bug that causes the entries not to refresh if the
journals haven't changed.
7 years ago
Tom Hacohen
2aa92f15e7
Reducer: don't reset the store when fetching.
...
There were a couple of bugs there:
1. The store was reset while fetching/error because the payload was
empty/error.
2. The error status wasn't reset after for successful fetches that
follow failed ones.
7 years ago
Tom Hacohen
48cd22b464
Move the store into its own module and split it up.
7 years ago