pwa-auth 3.3.2 → 3.3.4
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 +117 -113
- package/base/store.js.map +1 -1
- package/base/webcomponents/form/css/input.js +1 -1
- package/base/webcomponents/icon/css/icon.js +2 -2
- package/base/webcomponents/login/css/auth.js +1 -1
- package/base/webcomponents/settings/css/navigation.js +3 -3
- package/base/webcomponents/settings/settings.js +3 -3
- package/package.json +8 -1
- package/source/{dev bundle/pwa-auth.js → development/pwa-auth.js} +10 -10
- package/source/development/pwa-auth.js.map +1 -0
- package/source/{production → esm}/pwa-auth.js +10 -10
- package/source/dev bundle/pwa-auth.js.map +0 -1
package/README.md
CHANGED
|
@@ -10,9 +10,31 @@ pwa-auth.js (Authentication Webcomponents) are for anyone who is looking for a q
|
|
|
10
10
|
|
|
11
11
|
You will learn how to place 5 Custom HTML Tags, reference CSS, and How to Initialize an Firebase Instance. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
|
|
12
12
|
|
|
13
|
-
Continue reading to understand how to install
|
|
13
|
+
Continue reading to understand how to install this project:
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Prerequisites
|
|
16
|
+
- Google:
|
|
17
|
+
- Google Analytics
|
|
18
|
+
- Firebase Project
|
|
19
|
+
- Firebase:
|
|
20
|
+
- Authentication - email login
|
|
21
|
+
- Cloud Storage - storage bucket
|
|
22
|
+
|
|
23
|
+
## Technical Summary
|
|
24
|
+
- Type Strong with [TypeScript](https://www.typescriptlang.org)
|
|
25
|
+
- Stylable with [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascading_variables/Using_CSS_custom_properties)
|
|
26
|
+
- State Management with [ReduxJS](https://redux.js.org/)
|
|
27
|
+
- Authentication Google's [Firebase](https://www.firebase.com)
|
|
28
|
+
- Firebase Initialization Object: `window.process = { env: { FIREBASE_CONFIG: `
|
|
29
|
+
|
|
30
|
+
## Prototypes
|
|
31
|
+
- `<user-icon>`
|
|
32
|
+
- `<user-drawer>`
|
|
33
|
+
- `<user-login>`
|
|
34
|
+
- `<user-settings>`
|
|
35
|
+
- `<email-reset>`
|
|
36
|
+
|
|
37
|
+
## Features: Library Logical States
|
|
16
38
|
- Register through Email and Password
|
|
17
39
|
- Log-in
|
|
18
40
|
- Log-out
|
|
@@ -21,10 +43,11 @@ Continue reading to understand how to install the project:
|
|
|
21
43
|
- Change Password
|
|
22
44
|
- Upload Profile Picture
|
|
23
45
|
- Delete Account
|
|
24
|
-
-
|
|
25
|
-
-
|
|
46
|
+
- Development:
|
|
47
|
+
- Global Functions
|
|
48
|
+
- Redux State Connection
|
|
26
49
|
|
|
27
|
-
|
|
50
|
+
## Elements
|
|
28
51
|
- Button:
|
|
29
52
|
- Email Log-in / Email Subscribe / Icon
|
|
30
53
|
- Drop-down Drawer:
|
|
@@ -34,84 +57,77 @@ Continue reading to understand how to install the project:
|
|
|
34
57
|
- Auth: Email Log-in / email Subscribe
|
|
35
58
|
- Password Reset
|
|
36
59
|
|
|
37
|
-
##
|
|
38
|
-
|
|
39
|
-
ECMA Script Modules
|
|
60
|
+
## Project Type: ECMA Script Modules
|
|
61
|
+
Eports: classes and objects
|
|
40
62
|
```javascript
|
|
41
63
|
// Custom HTML Elements
|
|
42
64
|
import 'pwa-auth';
|
|
65
|
+
// <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
66
|
+
// <user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
67
|
+
// <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
43
68
|
|
|
44
69
|
// Firebase Objects
|
|
45
70
|
import { db, storage, auth, user } from 'pwa-auth';
|
|
71
|
+
// db - firestore database reference
|
|
72
|
+
// storage - firebase storage reference
|
|
73
|
+
// auth - user object reference
|
|
74
|
+
// user - active user boolean reference
|
|
75
|
+
|
|
76
|
+
// Firebase-Redux States
|
|
77
|
+
import { store } from 'pwa-auth';
|
|
78
|
+
// store.verified
|
|
79
|
+
// store.userId
|
|
80
|
+
// store.name
|
|
81
|
+
// store.email
|
|
82
|
+
// store.photoURL
|
|
46
83
|
```
|
|
47
84
|
|
|
48
|
-
Global
|
|
85
|
+
## Project Type: Global Namespaces
|
|
49
86
|
```html
|
|
50
87
|
<!-- Optional: Copy the Project Files from 'src' Folder -->
|
|
51
88
|
<script type="module" src="./pwa-auth.js"></script>
|
|
52
89
|
```
|
|
53
90
|
|
|
54
|
-
## Library
|
|
55
|
-
- 5 Tag Placement
|
|
56
|
-
- Color Scheme: CSS Custom Properties
|
|
57
|
-
- Firebase Initialization `window` Object
|
|
58
|
-
|
|
59
91
|
## HTML Webcomponents
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
```html
|
|
93
|
+
<user-icon>
|
|
94
|
+
<!-- property: subscribe: (Initial State): Subscribe -->
|
|
95
|
+
<!-- property: subscribe: else (Initial State): Login -->
|
|
96
|
+
<!-- property; empty: location of empty image -->
|
|
97
|
+
<!-- state: Logged-out: txt: Login Button -->
|
|
98
|
+
<!-- state: Logged-out: txt: Subscribe Button -->
|
|
99
|
+
<!-- state: Logged-in: photo: Icon Button -->
|
|
100
|
+
<user-drawer>
|
|
101
|
+
<!-- feature: Top-down drawer: 1.4 seconds -->
|
|
102
|
+
<!-- property: url: location of <pwa-settings> Tag -->
|
|
103
|
+
<!-- property: subscribe: (Initial State): Subscribe -->
|
|
104
|
+
<!-- property: subscribe: else (Initial State): Login -->
|
|
105
|
+
<!-- state: logged-out: Sign-up by Email Addresses and Password -->
|
|
106
|
+
<!-- state: logged-out: Sign-in by Email Addresses and Password -->
|
|
107
|
+
<!-- state: logged-in: Settings Page Link, Log-out Button -->
|
|
108
|
+
<user-login>
|
|
109
|
+
<!-- feature: regular visible page component -->
|
|
110
|
+
<!-- state: logged-out: Sign-up by Email Addresses and Password -->
|
|
111
|
+
<!-- state: logged-out: Sign-in by Email Addresses and Password -->
|
|
112
|
+
<!-- state: logged-in: content: <slot></slot> -->
|
|
113
|
+
<user-settings>
|
|
114
|
+
<!-- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr -->
|
|
115
|
+
<!-- empty property: location of empty image -->
|
|
116
|
+
<!-- Unavailable Photo -->
|
|
117
|
+
<!-- Update Username -->
|
|
118
|
+
<!-- Update Email / Verify -->
|
|
119
|
+
<!-- Update Password -->
|
|
120
|
+
<!-- Delete Account, Photos, Information -->
|
|
121
|
+
<email-reset>
|
|
122
|
+
<!-- Coming Soon -->
|
|
123
|
+
```
|
|
124
|
+
```css
|
|
125
|
+
:root() { --pwa_design_settings: ... ; }
|
|
90
126
|
- Optional: Custom CSS Properties
|
|
127
|
+
```
|
|
91
128
|
|
|
92
|
-
##
|
|
93
|
-
|
|
94
|
-
- verified, userId, name, email, photoURL
|
|
95
|
-
- db - firestore database reference
|
|
96
|
-
- getFirestore(pwa-env)
|
|
97
|
-
- storage - firebase storage reference
|
|
98
|
-
- getStorage(pwa-env)
|
|
99
|
-
- auth - user object reference
|
|
100
|
-
- getAuth(pwa-env)
|
|
101
|
-
- user - active user boolean reference
|
|
102
|
-
- auth.currentUser
|
|
103
|
-
|
|
104
|
-
## Prerequisites
|
|
105
|
-
- Google:
|
|
106
|
-
- Google Analytics
|
|
107
|
-
- Firebase Project
|
|
108
|
-
|
|
109
|
-
- Firebase:
|
|
110
|
-
- Authentication - email login
|
|
111
|
-
- Cloud Storage - storage bucket
|
|
112
|
-
|
|
113
|
-
## Boilerplate JavaScript
|
|
114
|
-
For simple projects, copy project bundle to disk
|
|
129
|
+
## Boilerplate
|
|
130
|
+
For HTML projects, copy js bundle to disk
|
|
115
131
|
- source/esm/
|
|
116
132
|
- pwa-auth.js
|
|
117
133
|
- pwa-auth.js.map
|
|
@@ -146,19 +162,6 @@ For simple projects, copy project bundle to disk
|
|
|
146
162
|
|
|
147
163
|
</head>
|
|
148
164
|
```
|
|
149
|
-
## Modular Library for Bundlers
|
|
150
|
-
pwa-auth.js exports: classes and objects
|
|
151
|
-
```javascript
|
|
152
|
-
import 'pwa-auth';
|
|
153
|
-
// <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
154
|
-
// <user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
155
|
-
// <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
156
|
-
import { db, storage, auth, user } from 'pwa-auth';
|
|
157
|
-
// db - firestore database reference
|
|
158
|
-
// storage - firebase storage reference
|
|
159
|
-
// auth - user object reference
|
|
160
|
-
// user - active user boolean reference
|
|
161
|
-
```
|
|
162
165
|
|
|
163
166
|
## Implementation - Drawer
|
|
164
167
|
```html
|
|
@@ -195,49 +198,44 @@ import { db, storage, auth, user } from 'pwa-auth';
|
|
|
195
198
|
|
|
196
199
|
## CSS Custom Properties
|
|
197
200
|
```css
|
|
201
|
+
/* <user-icon> --> <button> */
|
|
198
202
|
:root {
|
|
199
|
-
|
|
200
|
-
--
|
|
201
|
-
--pwa_icon_hover: lightgrey;
|
|
203
|
+
--pwa_icon_background_color: #6cc04a;
|
|
204
|
+
--pwa_icon_radius: 6px;
|
|
202
205
|
--pwa_icon_border: 2px solid black;
|
|
203
206
|
--pwa_icon_padding: 0px 16px;
|
|
204
|
-
--
|
|
207
|
+
--pwa_icon_hover_color: lightgrey;
|
|
205
208
|
--pwa_icon_font: 'Arial', sans-serif;
|
|
209
|
+
--pwa_icon_height: 32px; /* state: Logged-out (sync) */
|
|
210
|
+
--pwa_icon_diameter: 32px; /* state: Logged-in (sync) */
|
|
211
|
+
}
|
|
206
212
|
|
|
207
|
-
/* <user-
|
|
208
|
-
|
|
209
|
-
--
|
|
210
|
-
|
|
211
|
-
/* <user-drawer> - Drawer Design */
|
|
213
|
+
/* <user-drawer> */
|
|
214
|
+
:root {
|
|
215
|
+
--pwa_drawer_background_color: #fff;
|
|
216
|
+
--pwa_drawer_border-radius: 20px;
|
|
212
217
|
--pwa_drawer_border: 3px #303030 solid;
|
|
213
218
|
--pwa_drawer_z-index: 2;
|
|
214
|
-
--
|
|
215
|
-
|
|
216
|
-
/* <user-drawer> - Input Design */
|
|
217
|
-
--pwa_drawer_text_color: #303030;
|
|
218
|
-
--pwa_drawer_background_color: #fff;
|
|
219
|
-
|
|
220
|
-
/* <user-settings> - Page Design */
|
|
221
|
-
--section_background: white;
|
|
222
|
-
|
|
223
|
-
/* <user-settings> - Navigation Design */
|
|
224
|
-
--pwa_settings_background: grey;
|
|
225
|
-
--pwa_nav_button: grey;
|
|
226
|
-
--pwa_nav_select: black;
|
|
227
|
-
--pwa_divider: grey;
|
|
228
|
-
--pwa_section_header: black;
|
|
219
|
+
--pwa_drawer_text_color: #303030;
|
|
220
|
+
}
|
|
229
221
|
|
|
230
|
-
/* <user-settings>
|
|
231
|
-
|
|
222
|
+
/* <user-settings> */
|
|
223
|
+
:root {
|
|
224
|
+
--pwa_settings_background_color: grey;
|
|
225
|
+
--pwa_nav_button_color: grey;
|
|
226
|
+
--pwa_nav_highlight_color: black;
|
|
227
|
+
--pwa_divider_color: grey;
|
|
228
|
+
--pwa_header_color: black;
|
|
229
|
+
--pwa_input_background_color: #E1E5EB;
|
|
232
230
|
--pwa_label_text_color: black;
|
|
231
|
+
--pwa_button_text_color: #fff;
|
|
232
|
+
--pwa_button_background_color: #6cc04a;
|
|
233
|
+
--pwa_button_border_color: #60b23e;
|
|
234
|
+
}
|
|
233
235
|
|
|
234
|
-
/*
|
|
235
|
-
|
|
236
|
-
--
|
|
237
|
-
--pwa_action_border_color: #60b23e;
|
|
238
|
-
|
|
239
|
-
/* Section */
|
|
240
|
-
--section_background: white;
|
|
236
|
+
/* shared core elements */
|
|
237
|
+
:root {
|
|
238
|
+
--section_background_color: white;
|
|
241
239
|
}
|
|
242
240
|
```
|
|
243
241
|
|
|
@@ -245,6 +243,12 @@ import { db, storage, auth, user } from 'pwa-auth';
|
|
|
245
243
|
pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
|
|
246
244
|
The entire bundle is one instance of firebase that takes in the configuration information, internally.
|
|
247
245
|
|
|
246
|
+
## Project Bundles
|
|
247
|
+
```javascript
|
|
248
|
+
import './pwa-auth/source/development/pwa-auth';
|
|
249
|
+
import './pwa-auth/source/esm/pwa-auth';
|
|
250
|
+
```
|
|
251
|
+
|
|
248
252
|
## Technological Engineering
|
|
249
253
|
- Development (Server-side) Environment: [Node JavaScript](https://nodejs.org)
|
|
250
254
|
- Backend: Google Cloud: [Firebase](https://firebase.google.com/)
|
package/base/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAU,kBAAkB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAe,kBAAkB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAa,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAY,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAU,kBAAkB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAe,kBAAkB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAa,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAY,iBAAiB,CAAC;AAErD,MAAM,CAAC,MAAM,KAAK,GAAG,cAAc,CAAC;IAClC,OAAO,EAAE;QACP,QAAQ,EAAI,SAAS,CAAC,OAAO;QAC7B,MAAM,EAAM,WAAW,CAAC,OAAO;QAC/B,OAAO,EAAK,YAAY,CAAC,OAAO;KACjC;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAKH,eAAe,KAAK,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const inputStyle = css `
|
|
|
10
10
|
height: 50px;
|
|
11
11
|
text-align: left;
|
|
12
12
|
padding: 8px 16px;
|
|
13
|
-
background-color: var(--
|
|
13
|
+
background-color: var(--pwa_input_background_color, #E1E5EB);
|
|
14
14
|
border: 0;
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
-webkit-border-radius: 4px;
|
|
@@ -11,7 +11,7 @@ export const iconStyles = css `
|
|
|
11
11
|
margin: auto;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
border: var(--pwa_icon_border, 2px solid black);
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--pwa_icon_background_color, #6cc04a);
|
|
15
15
|
color: white;
|
|
16
16
|
font-size: 15px;
|
|
17
17
|
text-decoration: none;
|
|
@@ -20,7 +20,7 @@ export const iconStyles = css `
|
|
|
20
20
|
|
|
21
21
|
.icon:hover,
|
|
22
22
|
.login:hover {
|
|
23
|
-
background-color: var(--
|
|
23
|
+
background-color: var(--pwa_icon_hover_color, lightgrey);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.icon {
|
|
@@ -18,7 +18,7 @@ export const authStyles = css `
|
|
|
18
18
|
.service {
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
color: var(--pwa_drawer_text_color, #303030);
|
|
21
|
-
background-color: var(--
|
|
21
|
+
background-color: var(--section_background_color, white);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:host([animation]) {
|
|
@@ -16,7 +16,7 @@ export const navigation = css `
|
|
|
16
16
|
|
|
17
17
|
nav > ul > li > button {
|
|
18
18
|
|
|
19
|
-
color: var(--
|
|
19
|
+
color: var(--pwa_nav_button_color, grey);
|
|
20
20
|
border: 0;
|
|
21
21
|
width: 100%;
|
|
22
22
|
height: 36px;
|
|
@@ -31,7 +31,7 @@ export const navigation = css `
|
|
|
31
31
|
|
|
32
32
|
nav > ul > li > button[on] {
|
|
33
33
|
|
|
34
|
-
color: var(--
|
|
34
|
+
color: var(--pwa_nav_highlight_color, black);
|
|
35
35
|
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -44,7 +44,7 @@ export const navigation = css `
|
|
|
44
44
|
|
|
45
45
|
section {
|
|
46
46
|
grid-template-rows: auto 1fr;
|
|
47
|
-
background-color: var( --
|
|
47
|
+
background-color: var( --section_background_color, white);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
`;
|
|
@@ -58,7 +58,7 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
58
58
|
|
|
59
59
|
:host {
|
|
60
60
|
display: grid;
|
|
61
|
-
background-color: var(--
|
|
61
|
+
background-color: var(--pwa_settings_background_color, white);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
form {
|
|
@@ -70,11 +70,11 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
|
|
|
70
70
|
.pageTitle { margin: 0; }
|
|
71
71
|
|
|
72
72
|
h2 {
|
|
73
|
-
color: var(--
|
|
73
|
+
color: var(--pwa_header_color, black);
|
|
74
74
|
text-align: center;
|
|
75
75
|
text-shadow: 1px 1px 2px black, 0 0 15px grey, 0 0 5px #fff;
|
|
76
76
|
|
|
77
|
-
border-bottom: 2px solid var(--
|
|
77
|
+
border-bottom: 2px solid var(--pwa_divider_color, black);
|
|
78
78
|
|
|
79
79
|
margin: 0;
|
|
80
80
|
padding: 16px 0;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://www.jackspublishing.com",
|
|
7
7
|
"email": "jack.solutionbox@gmail.com"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.3.
|
|
9
|
+
"version": "3.3.4",
|
|
10
10
|
"description": "pwa-auth is a collection of four HTML webomponents for User Management to display a login button with icon picture state once logged in. Sign up and login within a drawer and optionally a static for a page. Being able to log out, change account details, and delete account.",
|
|
11
11
|
"homepage": "https://pwa-authentic.firebaseapp.com",
|
|
12
12
|
"repository": {
|
|
@@ -38,6 +38,13 @@
|
|
|
38
38
|
".": {
|
|
39
39
|
"default": "./base/export/pwa-auth.js",
|
|
40
40
|
"types": "./base/export/pwa-auth.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./source/development/pwa-auth": {
|
|
43
|
+
"default": "./source/esm/pwa-auth.js",
|
|
44
|
+
"types": "./source/esm/pwa-auth.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./source/esm/pwa-auth": {
|
|
47
|
+
"default": "./source/esm/pwa-auth.js"
|
|
41
48
|
}
|
|
42
49
|
},
|
|
43
50
|
"license": "SEE LICENSES.txt",
|
|
@@ -23,7 +23,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
23
23
|
.service {
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
color: var(--pwa_drawer_text_color, #303030);
|
|
26
|
-
background-color: var(--
|
|
26
|
+
background-color: var(--section_background_color, white);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host([animation]) {
|
|
@@ -222,7 +222,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
222
222
|
height: 50px;
|
|
223
223
|
text-align: left;
|
|
224
224
|
padding: 8px 16px;
|
|
225
|
-
background-color: var(--
|
|
225
|
+
background-color: var(--pwa_input_background_color, #E1E5EB);
|
|
226
226
|
border: 0;
|
|
227
227
|
border-radius: 4px;
|
|
228
228
|
-webkit-border-radius: 4px;
|
|
@@ -618,7 +618,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
618
618
|
|
|
619
619
|
nav > ul > li > button {
|
|
620
620
|
|
|
621
|
-
color: var(--
|
|
621
|
+
color: var(--pwa_nav_button_color, grey);
|
|
622
622
|
border: 0;
|
|
623
623
|
width: 100%;
|
|
624
624
|
height: 36px;
|
|
@@ -633,7 +633,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
633
633
|
|
|
634
634
|
nav > ul > li > button[on] {
|
|
635
635
|
|
|
636
|
-
color: var(--
|
|
636
|
+
color: var(--pwa_nav_highlight_color, black);
|
|
637
637
|
|
|
638
638
|
}
|
|
639
639
|
|
|
@@ -646,7 +646,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
646
646
|
|
|
647
647
|
section {
|
|
648
648
|
grid-template-rows: auto 1fr;
|
|
649
|
-
background-color: var( --
|
|
649
|
+
background-color: var( --section_background_color, white);
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
`;var Xd=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Yd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class Zd extends(de(Xt)(se)){constructor(){super(),this.photo="",this.emptyArtwork="",this.user="",this.login=!1,this.progress=0,this.error="",this.status="",this.dispatchPhoto=async e=>{Rl.currentUser&&(await co(Rl.currentUser,{photoURL:e}).catch(e=>{}),Xt.dispatch(Kt(e)))},this.progress=0,this.error="",this.status=""}stateChanged(e){this.login=e.frontend.login,this.user=e.backend.userId,this.photo=e.backend.photoURL}static get styles(){return[Nl,s`
|
|
@@ -885,7 +885,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
885
885
|
|
|
886
886
|
:host {
|
|
887
887
|
display: grid;
|
|
888
|
-
background-color: var(--
|
|
888
|
+
background-color: var(--pwa_settings_background_color, white);
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
form {
|
|
@@ -897,11 +897,11 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
897
897
|
.pageTitle { margin: 0; }
|
|
898
898
|
|
|
899
899
|
h2 {
|
|
900
|
-
color: var(--
|
|
900
|
+
color: var(--pwa_header_color, black);
|
|
901
901
|
text-align: center;
|
|
902
902
|
text-shadow: 1px 1px 2px black, 0 0 15px grey, 0 0 5px #fff;
|
|
903
903
|
|
|
904
|
-
border-bottom: 2px solid var(--
|
|
904
|
+
border-bottom: 2px solid var(--pwa_divider_color, black);
|
|
905
905
|
|
|
906
906
|
margin: 0;
|
|
907
907
|
padding: 16px 0;
|
|
@@ -1024,7 +1024,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
1024
1024
|
margin: auto;
|
|
1025
1025
|
overflow: hidden;
|
|
1026
1026
|
border: var(--pwa_icon_border, 2px solid black);
|
|
1027
|
-
background-color: var(--
|
|
1027
|
+
background-color: var(--pwa_icon_background_color, #6cc04a);
|
|
1028
1028
|
color: white;
|
|
1029
1029
|
font-size: 15px;
|
|
1030
1030
|
text-decoration: none;
|
|
@@ -1033,7 +1033,7 @@ const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow
|
|
|
1033
1033
|
|
|
1034
1034
|
.icon:hover,
|
|
1035
1035
|
.login:hover {
|
|
1036
|
-
background-color: var(--
|
|
1036
|
+
background-color: var(--pwa_icon_hover_color, lightgrey);
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
.icon {
|