pwa-auth 3.4.8 → 3.5.1
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/LICENSES.txt +36 -15
- package/README.md +547 -311
- package/base/api/drawer.d.ts +4 -0
- package/base/api/drawer.d.ts.map +1 -0
- package/base/api/drawer.js +12 -0
- package/base/api/drawer.js.map +1 -0
- package/base/api/user.d.ts +4 -0
- package/base/api/user.d.ts.map +1 -0
- package/base/api/user.js +25 -0
- package/base/api/user.js.map +1 -0
- package/base/api/verify.d.ts +4 -0
- package/base/api/verify.d.ts.map +1 -0
- package/base/api/verify.js +113 -0
- package/base/api/verify.js.map +1 -0
- package/base/deprecated/email-changed.d.ts +5 -0
- package/base/deprecated/email-changed.d.ts.map +1 -0
- package/base/deprecated/email-changed.js +9 -0
- package/base/deprecated/email-changed.js.map +1 -0
- package/base/events/emit.d.ts +12 -0
- package/base/events/emit.d.ts.map +1 -0
- package/base/events/emit.js +30 -0
- package/base/events/emit.js.map +1 -0
- package/base/events/names.d.ts +31 -0
- package/base/events/names.d.ts.map +1 -0
- package/base/events/names.js +31 -0
- package/base/events/names.js.map +1 -0
- package/base/events/types.d.ts +71 -0
- package/base/events/types.d.ts.map +1 -0
- package/base/events/types.js +2 -0
- package/base/events/types.js.map +1 -0
- package/base/export/pwa-auth.d.ts +17 -7
- package/base/export/pwa-auth.d.ts.map +1 -0
- package/base/export/pwa-auth.js +13 -7
- package/base/export/pwa-auth.js.map +1 -1
- package/base/firebase/attribute.d.ts +2 -0
- package/base/firebase/attribute.d.ts.map +1 -0
- package/base/firebase/attribute.js +17 -0
- package/base/firebase/attribute.js.map +1 -0
- package/base/firebase/authentication.d.ts +21 -10
- package/base/firebase/authentication.d.ts.map +1 -0
- package/base/firebase/authentication.js +65 -8
- package/base/firebase/authentication.js.map +1 -1
- package/base/firebase/interface.d.ts +7 -1
- package/base/firebase/interface.d.ts.map +1 -0
- package/base/firebase/interface.js +99 -68
- package/base/firebase/interface.js.map +1 -1
- package/base/firebase/message.d.ts +2 -0
- package/base/firebase/message.d.ts.map +1 -0
- package/base/firebase/message.js +34 -0
- package/base/firebase/message.js.map +1 -0
- package/base/firebase/password.d.ts +11 -0
- package/base/firebase/password.d.ts.map +1 -0
- package/base/firebase/password.js +16 -0
- package/base/firebase/password.js.map +1 -0
- package/base/lazyLoader.d.ts +1 -0
- package/base/lazyLoader.d.ts.map +1 -0
- package/base/redux/backend.d.ts +1 -0
- package/base/redux/backend.d.ts.map +1 -0
- package/base/redux/backend.js +1 -1
- package/base/redux/backend.js.map +1 -1
- package/base/redux/frontend.d.ts +16 -1
- package/base/redux/frontend.d.ts.map +1 -0
- package/base/redux/frontend.js +6 -3
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +1 -6
- package/base/store.d.ts.map +1 -0
- package/base/store.js +2 -4
- package/base/store.js.map +1 -1
- package/base/webcomponents/css/animation.d.ts +1 -0
- package/base/webcomponents/css/animation.d.ts.map +1 -0
- package/base/webcomponents/css/animation.js +79 -67
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/css/svg.d.ts +1 -2
- package/base/webcomponents/css/svg.d.ts.map +1 -0
- package/base/webcomponents/css/svg.js +2 -4
- package/base/webcomponents/css/svg.js.map +1 -1
- package/base/webcomponents/css/tap.d.ts +3 -0
- package/base/webcomponents/css/tap.d.ts.map +1 -0
- package/base/webcomponents/css/tap.js +9 -0
- package/base/webcomponents/css/tap.js.map +1 -0
- package/base/webcomponents/css/toggle.d.ts +1 -0
- package/base/webcomponents/css/toggle.d.ts.map +1 -0
- package/base/webcomponents/css/toggle.js +5 -5
- package/base/webcomponents/drawer/css/drawer.d.ts +1 -0
- package/base/webcomponents/drawer/css/drawer.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/drawer.js +101 -74
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.d.ts +1 -0
- package/base/webcomponents/drawer/css/exit.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/exit.js +58 -52
- package/base/webcomponents/drawer/css/exit.js.map +1 -1
- package/base/webcomponents/drawer/css/link.d.ts +1 -0
- package/base/webcomponents/drawer/css/link.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/link.js +9 -10
- package/base/webcomponents/drawer/css/link.js.map +1 -1
- package/base/webcomponents/drawer/css/paragraph.d.ts +1 -0
- package/base/webcomponents/drawer/css/paragraph.d.ts.map +1 -0
- package/base/webcomponents/drawer/css/paragraph.js +37 -20
- package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +21 -7
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -0
- package/base/webcomponents/drawer/drawer.js +292 -90
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/drawer/keys.d.ts +4 -0
- package/base/webcomponents/drawer/keys.d.ts.map +1 -0
- package/base/webcomponents/drawer/keys.js +57 -0
- package/base/webcomponents/drawer/keys.js.map +1 -0
- package/base/webcomponents/form/css/button.d.ts +1 -0
- package/base/webcomponents/form/css/button.d.ts.map +1 -0
- package/base/webcomponents/form/css/button.js +69 -51
- package/base/webcomponents/form/css/button.js.map +1 -1
- package/base/webcomponents/form/css/input.d.ts +1 -0
- package/base/webcomponents/form/css/input.d.ts.map +1 -0
- package/base/webcomponents/form/css/input.js +22 -21
- package/base/webcomponents/form/css/input.js.map +1 -1
- package/base/webcomponents/form/css/label.d.ts +1 -0
- package/base/webcomponents/form/css/label.d.ts.map +1 -0
- package/base/webcomponents/form/css/label.js +22 -21
- package/base/webcomponents/form/css/label.js.map +1 -1
- package/base/webcomponents/form/css/list.d.ts +1 -0
- package/base/webcomponents/form/css/list.d.ts.map +1 -0
- package/base/webcomponents/form/css/list.js +19 -19
- package/base/webcomponents/form/css/notice.d.ts +3 -0
- package/base/webcomponents/form/css/notice.d.ts.map +1 -0
- package/base/webcomponents/form/css/notice.js +20 -0
- package/base/webcomponents/form/css/notice.js.map +1 -0
- package/base/webcomponents/form/css/status.d.ts +4 -0
- package/base/webcomponents/form/css/status.d.ts.map +1 -0
- package/base/webcomponents/form/css/status.js +44 -0
- package/base/webcomponents/form/css/status.js.map +1 -0
- package/base/webcomponents/form/css/toggle.d.ts +1 -0
- package/base/webcomponents/form/css/toggle.d.ts.map +1 -0
- package/base/webcomponents/form/css/toggle.js +43 -17
- package/base/webcomponents/form/css/toggle.js.map +1 -1
- package/base/webcomponents/form/draft.d.ts +5 -0
- package/base/webcomponents/form/draft.d.ts.map +1 -0
- package/base/webcomponents/form/draft.js +22 -0
- package/base/webcomponents/form/draft.js.map +1 -0
- package/base/webcomponents/form/forgot.d.ts +26 -3
- package/base/webcomponents/form/forgot.d.ts.map +1 -0
- package/base/webcomponents/form/forgot.js +297 -30
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/letters.d.ts +3 -0
- package/base/webcomponents/form/letters.d.ts.map +1 -0
- package/base/webcomponents/form/letters.js +21 -0
- package/base/webcomponents/form/letters.js.map +1 -0
- package/base/webcomponents/form/login.d.ts +10 -0
- package/base/webcomponents/form/login.d.ts.map +1 -0
- package/base/webcomponents/form/login.js +221 -89
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/notice.d.ts +4 -0
- package/base/webcomponents/form/notice.d.ts.map +1 -0
- package/base/webcomponents/form/notice.js +14 -0
- package/base/webcomponents/form/notice.js.map +1 -0
- package/base/webcomponents/form/reveal.d.ts +3 -0
- package/base/webcomponents/form/reveal.d.ts.map +1 -0
- package/base/webcomponents/form/reveal.js +14 -0
- package/base/webcomponents/form/reveal.js.map +1 -0
- package/base/webcomponents/form/signup.d.ts +8 -0
- package/base/webcomponents/form/signup.d.ts.map +1 -0
- package/base/webcomponents/form/signup.js +201 -100
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/form/verified.d.ts +3 -0
- package/base/webcomponents/form/verified.d.ts.map +1 -0
- package/base/webcomponents/form/verified.js +45 -0
- package/base/webcomponents/form/verified.js.map +1 -0
- package/base/webcomponents/icon/css/icon.d.ts +1 -0
- package/base/webcomponents/icon/css/icon.d.ts.map +1 -0
- package/base/webcomponents/icon/css/icon.js +63 -49
- package/base/webcomponents/icon/css/icon.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +6 -4
- package/base/webcomponents/icon/icon.d.ts.map +1 -0
- package/base/webcomponents/icon/icon.js +48 -27
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +1 -0
- package/base/webcomponents/login/css/auth.d.ts.map +1 -0
- package/base/webcomponents/login/css/auth.js +37 -36
- package/base/webcomponents/login/css/auth.js.map +1 -1
- package/base/webcomponents/login/css/link.d.ts +1 -0
- package/base/webcomponents/login/css/link.d.ts.map +1 -0
- package/base/webcomponents/login/css/link.js +9 -10
- package/base/webcomponents/login/css/link.js.map +1 -1
- package/base/webcomponents/login/css/paragraph.d.ts +1 -0
- package/base/webcomponents/login/css/paragraph.d.ts.map +1 -0
- package/base/webcomponents/login/css/paragraph.js +8 -8
- package/base/webcomponents/login/page.d.ts +10 -6
- package/base/webcomponents/login/page.d.ts.map +1 -0
- package/base/webcomponents/login/page.js +96 -55
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/css/navigation.d.ts +1 -0
- package/base/webcomponents/settings/css/navigation.d.ts.map +1 -0
- package/base/webcomponents/settings/css/navigation.js +78 -68
- package/base/webcomponents/settings/css/navigation.js.map +1 -1
- package/base/webcomponents/settings/input/delete.d.ts +7 -6
- package/base/webcomponents/settings/input/delete.d.ts.map +1 -0
- package/base/webcomponents/settings/input/delete.js +135 -47
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +7 -5
- package/base/webcomponents/settings/input/email.d.ts.map +1 -0
- package/base/webcomponents/settings/input/email.js +155 -50
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +8 -5
- package/base/webcomponents/settings/input/name.d.ts.map +1 -0
- package/base/webcomponents/settings/input/name.js +116 -53
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +8 -5
- package/base/webcomponents/settings/input/password.d.ts.map +1 -0
- package/base/webcomponents/settings/input/password.js +200 -103
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +8 -6
- package/base/webcomponents/settings/input/uploader.d.ts.map +1 -0
- package/base/webcomponents/settings/input/uploader.js +209 -170
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/input/verify.d.ts +64 -0
- package/base/webcomponents/settings/input/verify.d.ts.map +1 -0
- package/base/webcomponents/settings/input/verify.js +272 -0
- package/base/webcomponents/settings/input/verify.js.map +1 -0
- package/base/webcomponents/settings/settings.d.ts +15 -10
- package/base/webcomponents/settings/settings.d.ts.map +1 -0
- package/base/webcomponents/settings/settings.js +226 -146
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/firebase.md +107 -0
- package/intro.md +19 -0
- package/license +21 -21
- package/package.json +116 -85
- package/source/pwa-auth.js +1097 -404
- package/source/pwa-styles.css +50 -68
- package/base/redux/drawer.d.ts +0 -17
- package/base/redux/drawer.js +0 -22
- package/base/redux/drawer.js.map +0 -1
- package/demonstration/index.html +0 -99
- package/demonstration/pwa-styles.css +0 -77
- package/demonstration/styles.css +0 -77
- package/source/THIRD_PARTY_LICENSES.txt +0 -303
|
@@ -9,200 +9,227 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { html, css, LitElement } from 'lit';
|
|
11
11
|
import { property, state } from 'lit/decorators.js';
|
|
12
|
-
import { store } from '../../../store';
|
|
12
|
+
import { store } from '../../../store.js';
|
|
13
13
|
import { connect } from 'pwa-helpers';
|
|
14
|
-
import { auth, storage
|
|
14
|
+
import { auth, storage } from '../../../firebase/authentication.js';
|
|
15
15
|
import { updateProfile } from 'firebase/auth';
|
|
16
|
-
import { accImage } from '../../../redux/backend';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { accImage } from '../../../redux/backend.js';
|
|
17
|
+
import { iconAuth } from '../../../redux/frontend.js';
|
|
18
|
+
import { ref, getDownloadURL, uploadBytesResumable } from "firebase/storage";
|
|
19
|
+
import { labelStyle } from '../../form/css/label.js';
|
|
20
|
+
import { statusStyle, liveStatus } from '../../form/css/status.js';
|
|
21
|
+
import { lettersFor } from '../../form/letters.js';
|
|
22
|
+
import { pwaAuthError, pwaProfileUpdated } from '../../../events/names.js';
|
|
23
|
+
import { emitWindow, toAuthError } from '../../../events/emit.js';
|
|
24
|
+
import { userMessage } from '../../../firebase/message.js';
|
|
19
25
|
export class ContactPhoto extends connect(store)(LitElement) {
|
|
20
26
|
constructor() {
|
|
21
27
|
super();
|
|
22
28
|
this.photo = '';
|
|
23
29
|
this.emptyArtwork = '';
|
|
24
|
-
this.user = '';
|
|
25
30
|
this.login = false;
|
|
31
|
+
this.person = '';
|
|
32
|
+
this.mail = '';
|
|
26
33
|
this.progress = 0;
|
|
27
34
|
this.error = '';
|
|
28
35
|
this.status = '';
|
|
29
|
-
this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
this.tone = '';
|
|
37
|
+
this.busy = false;
|
|
38
|
+
this.saveImage = (event) => {
|
|
39
|
+
const picked = event.target;
|
|
40
|
+
const file = picked?.files?.[0];
|
|
41
|
+
const current = auth.currentUser;
|
|
42
|
+
this.error = '';
|
|
43
|
+
this.tone = '';
|
|
44
|
+
if (!current) {
|
|
45
|
+
this.fail({ code: 'pwa/signed-out', message: 'Sign in first.' });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (!file) {
|
|
49
|
+
this.fail({ code: 'pwa/missing-file', message: 'Choose a photo first.' });
|
|
50
|
+
return;
|
|
33
51
|
}
|
|
52
|
+
this.busy = true;
|
|
53
|
+
this.progress = 0;
|
|
54
|
+
this.status = 'Uploading…';
|
|
55
|
+
const location = ref(storage, 'pwa-auth/' + current.uid + '/' + file.name);
|
|
56
|
+
const metadata = {
|
|
57
|
+
cacheControl: 'public,max-age=300',
|
|
58
|
+
contentType: file.type || 'application/octet-stream'
|
|
59
|
+
};
|
|
60
|
+
const uploadTask = uploadBytesResumable(location, file, metadata);
|
|
61
|
+
uploadTask.on('state_changed', (snapshot) => {
|
|
62
|
+
const ratio = snapshot.totalBytes > 0 ? (snapshot.bytesTransferred / snapshot.totalBytes) * 100 : 0;
|
|
63
|
+
this.progress = isFinite(ratio) ? ratio : 0;
|
|
64
|
+
if (snapshot.state === 'paused')
|
|
65
|
+
this.status = 'Upload is paused';
|
|
66
|
+
else
|
|
67
|
+
this.status = `Uploading… ${Math.round(this.progress)}%`;
|
|
68
|
+
}, (error) => {
|
|
69
|
+
this.busy = false;
|
|
70
|
+
this.progress = 0;
|
|
71
|
+
this.fail(error);
|
|
72
|
+
}, async () => {
|
|
73
|
+
try {
|
|
74
|
+
const url = await getDownloadURL(uploadTask.snapshot.ref);
|
|
75
|
+
const signed = auth.currentUser;
|
|
76
|
+
if (!signed) {
|
|
77
|
+
this.fail({ code: 'pwa/signed-out', message: 'Sign in first.' });
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
await updateProfile(signed, { photoURL: url });
|
|
81
|
+
store.dispatch(accImage(url));
|
|
82
|
+
store.dispatch(iconAuth(url));
|
|
83
|
+
this.photo = url;
|
|
84
|
+
this.progress = 100;
|
|
85
|
+
this.tone = '';
|
|
86
|
+
this.error = '';
|
|
87
|
+
this.status = 'Photo saved.';
|
|
88
|
+
emitWindow(pwaProfileUpdated, {
|
|
89
|
+
uid: signed.uid,
|
|
90
|
+
displayName: signed.displayName,
|
|
91
|
+
photoURL: url
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
this.fail(error);
|
|
96
|
+
}
|
|
97
|
+
finally {
|
|
98
|
+
this.busy = false;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
34
101
|
};
|
|
35
|
-
this.progress = 0;
|
|
36
|
-
this.error = '';
|
|
37
|
-
this.status = '';
|
|
38
102
|
}
|
|
39
103
|
stateChanged(state) {
|
|
40
104
|
this.login = state.frontend.login;
|
|
41
|
-
this.user = state.backend.userId;
|
|
42
105
|
this.photo = state.backend.photoURL;
|
|
106
|
+
this.person = state.backend.name;
|
|
107
|
+
this.mail = state.backend.email;
|
|
43
108
|
}
|
|
44
109
|
static get styles() {
|
|
45
110
|
return [
|
|
46
111
|
labelStyle,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
grid
|
|
54
|
-
grid-
|
|
55
|
-
grid-template-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
112
|
+
statusStyle,
|
|
113
|
+
css `
|
|
114
|
+
|
|
115
|
+
:host {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
-webkit-box-sizing: border-box;
|
|
118
|
+
display: grid;
|
|
119
|
+
grid-gap: 16px;
|
|
120
|
+
grid-template-rows: auto auto auto;
|
|
121
|
+
grid-template-columns: 1fr;
|
|
122
|
+
width: 100%;
|
|
123
|
+
align-content: start;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
input[type=file] {
|
|
127
|
+
border-radius: 50%;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
margin: auto;
|
|
130
|
+
border: 2px solid #303030;
|
|
131
|
+
box-shadow: 1px 1px 2px black, 0 0 25px grey, 0 0 5px #fff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
img.preview,
|
|
135
|
+
.mark {
|
|
136
|
+
margin: auto;
|
|
137
|
+
height: 200px;
|
|
138
|
+
width: 100%;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
display: block;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
img.preview {
|
|
144
|
+
object-fit: contain;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.mark {
|
|
148
|
+
display: grid;
|
|
149
|
+
place-items: center;
|
|
150
|
+
font-size: 3rem;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
letter-spacing: 0.04em;
|
|
153
|
+
color: var(--pwa_action_background_color, #2a6b45);
|
|
154
|
+
background: var(--pwa_nav_on_background, #f3efe6);
|
|
155
|
+
}
|
|
156
|
+
|
|
67
157
|
`
|
|
68
158
|
];
|
|
69
159
|
}
|
|
160
|
+
letters() {
|
|
161
|
+
return lettersFor(this.person, this.mail);
|
|
162
|
+
}
|
|
70
163
|
render() {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
border:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
">
|
|
132
|
-
</canvas>
|
|
133
|
-
|
|
134
|
-
</label>
|
|
135
|
-
|
|
136
|
-
<p style="text-align:center;">${this.status}${this.error}</p>
|
|
164
|
+
const letters = this.letters();
|
|
165
|
+
const photo = typeof this.photo === 'string' ? this.photo : '';
|
|
166
|
+
return html `
|
|
167
|
+
<label
|
|
168
|
+
style="
|
|
169
|
+
display: grid;
|
|
170
|
+
grid-template-columns: auto 1fr;
|
|
171
|
+
grid-gap: 16px;
|
|
172
|
+
padding: 0 16px;
|
|
173
|
+
">Upload
|
|
174
|
+
<progress
|
|
175
|
+
id="pwa-uploader"
|
|
176
|
+
class="uploader"
|
|
177
|
+
part="progress"
|
|
178
|
+
value="${this.progress}"
|
|
179
|
+
max="100"
|
|
180
|
+
aria-label="Upload progress"
|
|
181
|
+
style="
|
|
182
|
+
height: 24px;
|
|
183
|
+
width: 100%;
|
|
184
|
+
margin: auto;
|
|
185
|
+
"></progress>
|
|
186
|
+
</label>
|
|
187
|
+
|
|
188
|
+
<input
|
|
189
|
+
id="photoURL"
|
|
190
|
+
type="file"
|
|
191
|
+
name="photoURL"
|
|
192
|
+
part="file"
|
|
193
|
+
class="contractorPhoto"
|
|
194
|
+
accept="image/*"
|
|
195
|
+
aria-label="Choose a photo"
|
|
196
|
+
@change="${this.saveImage}"
|
|
197
|
+
?disabled="${this.login === false || this.busy}"
|
|
198
|
+
style="display: none;" />
|
|
199
|
+
|
|
200
|
+
<label
|
|
201
|
+
style="
|
|
202
|
+
border: 1px dashed var(--pwa_line_color, #e3daca);
|
|
203
|
+
border-radius: 12px;
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
margin: 0 16px;
|
|
206
|
+
padding: 0 16px 16px 16px;
|
|
207
|
+
"
|
|
208
|
+
for ="photoURL"
|
|
209
|
+
part="preview">Photo:
|
|
210
|
+
|
|
211
|
+
${photo ? html `
|
|
212
|
+
<img class="preview" alt="" src="${photo}">
|
|
213
|
+
` : letters ? html `
|
|
214
|
+
<span class="mark" part="initials" aria-hidden="true">${letters}</span>
|
|
215
|
+
` : this.emptyArtwork ? html `
|
|
216
|
+
<img class="preview" alt="" src="${this.emptyArtwork}">
|
|
217
|
+
` : html `
|
|
218
|
+
<span class="mark" part="initials" aria-hidden="true">?</span>
|
|
219
|
+
`}
|
|
220
|
+
|
|
221
|
+
</label>
|
|
222
|
+
|
|
223
|
+
${liveStatus('pwa-photo-status', this.error || this.status, this.tone)}
|
|
137
224
|
`;
|
|
138
225
|
}
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
console.error('No file selected');
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
const location = ref(storage, "/" +
|
|
150
|
-
"pwa-auth" +
|
|
151
|
-
"/" +
|
|
152
|
-
this.user +
|
|
153
|
-
"/" +
|
|
154
|
-
file.files[0].name);
|
|
155
|
-
const newMetadata = {
|
|
156
|
-
cacheControl: 'public,max-age=300',
|
|
157
|
-
contentType: file.files[0].type
|
|
158
|
-
};
|
|
159
|
-
const uploadTask = uploadBytesResumable(location, file.files[0], newMetadata);
|
|
160
|
-
uploadTask.on('state_changed', (snapshot) => {
|
|
161
|
-
this.progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100;
|
|
162
|
-
this.status = `Upload is ${Math.round(this.progress)}% done`;
|
|
163
|
-
switch (snapshot.state) {
|
|
164
|
-
case 'paused':
|
|
165
|
-
this.status = 'Upload is paused';
|
|
166
|
-
break;
|
|
167
|
-
case 'running':
|
|
168
|
-
this.status = `Upload is running (${Math.round(this.progress)}%)`;
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
let progress = 0;
|
|
172
|
-
if (snapshot.totalBytes > 0) {
|
|
173
|
-
progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100;
|
|
174
|
-
}
|
|
175
|
-
if (isFinite(progress)) {
|
|
176
|
-
uploader.value = progress;
|
|
177
|
-
uploader.textContent = `${Math.round(progress)}%`;
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
uploader.value = 0;
|
|
181
|
-
uploader.textContent = '0%';
|
|
182
|
-
}
|
|
183
|
-
}, (error) => {
|
|
184
|
-
this.error = `Upload failed: ${error.message}`;
|
|
185
|
-
this.status = '';
|
|
186
|
-
console.error('Upload failed:', error);
|
|
187
|
-
uploader.value = 0;
|
|
188
|
-
uploader.textContent = 'Error';
|
|
189
|
-
}, async () => {
|
|
190
|
-
await getDownloadURL(uploadTask.snapshot.ref)
|
|
191
|
-
.then((url) => {
|
|
192
|
-
updateMetadata(location, newMetadata)
|
|
193
|
-
.then(() => { }).catch((error) => { console.log("error: ", error); });
|
|
194
|
-
if (user) {
|
|
195
|
-
updateProfile(user, { photoURL: url })
|
|
196
|
-
.then(() => {
|
|
197
|
-
uploader.value = 100;
|
|
198
|
-
uploader.textContent = 'Complete';
|
|
199
|
-
});
|
|
200
|
-
this.status = 'User profile updated successfully!';
|
|
201
|
-
this.dispatchPhoto(url);
|
|
202
|
-
}
|
|
203
|
-
}).catch(() => { });
|
|
204
|
-
});
|
|
205
|
-
}
|
|
226
|
+
fail(error) {
|
|
227
|
+
const plain = typeof error === 'object' && error !== null && 'code' in error && 'message' in error && !(error instanceof Error);
|
|
228
|
+
const detail = plain ? error : toAuthError(error);
|
|
229
|
+
this.tone = 'error';
|
|
230
|
+
this.error = userMessage(detail);
|
|
231
|
+
this.status = '';
|
|
232
|
+
emitWindow(pwaAuthError, detail);
|
|
206
233
|
}
|
|
207
234
|
}
|
|
208
235
|
__decorate([
|
|
@@ -213,14 +240,18 @@ __decorate([
|
|
|
213
240
|
property({ type: String, reflect: true }),
|
|
214
241
|
__metadata("design:type", Object)
|
|
215
242
|
], ContactPhoto.prototype, "emptyArtwork", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
state(),
|
|
245
|
+
__metadata("design:type", Boolean)
|
|
246
|
+
], ContactPhoto.prototype, "login", void 0);
|
|
216
247
|
__decorate([
|
|
217
248
|
state(),
|
|
218
249
|
__metadata("design:type", Object)
|
|
219
|
-
], ContactPhoto.prototype, "
|
|
250
|
+
], ContactPhoto.prototype, "person", void 0);
|
|
220
251
|
__decorate([
|
|
221
252
|
state(),
|
|
222
|
-
__metadata("design:type",
|
|
223
|
-
], ContactPhoto.prototype, "
|
|
253
|
+
__metadata("design:type", Object)
|
|
254
|
+
], ContactPhoto.prototype, "mail", void 0);
|
|
224
255
|
__decorate([
|
|
225
256
|
state(),
|
|
226
257
|
__metadata("design:type", Number)
|
|
@@ -233,5 +264,13 @@ __decorate([
|
|
|
233
264
|
state(),
|
|
234
265
|
__metadata("design:type", String)
|
|
235
266
|
], ContactPhoto.prototype, "status", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
state(),
|
|
269
|
+
__metadata("design:type", String)
|
|
270
|
+
], ContactPhoto.prototype, "tone", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
state(),
|
|
273
|
+
__metadata("design:type", Object)
|
|
274
|
+
], ContactPhoto.prototype, "busy", void 0);
|
|
236
275
|
customElements.define('contact-photo', ContactPhoto);
|
|
237
276
|
//# sourceMappingURL=uploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAkB,MAAQ,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAY,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAuB,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAkB,qCAAqC,CAAC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A6B;AACpB;IAAhB,KAAK,EAAE;;0CAA2B;AAClB;IAAhB,KAAK,EAAE;;0CAAsB;AA4NhC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CSSResultArray, LitElement } from 'lit';
|
|
2
|
+
import { AppState } from '../../../store.js';
|
|
3
|
+
declare const EmailVerify_base: (new (...args: any[]) => {
|
|
4
|
+
_storeUnsubscribe: import("redux").Unsubscribe;
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
disconnectedCallback(): void;
|
|
7
|
+
stateChanged(_state: {
|
|
8
|
+
frontend: {
|
|
9
|
+
settings: string;
|
|
10
|
+
login: boolean;
|
|
11
|
+
drawer: boolean;
|
|
12
|
+
registerOne: boolean;
|
|
13
|
+
registerTwo: boolean;
|
|
14
|
+
userId: string;
|
|
15
|
+
customer: string;
|
|
16
|
+
profileChoice: string;
|
|
17
|
+
name: string;
|
|
18
|
+
photoURL: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
email: string;
|
|
21
|
+
};
|
|
22
|
+
backend: {
|
|
23
|
+
verified: boolean;
|
|
24
|
+
anon: boolean;
|
|
25
|
+
userId: string;
|
|
26
|
+
name: string;
|
|
27
|
+
email: string;
|
|
28
|
+
photoURL: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
msgToken: string;
|
|
31
|
+
};
|
|
32
|
+
}): void;
|
|
33
|
+
readonly isConnected: boolean;
|
|
34
|
+
}) & typeof LitElement;
|
|
35
|
+
export declare class EmailVerify extends EmailVerify_base {
|
|
36
|
+
private login;
|
|
37
|
+
private verified;
|
|
38
|
+
private email;
|
|
39
|
+
private status;
|
|
40
|
+
private tone;
|
|
41
|
+
private busy;
|
|
42
|
+
private cooldown;
|
|
43
|
+
private timer;
|
|
44
|
+
constructor();
|
|
45
|
+
disconnectedCallback(): void;
|
|
46
|
+
stateChanged(state: AppState): void;
|
|
47
|
+
static get styles(): CSSResultArray;
|
|
48
|
+
private lead;
|
|
49
|
+
private buttonLabel;
|
|
50
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
51
|
+
private resend;
|
|
52
|
+
private showSent;
|
|
53
|
+
private showFirebase;
|
|
54
|
+
private focusStatus;
|
|
55
|
+
private clearWait;
|
|
56
|
+
private armCooldown;
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
'email-verify': EmailVerify;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=verify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5D,OAAc,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAapD,qBAAa,WAAY,SAAQ,gBAA0B;IAEhD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,IAAI,CAAM;IAClB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAK;IAE9B,OAAO,CAAC,KAAK,CAAK;;IAIT,oBAAoB,IAAI,IAAI;IAKrC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAQ5B,MAAM,KAAK,MAAM,IAAI,cAAc,CAoFlC;IAED,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,WAAW;IAMnB,SAAS,CAAC,MAAM;IAqDhB,OAAO,CAAC,MAAM,CAmBZ;IAGF,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,WAAW;CAmBpB;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|