pwa-auth 0.0.15 → 1.1.3
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 +76 -4
- package/README.md +113 -83
- package/demo/index.html +93 -101
- package/demo/styles.css +52 -0
- package/images/empty.jpg +0 -0
- package/images/favicon.ico +0 -0
- package/images/manifest/logo-144.png +0 -0
- package/images/manifest/logo-192.png +0 -0
- package/images/manifest/logo-48.png +0 -0
- package/images/manifest/logo-512.png +0 -0
- package/images/manifest/logo-72.png +0 -0
- package/images/manifest/logo-96.png +0 -0
- package/images/manifest/maskable_icon_x128.png +0 -0
- package/images/manifest/maskable_icon_x192.png +0 -0
- package/images/manifest/maskable_icon_x384.png +0 -0
- package/images/manifest/maskable_icon_x48.png +0 -0
- package/images/manifest/maskable_icon_x512.png +0 -0
- package/images/manifest/maskable_icon_x72.png +0 -0
- package/images/manifest/maskable_icon_x96.png +0 -0
- package/images/npm.svg +85 -85
- package/license +21 -21
- package/manifest.json +47 -44
- package/npm/pwa-auth.js +3163 -0
- package/npm/pwa-auth.js.map +1 -0
- package/package.json +50 -38
- package/deploy/store.js +0 -18
- package/deploy/styles-drawer.js +0 -139
- package/deploy/styles-settings.js +0 -57
- package/deploy/styles.js +0 -88
- package/deploy/user-action.js +0 -69
- package/deploy/user-drawer.js +0 -163
- package/deploy/user-functions.js +0 -175
- package/deploy/user-icon.js +0 -107
- package/deploy/user-reducer.js +0 -41
- package/deploy/user-settings.js +0 -418
- package/polymer.json +0 -24
- package/pwa-auth.js +0 -16
- package/robots.txt +0 -2
- package/src/store.ts +0 -52
- package/src/styles-drawer.ts +0 -143
- package/src/styles-settings.ts +0 -61
- package/src/styles.ts +0 -95
- package/src/user-action.ts +0 -91
- package/src/user-drawer.ts +0 -162
- package/src/user-functions.ts +0 -173
- package/src/user-icon.ts +0 -106
- package/src/user-reducer.ts +0 -91
- package/src/user-settings.ts +0 -402
- package/tsconfig.json +0 -19
- package/webpack.config.js +0 -72
package/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,37 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
Added - for new features.
|
|
9
|
+
Changed - for changes in existing functionality.
|
|
10
|
+
Deprecated - for soon-to-be removed features.
|
|
11
|
+
Removed - for now removed features.
|
|
12
|
+
Fixed - for any bug fixes.
|
|
13
|
+
Security - in case of vulnerabilities.
|
|
14
|
+
|
|
15
|
+
# [1.0.8] - 2025-08-23
|
|
16
|
+
|
|
17
|
+
## Changed
|
|
18
|
+
- Read me file: updated information
|
|
19
|
+
- CSS Custom Variables: update color schemes
|
|
20
|
+
- Redux: check and update all connections
|
|
21
|
+
- Input: Password: update correctness
|
|
22
|
+
|
|
23
|
+
## Add
|
|
24
|
+
- Element Internals Standard
|
|
25
|
+
- Forgot Password Reset
|
|
26
|
+
|
|
27
|
+
## REMOVED
|
|
28
|
+
- Telephone Verification for version 1 simplicity
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
8
34
|
## [Unreleased]
|
|
9
35
|
- Facebook Login
|
|
10
36
|
- Phone Login
|
|
11
37
|
- Play Games Login
|
|
12
|
-
-
|
|
38
|
+
- X Login
|
|
13
39
|
- Github Login
|
|
14
40
|
- display nested content after webcomponent loads
|
|
15
41
|
- create password after social Login
|
|
@@ -18,15 +44,61 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
|
18
44
|
- update user info upon change submission
|
|
19
45
|
- change user-icon to "Login" text
|
|
20
46
|
|
|
21
|
-
## [
|
|
47
|
+
## [1.0.0] - 2025-08-04
|
|
48
|
+
|
|
49
|
+
## To Do
|
|
50
|
+
- Image Upload Minify
|
|
51
|
+
- Image Upload Save Mini-url
|
|
52
|
+
|
|
53
|
+
## Changed
|
|
54
|
+
- Redux/Toolkit Upgrade
|
|
55
|
+
- Lit Upgrade
|
|
56
|
+
- Demo Index Update
|
|
57
|
+
- Firebase Functions
|
|
58
|
+
- Custom Elements into Personal Folders
|
|
59
|
+
- Profile Section: Too many input, downsize
|
|
60
|
+
- Email Section to Verification Section
|
|
61
|
+
- Password Section to Security Section
|
|
62
|
+
- Remove id's, Replace with class
|
|
63
|
+
- CSS Custom Properties
|
|
64
|
+
- Drawer Input Design
|
|
65
|
+
- Firebase CDN or SDK
|
|
66
|
+
- firebase messaging service worker CDN
|
|
67
|
+
- Check Analytics Integration
|
|
68
|
+
- Input JavaScript Configuration - global let anywhere, or within slot
|
|
69
|
+
- Input CSS Custom Properties - global :root anywhere, or within slot
|
|
70
|
+
- Custom CSS Properties - namespase for each component
|
|
71
|
+
- Merge Duplicate Redux Files
|
|
72
|
+
- Visual Effects, CSS Active Content
|
|
73
|
+
- Folder Namespace as technology stack
|
|
74
|
+
- Redux Frontend / Backend State
|
|
22
75
|
|
|
23
76
|
### Added
|
|
24
|
-
-
|
|
25
|
-
-
|
|
77
|
+
- Firebase Element for Firebase SDK
|
|
78
|
+
- Google Firebase Analytics to Initialization
|
|
79
|
+
- Firebase Web App to Initialization
|
|
80
|
+
- Step Process #1 - Initialize Firebase Object
|
|
81
|
+
- Space Saving Freature: Menu Bar: Icon > Active > Text\
|
|
82
|
+
- Firebase TypeScript Object - Analytics
|
|
83
|
+
- Firebase TypeScript Object - Functions
|
|
84
|
+
- Analytics Bootup Logic Check, Fallback, Local, Offline
|
|
85
|
+
- Google Tag Manager Conversion - Integrateion
|
|
86
|
+
- Content-Photo-Element Uploader
|
|
87
|
+
- custom elements - input subdivision
|
|
88
|
+
- Firestore Database Structure
|
|
89
|
+
- Verify Email moved to custom event listener within firebase function onstate change
|
|
90
|
+
- Theme Color Detection
|
|
91
|
+
- CORS
|
|
92
|
+
|
|
93
|
+
### Removed
|
|
94
|
+
- Remove Storybook
|
|
95
|
+
- Remove Firebase Cloud Messaging (FCM) Integration
|
|
26
96
|
|
|
27
97
|
## [0.0.14] - 2019-03-24
|
|
28
98
|
|
|
29
99
|
### Added
|
|
100
|
+
- Upgraded to Typescript
|
|
101
|
+
- alert user to login when submitting form
|
|
30
102
|
- Verify user before submitting form
|
|
31
103
|
- Forms prevent default
|
|
32
104
|
|
package/README.md
CHANGED
|
@@ -1,84 +1,114 @@
|
|
|
1
|
-
Application Authentication
|
|
2
|
-
======================
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
</
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
Progressive Website Application Authentication
|
|
2
|
+
======================
|
|
3
|
+
|
|
4
|
+
# The library [Demo](https://pwa-authentic.firebaseapp.com)
|
|
5
|
+
3 HTML Custom Elements with Firebase Authentication:
|
|
6
|
+
- user-icon
|
|
7
|
+
- user-drawer
|
|
8
|
+
- user-settings
|
|
9
|
+
|
|
10
|
+
This library provides Identity Access Managementy to securely store user's data.
|
|
11
|
+
|
|
12
|
+
## Technological Stack
|
|
13
|
+
- Development Environment: [Node JavaScript](https://nodejs.org)
|
|
14
|
+
- Backend: Google Cloud: [Firebase](https://firebase.google.com/)
|
|
15
|
+
- Predicate State Behavior: [Redux](https://redux.js.org/)
|
|
16
|
+
- Frontend: [Lit](https://lit.dev)
|
|
17
|
+
|
|
18
|
+
## Library Features:
|
|
19
|
+
- Register through Email and Password
|
|
20
|
+
- Log-in
|
|
21
|
+
- Log-out
|
|
22
|
+
- Change Username
|
|
23
|
+
- Change Profile Picture
|
|
24
|
+
- Change Email
|
|
25
|
+
- Change Password
|
|
26
|
+
- Delete Account
|
|
27
|
+
|
|
28
|
+
## Library Boilerplate
|
|
29
|
+
- 3 Tag Placements (Custom HTML Elements)
|
|
30
|
+
- Cascading Style Sheets (CSS)
|
|
31
|
+
- ECMA Script (JavaScript)
|
|
32
|
+
|
|
33
|
+
## Library Custom Elements
|
|
34
|
+
|
|
35
|
+
### `<user-icon>`
|
|
36
|
+
- Login Word Button - State
|
|
37
|
+
- 1 Photo Icon Display - State
|
|
38
|
+
|
|
39
|
+
### `<user-drawer>`
|
|
40
|
+
- Drop-down
|
|
41
|
+
- Sign-up by Email Addresses and Password
|
|
42
|
+
- Sign-in by Email Addresses and Password
|
|
43
|
+
- logged-in state
|
|
44
|
+
- logged-out state
|
|
45
|
+
|
|
46
|
+
### `<user-settings>`
|
|
47
|
+
- 1 Photo Upload
|
|
48
|
+
- Unavailable Photo
|
|
49
|
+
- Delete Account
|
|
50
|
+
|
|
51
|
+
# Website Setup:
|
|
52
|
+
```html
|
|
53
|
+
<header>
|
|
54
|
+
<user-icon></user-icon>
|
|
55
|
+
</header>
|
|
56
|
+
|
|
57
|
+
<user-drawer></user-drawer>
|
|
58
|
+
|
|
59
|
+
<main>
|
|
60
|
+
<user-settings></user-settings>
|
|
61
|
+
</main>
|
|
62
|
+
|
|
63
|
+
<script>/* Initialize ECMA Script Properties */</script>
|
|
64
|
+
<style>/* CSS Custom Properties */</style>
|
|
65
|
+
<script src="pwa-auth.js"></script>
|
|
66
|
+
```
|
|
67
|
+
## Google Setup
|
|
68
|
+
- Google Analytics
|
|
69
|
+
- Firebase Project
|
|
70
|
+
|
|
71
|
+
## Firebase Setup
|
|
72
|
+
- Authentication - email
|
|
73
|
+
- Cloud Firestore - database
|
|
74
|
+
- Cloud Storage
|
|
75
|
+
|
|
76
|
+
```javascript
|
|
77
|
+
// Initialize Firebase
|
|
78
|
+
let connect = {
|
|
79
|
+
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
80
|
+
authDomain: "xxxxxxx.xxxxxxx.xxx",
|
|
81
|
+
databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
|
|
82
|
+
projectId: "xxxxxxx",
|
|
83
|
+
storageBucket: "xxxxxxx.xxxxxxx.xxx",
|
|
84
|
+
messagingSenderId: "xxxxxxxxxxx",
|
|
85
|
+
appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
86
|
+
measurementId: "xxxxxxxxxxx"
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
if (lolalhost) { connect = { /* etc. */ } }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## CSS Default Custom Properties
|
|
93
|
+
| CSS Custom Property | Description | Default | Custom Element |
|
|
94
|
+
| :--- | ---: | :---: | :--- |
|
|
95
|
+
| --pwa_nav_button | Navigation | grey; | Settings |
|
|
96
|
+
| --pwa_nav_select | Navigation | black; | Settings |
|
|
97
|
+
| --pwa_input_background | Input | #E1E5EB; | Settings |
|
|
98
|
+
| --pwa_label_text_color | Input | black; | Settings |
|
|
99
|
+
| --pwa_section_header | Header | black; | Settings |
|
|
100
|
+
| --pwa_divider | Divider | grey; | Settings |
|
|
101
|
+
| --pwa_action_text_color | Button | #fff; | Settings |
|
|
102
|
+
| --pwa_action_background_color | Button | #6cc04a; | Settings |
|
|
103
|
+
| --pwa_action_border_color | Button | #60b23e; | Settings |
|
|
104
|
+
| --pwa_drawer_text_color | Input | #303030; | Drawer |
|
|
105
|
+
| --pwa_drawer_background_color | Input | #fff; | Drawer |
|
|
106
|
+
| --pwa_icon_background | Input | #6cc04a; | Icon |
|
|
107
|
+
| --pwa_icon_hover | Input | lightgrey | Icon |
|
|
108
|
+
|
|
109
|
+
# Footnotes
|
|
110
|
+
|
|
111
|
+
## Feedback
|
|
112
|
+
All feedback, comments, bugs, and requests are welcome.
|
|
113
|
+
* [Jack's Publishing](https://www.jackspublishing.com)
|
|
84
114
|
* [contractor's centre](https://www.contractorscentre.com)
|
package/demo/index.html
CHANGED
|
@@ -1,126 +1,118 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@license
|
|
3
|
-
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
4
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
-
Code distributed by Google as part of the polymer project is also
|
|
8
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
1
|
<!DOCTYPE html>
|
|
12
2
|
<html lang="en">
|
|
13
3
|
<head>
|
|
4
|
+
|
|
14
5
|
<meta charset="UTF-8">
|
|
6
|
+
<!-- BASE -->
|
|
7
|
+
<base href="/">
|
|
15
8
|
<!-- TITILE -->
|
|
16
9
|
<title>pwa-auth</title>
|
|
17
10
|
<!-- VIEWPORT -->
|
|
18
|
-
<meta name="viewport"
|
|
19
|
-
<!-- BASE -->
|
|
20
|
-
<base href="/">
|
|
21
|
-
<!-- PRECONNECT -->
|
|
22
|
-
<link rel="preconnect" href="https://www.googletagmanager.com">
|
|
23
|
-
<link rel="preconnect" href="https://www.gstatic.com">
|
|
24
|
-
<link rel="preconnect" href="https://www.google-analytics.com">
|
|
25
|
-
<!-- STYLES -->
|
|
26
|
-
<style>
|
|
27
|
-
body { margin: 0; background-color: #303030; }
|
|
28
|
-
header { height: 64px; display: grid; grid-template-columns: 1fr 64px ; background-color: #303030; }
|
|
29
|
-
main { margin: 0 16px 0 16px; background-color: #fff; border-radius: 8px; padding: 8px;}
|
|
30
|
-
footer { background-color: #303030; height: 100%; color: #e8e8e8; }
|
|
31
|
-
.links { margin: auto; text-decoration: none; font-size: 1em; color: red; font-weight: 800; }
|
|
32
|
-
.link { margin: auto; text-decoration: none; font-size: 1em; color: #e8e8e8; font-weight: 800; }
|
|
33
|
-
p { margin: 16px; background-color: #fff; color: black; border-radius: 8px; padding: 16px; font-size: 1em; }
|
|
34
|
-
h1, h2 { text-align: center; }
|
|
35
|
-
h3 { text-align: center; color: #e8e8e8; padding-left: 64px; text-transform: uppercase; font-size: 1em; }
|
|
36
|
-
</style>
|
|
37
|
-
<!-- https://github.com/reactjs/redux/issues/2907 -->
|
|
38
|
-
<script>
|
|
39
|
-
if ('serviceWorker' in navigator) { window.addEventListener('load', () => {
|
|
40
|
-
navigator.serviceWorker.register('service-worker.js', {
|
|
41
|
-
scope: '/',
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
window.process = { env: { NODE_ENV: 'production' } };
|
|
46
|
-
</script>
|
|
47
|
-
<!-- MANIFEST -->
|
|
48
|
-
<link rel="manifest" href="manifest.json" />
|
|
49
|
-
<!-- FAVICON -->
|
|
50
|
-
<link rel="icon" href="images/favicon.ico">
|
|
11
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1" />
|
|
51
12
|
<!-- THEME COLOR -->
|
|
52
|
-
<meta name="theme-color"
|
|
13
|
+
<meta name="theme-color" content="#272931" />
|
|
53
14
|
<!-- AUTHOR -->
|
|
54
|
-
<meta name="author"
|
|
55
|
-
<!-- CANONICAL -->
|
|
56
|
-
<link rel="canonical" href="https://inmostfire.com" />
|
|
15
|
+
<meta name="author" content="Jacek Markiewicz" />
|
|
57
16
|
<!-- DESCRIPTION -->
|
|
58
|
-
<meta name="description"
|
|
59
|
-
|
|
60
|
-
|
|
17
|
+
<meta name="description" content="To provide a personalized experience, Apps need to know the identity of a user to securely store data in the cloud. pwa-auth is powered by The Firebase Authentication backend, consistently providing a centralized and predictable state behaviour with Redux, and declaratively rendering straight into the DOM with Google Polymer's fast and light Lit-Element. This Component includes 3 HTML Tags, and 1 Boilerplate Function to display the user icon, sign up, login, log out, change account details, and delete the user's account." />
|
|
18
|
+
<!-- KEYWORDS -->
|
|
19
|
+
<meta name="keywords" content="lit, redux, firebase, authentication, drawer, settings, icon, username, email, password, delete" />
|
|
20
|
+
<!-- HTTPS REFERRER TAG-->
|
|
21
|
+
<meta name="referrer" content="origin" />
|
|
22
|
+
<!-- MANIFEST -->
|
|
23
|
+
<link rel="manifest" href="manifest.json" />
|
|
24
|
+
<!-- FAVICON -->
|
|
25
|
+
<link rel="icon" href="images/favicon.ico">
|
|
26
|
+
|
|
27
|
+
<!-- Preconnect -->
|
|
28
|
+
<link rel="preconnect" href="https://firebasestorage.googleapis.com">
|
|
29
|
+
<!-- Pre-Fetch -->
|
|
30
|
+
<link rel="dns-prefetch" href="https://firebasestorage.googleapis.com">
|
|
31
|
+
|
|
32
|
+
<!-- Cascading Style Sheets -->
|
|
33
|
+
<link rel="stylesheet" href="demo/styles.css">
|
|
34
|
+
|
|
35
|
+
<!-- ECMA Script-->
|
|
36
|
+
<script>window.process = { env: { NODE_ENV: 'production' } };</script>
|
|
37
|
+
|
|
61
38
|
</head>
|
|
39
|
+
<!-- End Head -->
|
|
40
|
+
|
|
41
|
+
<!-- Start Body -->
|
|
62
42
|
<body>
|
|
63
43
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<!-- ADD ICON -->
|
|
67
|
-
<user-icon></user-icon>
|
|
68
|
-
</header>
|
|
44
|
+
<!-- Button -->
|
|
45
|
+
<header><user-icon settingsURL="/"></user-icon></header>
|
|
69
46
|
|
|
70
|
-
<!--
|
|
47
|
+
<!-- Drawer -->
|
|
71
48
|
<user-drawer></user-drawer>
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<user-settings> </user-settings>
|
|
76
|
-
</main>
|
|
77
|
-
|
|
78
|
-
<footer>
|
|
79
|
-
<p>To provide a personalized experience, Apps need to know the identity of a user to securely store data in the cloud. pwa-auth is powered by The Firebase Authentication backend, consistently providing a centralized and predictable state behaviour with Redux, and declaratively rendering straight into the DOM with Google Polymer's fast and light Lit-Element. This Component includes 3 HTML Tags, and 1 Boilerplate Function to display the user icon, sign up, login, log out, change account details, and delete the user's account.</p>
|
|
80
|
-
<p><a class="links" href="https://www.npmjs.com/package/pwa-auth">NPM</a> download: npm i --save pwa-auth</p>
|
|
81
|
-
<p><a class="links" href="https://github.com/busynest/user">Github</a> view on github</p>
|
|
82
|
-
</footer>
|
|
50
|
+
<!-- Settings -->
|
|
51
|
+
<main><user-settings></user-settings></main>
|
|
83
52
|
|
|
84
|
-
<!--
|
|
85
|
-
<
|
|
53
|
+
<!-- CSS: Custom Variables: <head> tag -->
|
|
54
|
+
<style>
|
|
55
|
+
|
|
56
|
+
:root {
|
|
86
57
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<script>
|
|
90
|
-
window.dataLayer = window.dataLayer || [];
|
|
91
|
-
function gtag(){dataLayer.push(arguments);}
|
|
92
|
-
gtag('js', new Date());
|
|
93
|
-
gtag('config', 'UA-73943527-19');
|
|
94
|
-
</script>
|
|
58
|
+
/* Top Border Color */
|
|
59
|
+
--pwa_divider: grey;
|
|
95
60
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
61
|
+
/* Section Header Color */
|
|
62
|
+
--pwa_section_header: black;
|
|
63
|
+
|
|
64
|
+
/* Navigation Colors */
|
|
65
|
+
--pwa_nav_button: grey;
|
|
66
|
+
--pwa_nav_select: black;
|
|
67
|
+
|
|
68
|
+
/* Label Color */
|
|
69
|
+
--pwa_label_text_color: black;
|
|
70
|
+
|
|
71
|
+
/* Input Colors */
|
|
72
|
+
--pwa_input_background: #E1E5EB;
|
|
73
|
+
|
|
74
|
+
/* Button Colors */
|
|
75
|
+
--pwa_action_text_color: #fff;
|
|
76
|
+
--pwa_action_background_color: #6cc04a;
|
|
77
|
+
--pwa_action_border_color: #60b23e;
|
|
78
|
+
|
|
79
|
+
/* Drawer Colors */
|
|
80
|
+
--pwa_drawer_text_color: #303030;
|
|
81
|
+
--pwa_drawer_background_color: #fff;
|
|
82
|
+
|
|
83
|
+
/* Icon Colors */
|
|
84
|
+
--pwa_icon_background: #6cc04a;
|
|
85
|
+
--pwa_icon_hover: lightgrey;
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Dark Theme */
|
|
90
|
+
@media (prefers-color-scheme: dark) { }
|
|
91
|
+
|
|
92
|
+
/* Light Theme */
|
|
93
|
+
@media (prefers-color-scheme: light) { }
|
|
94
|
+
|
|
95
|
+
</style>
|
|
96
|
+
|
|
97
|
+
<!-- ECMA Script: Module: Firebase Information -->
|
|
102
98
|
<script>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
// REFERENCE TO SERVICES
|
|
115
|
-
const application = firebase.initializeApp(admin);
|
|
116
|
-
const firestore = application.firestore();
|
|
117
|
-
const storage = firebase.storage();
|
|
118
|
-
const storageRef = storage.ref();
|
|
99
|
+
|
|
100
|
+
// Global NameSpace - Create Object Initial State
|
|
101
|
+
let connect = {
|
|
102
|
+
apiKey: "AIzaSyC1ZNYC9RAjSAE3syUBNi47AiqbAqkx99w",
|
|
103
|
+
authDomain: "pwa-authentic.firebaseapp.com",
|
|
104
|
+
projectId: "pwa-authentic",
|
|
105
|
+
storageBucket: "pwa-authentic.firebasestorage.app",
|
|
106
|
+
messagingSenderId: "749233996232",
|
|
107
|
+
appId: "1:749233996232:web:bbc410d53b7d39bdfb80fd",
|
|
108
|
+
measurementId: "G-G1GYM1HBJ4"
|
|
109
|
+
}
|
|
119
110
|
|
|
120
111
|
</script>
|
|
112
|
+
<!-- End Custom JavaScript Module Information -->
|
|
121
113
|
|
|
122
|
-
<!--
|
|
123
|
-
<script type="module" src="
|
|
114
|
+
<!-- Application Shell -->
|
|
115
|
+
<script type="module" src="pwa-auth.js" async></script>
|
|
124
116
|
|
|
125
117
|
</body>
|
|
126
|
-
</html>
|
|
118
|
+
</html>
|
package/demo/styles.css
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
html {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
scroll-behavior: smooth;
|
|
4
|
+
display: grid;
|
|
5
|
+
height: 100%;
|
|
6
|
+
padding: 16px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
transition-duration: 1s;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body {
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-family: Space Grotesk, system-ui, sans-serif;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
font-size: .875rem;
|
|
17
|
+
line-height: 1.25rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-areas:
|
|
23
|
+
"head"
|
|
24
|
+
"drawer"
|
|
25
|
+
"main";
|
|
26
|
+
grid-template-rows: auto auto 1fr;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
header { grid-area: head; }
|
|
30
|
+
user-drawer { grid-area: drawer; }
|
|
31
|
+
main { grid-area: main; }
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
background: linear-gradient(124deg, #e8891d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
|
|
35
|
+
background-size: 1800%;
|
|
36
|
+
-webkit-animation: rainbow 64s cubic-bezier(0.6,0.8,0.8,0.6) infinite;
|
|
37
|
+
-z-animation: rainbow 64s cubic-bezier(0.6,0.8,0.8,0.6) infinite;
|
|
38
|
+
-o-animation: rainbow 64s cubic-bezier(0.6,0.8,0.8,0.6) infinite;
|
|
39
|
+
animation: rainbow 64s cubic-bezier(0.6,0.8,0.8,0.6) infinite;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes rainbow {
|
|
43
|
+
0% {
|
|
44
|
+
background-position: 0% 100%;
|
|
45
|
+
}
|
|
46
|
+
50% {
|
|
47
|
+
background-position: 100% 0%;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
background-position: 0% 100%;
|
|
51
|
+
}
|
|
52
|
+
}
|
package/images/empty.jpg
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|