pwa-auth 3.3.8 → 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.
Files changed (97) hide show
  1. package/README.md +53 -45
  2. package/base/export/pwa-auth.d.ts +7 -6
  3. package/base/export/pwa-auth.js +7 -6
  4. package/base/export/pwa-auth.js.map +1 -1
  5. package/base/firebase/authentication.d.ts +10 -10
  6. package/base/firebase/authentication.js +10 -10
  7. package/base/firebase/authentication.js.map +1 -1
  8. package/base/firebase/interface.d.ts +5 -4
  9. package/base/firebase/interface.js +80 -79
  10. package/base/firebase/interface.js.map +1 -1
  11. package/base/lazy-loader.d.ts +11 -11
  12. package/base/lazy-loader.js +22 -22
  13. package/base/lazy-loader.js.map +1 -1
  14. package/base/redux/backend.d.ts +122 -113
  15. package/base/redux/backend.js +43 -43
  16. package/base/redux/drawer.d.ts +19 -17
  17. package/base/redux/drawer.js +21 -21
  18. package/base/redux/drawer.js.map +1 -1
  19. package/base/redux/frontend.d.ts +198 -185
  20. package/base/redux/frontend.js +86 -86
  21. package/base/redux/frontend.js.map +1 -1
  22. package/base/store.d.ts +62 -62
  23. package/base/store.js +13 -13
  24. package/base/webcomponents/css/animation.d.ts +2 -2
  25. package/base/webcomponents/css/animation.js +2 -2
  26. package/base/webcomponents/css/svg.d.ts +3 -3
  27. package/base/webcomponents/css/svg.js +4 -4
  28. package/base/webcomponents/css/toggle.d.ts +1 -1
  29. package/base/webcomponents/css/toggle.js +2 -2
  30. package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
  31. package/base/webcomponents/drawer/css/drawer.js +18 -13
  32. package/base/webcomponents/drawer/css/drawer.js.map +1 -1
  33. package/base/webcomponents/drawer/css/exit.d.ts +2 -2
  34. package/base/webcomponents/drawer/css/exit.js +2 -2
  35. package/base/webcomponents/drawer/css/link.d.ts +2 -2
  36. package/base/webcomponents/drawer/css/link.js +2 -2
  37. package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
  38. package/base/webcomponents/drawer/css/paragraph.js +18 -6
  39. package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
  40. package/base/webcomponents/drawer/drawer.d.ts +58 -58
  41. package/base/webcomponents/drawer/drawer.js +106 -102
  42. package/base/webcomponents/drawer/drawer.js.map +1 -1
  43. package/base/webcomponents/form/css/button.d.ts +2 -2
  44. package/base/webcomponents/form/css/button.js +2 -2
  45. package/base/webcomponents/form/css/input.d.ts +2 -2
  46. package/base/webcomponents/form/css/input.js +2 -2
  47. package/base/webcomponents/form/css/label.d.ts +2 -2
  48. package/base/webcomponents/form/css/label.js +2 -2
  49. package/base/webcomponents/form/css/list.d.ts +2 -2
  50. package/base/webcomponents/form/css/list.js +2 -2
  51. package/base/webcomponents/form/css/toggle.d.ts +2 -2
  52. package/base/webcomponents/form/css/toggle.js +2 -2
  53. package/base/webcomponents/form/forgot.d.ts +15 -15
  54. package/base/webcomponents/form/forgot.js +45 -45
  55. package/base/webcomponents/form/forgot.js.map +1 -1
  56. package/base/webcomponents/form/login.d.ts +20 -20
  57. package/base/webcomponents/form/login.js +88 -88
  58. package/base/webcomponents/form/login.js.map +1 -1
  59. package/base/webcomponents/form/signup.d.ts +20 -20
  60. package/base/webcomponents/form/signup.js +95 -95
  61. package/base/webcomponents/form/signup.js.map +1 -1
  62. package/base/webcomponents/icon/css/icon.d.ts +1 -1
  63. package/base/webcomponents/icon/css/icon.js +6 -8
  64. package/base/webcomponents/icon/css/icon.js.map +1 -1
  65. package/base/webcomponents/icon/icon.d.ts +54 -54
  66. package/base/webcomponents/icon/icon.js +59 -59
  67. package/base/webcomponents/icon/icon.js.map +1 -1
  68. package/base/webcomponents/login/css/auth.d.ts +2 -2
  69. package/base/webcomponents/login/css/auth.js +2 -2
  70. package/base/webcomponents/login/css/link.d.ts +2 -2
  71. package/base/webcomponents/login/css/link.js +2 -2
  72. package/base/webcomponents/login/css/paragraph.d.ts +2 -2
  73. package/base/webcomponents/login/css/paragraph.js +2 -2
  74. package/base/webcomponents/login/page.d.ts +55 -55
  75. package/base/webcomponents/login/page.js +72 -72
  76. package/base/webcomponents/login/page.js.map +1 -1
  77. package/base/webcomponents/settings/css/navigation.d.ts +1 -1
  78. package/base/webcomponents/settings/css/navigation.js +2 -2
  79. package/base/webcomponents/settings/input/delete.d.ts +55 -55
  80. package/base/webcomponents/settings/input/delete.js +73 -73
  81. package/base/webcomponents/settings/input/delete.js.map +1 -1
  82. package/base/webcomponents/settings/input/email.d.ts +55 -55
  83. package/base/webcomponents/settings/input/email.js +72 -72
  84. package/base/webcomponents/settings/input/email.js.map +1 -1
  85. package/base/webcomponents/settings/input/name.d.ts +54 -54
  86. package/base/webcomponents/settings/input/name.js +67 -67
  87. package/base/webcomponents/settings/input/name.js.map +1 -1
  88. package/base/webcomponents/settings/input/password.d.ts +57 -57
  89. package/base/webcomponents/settings/input/password.js +97 -97
  90. package/base/webcomponents/settings/input/password.js.map +1 -1
  91. package/base/webcomponents/settings/input/uploader.d.ts +58 -58
  92. package/base/webcomponents/settings/input/uploader.js +150 -150
  93. package/base/webcomponents/settings/input/uploader.js.map +1 -1
  94. package/base/webcomponents/settings/settings.d.ts +58 -58
  95. package/base/webcomponents/settings/settings.js +80 -80
  96. package/base/webcomponents/settings/settings.js.map +1 -1
  97. package/package.json +30 -36
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  Progressive Website Application - Authentication
2
2
  ======================
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)
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).
4
4
 
5
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.
6
6
 
@@ -10,20 +10,6 @@ Place 5 Custom HTML Tags, reference CSS, and Initialize a Firebase Instance. By
10
10
 
11
11
  Continue reading to understand how to install this project:
12
12
 
13
- ## Library
14
- ```javascript
15
- // ES - import Modules
16
- import './pwa-auth';
17
-
18
- // Optional - copy CoreJS
19
- 'npm/pwa-auth/source/**/*'
20
- // - source/
21
- // - pwa-auth.js
22
- // - pwa-styles.css
23
- // - empty.jpg
24
- // - Third Party License .txt
25
- ```
26
-
27
13
  ## Prerequisites
28
14
  - Google
29
15
  - Analytics
@@ -32,6 +18,25 @@ import './pwa-auth';
32
18
  - Firebase Cloud Storage
33
19
  - Storage Bucket
34
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
+
31
+ ## Library
32
+ ```javascript
33
+ // ES - import Modules
34
+ import './pwa-auth';
35
+
36
+ // Optional - copy CoreJS files
37
+ 'npm/pwa-auth/source/**/*'
38
+ ```
39
+
35
40
  ## Technical Summary
36
41
  - Type Strong with [TypeScript](https://www.typescriptlang.org)
37
42
  - Stylable with [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascading_variables/Using_CSS_custom_properties)
@@ -45,16 +50,6 @@ import './pwa-auth';
45
50
  - Predicate State Behavior: [Redux](https://redux.js.org/)
46
51
  - Frontend (Client-side): [Lit](https://lit.dev)
47
52
 
48
- Outline:
49
- - Register through Email and Password
50
- - Log-in
51
- - Log-out
52
- - Change Username
53
- - Change Email
54
- - Change Password
55
- - Upload Profile Picture
56
- - Delete Account
57
-
58
53
  ## Enrichment
59
54
  - Development
60
55
  - Redux State Connection
@@ -73,12 +68,17 @@ Outline:
73
68
  - Email Log-in
74
69
  - Email Subscribe
75
70
  - Menu with Log-out
71
+ - Logged-in Menu Content `<slot>`'s
72
+ - name: before
73
+ - name: within
76
74
  - Pages
77
75
  - `<user-settings>`
78
76
  - Account Settings Page
79
77
  - `<user-login>`
80
78
  - Email Log-in Page
81
79
  - Email Subscribe Page
80
+ - Logged-in Page Content `<slot>`'s
81
+ - name: content
82
82
  - `<email-reset>`
83
83
  - Password Reset Page
84
84
 
@@ -117,9 +117,6 @@ Outline:
117
117
  - logged-out: Sign-in by Email Addresses and Password
118
118
  - logged-in, content: `<slot></slot>`
119
119
 
120
- Implementation
121
- ===
122
-
123
120
  ## Firebase Instance Configuration
124
121
  pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
125
122
  The entire bundle is one instance of firebase that takes in the configuration information, internally.
@@ -174,6 +171,7 @@ The entire bundle is one instance of firebase that takes in the configuration in
174
171
  --pwa_drawer_border: 3px #303030 solid;
175
172
  --pwa_drawer_z-index: 2;
176
173
  --pwa_drawer_text_color: #303030;
174
+ --pwa_drawer_position: fixed;
177
175
  }
178
176
 
179
177
  /* <user-settings> */
@@ -203,14 +201,6 @@ The entire bundle is one instance of firebase that takes in the configuration in
203
201
  </style>
204
202
 
205
203
  </head>
206
-
207
- <body>
208
- <user-icon>
209
- <user-drawer>
210
- <user-login>
211
- <user-settings>
212
- <email-reset>
213
- </body>
214
204
  ```
215
205
 
216
206
  ## Project Type: ECMA Script Modules
@@ -218,9 +208,10 @@ Eports: classes and objects
218
208
  ```javascript
219
209
  // Custom HTML Element Classes
220
210
  import 'pwa-auth';
221
- // <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
222
- // <user-drawer subscribe settingsURL="./settings"></user-drawer>
223
- // <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
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 |
224
215
 
225
216
  // Firebase Objects
226
217
  import { db, storage, auth, user } from 'pwa-auth';
@@ -236,9 +227,15 @@ import { store } from 'pwa-auth';
236
227
  // store.name
237
228
  // store.email
238
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:
239
236
  ```
240
237
 
241
- ## Implementation - Drawer
238
+ ## Drawer Implementation
242
239
  ```html
243
240
  <body>
244
241
 
@@ -246,7 +243,11 @@ import { store } from 'pwa-auth';
246
243
  <user-icon subscribe empty="./images/empty.jpg"></user-icon>
247
244
  </header>
248
245
 
249
- <user-drawer subscribe url="./settings"></user-drawer>
246
+ <user-drawer subscribe url="./settings">
247
+ <div slot="before / within">
248
+ <a>Link Name</a>
249
+ </div>
250
+ </user-drawer>
250
251
 
251
252
  <main>
252
253
  <user-settings empty="./images/empty.jpg"></user-settings>
@@ -255,17 +256,24 @@ import { store } from 'pwa-auth';
255
256
  </body>
256
257
  ```
257
258
 
258
- ## Implementation - Page
259
+ ## Page Implementation
259
260
  ```html
260
261
  <body>
261
262
 
262
263
  <header>
263
- <user-icon empty="./images/empty.jpg" subscribe ></user-icon>
264
+ <user-icon empty="./images/empty.jpg" subscribe ></user-icon>
264
265
  </header>
265
266
 
266
267
  <main>
267
- <user-login subscribe ></user-login>
268
- <user-settings empty="./images/empty.jpg"></user-settings>
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
+
269
277
  </main>
270
278
 
271
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";
@@ -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,MAAiB,cAAc,CAAC;AACrE,OAAO,EAAE,YAAY,EAAY,MAAkB,oBAAoB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAkB,MAAoB,mBAAmB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAc,MAAiB,eAAe,CAAC;AAU/D,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
+ {"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 logOut: () => Promise<void>;
2
- export declare const logAccount: () => Promise<void>;
3
- export declare const logAccountDelete: () => Promise<void>;
4
- export declare const deleteDocument: (collect: string, item: string) => Promise<void>;
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 logOut = async () => { return signOut(auth); };
75
- export const logAccount = async () => { logEvent(analytics, 'create_account'); };
76
- export const logAccountDelete = async () => { logEvent(analytics, 'delete_account'); };
77
- export const deleteDocument = async (collect, item) => {
78
- await deleteDoc(doc(db, collect, item));
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,OAAO,EAAa,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAGxD,OAAO,EAAE,CAAC,iBAAiB,EAAE,CAAC;AAS9B,IAAI,SAAoB,CAAC;AAEzB,CAAC,KAAK,IAAI,EAAE;IACV,IAAI,MAAM,WAAW,EAAE,EAAE,CAAC;QACx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E,CAAE,CAAC;QAC3C,KAAK,CAAC,QAAQ,CAAE,QAAQ,CAAI,EAAE,CAAE,CAAE,CAAC;QACnC,KAAK,CAAC,QAAQ,CAAE,QAAQ,CAAI,EAAE,CAAE,CAAE,CAAC;QAMnC,KAAK,CAAC,QAAQ,CAAE,QAAQ,CAAK,UAAU,CAAE,CAAE,CAAC;QAC5C,KAAK,CAAC,QAAQ,CAAE,QAAQ,CAAK,EAAE,CAAE,CAAE,CAAC;KAIrC;AAEH,CAAC,CAAC,CAAC;AAcH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAS,EAAE,EAAE,GAAG,OAAO,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"}
@@ -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
+ }
@@ -1,23 +1,23 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { LitElement } from 'lit';
11
- import { property } from 'lit/decorators.js';
12
- export class LazyLoader extends LitElement {
13
- constructor() {
14
- super();
15
- this.active = false;
16
- }
17
- shouldUpdate() { return this.active; }
18
- }
19
- __decorate([
20
- property({ type: Boolean }),
21
- __metadata("design:type", Boolean)
22
- ], LazyLoader.prototype, "active", void 0);
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { LitElement } from 'lit';
11
+ import { property } from 'lit/decorators.js';
12
+ export class LazyLoader extends LitElement {
13
+ constructor() {
14
+ super();
15
+ this.active = false;
16
+ }
17
+ shouldUpdate() { return this.active; }
18
+ }
19
+ __decorate([
20
+ property({ type: Boolean }),
21
+ __metadata("design:type", Boolean)
22
+ ], LazyLoader.prototype, "active", void 0);
23
23
  //# sourceMappingURL=lazy-loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-loader.js","sourceRoot":"","sources":["../typescript/lazy-loader.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAQ,mBAAmB,CAAC;AAE/C,MAAM,OAAO,UAAW,SAAQ,UAAU;IAKxC;QACE,KAAK,EAAE,CAAC;QAHwB,WAAM,GAAa,KAAK,CAAC;IAI3D,CAAC;IAGD,YAAY,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAE,CAAC;CAExC;AATmC;IAAjC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;0CAAiC"}
1
+ {"version":3,"file":"lazy-loader.js","sourceRoot":"","sources":["../typescript/lazy-loader.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAQ,mBAAmB,CAAC;AAE/C,MAAM,OAAO,UAAW,SAAQ,UAAU;IAKxC;QACE,KAAK,EAAE,CAAC;QAHwB,WAAM,GAAa,KAAK,CAAC;IAI3D,CAAC;IAGD,YAAY,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAE,CAAC;CAExC;AATC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;0CAAiC"}