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
|
@@ -19,6 +19,7 @@ declare const UserSettings_base: (new (...args: any[]) => {
|
|
|
19
19
|
readonly isConnected: boolean;
|
|
20
20
|
}) & typeof LitElement;
|
|
21
21
|
export declare class UserSettings extends UserSettings_base {
|
|
22
|
+
emptyArtwork: string;
|
|
22
23
|
private profileTopic;
|
|
23
24
|
private name;
|
|
24
25
|
constructor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../source/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;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../source/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;IAGV,YAAY,SAAM;IAEzD,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"}
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { css, html, LitElement } from 'lit';
|
|
8
|
-
import { state, customElement } from 'lit/decorators.js';
|
|
8
|
+
import { state, customElement, property } from 'lit/decorators.js';
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin.js';
|
|
10
10
|
import { store } from '../../store';
|
|
11
11
|
import { navigateAuth } from '../../redux/frontend';
|
|
@@ -19,6 +19,7 @@ import { listStyle } from '../../css/form/list';
|
|
|
19
19
|
let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
+
this.emptyArtwork = '';
|
|
22
23
|
this.profileTopic = '';
|
|
23
24
|
this.name = '';
|
|
24
25
|
}
|
|
@@ -53,7 +54,7 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
53
54
|
/* Button Padding for Border Outline */
|
|
54
55
|
:host {
|
|
55
56
|
display: grid;
|
|
56
|
-
background-color: var(--pwa_settings_background);
|
|
57
|
+
background-color: var(--pwa_settings_background, white);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/* Page Form */
|
|
@@ -67,12 +68,12 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
67
68
|
.pageTitle { margin: 0; }
|
|
68
69
|
|
|
69
70
|
h2 {
|
|
70
|
-
color: var(--pwa_section_header);
|
|
71
|
+
color: var(--pwa_section_header, black);
|
|
71
72
|
text-align: center;
|
|
72
73
|
text-shadow: 1px 1px 2px black, 0 0 15px grey, 0 0 5px #fff;
|
|
73
74
|
|
|
74
|
-
border-top: 2px solid var(--pwa_divider);
|
|
75
|
-
border-bottom: 2px solid var(--pwa_divider);
|
|
75
|
+
border-top: 2px solid var(--pwa_divider, black);
|
|
76
|
+
border-bottom: 2px solid var(--pwa_divider, black);
|
|
76
77
|
|
|
77
78
|
margin: 0;
|
|
78
79
|
padding: 8px 0;
|
|
@@ -135,7 +136,7 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
135
136
|
<h2>${this.name}</h2>
|
|
136
137
|
|
|
137
138
|
<!-- Custom Image Element - Display / Upload -->
|
|
138
|
-
<contact-photo></contact-photo>
|
|
139
|
+
<contact-photo emptyArtwork="${this.emptyArtwork}"></contact-photo>
|
|
139
140
|
|
|
140
141
|
</section>
|
|
141
142
|
|
|
@@ -181,6 +182,9 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
181
182
|
`;
|
|
182
183
|
}
|
|
183
184
|
};
|
|
185
|
+
__decorate([
|
|
186
|
+
property({ type: String, reflect: true })
|
|
187
|
+
], UserSettings.prototype, "emptyArtwork", void 0);
|
|
184
188
|
__decorate([
|
|
185
189
|
state()
|
|
186
190
|
], UserSettings.prototype, "profileTopic", void 0);
|
package/deploy/firebase/start.js
CHANGED
|
@@ -46,10 +46,10 @@ onAuthStateChanged(auth, (user) => {
|
|
|
46
46
|
store.dispatch(closeSign());
|
|
47
47
|
store.dispatch(accID(user.uid));
|
|
48
48
|
store.dispatch(accName(user.displayName || 'John Doe'));
|
|
49
|
-
store.dispatch(accEmail(user.email || '
|
|
50
|
-
store.dispatch(accImage(user.photoURL || '
|
|
49
|
+
store.dispatch(accEmail(user.email || ''));
|
|
50
|
+
store.dispatch(accImage(user.photoURL || ''));
|
|
51
51
|
store.dispatch(nameAuth(user.displayName || 'John Doe'));
|
|
52
|
-
store.dispatch(iconAuth(user.photoURL || '
|
|
52
|
+
store.dispatch(iconAuth(user.photoURL || ''));
|
|
53
53
|
if (pendingEmailVerification && !user.emailVerified) {
|
|
54
54
|
sendEmailVerification(user)
|
|
55
55
|
.then(() => {
|
|
@@ -72,10 +72,10 @@ onAuthStateChanged(auth, (user) => {
|
|
|
72
72
|
store.dispatch(userAuth(false));
|
|
73
73
|
store.dispatch(accID(''));
|
|
74
74
|
store.dispatch(accName('John Doe'));
|
|
75
|
-
store.dispatch(accEmail('
|
|
76
|
-
store.dispatch(accImage('
|
|
75
|
+
store.dispatch(accEmail(''));
|
|
76
|
+
store.dispatch(accImage(''));
|
|
77
77
|
store.dispatch(nameAuth('John Doe'));
|
|
78
|
-
store.dispatch(iconAuth('
|
|
78
|
+
store.dispatch(iconAuth(''));
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export const logOut = async () => { return signOut(auth); };
|
package/deploy/redux/frontend.js
CHANGED
|
Binary file
|