pwa-auth 1.2.3 → 2.0.2
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 +8 -0
- package/README.md +84 -43
- package/demo/index.html +72 -34
- package/deploy/css/form/button.d.ts.map +1 -1
- package/deploy/css/form/button.js +0 -14
- package/deploy/css/form/list.d.ts.map +1 -1
- package/deploy/css/form/list.js +11 -1
- package/deploy/custom-elements/drawer/css/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/drawer.js +38 -8
- package/deploy/custom-elements/drawer/css/exit.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/exit.js +3 -2
- package/deploy/custom-elements/drawer/css/paragraph.js +3 -3
- package/deploy/custom-elements/drawer/css/toggle.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/toggle.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/toggle.js +18 -0
- package/deploy/custom-elements/drawer/drawer.d.ts +2 -2
- package/deploy/custom-elements/drawer/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/drawer.js +10 -44
- package/deploy/custom-elements/drawer/input/login.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/input/login.js +11 -7
- package/deploy/custom-elements/drawer/input/sign-up.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/input/sign-up.js +12 -9
- package/deploy/custom-elements/icon/css/icon.d.ts.map +1 -1
- package/deploy/custom-elements/icon/css/icon.js +28 -30
- package/deploy/custom-elements/icon/icon.d.ts +1 -1
- package/deploy/custom-elements/icon/icon.d.ts.map +1 -1
- package/deploy/custom-elements/icon/icon.js +8 -16
- package/deploy/custom-elements/settings/css/navigation.d.ts.map +1 -1
- package/deploy/custom-elements/settings/css/navigation.js +1 -11
- package/npm/pwa-auth.js +1 -1
- package/package.json +1 -1
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts +0 -3
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts.map +0 -1
- package/deploy/custom-elements/drawer/css/old/visibility.js +0 -22
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
8
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin';
|
|
10
10
|
import { store } from '../../store';
|
|
@@ -22,9 +22,9 @@ import './input/sign-up';
|
|
|
22
22
|
let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
25
|
-
this.
|
|
25
|
+
this.settingsURL = '';
|
|
26
26
|
this.drawer = false;
|
|
27
|
-
this.
|
|
27
|
+
this.subscribe = false;
|
|
28
28
|
this._name = "";
|
|
29
29
|
this._log = false;
|
|
30
30
|
this._sign = false;
|
|
@@ -53,41 +53,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
53
53
|
exitStyle,
|
|
54
54
|
linkStyle,
|
|
55
55
|
lineStyle,
|
|
56
|
-
listStyle
|
|
57
|
-
css `
|
|
58
|
-
|
|
59
|
-
:host {
|
|
60
|
-
z-index: 2;
|
|
61
|
-
position: fixed;
|
|
62
|
-
top: 0;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
|
|
67
|
-
transition-property: max-height;
|
|
68
|
-
transition-duration: 1.4s;
|
|
69
|
-
height: auto;
|
|
70
|
-
max-height: 0px;
|
|
71
|
-
transition: max-height 1.5s ease-out;
|
|
72
|
-
|
|
73
|
-
display: block;
|
|
74
|
-
padding-top: env(safe-area-inset-top);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/*visibility: hidden;
|
|
78
|
-
/*will-change: transform;
|
|
79
|
-
transform: translate3d(0, -150%, 0);
|
|
80
|
-
transition-property: visibility, transform;*/
|
|
81
|
-
|
|
82
|
-
/*transform: translate3d(0, 0, 0);*/
|
|
83
|
-
|
|
84
|
-
:host([drawer]) {
|
|
85
|
-
transition-duration: 1.4s;
|
|
86
|
-
max-height: 100%;
|
|
87
|
-
transition: max-height 1.5s ease-out;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
`
|
|
56
|
+
listStyle
|
|
91
57
|
];
|
|
92
58
|
}
|
|
93
59
|
;
|
|
@@ -101,7 +67,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
101
67
|
<!-- Exit Button -->
|
|
102
68
|
<header class="exit">
|
|
103
69
|
<div></div>
|
|
104
|
-
<h3>${this._log ? this._name
|
|
70
|
+
<h3>${this._log ? this._name : this._sign === this.subscribe ? "Subscribe" : "Login"} </h3>
|
|
105
71
|
<button class="close">${close}</button>
|
|
106
72
|
</header>
|
|
107
73
|
|
|
@@ -113,12 +79,12 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
113
79
|
<!-- Log-in State -->
|
|
114
80
|
<user-log-in
|
|
115
81
|
class="spec"
|
|
116
|
-
?on="${true === this._sign ? !this.
|
|
82
|
+
?on="${true === this._sign ? !this.subscribe : this.subscribe}"></user-log-in>
|
|
117
83
|
|
|
118
84
|
<!-- Sign-up State -->
|
|
119
85
|
<user-sign-up
|
|
120
86
|
class="spec"
|
|
121
|
-
?on="${false === this._sign ? !this.
|
|
87
|
+
?on="${false === this._sign ? !this.subscribe : this.subscribe}"></user-sign-up>
|
|
122
88
|
|
|
123
89
|
</div>
|
|
124
90
|
|
|
@@ -127,7 +93,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
127
93
|
class="spec setLog"
|
|
128
94
|
?on="${this._log === true}">
|
|
129
95
|
|
|
130
|
-
<p><a href="${this.
|
|
96
|
+
<p><a href="${this.settingsURL}">Settings</a></p>
|
|
131
97
|
|
|
132
98
|
<p><a class="leave" aria-label="log out">log out</a></p>
|
|
133
99
|
|
|
@@ -140,13 +106,13 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
140
106
|
};
|
|
141
107
|
__decorate([
|
|
142
108
|
property({ type: String, reflect: true })
|
|
143
|
-
], UserDrawer.prototype, "
|
|
109
|
+
], UserDrawer.prototype, "settingsURL", void 0);
|
|
144
110
|
__decorate([
|
|
145
111
|
property({ type: Boolean, attribute: true, reflect: true })
|
|
146
112
|
], UserDrawer.prototype, "drawer", void 0);
|
|
147
113
|
__decorate([
|
|
148
114
|
property({ type: Boolean, attribute: true, reflect: true })
|
|
149
|
-
], UserDrawer.prototype, "
|
|
115
|
+
], UserDrawer.prototype, "subscribe", void 0);
|
|
150
116
|
__decorate([
|
|
151
117
|
state()
|
|
152
118
|
], UserDrawer.prototype, "_name", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAO,MAAe,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAO,MAAe,KAAK,CAAC;AAerD,qBACa,SAAU,SAAQ,UAAU;IAE9B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAU;;IAInC,MAAM,KAAK,MAAM,8BAcd;IAEH,SAAS,CAAC,MAAM;IAgDhB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,MAAM,CASb;CAEF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,SAAS,CAAC;KAC5B;CACF"}
|
|
@@ -12,6 +12,7 @@ import { buttonStyle } from '../../../css/form/button';
|
|
|
12
12
|
import { labelStyle } from '../../../css/form/label';
|
|
13
13
|
import { inputStyle } from '../../../css/form/input';
|
|
14
14
|
import { listStyle } from '../../../css/form/list';
|
|
15
|
+
import { toggleStyle } from '../css/toggle';
|
|
15
16
|
import store from '../../../store';
|
|
16
17
|
import { signUpAction } from '../../../redux/frontend';
|
|
17
18
|
let UserLogIn = class UserLogIn extends LitElement {
|
|
@@ -30,6 +31,7 @@ let UserLogIn = class UserLogIn extends LitElement {
|
|
|
30
31
|
labelStyle,
|
|
31
32
|
inputStyle,
|
|
32
33
|
buttonStyle,
|
|
34
|
+
toggleStyle,
|
|
33
35
|
css `
|
|
34
36
|
|
|
35
37
|
.double {
|
|
@@ -66,19 +68,21 @@ let UserLogIn = class UserLogIn extends LitElement {
|
|
|
66
68
|
type="password"
|
|
67
69
|
@change="${this.handlePassword}">
|
|
68
70
|
</li>
|
|
69
|
-
|
|
70
|
-
<li class="double">
|
|
71
|
-
|
|
72
|
-
<!-- Change State -->
|
|
73
|
-
<button
|
|
74
|
-
class="new"
|
|
75
|
-
@click="${this.change}">create a new account</button>
|
|
76
71
|
|
|
72
|
+
<li>
|
|
77
73
|
<button
|
|
78
74
|
class="login action-button"
|
|
79
75
|
@click="${this.login}">Sign in</button>
|
|
80
76
|
|
|
81
77
|
</li>
|
|
78
|
+
|
|
79
|
+
<!-- Change State -->
|
|
80
|
+
<li>
|
|
81
|
+
<p class="divider">Or</p>
|
|
82
|
+
<button
|
|
83
|
+
class="new"
|
|
84
|
+
@click="${this.change}">create a new account</button>
|
|
85
|
+
</li>
|
|
82
86
|
|
|
83
87
|
</ul>
|
|
84
88
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/sign-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAe,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/input/sign-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAe,KAAK,CAAC;AAerD,qBACa,UAAW,SAAQ,UAAU;IAE/B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAU;;IAInC,MAAM,KAAK,MAAM,8BAcd;IAEH,SAAS,CAAC,MAAM;IAmDhB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,UAAU,CAiBjB;CAeF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,cAAc,EAAE,UAAU,CAAC;KAC9B;CACF"}
|
|
@@ -12,6 +12,7 @@ import { buttonStyle } from '../../../css/form/button';
|
|
|
12
12
|
import { labelStyle } from '../../../css/form/label';
|
|
13
13
|
import { inputStyle } from '../../../css/form/input';
|
|
14
14
|
import { listStyle } from '../../../css/form/list';
|
|
15
|
+
import { toggleStyle } from '../css/toggle';
|
|
15
16
|
import store from '../../../store';
|
|
16
17
|
import { signUpAction } from '../../../redux/frontend';
|
|
17
18
|
let UserSignUp = class UserSignUp extends LitElement {
|
|
@@ -36,6 +37,7 @@ let UserSignUp = class UserSignUp extends LitElement {
|
|
|
36
37
|
labelStyle,
|
|
37
38
|
inputStyle,
|
|
38
39
|
buttonStyle,
|
|
40
|
+
toggleStyle,
|
|
39
41
|
css `
|
|
40
42
|
|
|
41
43
|
.double {
|
|
@@ -75,19 +77,20 @@ let UserSignUp = class UserSignUp extends LitElement {
|
|
|
75
77
|
@change="${this.handlePassword}">
|
|
76
78
|
</li>
|
|
77
79
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<li class="double">
|
|
81
|
-
|
|
82
|
-
<!-- Change State -->
|
|
83
|
-
<button
|
|
84
|
-
class="new"
|
|
85
|
-
@click="${this.change}">login with existing email</button>
|
|
86
|
-
|
|
80
|
+
<li>
|
|
87
81
|
<button
|
|
88
82
|
class="newUser action-button"
|
|
89
83
|
@click="${this.signUp}">Sign up</button>
|
|
84
|
+
</li>
|
|
85
|
+
|
|
86
|
+
<!-- <label><input id="veriftPassword" type="password" >Verify Password</label> -->
|
|
90
87
|
|
|
88
|
+
<!-- Change State -->
|
|
89
|
+
<li>
|
|
90
|
+
<p class="divider">Or</p>
|
|
91
|
+
<button
|
|
92
|
+
class="new"
|
|
93
|
+
@click="${this.change}">login with existing email</button>
|
|
91
94
|
</li>
|
|
92
95
|
|
|
93
96
|
</ul>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/icon/css/icon.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/icon/css/icon.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBA0DtB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const iconStyles = css `
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
transition-duration: 2s;
|
|
4
|
+
:host {
|
|
5
|
+
margin: auto;
|
|
6
|
+
display: grid;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
/* Shared Styles */
|
|
@@ -12,51 +11,50 @@ export const iconStyles = css `
|
|
|
12
11
|
cursor: pointer;
|
|
13
12
|
margin: auto;
|
|
14
13
|
overflow: hidden;
|
|
15
|
-
border:
|
|
14
|
+
border: var(--pwa_icon_border);
|
|
16
15
|
background-color: var(--pwa_icon_background);
|
|
17
16
|
color: white;
|
|
18
17
|
font-size: 15px;
|
|
19
18
|
text-decoration: none;
|
|
19
|
+
transition-duration: 2s;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* Hover Styles */
|
|
23
|
-
.icon:hover,
|
|
23
|
+
.icon:hover,
|
|
24
|
+
.login:hover {
|
|
25
|
+
background-color: var(--pwa_icon_hover);
|
|
26
|
+
}
|
|
24
27
|
|
|
25
|
-
/* The Icon Button */
|
|
28
|
+
/* Logged-in State: The Icon Button */
|
|
26
29
|
.icon {
|
|
27
|
-
height:
|
|
28
|
-
width:
|
|
29
|
-
|
|
30
|
+
height: var(--pwa_icon_diameter);
|
|
31
|
+
width: var(--pwa_icon_diameter);
|
|
30
32
|
border-radius: 50%;
|
|
31
|
-
|
|
32
33
|
padding: 0;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
/* The Login Button */
|
|
36
37
|
.login {
|
|
37
|
-
width:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
padding:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.iconArea {
|
|
46
|
-
border-radius: 50%;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
width: 38px;
|
|
49
|
-
height: 38px;
|
|
50
|
-
margin: auto;
|
|
38
|
+
width: auto;
|
|
39
|
+
border-radius: var(--pwa_icon_radius);
|
|
40
|
+
height: var(--pwa_icon_height);
|
|
41
|
+
line-height: var(--pwa_icon_height);
|
|
42
|
+
padding: var(--pwa_icon_padding);
|
|
43
|
+
font-family: var(--pwa_icon_font);
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
text-align: center;
|
|
51
46
|
}
|
|
52
47
|
|
|
53
48
|
/* Icon Artwork */
|
|
54
49
|
.userImage {
|
|
55
|
-
object-fit:
|
|
56
|
-
transition-property:
|
|
57
|
-
transition-duration:
|
|
58
|
-
clip-path:
|
|
59
|
-
|
|
50
|
+
object-fit: cover;
|
|
51
|
+
transition-property: all;
|
|
52
|
+
transition-duration: 2s;
|
|
53
|
+
clip-path: circle(50%);
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
width: calc(var(--pwa_icon_diameter) - 2px);
|
|
56
|
+
height: calc(var(--pwa_icon_diameter) - 2px);
|
|
57
|
+
margin: auto;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
`;
|
|
@@ -14,7 +14,7 @@ declare const UserIcon_base: (new (...args: any[]) => {
|
|
|
14
14
|
readonly isConnected: boolean;
|
|
15
15
|
}) & typeof LitElement;
|
|
16
16
|
export declare class UserIcon extends UserIcon_base {
|
|
17
|
-
|
|
17
|
+
subscribe: boolean;
|
|
18
18
|
private _user;
|
|
19
19
|
private _photoURL;
|
|
20
20
|
constructor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,UAAU,EAAE,MAAQ,KAAK,CAAC;AAGzD,OAAO,EAAS,QAAQ,EAAE,MAAyB,aAAa,CAAC;;;;;;;;;;;;;;AAKjE,qBACa,QAAS,SAAQ,aAA0B;IAGL,SAAS,UAAS;IAE1D,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAM;;IAKhC,SAAS,CAAC,YAAY;IAOtB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAM5B,MAAM,KAAK,MAAM,IAAG,cAAc,CAA0B;IAE5D,SAAS,CAAC,MAAM;CAyBjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,WAAW,EAAE,QAAQ,CAAC;KACzB;CACF"}
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
8
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin.js';
|
|
10
10
|
import { store } from '../../store';
|
|
@@ -13,12 +13,12 @@ import { toggleSign } from '../../redux/frontend';
|
|
|
13
13
|
let UserIcon = class UserIcon extends connect(store)(LitElement) {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
|
-
this.
|
|
16
|
+
this.subscribe = false;
|
|
17
17
|
this._user = false;
|
|
18
18
|
this._photoURL = '';
|
|
19
19
|
}
|
|
20
20
|
firstUpdated() {
|
|
21
|
-
this.shadowRoot.querySelector('
|
|
21
|
+
this.shadowRoot.querySelector('.toggles').addEventListener('click', () => {
|
|
22
22
|
store.dispatch(toggleSign());
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -26,21 +26,13 @@ let UserIcon = class UserIcon extends connect(store)(LitElement) {
|
|
|
26
26
|
this._user = state.frontend.login;
|
|
27
27
|
this._photoURL = state.backend.photoURL;
|
|
28
28
|
}
|
|
29
|
-
static get styles() {
|
|
30
|
-
return [
|
|
31
|
-
iconStyles,
|
|
32
|
-
css `
|
|
33
|
-
|
|
34
|
-
:host { margin: auto; display: grid; }
|
|
35
|
-
|
|
36
|
-
`
|
|
37
|
-
];
|
|
38
|
-
}
|
|
29
|
+
static get styles() { return [iconStyles]; }
|
|
39
30
|
render() {
|
|
40
31
|
return html `
|
|
41
32
|
|
|
33
|
+
<!-- two classes: icon / login -->
|
|
42
34
|
<button
|
|
43
|
-
class="${this._user ? 'icon' : 'login'}"
|
|
35
|
+
class="${this._user ? 'icon' : 'login'} toggles"
|
|
44
36
|
aria-label="login">
|
|
45
37
|
|
|
46
38
|
${this._user ? html `
|
|
@@ -54,7 +46,7 @@ let UserIcon = class UserIcon extends connect(store)(LitElement) {
|
|
|
54
46
|
width = "38px"
|
|
55
47
|
src = "${this._photoURL}">
|
|
56
48
|
<!-- </div> -->
|
|
57
|
-
` : this.
|
|
49
|
+
` : this.subscribe ? 'Subscribe' : 'Login'}
|
|
58
50
|
|
|
59
51
|
</button>
|
|
60
52
|
|
|
@@ -63,7 +55,7 @@ let UserIcon = class UserIcon extends connect(store)(LitElement) {
|
|
|
63
55
|
};
|
|
64
56
|
__decorate([
|
|
65
57
|
property({ type: Boolean, reflect: true })
|
|
66
|
-
], UserIcon.prototype, "
|
|
58
|
+
], UserIcon.prototype, "subscribe", void 0);
|
|
67
59
|
__decorate([
|
|
68
60
|
state()
|
|
69
61
|
], UserIcon.prototype, "_user", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/settings/css/navigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/settings/css/navigation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAiDtB,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const navigation = css `
|
|
3
3
|
|
|
4
|
-
nav {
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
}
|
|
4
|
+
nav { overflow: hidden; }
|
|
7
5
|
|
|
8
6
|
/* Navigation Menu */
|
|
9
7
|
nav > ul {
|
|
@@ -47,14 +45,6 @@ export const navigation = css `
|
|
|
47
45
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
/* Navigation Button - Media Text Justification
|
|
51
|
-
@media (max-width: 460px) {
|
|
52
|
-
|
|
53
|
-
button[value=profile], button[value=email] { text-align: left; }
|
|
54
|
-
button[value=delete], button[value=password] { text-align: right; }
|
|
55
|
-
|
|
56
|
-
}*/
|
|
57
|
-
|
|
58
48
|
section[on] { display: grid; }
|
|
59
49
|
section { display: none; }
|
|
60
50
|
|