hoodcms 6.1.0 → 6.1.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/package.json
CHANGED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
7
|
-
<title>Log in to Hood CMS</title>
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
|
|
13
|
-
<!--[if IE 8]>
|
|
14
|
-
<script src="//cdnjs.cloudflare.com/ajax/libs/ie8/0.2.5/ie8.js"></script>
|
|
15
|
-
<![endif]-->
|
|
16
|
-
|
|
17
|
-
<!--[if lte IE 9]>
|
|
18
|
-
<script src="https://cdn.auth0.com/js/base64.js"></script>
|
|
19
|
-
<script src="https://cdn.auth0.com/js/es5-shim.min.js"></script>
|
|
20
|
-
<![endif]-->
|
|
21
|
-
|
|
22
|
-
<script src="https://cdn.auth0.com/js/lock/11.32/lock.min.js"></script>
|
|
23
|
-
<script>
|
|
24
|
-
// Decode utf8 characters properly
|
|
25
|
-
var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));
|
|
26
|
-
config.extraParams = config.extraParams || {};
|
|
27
|
-
var connection = config.connection;
|
|
28
|
-
var prompt = config.prompt;
|
|
29
|
-
var languageDictionary;
|
|
30
|
-
var language;
|
|
31
|
-
|
|
32
|
-
if (config.dict && config.dict.signin && config.dict.signin.title) {
|
|
33
|
-
languageDictionary = { title: config.dict.signin.title };
|
|
34
|
-
} else if (typeof config.dict === 'string') {
|
|
35
|
-
language = config.dict;
|
|
36
|
-
}
|
|
37
|
-
var colors = config.colors || {};
|
|
38
|
-
var loginHint = config.extraParams.login_hint;
|
|
39
|
-
var logo = config.extraParams.logo || "https://cdn.jsdelivr.net/npm/hoodcms@5.0.15/images/hood-cms.png";
|
|
40
|
-
var color = config.extraParams.color || colors.primary;
|
|
41
|
-
var background = config.extraParams.background || colors.page_background;
|
|
42
|
-
var isPasswordless = config.extraParams && config.extraParams.action === "passwordless";
|
|
43
|
-
var isSignup = config.extraParams && config.extraParams.action === "signup";
|
|
44
|
-
|
|
45
|
-
if (background) {
|
|
46
|
-
var css = `.auth0-lock.auth0-lock .auth0-lock-overlay { background: ${background} }`;
|
|
47
|
-
var style = document.createElement('style');
|
|
48
|
-
style.appendChild(document.createTextNode(css));
|
|
49
|
-
document.body.appendChild(style);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
var baseOptions = {
|
|
53
|
-
auth: {
|
|
54
|
-
redirectUrl: config.callbackURL,
|
|
55
|
-
responseType: (config.internalOptions || {}).response_type || (config.callbackOnLocationHash ? 'token' : 'code'),
|
|
56
|
-
params: config.internalOptions
|
|
57
|
-
},
|
|
58
|
-
configurationBaseUrl: config.clientConfigurationBaseUrl,
|
|
59
|
-
overrides: {
|
|
60
|
-
__tenant: config.auth0Tenant,
|
|
61
|
-
__token_issuer: config.authorizationServer.issuer
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
assetsUrl: config.assetsUrl,
|
|
65
|
-
|
|
66
|
-
allowedConnections: connection ? [connection] : null,
|
|
67
|
-
rememberLastLogin: !prompt,
|
|
68
|
-
language: language,
|
|
69
|
-
languageBaseUrl: config.languageBaseUrl,
|
|
70
|
-
languageDictionary: languageDictionary,
|
|
71
|
-
theme: {
|
|
72
|
-
logo: logo ? logo : null,
|
|
73
|
-
primaryColor: color ? color : null
|
|
74
|
-
},
|
|
75
|
-
closable: false,
|
|
76
|
-
|
|
77
|
-
prefill: loginHint ? { email: loginHint, username: loginHint } : null,
|
|
78
|
-
defaultADUsernameFromEmailPrefix: false,
|
|
79
|
-
initialScreen: isSignup ? "signUp" : "login"
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
if (isPasswordless) {
|
|
83
|
-
|
|
84
|
-
var lock = new Auth0LockPasswordless(config.clientID, config.auth0Domain, { ...baseOptions, ...{
|
|
85
|
-
passwordlessMethod: 'link'
|
|
86
|
-
}});
|
|
87
|
-
} else {
|
|
88
|
-
var lock = new Auth0Lock(config.clientID, config.auth0Domain, { ...baseOptions, ...{
|
|
89
|
-
prefill: loginHint ? { email: loginHint, username: loginHint } : null,
|
|
90
|
-
defaultADUsernameFromEmailPrefix: false,
|
|
91
|
-
initialScreen: isSignup ? "signUp" : "login"
|
|
92
|
-
}});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
lock.show();
|
|
97
|
-
</script>
|
|
98
|
-
</body>
|
|
99
|
-
|
|
100
|
-
</html>
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
6
|
-
<style type="text/css">
|
|
7
|
-
.ExternalClass,
|
|
8
|
-
.ExternalClass div,
|
|
9
|
-
.ExternalClass font,
|
|
10
|
-
.ExternalClass p,
|
|
11
|
-
.ExternalClass span,
|
|
12
|
-
.ExternalClass td,
|
|
13
|
-
img {
|
|
14
|
-
line-height: 100%
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
#outlook a {
|
|
18
|
-
padding: 0
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ExternalClass,
|
|
22
|
-
.ReadMsgBody {
|
|
23
|
-
width: 100%
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
a,
|
|
27
|
-
blockquote,
|
|
28
|
-
body,
|
|
29
|
-
li,
|
|
30
|
-
p,
|
|
31
|
-
table,
|
|
32
|
-
td {
|
|
33
|
-
-webkit-text-size-adjust: 100%;
|
|
34
|
-
-ms-text-size-adjust: 100%
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
table,
|
|
38
|
-
td {
|
|
39
|
-
mso-table-lspace: 0;
|
|
40
|
-
mso-table-rspace: 0
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
img {
|
|
44
|
-
-ms-interpolation-mode: bicubic;
|
|
45
|
-
border: 0;
|
|
46
|
-
height: auto;
|
|
47
|
-
outline: 0;
|
|
48
|
-
text-decoration: none
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
table {
|
|
52
|
-
border-collapse: collapse !important
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
#bodyCell,
|
|
56
|
-
#bodyTable,
|
|
57
|
-
body {
|
|
58
|
-
height: 100% !important;
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 0;
|
|
61
|
-
font-family: ProximaNova, sans-serif
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
#bodyCell {
|
|
65
|
-
padding: 20px
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
#bodyTable {
|
|
69
|
-
width: 600px
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@font-face {
|
|
73
|
-
font-family: ProximaNova;
|
|
74
|
-
src: url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-regular-webfont-webfont.eot);
|
|
75
|
-
src: url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-regular-webfont-webfont.eot?#iefix) format('embedded-opentype'), url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-regular-webfont-webfont.woff) format('woff');
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
font-style: normal
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@font-face {
|
|
81
|
-
font-family: ProximaNova;
|
|
82
|
-
src: url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-semibold-webfont-webfont.eot);
|
|
83
|
-
src: url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-semibold-webfont-webfont.eot?#iefix) format('embedded-opentype'), url(https://cdn.auth0.com/fonts/proxima-nova/proximanova-semibold-webfont-webfont.woff) format('woff');
|
|
84
|
-
font-weight: 600;
|
|
85
|
-
font-style: normal
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media only screen and (max-width:480px) {
|
|
89
|
-
|
|
90
|
-
#bodyTable,
|
|
91
|
-
body {
|
|
92
|
-
width: 100% !important
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
a,
|
|
96
|
-
blockquote,
|
|
97
|
-
body,
|
|
98
|
-
li,
|
|
99
|
-
p,
|
|
100
|
-
table,
|
|
101
|
-
td {
|
|
102
|
-
-webkit-text-size-adjust: none !important
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
body {
|
|
106
|
-
min-width: 100% !important
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
#bodyTable {
|
|
110
|
-
max-width: 600px !important
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
#signIn {
|
|
114
|
-
max-width: 280px !important
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
</style>
|
|
118
|
-
</head>
|
|
119
|
-
|
|
120
|
-
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;margin: 0;padding: 0;font-family: "ProximaNova", sans-serif;height: 100% !important;">
|
|
121
|
-
<center>
|
|
122
|
-
<table
|
|
123
|
-
style="width: 600px;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;mso-table-lspace: 0pt;mso-table-rspace: 0pt;margin: 0;padding: 0;font-family: "ProximaNova", sans-serif;border-collapse: collapse !important;height: 100% !important;"
|
|
124
|
-
align="left" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable">
|
|
125
|
-
<tr>
|
|
126
|
-
<td align="left" valign="top" id="bodyCell"
|
|
127
|
-
style="-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;mso-table-lspace: 0pt;mso-table-rspace: 0pt;margin: 0;padding: 20px;font-family: "ProximaNova", sans-serif;height: 100% !important;">
|
|
128
|
-
<div class="main">
|
|
129
|
-
<p style="text-align: left;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%; margin-bottom: 30px;">
|
|
130
|
-
<img src="https://cdn.jsdelivr.net/npm/hoodcms@5.0.15/images/hood-cms.png" width="250" alt="{{ application.name }}"
|
|
131
|
-
style="-ms-interpolation-mode: bicubic;border: 0;height: auto;line-height: 100%;outline: none;text-decoration: none;">
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
|
-
<!-- Email change content -->
|
|
135
|
-
{% if operation == 'change_email' %}
|
|
136
|
-
|
|
137
|
-
<p style="font-size: 1.2em;line-height: 1.3;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;">Your email address has been updated.</p>
|
|
138
|
-
|
|
139
|
-
{% else %}
|
|
140
|
-
|
|
141
|
-
<!-- Signup email content -->
|
|
142
|
-
{% if send == 'link' or send == 'link_ios' or send == 'link_android' %}
|
|
143
|
-
|
|
144
|
-
<p style="font-size: 1.2em;line-height: 1.3;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;">Click and confirm that you want to sign in to {{ application.name }}. This link will expire in three minutes.</p>
|
|
145
|
-
|
|
146
|
-
<div style="text-align:left">
|
|
147
|
-
<a id="signIn"
|
|
148
|
-
style="text-transform: uppercase;letter-spacing: 1px;color: #ffffff;text-decoration: none;display: inline-block;min-height: 48px;line-height: 48px;padding-top: 0;padding-right: 26px;padding-bottom: 0;margin: 20px 0;padding-left: 26px;border: 0;outline: 0;background: #eb5424;font-size: 14px;font-style: normal;font-weight: 400;text-align: center;white-space: nowrap;border-radius: 3px;text-overflow: ellipsis;max-width: 280px;overflow: hidden;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;"
|
|
149
|
-
href="{{ link }}">Sign in to {{ application.name }}</a>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<p style="-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;">Or sign in using this link:</p>
|
|
153
|
-
<p style="-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;"><a style="font-size: 12px; color: #A9B3BC; text-decoration: none;word-break: break-all;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;"
|
|
154
|
-
href="{{ link }}">{{ link }}</a></p>
|
|
155
|
-
|
|
156
|
-
{% elsif send == 'code' %}
|
|
157
|
-
|
|
158
|
-
<p style="font-size: 1.4em; line-height: 1.3;">Your verification code is: <b>{{ code }}</b></p>
|
|
159
|
-
|
|
160
|
-
{% endif %}
|
|
161
|
-
|
|
162
|
-
{% endif %}
|
|
163
|
-
|
|
164
|
-
<p style="-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;">If you are having any issues with your account, please don't hesitate to contact us by replying to this mail.</p>
|
|
165
|
-
|
|
166
|
-
<br>
|
|
167
|
-
Thanks!
|
|
168
|
-
<br>
|
|
169
|
-
|
|
170
|
-
<strong>{{ application.name }}</strong>
|
|
171
|
-
|
|
172
|
-
<br><br>
|
|
173
|
-
<hr style="border: 2px solid #EAEEF3; border-bottom: 0; margin: 20px 0;">
|
|
174
|
-
<p style="text-align: left;color: #A9B3BC;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;">
|
|
175
|
-
If you did not make this request, please contact us by replying to this mail.
|
|
176
|
-
</p>
|
|
177
|
-
</div>
|
|
178
|
-
</td>
|
|
179
|
-
</tr>
|
|
180
|
-
</table>
|
|
181
|
-
</center>
|
|
182
|
-
</body>
|
|
183
|
-
|
|
184
|
-
</html>
|