-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Firebase integration; user accounts; persistent storage; deck improve…
…ments; et al. (#265) (close #118, #125, #187, #188, #205, #206, #211, #221, #257, #259, #266, #267) * Login + logout using firebase auth * minor * persistent storage of cards and decks * Refactor auth handling; listen to firebase data in a smarter way; handle log out better * minor reorg * Major refactor: user and layout state now both stored in state.global; username support * MustBeLoggedIn * minor * Login styling * minor tweaks * minor * Index parsed sentences in firebase for later lookup * Don't indexParsedSentence if not logged in * Refactor how decks work (they store card ids now), allow incomplete decks, fix bugs with decks * Consistent IDs for built-in cards * Fix sorting bug * fix tests * boy am I dumb * Relative websocket path * Copy Deck support * Replace duplicate cards * lint * minor fixes * Logging of random targets (fix #257) * and bump to v0.5 because this branch now contains all the v0.5 milestones * created login dialog * made logout work and added profile button to top right when logged in * minor * moved logout button to top right popover; minor style changes to Decks; moved search to top in Deck and Collection; submit login form on enter * fixed pixelation issue in Firefox * minor
- Loading branch information
1 parent
afd823f
commit b2285c8
Showing
53 changed files
with
1,121 additions
and
734 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export const FIREBASE_DATA = 'FIREBASE_DATA'; | ||
export const LOGGED_IN = 'LOGGED_IN'; | ||
export const LOGGED_OUT = 'LOGGED_OUT'; | ||
export const TOGGLE_SIDEBAR = 'TOGGLE_SIDEBAR'; | ||
|
||
export function firebaseData(data) { | ||
return { | ||
type: FIREBASE_DATA, | ||
payload: { data } | ||
}; | ||
} | ||
|
||
export function loggedIn(user) { | ||
return { | ||
type: LOGGED_IN, | ||
payload: { user } | ||
}; | ||
} | ||
|
||
export function loggedOut() { | ||
return { | ||
type: LOGGED_OUT | ||
}; | ||
} | ||
|
||
export function toggleSidebar(value) { | ||
return { | ||
type: TOGGLE_SIDEBAR, | ||
payload: { value } | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.