pwa-auth 2.0.5 → 2.0.7
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/CHANGELOG.md +21 -2
- package/README.md +51 -133
- package/demo/{pwa-styles.css → css/pwa-styles.css} +1 -1
- package/demo/images/empty.jpg +0 -0
- package/demo/index.html +8 -8
- package/deploy/css/default.d.ts +5 -0
- package/deploy/css/default.d.ts.map +1 -0
- package/deploy/css/default.js +99 -0
- package/deploy/css/form/button.js +3 -3
- package/deploy/css/form/input.js +1 -1
- package/deploy/css/form/label.js +1 -1
- package/deploy/custom-elements/drawer/css/drawer.js +5 -5
- package/deploy/custom-elements/icon/css/icon.js +11 -11
- package/deploy/custom-elements/icon/icon.d.ts +1 -0
- package/deploy/custom-elements/icon/icon.d.ts.map +1 -1
- package/deploy/custom-elements/icon/icon.js +5 -1
- package/deploy/custom-elements/settings/css/navigation.js +2 -2
- package/deploy/custom-elements/settings/input/uploader.d.ts +1 -0
- package/deploy/custom-elements/settings/input/uploader.d.ts.map +1 -1
- package/deploy/custom-elements/settings/input/uploader.js +5 -1
- package/deploy/custom-elements/settings/settings.d.ts +1 -0
- package/deploy/custom-elements/settings/settings.d.ts.map +1 -1
- package/deploy/custom-elements/settings/settings.js +10 -6
- package/deploy/firebase/start.js +6 -6
- package/deploy/redux/frontend.js +1 -1
- package/npm/images/empty.jpg +0 -0
- package/npm/pwa-auth.js +1 -1
- package/package.json +1 -1
- package/source/css/default.ts +111 -0
- package/source/css/form/button.ts +3 -3
- package/source/css/form/input.ts +1 -1
- package/source/css/form/label.ts +1 -1
- package/source/custom-elements/drawer/css/drawer.ts +5 -5
- package/source/custom-elements/icon/css/icon.ts +11 -11
- package/source/custom-elements/icon/icon.ts +5 -2
- package/source/custom-elements/settings/css/navigation.ts +2 -2
- package/source/custom-elements/settings/input/uploader.ts +4 -1
- package/source/custom-elements/settings/settings.ts +9 -6
- package/source/firebase/start.ts +6 -6
- package/source/redux/frontend.ts +1 -1
- package/website/index.html +14 -6
- package/website/js/pwa-auth.js +1 -1
- /package/demo/{styles.css → css/styles.css} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pwa-auth",
|
|
3
3
|
"author": "Jacek Markiewicz <jack.solutionbox@gmail.com>(https://www.jackspublishing.com)",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.7",
|
|
5
5
|
"description": "User Management Component with 3 HTML Tags, and 1 Boilerplate Function to display user icon, sign up, login, log out, change account details, delete account.",
|
|
6
6
|
"homepage": "https://pwa-authentic.firebaseapp.com",
|
|
7
7
|
"main": "pwa-auth.js",
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
export const iconRoot = css`
|
|
4
|
+
|
|
5
|
+
/* CSS: Custom Variables: <head> tag */
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
|
|
9
|
+
/* WebComponent 1 : User Icon
|
|
10
|
+
<user-icon>
|
|
11
|
+
<button> */
|
|
12
|
+
--pwa_icon_hover: lightgrey; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
13
|
+
--pwa_icon_background: #6cc04a; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
14
|
+
--pwa_icon_border: 2px solid black; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
15
|
+
|
|
16
|
+
/* WebComponent 1: logged-out
|
|
17
|
+
<user-icon>
|
|
18
|
+
<button class="login"> */
|
|
19
|
+
--pwa_icon_height: 32px; /* sync to --pwa_icon_diameter */ /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
20
|
+
--pwa_icon_padding: 0px 16px; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
21
|
+
--pwa_icon_radius: 6px; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
22
|
+
--pwa_icon_font: 'Arial', sans-serif; /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
23
|
+
|
|
24
|
+
/* WebComponent 1: logged-in
|
|
25
|
+
<user-icon>
|
|
26
|
+
<button class="icon"> */
|
|
27
|
+
--pwa_icon_diameter: 32px; /* sync to --pwa_icon_height */ /* custom-elements Folder > icon Folder > CSS Folder > icon.ts */
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
export const drawerRoot = css`
|
|
34
|
+
|
|
35
|
+
/* CSS: Custom Variables: <head> tag */
|
|
36
|
+
|
|
37
|
+
:root {
|
|
38
|
+
|
|
39
|
+
/* WebComponent 2: Drop-down Drawer
|
|
40
|
+
<user-drawer>
|
|
41
|
+
<section>
|
|
42
|
+
<header></header>
|
|
43
|
+
<div class="spec"> */
|
|
44
|
+
--pwa_drawer_border: 3px #303030 solid; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
|
|
45
|
+
--pwa_drawer_z-index: 2; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
|
|
46
|
+
--pwa_drawer_border-radius: 20px; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
|
|
47
|
+
|
|
48
|
+
/* WebComponent 2: Drop-down Drawer - logged-out
|
|
49
|
+
<div class="spec"> */
|
|
50
|
+
--pwa_drawer_text_color: #303030; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
|
|
51
|
+
--pwa_drawer_background_color: #fff; /* custom-elements Folder > drawer Folder > CSS Folder > drawer.ts */
|
|
52
|
+
|
|
53
|
+
/* WebComponent 2: Drop-down Drawer - logged-in
|
|
54
|
+
<div class="spec" on> */
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
export const settingsRoot = css`
|
|
61
|
+
|
|
62
|
+
/* CSS: Custom Variables: <head> tag */
|
|
63
|
+
|
|
64
|
+
:root {
|
|
65
|
+
|
|
66
|
+
/* WebComponent 3: Settings Page
|
|
67
|
+
<user-settings>
|
|
68
|
+
<nav></nav>
|
|
69
|
+
<section></section> */
|
|
70
|
+
--pwa_settings_background: white; /* custom-elements Folder > settings Folder > settings.ts */
|
|
71
|
+
--pwa_divider: black; /* custom-elements Folder > settings Folder > settings.ts */
|
|
72
|
+
|
|
73
|
+
/* Navigation */
|
|
74
|
+
--pwa_nav_button: grey; /* custom-elements Folder > settings Folder > CSS Folder > navigation.ts */
|
|
75
|
+
--pwa_nav_select: black; /* custom-elements Folder > settings Folder > CSS Folder > navigation.ts */
|
|
76
|
+
|
|
77
|
+
/* Section Header */
|
|
78
|
+
--pwa_section_header: black; /* custom-elements Folder > settings Folder > settings.ts */
|
|
79
|
+
|
|
80
|
+
/* Label */
|
|
81
|
+
--pwa_label_text_color: black; /* Form Folder > label.ts */
|
|
82
|
+
|
|
83
|
+
/* Input */
|
|
84
|
+
--pwa_input_background: #E1E5EB; /* Form Folder > input.ts */
|
|
85
|
+
|
|
86
|
+
/* Button */
|
|
87
|
+
--pwa_action_text_color: #fff; /* Form Folder > button.ts */
|
|
88
|
+
--pwa_action_background_color: #6cc04a; /* Form Folder > button.ts */
|
|
89
|
+
--pwa_action_border_color: #60b23e; /* Form Folder > button.ts */
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
export const themeRoot = css`
|
|
104
|
+
|
|
105
|
+
/* Dark Theme */
|
|
106
|
+
@media (prefers-color-scheme: dark) { }
|
|
107
|
+
|
|
108
|
+
/* Light Theme */
|
|
109
|
+
@media (prefers-color-scheme: light) { }
|
|
110
|
+
|
|
111
|
+
`;
|
|
@@ -20,9 +20,9 @@ export const buttonStyle: CSSResult = css`
|
|
|
20
20
|
line-height: 16px;
|
|
21
21
|
padding: 10px 16px;
|
|
22
22
|
border-radius: 6px;
|
|
23
|
-
color: var(--pwa_action_text_color);
|
|
24
|
-
background-color: var(--pwa_action_background_color);
|
|
25
|
-
border-color: var(--pwa_action_border_color);
|
|
23
|
+
color: var(--pwa_action_text_color, #fff);
|
|
24
|
+
background-color: var(--pwa_action_background_color, #6cc04a);
|
|
25
|
+
border-color: var(--pwa_action_border_color, #60b23e);
|
|
26
26
|
box-shadow: 1px 1px 1px grey;
|
|
27
27
|
}
|
|
28
28
|
|
package/source/css/form/input.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const inputStyle : CSSResult = css`
|
|
|
12
12
|
text-align: left;
|
|
13
13
|
margin: 0 16px 0 16px;
|
|
14
14
|
padding: 8px 16px;
|
|
15
|
-
background-color: var(--pwa_input_background);
|
|
15
|
+
background-color: var(--pwa_input_background, #E1E5EB);
|
|
16
16
|
border: 0;
|
|
17
17
|
border-radius: 4px;
|
|
18
18
|
-webkit-border-radius: 4px;
|
package/source/css/form/label.ts
CHANGED
|
@@ -26,13 +26,13 @@ export const drawerStyle: CSSResult = css`
|
|
|
26
26
|
left: 0;
|
|
27
27
|
right: 0;
|
|
28
28
|
transition-duration: 1.4s;
|
|
29
|
-
border: var(--pwa_drawer_border);
|
|
30
|
-
z-index: var(--pwa_drawer_z-index);
|
|
29
|
+
border: var(--pwa_drawer_border, 3px #303030 solid);
|
|
30
|
+
z-index: var(--pwa_drawer_z-index, 2);
|
|
31
31
|
overflow: hidden;
|
|
32
|
-
background-color: var(--pwa_drawer_background_color);
|
|
33
|
-
color: var(--pwa_drawer_text_color);
|
|
32
|
+
background-color: var(--pwa_drawer_background_color, #fff);
|
|
33
|
+
color: var(--pwa_drawer_text_color, #303030);
|
|
34
34
|
box-sizing: border-box;
|
|
35
|
-
border-radius: var(--pwa_drawer_border-radius);
|
|
35
|
+
border-radius: var(--pwa_drawer_border-radius, 20px);
|
|
36
36
|
height: auto;
|
|
37
37
|
transition-property: visibility, max-height;
|
|
38
38
|
}
|
|
@@ -12,8 +12,8 @@ export const iconStyles = css`
|
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
margin: auto;
|
|
14
14
|
overflow: hidden;
|
|
15
|
-
border: var(--pwa_icon_border);
|
|
16
|
-
background-color: var(--pwa_icon_background);
|
|
15
|
+
border: var(--pwa_icon_border, 2px solid black);
|
|
16
|
+
background-color: var(--pwa_icon_background, #6cc04a);
|
|
17
17
|
color: white;
|
|
18
18
|
font-size: 15px;
|
|
19
19
|
text-decoration: none;
|
|
@@ -23,13 +23,13 @@ export const iconStyles = css`
|
|
|
23
23
|
/* Hover Styles */
|
|
24
24
|
.icon:hover,
|
|
25
25
|
.login:hover {
|
|
26
|
-
background-color: var(--pwa_icon_hover);
|
|
26
|
+
background-color: var(--pwa_icon_hover, lightgrey);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Logged-in State: The Icon Button */
|
|
30
30
|
.icon {
|
|
31
|
-
height: var(--pwa_icon_diameter);
|
|
32
|
-
width: var(--pwa_icon_diameter);
|
|
31
|
+
height: var(--pwa_icon_diameter, 32px);
|
|
32
|
+
width: var(--pwa_icon_diameter, 32px);
|
|
33
33
|
border-radius: 50%;
|
|
34
34
|
padding: 0;
|
|
35
35
|
}
|
|
@@ -37,10 +37,10 @@ export const iconStyles = css`
|
|
|
37
37
|
/* The Login Button */
|
|
38
38
|
.login {
|
|
39
39
|
width: auto;
|
|
40
|
-
border-radius: var(--pwa_icon_radius);
|
|
41
|
-
height: var(--pwa_icon_height);
|
|
42
|
-
padding: var(--pwa_icon_padding);
|
|
43
|
-
font-family: var(--pwa_icon_font);
|
|
40
|
+
border-radius: var(--pwa_icon_radius, 6px);
|
|
41
|
+
height: var(--pwa_icon_height, 32px);
|
|
42
|
+
padding: var(--pwa_icon_padding, 0px 16px);
|
|
43
|
+
font-family: var(--pwa_icon_font, 'Arial', sans-serif);
|
|
44
44
|
font-weight: 500;
|
|
45
45
|
text-align: center;
|
|
46
46
|
}
|
|
@@ -52,8 +52,8 @@ export const iconStyles = css`
|
|
|
52
52
|
transition-duration: 2s;
|
|
53
53
|
clip-path: circle(50%);
|
|
54
54
|
overflow: hidden;
|
|
55
|
-
width: calc(var(--pwa_icon_diameter) - 2px);
|
|
56
|
-
height: calc(var(--pwa_icon_diameter) - 2px);
|
|
55
|
+
width: calc(var(--pwa_icon_diameter, 32px) - 2px);
|
|
56
|
+
height: calc(var(--pwa_icon_diameter, 32px) - 2px);
|
|
57
57
|
margin: auto;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -9,9 +9,12 @@ import { toggleSign } from '../../redux/frontend';
|
|
|
9
9
|
@customElement('user-icon')
|
|
10
10
|
export class UserIcon extends connect(store)(LitElement) {
|
|
11
11
|
|
|
12
|
-
/** @attr
|
|
12
|
+
/** @attr subscribe */
|
|
13
13
|
@property({type: Boolean, reflect: true}) public subscribe = false;
|
|
14
14
|
|
|
15
|
+
/** @attr emptyArtwork */
|
|
16
|
+
@property({type: String, reflect: true}) public emptyArtwork = '';
|
|
17
|
+
|
|
15
18
|
@state() private _user = false;
|
|
16
19
|
@state() private _photoURL = '';
|
|
17
20
|
// @state() private _sign = false;
|
|
@@ -50,7 +53,7 @@ export class UserIcon extends connect(store)(LitElement) {
|
|
|
50
53
|
alt = "Login"
|
|
51
54
|
height = "38px"
|
|
52
55
|
width = "38px"
|
|
53
|
-
src = "${this._photoURL}">
|
|
56
|
+
src = "${this._photoURL ? this._photoURL : this.emptyArtwork}">
|
|
54
57
|
<!-- </div> -->
|
|
55
58
|
` : this.subscribe ? 'Subscribe' : 'Login' }
|
|
56
59
|
|
|
@@ -19,7 +19,7 @@ export const navigation = css`
|
|
|
19
19
|
/* Navigation Button */
|
|
20
20
|
nav > ul > li > button {
|
|
21
21
|
|
|
22
|
-
color: var(--pwa_nav_button);
|
|
22
|
+
color: var(--pwa_nav_button, grey);
|
|
23
23
|
border: 0;
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 36px;
|
|
@@ -35,7 +35,7 @@ export const navigation = css`
|
|
|
35
35
|
/* Navigation Button - Active */
|
|
36
36
|
nav > ul > li > button[on] {
|
|
37
37
|
|
|
38
|
-
color: var(--pwa_nav_select);
|
|
38
|
+
color: var(--pwa_nav_select, black);
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -14,6 +14,9 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
14
14
|
/** @attr photo */
|
|
15
15
|
@property() public photo : string | void | any = '';
|
|
16
16
|
|
|
17
|
+
/** @attr emptyArtwork */
|
|
18
|
+
@property({type: String, reflect: true}) public emptyArtwork = '';
|
|
19
|
+
|
|
17
20
|
@state() private user : string | void = '';
|
|
18
21
|
@state() private login : boolean = false;
|
|
19
22
|
//@state() private uploadProgress = 0;
|
|
@@ -122,7 +125,7 @@ export class ContactPhoto extends connect(store)(LitElement) {
|
|
|
122
125
|
margin: auto;
|
|
123
126
|
height: 200px;
|
|
124
127
|
width: 100%;
|
|
125
|
-
background-image: url(${this.photo});
|
|
128
|
+
background-image: url(${this.photo ? this.photo : this.emptyArtwork});
|
|
126
129
|
background-size: contain;
|
|
127
130
|
background-repeat: no-repeat;
|
|
128
131
|
background-position: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, html, LitElement } from 'lit';
|
|
2
|
-
import { state, customElement } from 'lit/decorators.js';
|
|
2
|
+
import { state, customElement, property } from 'lit/decorators.js';
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js';
|
|
4
4
|
import { store, AppState } from '../../store';
|
|
5
5
|
import { navigateAuth } from '../../redux/frontend';
|
|
@@ -14,6 +14,9 @@ import { listStyle } from '../../css/form/list';
|
|
|
14
14
|
@customElement('user-settings')
|
|
15
15
|
export class UserSettings extends connect(store)(LitElement) {
|
|
16
16
|
|
|
17
|
+
/** @attr emptyArtwork */
|
|
18
|
+
@property({type: String, reflect: true}) public emptyArtwork = '';
|
|
19
|
+
|
|
17
20
|
@state() private profileTopic = '';
|
|
18
21
|
@state() private name = '';
|
|
19
22
|
|
|
@@ -62,7 +65,7 @@ export class UserSettings extends connect(store)(LitElement) {
|
|
|
62
65
|
/* Button Padding for Border Outline */
|
|
63
66
|
:host {
|
|
64
67
|
display: grid;
|
|
65
|
-
background-color: var(--pwa_settings_background);
|
|
68
|
+
background-color: var(--pwa_settings_background, white);
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
/* Page Form */
|
|
@@ -76,12 +79,12 @@ export class UserSettings extends connect(store)(LitElement) {
|
|
|
76
79
|
.pageTitle { margin: 0; }
|
|
77
80
|
|
|
78
81
|
h2 {
|
|
79
|
-
color: var(--pwa_section_header);
|
|
82
|
+
color: var(--pwa_section_header, black);
|
|
80
83
|
text-align: center;
|
|
81
84
|
text-shadow: 1px 1px 2px black, 0 0 15px grey, 0 0 5px #fff;
|
|
82
85
|
|
|
83
|
-
border-top: 2px solid var(--pwa_divider);
|
|
84
|
-
border-bottom: 2px solid var(--pwa_divider);
|
|
86
|
+
border-top: 2px solid var(--pwa_divider, black);
|
|
87
|
+
border-bottom: 2px solid var(--pwa_divider, black);
|
|
85
88
|
|
|
86
89
|
margin: 0;
|
|
87
90
|
padding: 8px 0;
|
|
@@ -144,7 +147,7 @@ export class UserSettings extends connect(store)(LitElement) {
|
|
|
144
147
|
<h2>${this.name}</h2>
|
|
145
148
|
|
|
146
149
|
<!-- Custom Image Element - Display / Upload -->
|
|
147
|
-
<contact-photo></contact-photo>
|
|
150
|
+
<contact-photo emptyArtwork="${this.emptyArtwork}"></contact-photo>
|
|
148
151
|
|
|
149
152
|
</section>
|
|
150
153
|
|
package/source/firebase/start.ts
CHANGED
|
@@ -99,15 +99,15 @@ onAuthStateChanged(auth, (user) => {
|
|
|
99
99
|
// Backend Data Redux - Firebase User Information - account redux
|
|
100
100
|
store.dispatch( accID ( user.uid ) );
|
|
101
101
|
store.dispatch( accName ( user.displayName || 'John Doe' ) );
|
|
102
|
-
store.dispatch( accEmail ( user.email || '
|
|
103
|
-
store.dispatch( accImage ( user.photoURL || '
|
|
102
|
+
store.dispatch( accEmail ( user.email || '' ) );
|
|
103
|
+
store.dispatch( accImage ( user.photoURL || '' ) );
|
|
104
104
|
|
|
105
105
|
// store.dispatch( accPhone ( user.phoneNumber || '(000) 000-0000' ) );
|
|
106
106
|
// store.dispatch( accAnon ( user.isAnonymous ) );
|
|
107
107
|
|
|
108
108
|
// Frontend Data Redux - Firebase User Information - user redux
|
|
109
109
|
store.dispatch( nameAuth ( user.displayName || 'John Doe' ) );
|
|
110
|
-
store.dispatch( iconAuth ( user.photoURL || '
|
|
110
|
+
store.dispatch( iconAuth ( user.photoURL || '' ) );
|
|
111
111
|
|
|
112
112
|
// Email Change Listener - Custom Event
|
|
113
113
|
if (pendingEmailVerification && !user.emailVerified) {
|
|
@@ -145,15 +145,15 @@ onAuthStateChanged(auth, (user) => {
|
|
|
145
145
|
// Backend Data Redux - Firebase User Information - account redux
|
|
146
146
|
store.dispatch( accID ( '' ) );
|
|
147
147
|
store.dispatch( accName ( 'John Doe' ) );
|
|
148
|
-
store.dispatch( accEmail ( '
|
|
149
|
-
store.dispatch( accImage ( '
|
|
148
|
+
store.dispatch( accEmail ( '' ) );
|
|
149
|
+
store.dispatch( accImage ( '' ) );
|
|
150
150
|
|
|
151
151
|
// store.dispatch( accAnon ( false ) );
|
|
152
152
|
// store.dispatch( accPhone ( '(000) 000-0000' ) );
|
|
153
153
|
|
|
154
154
|
// Frontend Data Redux - Firebase User Information - user redux
|
|
155
155
|
store.dispatch( nameAuth ( 'John Doe' ) );
|
|
156
|
-
store.dispatch( iconAuth ( '
|
|
156
|
+
store.dispatch( iconAuth ( '' ) );
|
|
157
157
|
|
|
158
158
|
// Dispatch Information
|
|
159
159
|
|
package/source/redux/frontend.ts
CHANGED
|
@@ -23,7 +23,7 @@ export const initialState: frontendAuth = {
|
|
|
23
23
|
profileChoice: 'unChosen', // Profile Initialization State
|
|
24
24
|
|
|
25
25
|
name: 'Modern Business', // Customer Name Loaded
|
|
26
|
-
photoURL: '
|
|
26
|
+
photoURL: '', // User Photo Loaded
|
|
27
27
|
|
|
28
28
|
phone: '(...) ... - ....', // User Phone Loaded
|
|
29
29
|
email: '' // User E-mail Loaded
|
package/website/index.html
CHANGED
|
@@ -16,8 +16,16 @@
|
|
|
16
16
|
<link rel="preconnect" href="https://firebasestorage.googleapis.com">
|
|
17
17
|
<link rel="dns-prefetch" href="https://firebasestorage.googleapis.com">
|
|
18
18
|
|
|
19
|
-
<link rel="stylesheet" href="
|
|
20
|
-
<link rel="stylesheet" href="/pwa-styles.css">
|
|
19
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
20
|
+
<!-- <link rel="stylesheet" href="css/pwa-styles.css"> -->
|
|
21
|
+
|
|
22
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KTJW8JLCE5"></script>
|
|
23
|
+
<script>
|
|
24
|
+
window.dataLayer = window.dataLayer || [];
|
|
25
|
+
function gtag(){dataLayer.push(arguments);}
|
|
26
|
+
gtag('js', new Date());
|
|
27
|
+
gtag('config', 'G-KTJW8JLCE5');
|
|
28
|
+
</script>
|
|
21
29
|
|
|
22
30
|
<script>
|
|
23
31
|
window.process = { env: { NODE_ENV: 'production' } };
|
|
@@ -39,15 +47,15 @@
|
|
|
39
47
|
|
|
40
48
|
<header>
|
|
41
49
|
<!-- Icon Tag -->
|
|
42
|
-
<user-icon subscribe></user-icon>
|
|
50
|
+
<user-icon subscribe emptyArtwork="images/empty.jpg"></user-icon>
|
|
43
51
|
</header>
|
|
44
52
|
|
|
45
53
|
<!-- Drawer Tag-->
|
|
46
|
-
<user-drawer subscribe settingsURL="
|
|
54
|
+
<user-drawer subscribe settingsURL="settings"></user-drawer>
|
|
47
55
|
|
|
48
56
|
<main>
|
|
49
57
|
<!-- Settings Tag-->
|
|
50
|
-
<user-settings></user-settings>
|
|
58
|
+
<user-settings emptyArtwork="images/empty.jpg"></user-settings>
|
|
51
59
|
</main>
|
|
52
60
|
|
|
53
61
|
<footer>
|
|
@@ -58,7 +66,7 @@
|
|
|
58
66
|
</footer>
|
|
59
67
|
|
|
60
68
|
<!-- Application Shell -->
|
|
61
|
-
<script src="
|
|
69
|
+
<script src="js/pwa-auth.js" async></script>
|
|
62
70
|
|
|
63
71
|
</body>
|
|
64
72
|
</html>
|