UNPKG

2.88 kBJavaScriptView Raw
1import authentication from "./reducers/authenticate";
2import configure from "./reducers/configure";
3import user from "./reducers/user";
4import ui from "./reducers/ui";
5import emailSignIn from "./reducers/email-sign-in";
6import emailSignUp from "./reducers/email-sign-up";
7import oAuthSignIn from "./reducers/oauth-sign-in";
8import requestPasswordReset from "./reducers/request-password-reset";
9import updatePassword from "./reducers/update-password";
10import updatePasswordModal from "./reducers/update-password-modal";
11import server from "./reducers/server";
12import signOut from "./reducers/sign-out";
13import destroyAccount from "./reducers/destroy-account";
14import {combineReducers} from "redux-immutablejs";
15
16/* reducers */
17export const authStateReducer = combineReducers({
18 configure,
19 emailSignIn,
20 emailSignUp,
21 signOut,
22 authentication,
23 requestPasswordReset,
24 oAuthSignIn,
25 updatePassword,
26 updatePasswordModal,
27 destroyAccount,
28 server,
29 ui,
30 user
31});
32
33/* actions */
34export {configure} from "./actions/configure";
35export {authenticate} from "./actions/authenticate";
36export {emailSignIn, emailSignInFormUpdate} from "./actions/email-sign-in";
37export {signOut} from "./actions/sign-out";
38export {emailSignUp, emailSignUpFormUpdate} from "./actions/email-sign-up";
39export {oAuthSignIn} from "./actions/oauth-sign-in";
40export {requestPasswordReset, requestPasswordResetFormUpdate} from "./actions/request-password-reset";
41export {updatePassword, updatePasswordFormUpdate} from "./actions/update-password";
42export {updatePasswordModal, updatePasswordModalFormUpdate} from "./actions/update-password-modal";
43export {destroyAccount} from "./actions/destroy-account";
44export verifyAuth from "./utils/verify-auth";
45export {getApiUrl} from "./utils/session-storage";
46export {
47 hideEmailSignInSuccessModal,
48 hideEmailSignInErrorModal,
49 hideOAuthSignInSuccessModal,
50 hideOAuthSignInErrorModal,
51 hideSignOutSuccessModal,
52 hideSignOutErrorModal,
53 hideEmailSignUpSuccessModal,
54 hideEmailSignUpErrorModal,
55 showFirstTimeLoginSuccessModal,
56 showPasswordResetSuccessModal,
57 hideFirstTimeLoginSuccessModal,
58 hidePasswordResetSuccessModal,
59 showFirstTimeLoginErrorModal,
60 showPasswordResetErrorModal,
61 hideFirstTimeLoginErrorModal,
62 hidePasswordResetErrorModal,
63 hidePasswordResetRequestSuccessModal,
64 hidePasswordResetRequestErrorModal,
65 hideUpdatePasswordSuccessModal,
66 hideUpdatePasswordErrorModal,
67 hideDestroyAccountSuccessModal,
68 hideDestroyAccountErrorModal
69} from "./actions/ui";
70
71/* UI */
72export {
73 AuthGlobals,
74 EmailSignInForm,
75 EmailSignUpForm,
76 SignOutButton,
77 RequestPasswordResetForm,
78 OAuthSignInButton,
79 UpdatePasswordForm,
80 DestroyAccountButton,
81 TokenBridge
82} from "./views/default";
83
84/* utils */
85export {default as fetch} from "./utils/fetch";