pwa-auth 1.1.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -52,18 +52,23 @@ import 'pwa-auth';
52
52
  ### `<user-settings>`
53
53
  - 1 Photo Upload
54
54
  - Unavailable Photo
55
+ - Update Username
56
+ - Update Email / Verify
57
+ - Update Password
55
58
  - Delete Account
56
59
 
57
60
  # Website Setup:
58
61
  ```html
59
62
  <header>
60
- <!-- Indicate the 'register' boolean for 'subscribe state' -->
61
- <!-- else 'login state' -->
63
+ <!-- register: Indicate the 'register' boolean for 'subscribe state' -->
64
+ <!-- register: else 'login state' -->
62
65
  <user-icon register></user-icon>
63
66
  </header>
64
67
 
65
- <!-- Indicate where the <pwa-settings> Tag will be Paged-->
66
- <user-drawer url="/settings"></user-drawer>
68
+ <!-- url: Indicate where the <pwa-settings> Tag will be Paged-->
69
+ <!-- register: Indicate the 'register' boolean for 'subscribe state' -->
70
+ <!-- register: else 'login state' -->
71
+ <user-drawer register url="/settings"></user-drawer>
67
72
 
68
73
  <main>
69
74
  <user-settings></user-settings>
@@ -74,31 +79,6 @@ import 'pwa-auth';
74
79
  <script src="pwa-auth.js"></script>
75
80
  ```
76
81
 
77
- ## Google Setup
78
- - Google Analytics
79
- - Firebase Project
80
-
81
- ## Firebase Setup
82
- - Authentication - email
83
- - Cloud Firestore - database
84
- - Cloud Storage
85
-
86
- ```javascript
87
- // Initialize Firebase
88
- let connect = {
89
- apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
90
- authDomain: "xxxxxxx.xxxxxxx.xxx",
91
- databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
92
- projectId: "xxxxxxx",
93
- storageBucket: "xxxxxxx.xxxxxxx.xxx",
94
- messagingSenderId: "xxxxxxxxxxx",
95
- appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
96
- measurementId: "xxxxxxxxxxx"
97
- };
98
-
99
- if (lolalhost) { connect = { /* etc. */ } }
100
- ```
101
-
102
82
  ## CSS Default Custom Properties
103
83
  | CSS Custom Property | Description | Default | Custom Element |
104
84
  | :--- | ---: | :---: | :--- |
@@ -118,12 +98,43 @@ if (lolalhost) { connect = { /* etc. */ } }
118
98
  | --pwa_icon_hover | Input | lightgrey | Icon |
119
99
 
120
100
  ```html
121
- <!-- CSS: Custom Variables: <head> tag -->
101
+ <!-- CSS: Custom Variables -->
102
+ <!-- Place this txt into your document -->
122
103
  <style>
123
104
 
124
105
  :root {
125
- --pwa_divider: grey;
126
- /* etc. */
106
+
107
+ --pwa_settings_background: white;
108
+
109
+ /* Top Border Color */
110
+ --pwa_divider: grey;
111
+
112
+ /* Section Header Color */
113
+ --pwa_section_header: black;
114
+
115
+ /* Navigation Colors */
116
+ --pwa_nav_button: grey;
117
+ --pwa_nav_select: black;
118
+
119
+ /* Label Color */
120
+ --pwa_label_text_color: black;
121
+
122
+ /* Input Colors */
123
+ --pwa_input_background: #E1E5EB;
124
+
125
+ /* Button Colors */
126
+ --pwa_action_text_color: #fff;
127
+ --pwa_action_background_color: #6cc04a;
128
+ --pwa_action_border_color: #60b23e;
129
+
130
+ /* Drawer Colors */
131
+ --pwa_drawer_text_color: #303030;
132
+ --pwa_drawer_background_color: #fff;
133
+
134
+ /* Icon Colors */
135
+ --pwa_icon_background: #6cc04a;
136
+ --pwa_icon_hover: lightgrey;
137
+
127
138
  }
128
139
 
129
140
  /* Dark Theme */
@@ -135,7 +146,33 @@ if (lolalhost) { connect = { /* etc. */ } }
135
146
  </style>
136
147
  ```
137
148
 
149
+ ## Google Setup
150
+ - Google Analytics
151
+ - Firebase Project
152
+
153
+ ## Firebase Setup
154
+ - Authentication - email
155
+ - Cloud Firestore - database
156
+ - Cloud Storage
157
+
158
+ ```javascript
159
+ // Initialize Firebase
160
+ let connect = {
161
+ apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
162
+ authDomain: "xxxxxxx.xxxxxxx.xxx",
163
+ databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
164
+ projectId: "xxxxxxx",
165
+ storageBucket: "xxxxxxx.xxxxxxx.xxx",
166
+ messagingSenderId: "xxxxxxxxxxx",
167
+ appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
168
+ measurementId: "xxxxxxxxxxx"
169
+ };
170
+
171
+ if (lolalhost) { connect = { /* etc. */ } }
172
+ ```
173
+
138
174
  # Feedback
139
175
  All feedback, comments, bugs, and requests are welcome.
140
176
  * [Jack's Publishing](https://www.jackspublishing.com)
141
- * [contractor's centre](https://www.contractorscentre.com)
177
+ * [contractor's centre](https://www.contractorscentre.com)
178
+ * [Node Package Manager](https://www.npmjs.com/package/pwa-auth)
package/demo/index.html CHANGED
@@ -45,7 +45,7 @@
45
45
  <header><user-icon register></user-icon></header>
46
46
 
47
47
  <!-- Drawer -->
48
- <user-drawer url="/demo/settings"></user-drawer>
48
+ <user-drawer register url="/demo/settings"></user-drawer>
49
49
 
50
50
  <!-- Settings -->
51
51
  <main><user-settings></user-settings></main>
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAczB,CAAC"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAazB,CAAC"}
@@ -7,7 +7,6 @@ export const drawerStyle = css `
7
7
  margin: 16px auto auto auto;
8
8
  background-color: var(--pwa_drawer_background_color);
9
9
  color: var(--pwa_drawer_text_color);
10
- padding: 8px 18px;
11
10
  box-sizing: border-box;
12
11
  border: 3px #303030 solid;
13
12
  border-radius: 20px;
@@ -1 +1 @@
1
- {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA4CvB,CAAC"}
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA6CvB,CAAC"}
@@ -4,6 +4,7 @@ export const exitStyle = css `
4
4
  .exit {
5
5
  display: grid;
6
6
  grid-template-columns: 80px 1fr 80px;
7
+ padding: 16px;
7
8
  }
8
9
 
9
10
  .exit > h3 {
@@ -34,8 +35,8 @@ export const exitStyle = css `
34
35
  }
35
36
 
36
37
  .close {
37
- height: 36px;
38
- width: 36px;
38
+ height: 30px;
39
+ width: 42px;
39
40
  margin: auto;
40
41
  background-color: transparent;
41
42
  border: 0px;
@@ -18,12 +18,13 @@ declare const UserDrawer_base: (new (...args: any[]) => {
18
18
  export declare class UserDrawer extends UserDrawer_base {
19
19
  private url;
20
20
  drawer: boolean;
21
+ register: boolean;
21
22
  private _name;
22
23
  private _log;
23
24
  private _sign;
24
25
  constructor();
25
- protected firstUpdated(): void;
26
26
  stateChanged(state: AppState): void;
27
+ protected firstUpdated(): void;
27
28
  static get styles(): CSSResultArray;
28
29
  protected render(): import("lit-html").TemplateResult<1>;
29
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAc7D,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAGf,OAAO,CAAC,GAAG,CAAM;IAGO,MAAM,UAAS;IAEvE,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAItC,SAAS,CAAC,YAAY;IAatB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,MAAM,KAAK,MAAM,IAAI,cAAc,CA+BhC;IAEH,SAAS,CAAC,MAAM;CAgDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAc7D,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAGf,OAAO,CAAC,GAAG,CAAM;IAGO,MAAM,UAAS;IAGf,QAAQ,UAAS;IAEzE,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAMtC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,SAAS,CAAC,YAAY;IAatB,MAAM,KAAK,MAAM,IAAI,cAAc,CA+BhC;IAEH,SAAS,CAAC,MAAM;CAiDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
@@ -25,10 +25,17 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
25
25
  super();
26
26
  this.url = '';
27
27
  this.drawer = false;
28
+ this.register = false;
28
29
  this._name = "";
29
30
  this._log = false;
30
31
  this._sign = false;
31
32
  }
33
+ stateChanged(state) {
34
+ this._name = state.backend.name;
35
+ this.drawer = state.frontend.drawer;
36
+ this._log = state.frontend.login;
37
+ this._sign = state.frontend.register;
38
+ }
32
39
  firstUpdated() {
33
40
  this.shadowRoot.querySelector('.close').addEventListener('click', () => {
34
41
  store.dispatch(toggleSign());
@@ -40,12 +47,6 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
40
47
  store.dispatch(toggleSign());
41
48
  });
42
49
  }
43
- stateChanged(state) {
44
- this._name = state.backend.name;
45
- this.drawer = state.frontend.drawer;
46
- this._log = state.frontend.login;
47
- this._sign = state.frontend.register;
48
- }
49
50
  static get styles() {
50
51
  return [
51
52
  show,
@@ -84,16 +85,16 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
84
85
  return html `
85
86
 
86
87
  <!-- Drawer Wrapper -->
87
- <div
88
+ <section
88
89
  class=" userDrawer"
89
90
  ?on="${this.drawer === true}">
90
91
 
91
92
  <!-- Exit Button -->
92
- <div class="exit">
93
+ <header class="exit">
93
94
  <div></div>
94
95
  <h3>${this._log ? this._name + " : Logged-in" : "SUBSCRIBE"}</h3>
95
96
  <button class="close">${close}</button>
96
- </div>
97
+ </header>
97
98
 
98
99
  <!-- Logged-out State -->
99
100
  <div
@@ -103,12 +104,13 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
103
104
  <!-- Log-in State -->
104
105
  <user-log-in
105
106
  class="spec"
106
- ?on="${this._sign === true}"></user-log-in>
107
+
108
+ ?on="${true === this._sign ? !this.register : this.register}"></user-log-in>
107
109
 
108
110
  <!-- Sign-up State -->
109
111
  <user-sign-up
110
112
  class="spec"
111
- ?on="${this._sign === false}"></user-sign-up>
113
+ ?on="${false === this._sign ? !this.register : this.register}"></user-sign-up>
112
114
 
113
115
  </div>
114
116
 
@@ -123,7 +125,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
123
125
 
124
126
  </div>
125
127
 
126
- </div>
128
+ </section>
127
129
 
128
130
  `;
129
131
  }
@@ -134,6 +136,9 @@ __decorate([
134
136
  __decorate([
135
137
  property({ type: Boolean, attribute: true, reflect: true })
136
138
  ], UserDrawer.prototype, "drawer", void 0);
139
+ __decorate([
140
+ property({ type: Boolean, attribute: true, reflect: true })
141
+ ], UserDrawer.prototype, "register", void 0);
137
142
  __decorate([
138
143
  state()
139
144
  ], UserDrawer.prototype, "_name", void 0);
@@ -21,7 +21,7 @@ let UserLogIn = class UserLogIn extends LitElement {
21
21
  this.password = '';
22
22
  this.signIn = async (email, password) => {
23
23
  const authCredential = EmailAuthProvider.credential(email, password);
24
- await signInWithCredential(auth, authCredential).then((credentials) => { console.log(credentials); }).catch((error) => { console.log(error); });
24
+ await signInWithCredential(auth, authCredential).catch((error) => { console.log(error); });
25
25
  };
26
26
  }
27
27
  static get styles() {
@@ -1 +1 @@
1
- {"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/sign-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAoB,KAAK,CAAC;AAa1D,qBACa,UAAW,SAAQ,UAAU;IAE/B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAU;;IAInC,MAAM,KAAK,MAAM,8BAad;IAEH,SAAS,CAAC,MAAM;IAkDhB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,UAAU,CAiBjB;CAeF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,cAAc,EAAE,UAAU,CAAC;KAC9B;CACF"}
1
+ {"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/sign-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAe,KAAK,CAAC;AAarD,qBACa,UAAW,SAAQ,UAAU;IAE/B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAU;;IAInC,MAAM,KAAK,MAAM,8BAad;IAEH,SAAS,CAAC,MAAM;IAkDhB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,UAAU,CAiBjB;CAeF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,cAAc,EAAE,UAAU,CAAC;KAC9B;CACF"}
@@ -22,7 +22,6 @@ let UserSignUp = class UserSignUp extends LitElement {
22
22
  this.newAccount = async (email, password) => {
23
23
  await createUserWithEmailAndPassword(auth, email, password)
24
24
  .then((userCredential) => {
25
- console.log("User created: ", userCredential.user);
26
25
  const user = userCredential.user;
27
26
  sendEmailVerification(user)
28
27
  .then(() => {
@@ -19,7 +19,6 @@ let UserIcon = class UserIcon extends connect(store)(LitElement) {
19
19
  }
20
20
  firstUpdated() {
21
21
  this.shadowRoot.querySelector('button').addEventListener('click', () => {
22
- console.log('logged-in: ', this._user);
23
22
  store.dispatch(toggleSign());
24
23
  });
25
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/settings/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAe,KAAK,CAAC;AAGrD,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAG7D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;;;;;;;;;;;;;;AAGxB,qBACa,YAAa,SAAQ,iBAA0B;IAEjD,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,IAAI,CAAM;;IAI3B,SAAS,CAAC,YAAY;IA8BtB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAK5B,MAAM,KAAK,MAAM,8BAkCX;IAEN,SAAS,CAAC,MAAM;CA6FjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACF"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/settings/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAe,KAAK,CAAC;AAGrD,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAG7D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;;;;;;;;;;;;;;AAGxB,qBACa,YAAa,SAAQ,iBAA0B;IAEjD,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,IAAI,CAAM;;IAI3B,SAAS,CAAC,YAAY;IA8BtB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAK5B,MAAM,KAAK,MAAM,8BAyCX;IAEN,SAAS,CAAC,MAAM;CA6FjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACF"}
@@ -78,6 +78,13 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
78
78
  padding: 8px 0;
79
79
  }
80
80
 
81
+ /* up to 576 pixels */
82
+ @media only screen and (max-width: 576px) {
83
+ h2 {
84
+ font-size: medium;
85
+ }
86
+ }
87
+
81
88
  `
82
89
  ];
83
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../../src/redux/frontend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,YAAY,EAAE,YA0B1B,CAAA;AAGD,eAAO,MAAM,SAAS;+EAKkB,aAAa,CAAC,MAAM,CAAC;2EAsBxB,aAAa,CAAC,OAAO,CAAC;;;;8EAoBvB,aAAa,CAAC,OAAO,CAAC;2EAKtB,aAAa,CAAC,MAAM,CAAC;2EAKpB,aAAa,CAAC,MAAM,CAAC;2EAKxD,CAAC;AAEH,eAAO,MAAQ,YAAY,oFAAE,QAAQ,gFAAE,QAAQ,gFAAE,QAAQ,iFAAE,UAAU,6EAAE,SAAS,4EAAE,YAAY,+EAAE,WAAW,kFAAsB,CAAC;;AAElI,wBAAiC"}
1
+ {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../../src/redux/frontend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,YAAY,EAAE,YA0B1B,CAAA;AAGD,eAAO,MAAM,SAAS;+EAKkB,aAAa,CAAC,MAAM,CAAC;2EAsBxB,aAAa,CAAC,OAAO,CAAC;;;;8EA0CvB,aAAa,CAAC,OAAO,CAAC;2EAKtB,aAAa,CAAC,MAAM,CAAC;2EAKpB,aAAa,CAAC,MAAM,CAAC;2EAKxD,CAAC;AAEH,eAAO,MAAQ,YAAY,oFAAE,QAAQ,gFAAE,QAAQ,gFAAE,QAAQ,iFAAE,UAAU,6EAAE,SAAS,4EAAE,YAAY,+EAAE,WAAW,kFAAsB,CAAC;;AAElI,wBAAiC"}
package/deploy/start.js CHANGED
@@ -68,7 +68,6 @@ onAuthStateChanged(auth, (user) => {
68
68
  }
69
69
  }
70
70
  else {
71
- console.log('logged out');
72
71
  store.dispatch(userAuth(false));
73
72
  store.dispatch(accID(''));
74
73
  store.dispatch(accName('John Doe'));