pwa-auth 3.3.7 → 3.3.9
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 +116 -106
- package/base/export/pwa-auth.d.ts +7 -6
- package/base/export/pwa-auth.js +7 -6
- package/base/export/pwa-auth.js.map +1 -1
- package/base/firebase/authentication.d.ts +10 -10
- package/base/firebase/authentication.js +10 -10
- package/base/firebase/authentication.js.map +1 -1
- package/base/firebase/interface.d.ts +5 -4
- package/base/firebase/interface.js +80 -79
- package/base/firebase/interface.js.map +1 -1
- package/base/lazy-loader.d.ts +11 -11
- package/base/lazy-loader.js +22 -22
- package/base/lazy-loader.js.map +1 -1
- package/base/redux/backend.d.ts +122 -113
- package/base/redux/backend.js +43 -43
- package/base/redux/drawer.d.ts +19 -17
- package/base/redux/drawer.js +21 -21
- package/base/redux/drawer.js.map +1 -1
- package/base/redux/frontend.d.ts +198 -185
- package/base/redux/frontend.js +86 -86
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +62 -62
- package/base/store.js +13 -13
- package/base/webcomponents/css/animation.d.ts +2 -2
- package/base/webcomponents/css/animation.js +8 -6
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/css/svg.d.ts +3 -3
- package/base/webcomponents/css/svg.js +4 -4
- package/base/webcomponents/css/toggle.d.ts +1 -1
- package/base/webcomponents/css/toggle.js +2 -2
- package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
- package/base/webcomponents/drawer/css/drawer.js +42 -18
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.d.ts +2 -2
- package/base/webcomponents/drawer/css/exit.js +8 -2
- package/base/webcomponents/drawer/css/exit.js.map +1 -1
- package/base/webcomponents/drawer/css/link.d.ts +2 -2
- package/base/webcomponents/drawer/css/link.js +2 -2
- package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
- package/base/webcomponents/drawer/css/paragraph.js +18 -6
- package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +58 -58
- package/base/webcomponents/drawer/drawer.js +108 -104
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/form/css/button.d.ts +2 -2
- package/base/webcomponents/form/css/button.js +3 -3
- package/base/webcomponents/form/css/input.d.ts +2 -2
- package/base/webcomponents/form/css/input.js +4 -4
- package/base/webcomponents/form/css/label.d.ts +2 -2
- package/base/webcomponents/form/css/label.js +4 -3
- package/base/webcomponents/form/css/label.js.map +1 -1
- package/base/webcomponents/form/css/list.d.ts +2 -2
- package/base/webcomponents/form/css/list.js +2 -2
- package/base/webcomponents/form/css/toggle.d.ts +2 -2
- package/base/webcomponents/form/css/toggle.js +6 -4
- package/base/webcomponents/form/css/toggle.js.map +1 -1
- package/base/webcomponents/form/forgot.d.ts +15 -15
- package/base/webcomponents/form/forgot.js +45 -45
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/login.d.ts +20 -20
- package/base/webcomponents/form/login.js +97 -93
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/signup.d.ts +20 -20
- package/base/webcomponents/form/signup.js +104 -100
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/icon/css/icon.d.ts +1 -1
- package/base/webcomponents/icon/css/icon.js +6 -8
- package/base/webcomponents/icon/css/icon.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +54 -54
- package/base/webcomponents/icon/icon.js +59 -59
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +2 -2
- package/base/webcomponents/login/css/auth.js +5 -3
- package/base/webcomponents/login/css/auth.js.map +1 -1
- package/base/webcomponents/login/css/link.d.ts +2 -2
- package/base/webcomponents/login/css/link.js +2 -2
- package/base/webcomponents/login/css/paragraph.d.ts +2 -2
- package/base/webcomponents/login/css/paragraph.js +2 -2
- package/base/webcomponents/login/page.d.ts +55 -55
- package/base/webcomponents/login/page.js +73 -73
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/css/navigation.d.ts +1 -1
- package/base/webcomponents/settings/css/navigation.js +24 -4
- package/base/webcomponents/settings/css/navigation.js.map +1 -1
- package/base/webcomponents/settings/input/delete.d.ts +55 -55
- package/base/webcomponents/settings/input/delete.js +73 -73
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +55 -55
- package/base/webcomponents/settings/input/email.js +72 -72
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +54 -54
- package/base/webcomponents/settings/input/name.js +67 -67
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +57 -57
- package/base/webcomponents/settings/input/password.js +97 -97
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +58 -58
- package/base/webcomponents/settings/input/uploader.js +152 -151
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/settings.d.ts +58 -58
- package/base/webcomponents/settings/settings.js +80 -91
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/package.json +11 -10
- package/source/pwa-auth.js +106 -56
package/README.md
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
Progressive Website Application - Authentication
|
|
2
2
|
======================
|
|
3
|
-
Jack's Publishing maintains
|
|
4
|
-
|
|
5
|
-
Visit the [Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
3
|
+
Jack's Publishing maintains Website Authentication Components where developers can focus on their User interface, rather than low-level API calls. Visit the [Live Demo](https://pwa-authentic.firebaseapp.com).
|
|
6
4
|
|
|
7
5
|
pwa-auth.js is a bundle of 5 Custom HTML Elements for Firebase (IAM) Authenication using email and password, with the ability to change username, icon, email, password, or delete your own account and it's content all together.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
Quickly sign-up, log-in, log-out, modify, or delete your firebase account.
|
|
10
8
|
|
|
11
9
|
Place 5 Custom HTML Tags, reference CSS, and Initialize a Firebase Instance. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
|
|
12
10
|
|
|
13
11
|
Continue reading to understand how to install this project:
|
|
14
12
|
|
|
13
|
+
## Prerequisites
|
|
14
|
+
- Google
|
|
15
|
+
- Analytics
|
|
16
|
+
- Firebase Authentication
|
|
17
|
+
- Email Login
|
|
18
|
+
- Firebase Cloud Storage
|
|
19
|
+
- Storage Bucket
|
|
20
|
+
|
|
21
|
+
## Outline
|
|
22
|
+
- Register through Email and Password
|
|
23
|
+
- Log-in
|
|
24
|
+
- Log-out
|
|
25
|
+
- Change Username
|
|
26
|
+
- Change Email
|
|
27
|
+
- Change Password
|
|
28
|
+
- Upload Profile Picture
|
|
29
|
+
- Delete Account
|
|
30
|
+
|
|
15
31
|
## Library
|
|
16
32
|
```javascript
|
|
17
|
-
// ES - Modules
|
|
33
|
+
// ES - import Modules
|
|
18
34
|
import './pwa-auth';
|
|
19
|
-
|
|
35
|
+
|
|
36
|
+
// Optional - copy CoreJS files
|
|
20
37
|
'npm/pwa-auth/source/**/*'
|
|
21
|
-
// - source/
|
|
22
|
-
// - pwa-auth.js
|
|
23
|
-
// - pwa-styles.css
|
|
24
|
-
// - empty.jpg
|
|
25
|
-
// - Third Party License .txt
|
|
26
38
|
```
|
|
27
39
|
|
|
28
|
-
## Prerequisites
|
|
29
|
-
Google:
|
|
30
|
-
- Google Analytics
|
|
31
|
-
- Firebase Project
|
|
32
|
-
Firebase:
|
|
33
|
-
- Authentication
|
|
34
|
-
- email login
|
|
35
|
-
- Cloud Storage
|
|
36
|
-
- storage bucket
|
|
37
|
-
|
|
38
40
|
## Technical Summary
|
|
39
41
|
- Type Strong with [TypeScript](https://www.typescriptlang.org)
|
|
40
42
|
- Stylable with [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascading_variables/Using_CSS_custom_properties)
|
|
@@ -48,80 +50,72 @@ Firebase:
|
|
|
48
50
|
- Predicate State Behavior: [Redux](https://redux.js.org/)
|
|
49
51
|
- Frontend (Client-side): [Lit](https://lit.dev)
|
|
50
52
|
|
|
51
|
-
Outline:
|
|
52
|
-
- Register through Email and Password
|
|
53
|
-
- Log-in
|
|
54
|
-
- Log-out
|
|
55
|
-
- Change Username
|
|
56
|
-
- Change Email
|
|
57
|
-
- Change Password
|
|
58
|
-
- Upload Profile Picture
|
|
59
|
-
- Delete Account
|
|
60
|
-
|
|
61
53
|
## Enrichment
|
|
62
|
-
Development
|
|
63
|
-
- Redux State Connection
|
|
64
|
-
- Global Functions
|
|
65
|
-
Optional
|
|
66
|
-
-
|
|
54
|
+
- Development
|
|
55
|
+
- Redux State Connection
|
|
56
|
+
- Global Functions
|
|
57
|
+
- Optional
|
|
58
|
+
- Custom Properties
|
|
67
59
|
|
|
68
60
|
## Website Components
|
|
69
|
-
Button
|
|
61
|
+
- Button
|
|
62
|
+
- `<user-icon>`
|
|
63
|
+
- Email Log-in
|
|
64
|
+
- Email Subscribe
|
|
65
|
+
- Icon
|
|
66
|
+
- Drop-down Drawer
|
|
67
|
+
- `<user-drawer>`
|
|
68
|
+
- Email Log-in
|
|
69
|
+
- Email Subscribe
|
|
70
|
+
- Menu with Log-out
|
|
71
|
+
- Logged-in Menu Content `<slot>`'s
|
|
72
|
+
- name: before
|
|
73
|
+
- name: within
|
|
74
|
+
- Pages
|
|
75
|
+
- `<user-settings>`
|
|
76
|
+
- Account Settings Page
|
|
77
|
+
- `<user-login>`
|
|
78
|
+
- Email Log-in Page
|
|
79
|
+
- Email Subscribe Page
|
|
80
|
+
- Logged-in Page Content `<slot>`'s
|
|
81
|
+
- name: content
|
|
82
|
+
- `<email-reset>`
|
|
83
|
+
- Password Reset Page
|
|
84
|
+
|
|
85
|
+
## Observer Patterns
|
|
70
86
|
- `<user-icon>`
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
Drop-down Drawer:
|
|
87
|
+
- property: subscribe: (Initial State): Subscribe
|
|
88
|
+
- property: subscribe: else (Initial State): Login
|
|
89
|
+
- property: empty: location of empty image
|
|
75
90
|
- `<user-drawer>`
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
- `<user-settings>`
|
|
81
|
-
- Account Settings
|
|
91
|
+
- feature: Top-down drawer: 1.4 seconds
|
|
92
|
+
- property: url: location of `<pwa-settings>` Tag
|
|
93
|
+
- property: subscribe: (Initial State): Subscribe
|
|
94
|
+
- property: subscribe: else (Initial State): Login
|
|
82
95
|
- `<user-login>`
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
- property: empty: location of empty image
|
|
93
|
-
`<user-drawer>`
|
|
94
|
-
- feature: Top-down drawer: 1.4 seconds
|
|
95
|
-
- property: url: location of `<pwa-settings>` Tag
|
|
96
|
-
- property: subscribe: (Initial State): Subscribe
|
|
97
|
-
- property: subscribe: else (Initial State): Login
|
|
98
|
-
`<user-login>`
|
|
99
|
-
- feature: regular visible page component
|
|
100
|
-
`<user-settings>`
|
|
101
|
-
- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr
|
|
102
|
-
- empty property: location of empty image
|
|
103
|
-
- Unavailable Photo
|
|
104
|
-
- Update Username
|
|
105
|
-
- Update Email / Verify
|
|
106
|
-
- Update Password
|
|
107
|
-
- Delete Account, Photos, Information
|
|
96
|
+
- feature: regular visible page component
|
|
97
|
+
- `<user-settings>`
|
|
98
|
+
- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr
|
|
99
|
+
- empty property: location of empty image
|
|
100
|
+
- Unavailable Photo
|
|
101
|
+
- Update Username
|
|
102
|
+
- Update Email / Verify
|
|
103
|
+
- Update Password
|
|
104
|
+
- Delete Account, Photos, Information
|
|
108
105
|
|
|
109
106
|
## Logical States
|
|
110
|
-
`<user-icon>`
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
`<user-drawer>`
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
`<user-login>`
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
Implementation
|
|
124
|
-
===
|
|
107
|
+
- `<user-icon>`
|
|
108
|
+
- Logged-out: txt: Login Button
|
|
109
|
+
- Logged-out: txt: Subscribe Button
|
|
110
|
+
- Logged-in, photo: Icon Button
|
|
111
|
+
- `<user-drawer>`
|
|
112
|
+
- logged-out: Sign-up by Email Addresses and Password
|
|
113
|
+
- logged-out: Sign-in by Email Addresses and Password
|
|
114
|
+
- logged-in: Settings Page Link, Log-out Button
|
|
115
|
+
- `<user-login>`
|
|
116
|
+
- logged-out: Sign-up by Email Addresses and Password
|
|
117
|
+
- logged-out: Sign-in by Email Addresses and Password
|
|
118
|
+
- logged-in, content: `<slot></slot>`
|
|
125
119
|
|
|
126
120
|
## Firebase Instance Configuration
|
|
127
121
|
pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
|
|
@@ -155,7 +149,7 @@ The entire bundle is one instance of firebase that takes in the configuration in
|
|
|
155
149
|
<!-- Optional: Copy the Project Files from 'source' Folder -->
|
|
156
150
|
<script type="module" src="./path_to/pwa-auth.js"></script>
|
|
157
151
|
|
|
158
|
-
<!-- Optional: Custom CSS Properties -->
|
|
152
|
+
<!-- Optional: Custom CSS Properties -->
|
|
159
153
|
<style>
|
|
160
154
|
|
|
161
155
|
/* <user-icon> */
|
|
@@ -173,21 +167,27 @@ The entire bundle is one instance of firebase that takes in the configuration in
|
|
|
173
167
|
/* <user-drawer> */
|
|
174
168
|
:root {
|
|
175
169
|
--pwa_drawer_background_color: #fff;
|
|
176
|
-
--pwa_drawer_border-radius:
|
|
170
|
+
--pwa_drawer_border-radius: 0px;
|
|
177
171
|
--pwa_drawer_border: 3px #303030 solid;
|
|
178
172
|
--pwa_drawer_z-index: 2;
|
|
179
173
|
--pwa_drawer_text_color: #303030;
|
|
174
|
+
--pwa_drawer_position: fixed;
|
|
180
175
|
}
|
|
181
176
|
|
|
182
177
|
/* <user-settings> */
|
|
183
178
|
:root {
|
|
184
179
|
--pwa_settings_background_color: grey;
|
|
180
|
+
|
|
185
181
|
--pwa_nav_button_color: grey;
|
|
186
182
|
--pwa_nav_highlight_color: black;
|
|
183
|
+
|
|
187
184
|
--pwa_divider_color: grey;
|
|
188
185
|
--pwa_header_color: black;
|
|
186
|
+
|
|
189
187
|
--pwa_input_background_color: #E1E5EB;
|
|
188
|
+
|
|
190
189
|
--pwa_label_text_color: black;
|
|
190
|
+
|
|
191
191
|
--pwa_button_text_color: #fff;
|
|
192
192
|
--pwa_button_background_color: #6cc04a;
|
|
193
193
|
--pwa_button_border_color: #60b23e;
|
|
@@ -201,14 +201,6 @@ The entire bundle is one instance of firebase that takes in the configuration in
|
|
|
201
201
|
</style>
|
|
202
202
|
|
|
203
203
|
</head>
|
|
204
|
-
|
|
205
|
-
<body>
|
|
206
|
-
<user-icon>
|
|
207
|
-
<user-drawer>
|
|
208
|
-
<user-login>
|
|
209
|
-
<user-settings>
|
|
210
|
-
<email-reset>
|
|
211
|
-
</body>
|
|
212
204
|
```
|
|
213
205
|
|
|
214
206
|
## Project Type: ECMA Script Modules
|
|
@@ -216,9 +208,10 @@ Eports: classes and objects
|
|
|
216
208
|
```javascript
|
|
217
209
|
// Custom HTML Element Classes
|
|
218
210
|
import 'pwa-auth';
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
211
|
+
`<user-icon></user-icon>` // subscribe | empty= "./images/empty.jpg"
|
|
212
|
+
`<user-drawer></user-drawer>` // subscribe | url= "./settings"
|
|
213
|
+
`<user-settings></user-settings>` // empty= "./images/empty.jpg"
|
|
214
|
+
`<user-login></user-login>` // subscribe |
|
|
222
215
|
|
|
223
216
|
// Firebase Objects
|
|
224
217
|
import { db, storage, auth, user } from 'pwa-auth';
|
|
@@ -234,9 +227,15 @@ import { store } from 'pwa-auth';
|
|
|
234
227
|
// store.name
|
|
235
228
|
// store.email
|
|
236
229
|
// store.photoURL
|
|
230
|
+
|
|
231
|
+
export { logOut, logAccount, logAccountDelete, deleteDocument } from "pwa-auth";
|
|
232
|
+
// logOut() - Firebase Authentication: log user out
|
|
233
|
+
// logAccount() - Google Analytics Signal: logEvent(analytics, 'create_account');
|
|
234
|
+
// logAccountDelete() - Firebase Authentication: delete account
|
|
235
|
+
// deleteDocument() - Firebase Storage and Firestore:
|
|
237
236
|
```
|
|
238
237
|
|
|
239
|
-
## Implementation
|
|
238
|
+
## Drawer Implementation
|
|
240
239
|
```html
|
|
241
240
|
<body>
|
|
242
241
|
|
|
@@ -244,7 +243,11 @@ import { store } from 'pwa-auth';
|
|
|
244
243
|
<user-icon subscribe empty="./images/empty.jpg"></user-icon>
|
|
245
244
|
</header>
|
|
246
245
|
|
|
247
|
-
<user-drawer subscribe url="./settings"
|
|
246
|
+
<user-drawer subscribe url="./settings">
|
|
247
|
+
<div slot="before / within">
|
|
248
|
+
<a>Link Name</a>
|
|
249
|
+
</div>
|
|
250
|
+
</user-drawer>
|
|
248
251
|
|
|
249
252
|
<main>
|
|
250
253
|
<user-settings empty="./images/empty.jpg"></user-settings>
|
|
@@ -253,17 +256,24 @@ import { store } from 'pwa-auth';
|
|
|
253
256
|
</body>
|
|
254
257
|
```
|
|
255
258
|
|
|
256
|
-
## Implementation
|
|
259
|
+
## Page Implementation
|
|
257
260
|
```html
|
|
258
261
|
<body>
|
|
259
262
|
|
|
260
263
|
<header>
|
|
261
|
-
<user-icon
|
|
264
|
+
<user-icon empty="./images/empty.jpg" subscribe ></user-icon>
|
|
262
265
|
</header>
|
|
263
266
|
|
|
264
267
|
<main>
|
|
265
|
-
|
|
266
|
-
<user-
|
|
268
|
+
|
|
269
|
+
<user-login subscribe>
|
|
270
|
+
<div slot="content">
|
|
271
|
+
<p>Page Content</p>
|
|
272
|
+
</div>
|
|
273
|
+
</user-login>
|
|
274
|
+
|
|
275
|
+
<user-settings empty="./images/empty.jpg"></user-settings>
|
|
276
|
+
|
|
267
277
|
</main>
|
|
268
278
|
|
|
269
279
|
</body>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { UserLogin } from '../webcomponents/login/page';
|
|
2
|
-
export { UserDrawer } from '../webcomponents/drawer/drawer';
|
|
3
|
-
export { UserSettings } from '../webcomponents/settings/settings';
|
|
4
|
-
export { UserIcon } from '../webcomponents/icon/icon';
|
|
5
|
-
export { EmailReset } from '../webcomponents/form/forgot';
|
|
6
|
-
export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
|
|
1
|
+
export { UserLogin } from '../webcomponents/login/page';
|
|
2
|
+
export { UserDrawer } from '../webcomponents/drawer/drawer';
|
|
3
|
+
export { UserSettings } from '../webcomponents/settings/settings';
|
|
4
|
+
export { UserIcon } from '../webcomponents/icon/icon';
|
|
5
|
+
export { EmailReset } from '../webcomponents/form/forgot';
|
|
6
|
+
export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
|
|
7
|
+
export { logOut, logAccount, logAccountDelete, deleteDocument } from "../firebase/interface";
|
package/base/export/pwa-auth.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { UserLogin } from '../webcomponents/login/page';
|
|
2
|
-
export { UserDrawer } from '../webcomponents/drawer/drawer';
|
|
3
|
-
export { UserSettings } from '../webcomponents/settings/settings';
|
|
4
|
-
export { UserIcon } from '../webcomponents/icon/icon';
|
|
5
|
-
export { EmailReset } from '../webcomponents/form/forgot';
|
|
6
|
-
export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
|
|
1
|
+
export { UserLogin } from '../webcomponents/login/page';
|
|
2
|
+
export { UserDrawer } from '../webcomponents/drawer/drawer';
|
|
3
|
+
export { UserSettings } from '../webcomponents/settings/settings';
|
|
4
|
+
export { UserIcon } from '../webcomponents/icon/icon';
|
|
5
|
+
export { EmailReset } from '../webcomponents/form/forgot';
|
|
6
|
+
export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
|
|
7
|
+
export { logOut, logAccount, logAccountDelete, deleteDocument } from "../firebase/interface";
|
|
7
8
|
//# sourceMappingURL=pwa-auth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pwa-auth.js","sourceRoot":"","sources":["../../typescript/export/pwa-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAiB,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAgB,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAc,oCAAoC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAkB,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAgB,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"pwa-auth.js","sourceRoot":"","sources":["../../typescript/export/pwa-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAiB,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAgB,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAc,oCAAoC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAkB,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAgB,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FirebaseApp } from 'firebase/app';
|
|
2
|
-
import { Firestore } from "firebase/firestore";
|
|
3
|
-
import { FirebaseStorage } from "@firebase/storage";
|
|
4
|
-
import { User, Auth } from 'firebase/auth';
|
|
5
|
-
export declare const firebaseConfig: any;
|
|
6
|
-
export declare const application: FirebaseApp;
|
|
7
|
-
export declare const db: Firestore;
|
|
8
|
-
export declare const storage: FirebaseStorage;
|
|
9
|
-
export declare const auth: Auth;
|
|
10
|
-
export declare const user: User | null;
|
|
1
|
+
import { FirebaseApp } from 'firebase/app';
|
|
2
|
+
import { Firestore } from "firebase/firestore";
|
|
3
|
+
import { FirebaseStorage } from "@firebase/storage";
|
|
4
|
+
import { User, Auth } from 'firebase/auth';
|
|
5
|
+
export declare const firebaseConfig: any;
|
|
6
|
+
export declare const application: FirebaseApp;
|
|
7
|
+
export declare const db: Firestore;
|
|
8
|
+
export declare const storage: FirebaseStorage;
|
|
9
|
+
export declare const auth: Auth;
|
|
10
|
+
export declare const user: User | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { initializeApp } from 'firebase/app';
|
|
2
|
-
import { getFirestore } from "firebase/firestore";
|
|
3
|
-
import { getStorage } from "@firebase/storage";
|
|
4
|
-
import { getAuth } from 'firebase/auth';
|
|
5
|
-
export const firebaseConfig = JSON.parse(process.env.FIREBASE_CONFIG || "{}");
|
|
6
|
-
export const application = initializeApp(firebaseConfig);
|
|
7
|
-
export const db = getFirestore(application);
|
|
8
|
-
export const storage = getStorage(application);
|
|
9
|
-
export const auth = getAuth(application);
|
|
10
|
-
export const user = auth.currentUser;
|
|
1
|
+
import { initializeApp } from 'firebase/app';
|
|
2
|
+
import { getFirestore } from "firebase/firestore";
|
|
3
|
+
import { getStorage } from "@firebase/storage";
|
|
4
|
+
import { getAuth } from 'firebase/auth';
|
|
5
|
+
export const firebaseConfig = JSON.parse(process.env.FIREBASE_CONFIG || "{}");
|
|
6
|
+
export const application = initializeApp(firebaseConfig);
|
|
7
|
+
export const db = getFirestore(application);
|
|
8
|
+
export const storage = getStorage(application);
|
|
9
|
+
export const auth = getAuth(application);
|
|
10
|
+
export const user = auth.currentUser;
|
|
11
11
|
//# sourceMappingURL=authentication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../typescript/firebase/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,
|
|
1
|
+
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../typescript/firebase/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAgB,cAAc,CAAC;AACpE,OAAO,EAAE,YAAY,EAAY,MAAoB,oBAAoB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAkB,MAAgB,mBAAmB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAc,MAAuB,eAAe,CAAC;AAErE,MAAM,CAAC,MAAM,cAAc,GAAuB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,WAAW,GAA0B,aAAa,CAAC,cAAc,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,EAAE,GAAmC,YAAY,CAAC,WAAW,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,OAAO,GAA8B,UAAU,CAAC,WAAW,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,IAAI,GAAiC,OAAO,CAAC,WAAW,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,IAAI,GAAiC,IAAI,CAAC,WAAW,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
export declare const alertEmail: (error: any) => void;
|
|
2
|
+
export declare const logOut: () => Promise<void>;
|
|
3
|
+
export declare const logAccount: () => Promise<void>;
|
|
4
|
+
export declare const logAccountDelete: () => Promise<void>;
|
|
5
|
+
export declare const deleteDocument: (collect: string, item: string) => Promise<void>;
|
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import { store } from '../store';
|
|
2
|
-
import { closeSign, iconAuth, nameAuth, userAuth } from '../redux/frontend';
|
|
3
|
-
import { accID, accEmail, accImage, accName } from '../redux/backend';
|
|
4
|
-
import { getAuth, onAuthStateChanged, sendEmailVerification, signOut } from 'firebase/auth';
|
|
5
|
-
import { doc, deleteDoc } from "firebase/firestore";
|
|
6
|
-
import { getAnalytics, logEvent } from "firebase/analytics";
|
|
7
|
-
import { isSupported } from "firebase/messaging";
|
|
8
|
-
import { application, auth, db } from './authentication';
|
|
9
|
-
getAuth().useDeviceLanguage();
|
|
10
|
-
let analytics;
|
|
11
|
-
(async () => {
|
|
12
|
-
if (await isSupported()) {
|
|
13
|
-
console.log('Firebase Analytics Supported');
|
|
14
|
-
analytics = getAnalytics(application);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
console.log("Firebase Analytics is not supported in this environment.");
|
|
18
|
-
}
|
|
19
|
-
})();
|
|
20
|
-
if ('serviceWorker' in navigator) {
|
|
21
|
-
console.log('Service Worker is supported');
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
console.log('Service Worker is not supported');
|
|
25
|
-
}
|
|
26
|
-
if ('PushManager' in window) {
|
|
27
|
-
console.log('Push API is supported');
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
console.log('Push API is not supported');
|
|
31
|
-
}
|
|
32
|
-
let pendingEmailVerification = false;
|
|
33
|
-
window.addEventListener("userEmailChanged", () => {
|
|
34
|
-
pendingEmailVerification = true;
|
|
35
|
-
});
|
|
36
|
-
onAuthStateChanged(auth, (user) => {
|
|
37
|
-
if (user) {
|
|
38
|
-
store.dispatch(userAuth(true));
|
|
39
|
-
store.dispatch(closeSign());
|
|
40
|
-
store.dispatch(accID(user.uid));
|
|
41
|
-
store.dispatch(accName(user.displayName || 'John Doe'));
|
|
42
|
-
store.dispatch(accEmail(user.email || ''));
|
|
43
|
-
store.dispatch(accImage(user.photoURL || ''));
|
|
44
|
-
store.dispatch(nameAuth(user.displayName || 'John Doe'));
|
|
45
|
-
store.dispatch(iconAuth(user.photoURL || ''));
|
|
46
|
-
if (pendingEmailVerification && !user.emailVerified) {
|
|
47
|
-
sendEmailVerification(user)
|
|
48
|
-
.then(() => {
|
|
49
|
-
console.log("Verification email sent to:");
|
|
50
|
-
pendingEmailVerification = false;
|
|
51
|
-
})
|
|
52
|
-
.catch((error) => {
|
|
53
|
-
console.error("Error sending verification email:", error.message);
|
|
54
|
-
pendingEmailVerification = false;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
else if (user.emailVerified) {
|
|
58
|
-
console.log("User's email is already verified:");
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
console.log("User signed in, no email verification pending:");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
store.dispatch(userAuth(false));
|
|
66
|
-
store.dispatch(accID(''));
|
|
67
|
-
store.dispatch(accName('John Doe'));
|
|
68
|
-
store.dispatch(accEmail(''));
|
|
69
|
-
store.dispatch(accImage(''));
|
|
70
|
-
store.dispatch(nameAuth('John Doe'));
|
|
71
|
-
store.dispatch(iconAuth(''));
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
export const
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
import { store } from '../store';
|
|
2
|
+
import { closeSign, iconAuth, nameAuth, userAuth } from '../redux/frontend';
|
|
3
|
+
import { accID, accEmail, accImage, accName } from '../redux/backend';
|
|
4
|
+
import { getAuth, onAuthStateChanged, sendEmailVerification, signOut } from 'firebase/auth';
|
|
5
|
+
import { doc, deleteDoc } from "firebase/firestore";
|
|
6
|
+
import { getAnalytics, logEvent } from "firebase/analytics";
|
|
7
|
+
import { isSupported } from "firebase/messaging";
|
|
8
|
+
import { application, auth, db } from './authentication';
|
|
9
|
+
getAuth().useDeviceLanguage();
|
|
10
|
+
let analytics;
|
|
11
|
+
(async () => {
|
|
12
|
+
if (await isSupported()) {
|
|
13
|
+
console.log('Firebase Analytics Supported');
|
|
14
|
+
analytics = getAnalytics(application);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
console.log("Firebase Analytics is not supported in this environment.");
|
|
18
|
+
}
|
|
19
|
+
})();
|
|
20
|
+
if ('serviceWorker' in navigator) {
|
|
21
|
+
console.log('Service Worker is supported');
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
console.log('Service Worker is not supported');
|
|
25
|
+
}
|
|
26
|
+
if ('PushManager' in window) {
|
|
27
|
+
console.log('Push API is supported');
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
console.log('Push API is not supported');
|
|
31
|
+
}
|
|
32
|
+
let pendingEmailVerification = false;
|
|
33
|
+
window.addEventListener("userEmailChanged", () => {
|
|
34
|
+
pendingEmailVerification = true;
|
|
35
|
+
});
|
|
36
|
+
onAuthStateChanged(auth, (user) => {
|
|
37
|
+
if (user) {
|
|
38
|
+
store.dispatch(userAuth(true));
|
|
39
|
+
store.dispatch(closeSign());
|
|
40
|
+
store.dispatch(accID(user.uid));
|
|
41
|
+
store.dispatch(accName(user.displayName || 'John Doe'));
|
|
42
|
+
store.dispatch(accEmail(user.email || ''));
|
|
43
|
+
store.dispatch(accImage(user.photoURL || ''));
|
|
44
|
+
store.dispatch(nameAuth(user.displayName || 'John Doe'));
|
|
45
|
+
store.dispatch(iconAuth(user.photoURL || ''));
|
|
46
|
+
if (pendingEmailVerification && !user.emailVerified) {
|
|
47
|
+
sendEmailVerification(user)
|
|
48
|
+
.then(() => {
|
|
49
|
+
console.log("Verification email sent to:");
|
|
50
|
+
pendingEmailVerification = false;
|
|
51
|
+
})
|
|
52
|
+
.catch((error) => {
|
|
53
|
+
console.error("Error sending verification email:", error.message);
|
|
54
|
+
pendingEmailVerification = false;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
else if (user.emailVerified) {
|
|
58
|
+
console.log("User's email is already verified:");
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
console.log("User signed in, no email verification pending:");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
store.dispatch(userAuth(false));
|
|
66
|
+
store.dispatch(accID(''));
|
|
67
|
+
store.dispatch(accName('John Doe'));
|
|
68
|
+
store.dispatch(accEmail(''));
|
|
69
|
+
store.dispatch(accImage(''));
|
|
70
|
+
store.dispatch(nameAuth('John Doe'));
|
|
71
|
+
store.dispatch(iconAuth(''));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export const alertEmail = (error) => { console.log('Problem: ' + error); };
|
|
75
|
+
export const logOut = async () => { return signOut(auth); };
|
|
76
|
+
export const logAccount = async () => { logEvent(analytics, 'create_account'); };
|
|
77
|
+
export const logAccountDelete = async () => { logEvent(analytics, 'delete_account'); };
|
|
78
|
+
export const deleteDocument = async (collect, item) => {
|
|
79
|
+
await deleteDoc(doc(db, collect, item));
|
|
80
|
+
};
|
|
80
81
|
//# sourceMappingURL=interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../typescript/firebase/interface.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG5F,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAA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,CAAC,GAAG,CAAE,WAAW,GAAG,KAAK,CAAE,CAAC,CAA8E,CAAC,CAAA;AAG7J,MAAM,CAAC,MAAM,MAAM,GAAe,KAAK,IAAI,EAAE,GAAG,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,UAAU,GAAW,KAAK,IAAI,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,gBAAgB,GAAK,KAAK,IAAI,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,cAAc,GAAO,KAAK,EAAE,OAAc,EAAE,IAAW,EAAE,EAAE;IAEtE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAE1C,CAAC,CAAC"}
|
package/base/lazy-loader.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class LazyLoader extends LitElement {
|
|
3
|
-
active: boolean;
|
|
4
|
-
constructor();
|
|
5
|
-
shouldUpdate(): boolean;
|
|
6
|
-
}
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'lazy-loader': LazyLoader;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class LazyLoader extends LitElement {
|
|
3
|
+
active: boolean;
|
|
4
|
+
constructor();
|
|
5
|
+
shouldUpdate(): boolean;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'lazy-loader': LazyLoader;
|
|
10
|
+
}
|
|
11
|
+
}
|