jekyll-theme-chirpy-customized-upe 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/locales/en.yml +27 -22
- data/_data/locales/ko-KR.yml +22 -12
- data/_data/locales/zh-CN.yml +24 -13
- data/_data/locales/zh-TW.yml +16 -0
- data/_includes/assets-origin.html +12 -0
- data/_includes/loader.html +14 -0
- data/_includes/login-check.html +38 -0
- data/_includes/mathjax_support.html +28 -0
- data/_includes/valine.html +17 -0
- data/_layouts/forgot.html +164 -0
- data/_layouts/login.html +268 -0
- data/_sass/addon/loader.scss +43 -0
- data/_sass/layout/gallery.scss +665 -0
- metadata +11 -22
- data/_data/locales/ar.yml +0 -91
- data/_data/locales/bg-BG.yml +0 -81
- data/_data/locales/cs-CZ.yml +0 -89
- data/_data/locales/de-DE.yml +0 -87
- data/_data/locales/el-GR.yml +0 -91
- data/_data/locales/es-ES.yml +0 -77
- data/_data/locales/fi-FI.yml +0 -90
- data/_data/locales/fr-FR.yml +0 -77
- data/_data/locales/hu-HU.yml +0 -79
- data/_data/locales/id-ID.yml +0 -77
- data/_data/locales/it-IT.yml +0 -90
- data/_data/locales/my-MM.yml +0 -77
- data/_data/locales/pt-BR.yml +0 -77
- data/_data/locales/ru-RU.yml +0 -87
- data/_data/locales/sl-SI.yml +0 -91
- data/_data/locales/sv-SE.yml +0 -91
- data/_data/locales/th.yml +0 -91
- data/_data/locales/tr-TR.yml +0 -77
- data/_data/locales/uk-UA.yml +0 -77
- data/_data/locales/vi-VN.yml +0 -76
- /data/assets/css/{jekyll-theme-chirpy.scss → jekyll-theme-chirpy-customized-upe.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c72a2998d31663d98ae4ab32028c5494959fb607203ae204590da8294026f7
|
4
|
+
data.tar.gz: f7c68cc2541f7ab1308066d09180dc546c2942b272a72f7a5d7ea20c2b7adda2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b609c2cb6a21dc5a9054f09b43e63aa1b468e8d093fb26d887a48604b25a9e539a4838556515213db5fc93c92f69903a847c67fd3fb1d9e40cf66398a60d73
|
7
|
+
data.tar.gz: 982513cc5b5ce396566315900f39cf34e8d7dbadc7072ebb20cce8506410ff5b0f21ca0f9d367ac645376dca76b6a12a6b01bbaff1674c28f8a8fa46ff01e5aa
|
data/_data/locales/en.yml
CHANGED
@@ -11,6 +11,7 @@ layout:
|
|
11
11
|
tabs:
|
12
12
|
# format: <filename_without_extension>: <value>
|
13
13
|
home: Home
|
14
|
+
gallery: Gallery
|
14
15
|
categories: Categories
|
15
16
|
tags: Tags
|
16
17
|
archives: Archives
|
@@ -20,7 +21,7 @@ tabs:
|
|
20
21
|
search:
|
21
22
|
hint: search
|
22
23
|
cancel: Cancel
|
23
|
-
no_results: Oops! No
|
24
|
+
no_results: Oops! No result founds.
|
24
25
|
|
25
26
|
panel:
|
26
27
|
lastmod: Recently Updated
|
@@ -40,14 +41,13 @@ copyright:
|
|
40
41
|
Except where otherwise noted, the blog posts on this site are licensed
|
41
42
|
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
|
42
43
|
|
43
|
-
meta:
|
44
|
+
meta: Powered by :PLATFORM with :THEME theme.
|
44
45
|
|
45
46
|
not_found:
|
46
47
|
statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
update: Update
|
48
|
+
hint_template: :HEAD_BAK to try finding it again, or search for it on the :ARCHIVES_PAGE.
|
49
|
+
head_back: Head back Home
|
50
|
+
archives_page: Archives page
|
51
51
|
|
52
52
|
# ----- Posts related labels -----
|
53
53
|
|
@@ -70,22 +70,27 @@ post:
|
|
70
70
|
share_link:
|
71
71
|
title: Copy link
|
72
72
|
succeed: Link copied successfully!
|
73
|
-
|
74
|
-
|
75
|
-
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
76
|
-
df:
|
77
|
-
post:
|
78
|
-
strftime: "%b %e, %Y"
|
79
|
-
dayjs: "ll"
|
80
|
-
archives:
|
81
|
-
strftime: "%b"
|
82
|
-
dayjs: "MMM"
|
73
|
+
# pinned prompt of posts list on homepage
|
74
|
+
pin_prompt: Pinned
|
83
75
|
|
84
76
|
# categories page
|
85
77
|
categories:
|
86
|
-
category_measure:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
78
|
+
category_measure: categories
|
79
|
+
post_measure: posts
|
80
|
+
|
81
|
+
# login and forgot page
|
82
|
+
login:
|
83
|
+
username: Username
|
84
|
+
password: Password
|
85
|
+
login: Login
|
86
|
+
register: Register
|
87
|
+
logout: Logout
|
88
|
+
forgot: Forgot
|
89
|
+
forgot_prompt: Enter the email you used to login
|
90
|
+
forgot_password: Forgot Password?
|
91
|
+
go_to_register: Go to Register
|
92
|
+
new_username: New Username
|
93
|
+
new_password: New Password
|
94
|
+
email: Email(MUST)
|
95
|
+
confirm: Confirm
|
96
|
+
|
data/_data/locales/ko-KR.yml
CHANGED
@@ -40,14 +40,13 @@ copyright:
|
|
40
40
|
명시되지 않는 한 이 사이트의 블로그 게시물은 작성자의
|
41
41
|
Creative Commons Attribution 4.0 International(CC BY 4.0) 라이선스에 따라 사용이 허가되었습니다.
|
42
42
|
|
43
|
-
meta: Powered by :PLATFORM with :THEME theme
|
43
|
+
meta: Powered by :PLATFORM with :THEME theme.
|
44
44
|
|
45
45
|
not_found:
|
46
46
|
statment: 해당 URL은 존재하지 않습니다.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
update: 업데이트
|
47
|
+
hint_template: :HEAD_BAK을 눌러 다시 찾거나 :ARCHIVES_PAGE에서 검색해 주세요.
|
48
|
+
head_back: 홈으로 돌아가기
|
49
|
+
archives_page: 아카이브 페이지
|
51
50
|
|
52
51
|
# ----- Posts related labels -----
|
53
52
|
|
@@ -70,15 +69,26 @@ post:
|
|
70
69
|
share_link:
|
71
70
|
title: 링크 복사하기
|
72
71
|
succeed: 링크가 복사되었습니다!
|
73
|
-
|
74
|
-
|
75
|
-
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
76
|
-
df:
|
77
|
-
post:
|
78
|
-
strftime: "%Y/%m/%d"
|
79
|
-
dayjs: "YYYY/MM/DD"
|
72
|
+
# pinned prompt of posts list on homepage
|
73
|
+
pin_prompt: 핀
|
80
74
|
|
81
75
|
# categories page
|
82
76
|
categories:
|
83
77
|
category_measure: 카테고리
|
84
78
|
post_measure: 포스트
|
79
|
+
|
80
|
+
# login and forgot page
|
81
|
+
login:
|
82
|
+
username: 사용자 이름
|
83
|
+
password: 암호
|
84
|
+
login: 로그인
|
85
|
+
register: 등록
|
86
|
+
logout: 로그오프
|
87
|
+
forgot: 비밀번호를 잊어버렸습니다
|
88
|
+
forgot_prompt: 등록할 때 사용한 이메일 주소를 입력하세요.
|
89
|
+
forgot_password: 비밀번호를 잊으셨나요?
|
90
|
+
go_to_register: 등록으로 이동
|
91
|
+
new_username: 새 사용자 이름
|
92
|
+
new_password: 새 비밀번호
|
93
|
+
email: 이메일 (필수)
|
94
|
+
confirm: 확실한가요
|
data/_data/locales/zh-CN.yml
CHANGED
@@ -11,6 +11,7 @@ layout:
|
|
11
11
|
tabs:
|
12
12
|
# format: <filename_without_extension>: <value>
|
13
13
|
home: 首页
|
14
|
+
gallery: 画廊
|
14
15
|
categories: 分类
|
15
16
|
tags: 标签
|
16
17
|
archives: 归档
|
@@ -39,14 +40,13 @@ copyright:
|
|
39
40
|
verbose: >-
|
40
41
|
除非另有说明,本网站上的博客文章均由作者按照知识共享署名 4.0 国际 (CC BY 4.0) 许可协议进行授权。
|
41
42
|
|
42
|
-
meta:
|
43
|
+
meta: 本站由 :PLATFORM 生成,采用 :THEME 主题。
|
43
44
|
|
44
45
|
not_found:
|
45
46
|
statment: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
update: 更新
|
47
|
+
hint_template: :HEAD_BAK尝试再次查找它,或在:ARCHIVES_PAGE上搜索它。
|
48
|
+
head_back: 返回主页
|
49
|
+
archives_page: 归档页面
|
50
50
|
|
51
51
|
# ----- Posts related labels -----
|
52
52
|
|
@@ -67,17 +67,28 @@ post:
|
|
67
67
|
copy_code:
|
68
68
|
succeed: 已复制!
|
69
69
|
share_link:
|
70
|
-
title:
|
70
|
+
title: 分享链接
|
71
71
|
succeed: 链接已复制!
|
72
|
-
|
73
|
-
|
74
|
-
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
75
|
-
df:
|
76
|
-
post:
|
77
|
-
strftime: "%Y/%m/%d"
|
78
|
-
dayjs: "YYYY/MM/DD"
|
72
|
+
# pinned prompt of posts list on homepage
|
73
|
+
pin_prompt: 顶置
|
79
74
|
|
80
75
|
# categories page
|
81
76
|
categories:
|
82
77
|
category_measure: 个分类
|
83
78
|
post_measure: 篇文章
|
79
|
+
|
80
|
+
# login and forgot page
|
81
|
+
login:
|
82
|
+
username: 用户名
|
83
|
+
password: 密码
|
84
|
+
login: 登录
|
85
|
+
register: 注册
|
86
|
+
logout: 登出
|
87
|
+
forgot: 忘记密码
|
88
|
+
forgot_prompt: 输入您注册时的邮箱
|
89
|
+
forgot_password: 忘记密码?
|
90
|
+
go_to_register: 去注册
|
91
|
+
new_username: 新用户名
|
92
|
+
new_password: 新密码
|
93
|
+
email: 邮箱(必填)
|
94
|
+
confirm: 确定
|
data/_data/locales/zh-TW.yml
CHANGED
@@ -81,3 +81,19 @@ df:
|
|
81
81
|
categories:
|
82
82
|
category_measure: 個分類
|
83
83
|
post_measure: 篇文章
|
84
|
+
|
85
|
+
# login and forgot page
|
86
|
+
login:
|
87
|
+
username: 用戶名
|
88
|
+
password: 密碼
|
89
|
+
login: 登入
|
90
|
+
register: 注冊
|
91
|
+
logout: 登出
|
92
|
+
forgot: 忘記密碼
|
93
|
+
forgot_prompt: 輸入您用於登入的電子郵件
|
94
|
+
forgot_password: 忘記密碼?
|
95
|
+
go_to_register: 去注冊
|
96
|
+
new_username: 新用戶名
|
97
|
+
new_password: 新密碼
|
98
|
+
email: 郵箱(必填)
|
99
|
+
confirm: 確定
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{% comment %} Site static assets origin {% endcomment %}
|
2
|
+
{% assign origin = 'cross_origin' %}
|
3
|
+
|
4
|
+
{% if site.assets.self_host.enabled %}
|
5
|
+
{% if site.assets.self_host.env %}
|
6
|
+
{% if site.assets.self_host.env == jekyll.environment %}
|
7
|
+
{% assign origin = 'self_host' %}
|
8
|
+
{% endif %}
|
9
|
+
{% else %}
|
10
|
+
{% assign origin = 'self_host' %}
|
11
|
+
{% endif %}
|
12
|
+
{% endif %}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="loader-wrapper">
|
2
|
+
<span class="loader"><span class="loader-inner"></span></span>
|
3
|
+
</div>
|
4
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
5
|
+
<script>
|
6
|
+
$(window).on("load", function () {
|
7
|
+
$(".loader-wrapper").fadeOut("slow");
|
8
|
+
});
|
9
|
+
setTimeout(function () {
|
10
|
+
if ($(".loader-wrapper").is(":visible")) {
|
11
|
+
alert('检测到当前页面加载时间已超过 15 秒,原因可能是您的网速过慢或系统正在维护,您可继续等待加载或尝试刷新页面以解决。');
|
12
|
+
};
|
13
|
+
}, 15000);
|
14
|
+
</script>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<script src="https://cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js"></script>
|
2
|
+
<script type="text/javascript">
|
3
|
+
let appId = '{{ site.Leancloud.appId }}';
|
4
|
+
let appKey = '{{ site.Leancloud.appKey }}';
|
5
|
+
let serverURL = '{{ site.Leancloud.serverURL }}';
|
6
|
+
AV.init({
|
7
|
+
appId: appId,
|
8
|
+
appKey: appKey,
|
9
|
+
serverURL: serverURL,
|
10
|
+
});
|
11
|
+
|
12
|
+
const currentUser = AV.User.current();
|
13
|
+
|
14
|
+
if (currentUser != null) {
|
15
|
+
if (currentUser.get('avatar')) {
|
16
|
+
document.getElementById('avatar').getElementsByTagName('img')[0].src = currentUser.get('avatar');
|
17
|
+
}
|
18
|
+
if (currentUser.get('nickname')) {
|
19
|
+
document.querySelector('.site-title a').innerText = "Hi " + currentUser.get('nickname') + " !";
|
20
|
+
} else if (currentUser.get('username')) {
|
21
|
+
document.querySelector('.site-title a').innerText = "Hi " + currentUser.get('username') + "!";
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
function checkLogin() {
|
26
|
+
if (currentUser != null) {
|
27
|
+
document.body.style.display = 'block';
|
28
|
+
} else {
|
29
|
+
/* 显示注册或登录页面 */
|
30
|
+
let originalUrl = window.location.href;
|
31
|
+
|
32
|
+
window.location.href = '{{ site.baseurl }}/login?redirect=' + encodeURIComponent(originalUrl);
|
33
|
+
/* window.location.href = '{{ site.baseurl }}/login'; */
|
34
|
+
}
|
35
|
+
};
|
36
|
+
/* 在页面加载时调用checkLogin函数检查登录状态 */
|
37
|
+
window.addEventListener('load', checkLogin);
|
38
|
+
</script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<script type="text/x-mathjax-config">
|
2
|
+
MathJax.Hub.Config({
|
3
|
+
TeX: {
|
4
|
+
equationNumbers: {
|
5
|
+
autoNumber: "AMS"
|
6
|
+
}
|
7
|
+
},
|
8
|
+
extensions: ["tex2jax.js"],
|
9
|
+
jax: ["input/TeX", "output/HTML-CSS"],
|
10
|
+
tex2jax: {
|
11
|
+
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
12
|
+
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
|
13
|
+
processEscapes: true,
|
14
|
+
"HTML-CSS": { fonts: ["TeX"] }
|
15
|
+
}
|
16
|
+
});
|
17
|
+
MathJax.Hub.Register.MessageHook("Math Processing Error",function (message) {
|
18
|
+
alert("Math Processing Error: "+message[1]);
|
19
|
+
});
|
20
|
+
MathJax.Hub.Register.MessageHook("TeX Jax - parse error",function (message) {
|
21
|
+
alert("Math Processing Error: "+message[1]);
|
22
|
+
});
|
23
|
+
</script>
|
24
|
+
<script
|
25
|
+
type="text/javascript"
|
26
|
+
async
|
27
|
+
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"
|
28
|
+
></script>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% if site.valine_comment.enable %}
|
2
|
+
<div id="comments"></div>
|
3
|
+
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
4
|
+
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
5
|
+
<script>
|
6
|
+
new Valine({
|
7
|
+
el: '#comments',
|
8
|
+
app_id: '{{ site.valine_comment.leancloud_appid }}',
|
9
|
+
app_key: '{{ site.valine_comment.leancloud_appkey }}',
|
10
|
+
placeholder: '🥳 快来发表一条评论吧!(允许匿名评论)\n📨 呢称填入QQ号可以自动补全邮箱和显示头像 \n📬 留下您的邮箱,如有回复消息,会通过邮件向您发送通知 \n📝 请遵守网络道德',
|
11
|
+
avatar: 'monsterid',
|
12
|
+
serverURLs: '{{ site.valine_comment.serverURLs }}',
|
13
|
+
visitor: true,
|
14
|
+
enableQQ: '{{ site.valine_comment.enableQQ }}'
|
15
|
+
});
|
16
|
+
</script>
|
17
|
+
{% endif %}
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="referrer" content="no-referrer" />
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css">
|
10
|
+
<title> Forgot </title>
|
11
|
+
|
12
|
+
<style>
|
13
|
+
body {
|
14
|
+
display: flex;
|
15
|
+
justify-content: center;
|
16
|
+
align-items: center;
|
17
|
+
height: 100vh;
|
18
|
+
background-color: rgb(27, 27, 30);
|
19
|
+
}
|
20
|
+
|
21
|
+
.shell {
|
22
|
+
width: 350px;
|
23
|
+
padding: 40px;
|
24
|
+
display: flex;
|
25
|
+
align-items: center;
|
26
|
+
flex-direction: column;
|
27
|
+
}
|
28
|
+
|
29
|
+
.title {
|
30
|
+
color: #ffffff;
|
31
|
+
font-size: 60px;
|
32
|
+
font-family: 'Times New Roman', Times, serif;
|
33
|
+
margin-bottom: 30px;
|
34
|
+
}
|
35
|
+
|
36
|
+
input[type="text"],
|
37
|
+
input[type="password"],
|
38
|
+
input[type="email"] {
|
39
|
+
width: 100%;
|
40
|
+
height: 50px;
|
41
|
+
margin: 10px 0;
|
42
|
+
box-sizing: border-box;
|
43
|
+
color: black;
|
44
|
+
border: 1px solid #000;
|
45
|
+
background-color: #fff;
|
46
|
+
border-radius: 10px;
|
47
|
+
padding: 5px;
|
48
|
+
font-size: 1rem;
|
49
|
+
outline: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
input[type="submit"] {
|
53
|
+
width: 30%;
|
54
|
+
height: 30px;
|
55
|
+
padding: 0;
|
56
|
+
margin: 15px 0;
|
57
|
+
font-family: Arial, Helvetica, sans-serif;
|
58
|
+
color: #fff;
|
59
|
+
background-color: #007bff;
|
60
|
+
cursor: pointer;
|
61
|
+
font-size: 20px;
|
62
|
+
border: none;
|
63
|
+
text-align: center;
|
64
|
+
align-items: center;
|
65
|
+
border-radius: 8px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.footer {
|
69
|
+
display: flex;
|
70
|
+
flex-direction: row;
|
71
|
+
justify-content: space-evenly;
|
72
|
+
align-items: center;
|
73
|
+
width: 100%;
|
74
|
+
margin-top: 20px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.remember {
|
78
|
+
display: flex;
|
79
|
+
justify-content: center;
|
80
|
+
align-items: center;
|
81
|
+
font-family: Arial, Helvetica, sans-serif;
|
82
|
+
color: #fff;
|
83
|
+
}
|
84
|
+
|
85
|
+
input[type="checkbox"] {
|
86
|
+
display: block;
|
87
|
+
width: 25px;
|
88
|
+
height: 25px;
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
#signUp,
|
93
|
+
#forgotPassword {
|
94
|
+
background: none;
|
95
|
+
border: none;
|
96
|
+
text-decoration: underline;
|
97
|
+
font-size: 15px;
|
98
|
+
border-radius: 5px;
|
99
|
+
color: rgba(203, 203, 211, 0.447);
|
100
|
+
font-family: Arial, Helvetica, sans-serif;
|
101
|
+
cursor: pointer;
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/* 浅色模式 */
|
106
|
+
@media (prefers-color-scheme: light) {
|
107
|
+
body {
|
108
|
+
background-color: white;
|
109
|
+
}
|
110
|
+
|
111
|
+
.title {
|
112
|
+
color: #2a2a2a;
|
113
|
+
}
|
114
|
+
|
115
|
+
.remember {
|
116
|
+
color: #2a2a2a;
|
117
|
+
}
|
118
|
+
|
119
|
+
#signUp {
|
120
|
+
color: rgba(51, 51, 53, 0.447);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
</style>
|
124
|
+
</head>
|
125
|
+
|
126
|
+
<body>
|
127
|
+
<div class="shell">
|
128
|
+
<h2 class="title">Forgot</h2>
|
129
|
+
<input type="email" id="email" placeholder="Enter the email you used to login">
|
130
|
+
<input type="submit" value="Confirm" id="loginBtn">
|
131
|
+
</div>
|
132
|
+
|
133
|
+
|
134
|
+
<script src="https://cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js"></script>
|
135
|
+
<script>
|
136
|
+
let appId = '{{ site.Leancloud.appId }}';
|
137
|
+
let appKey = '{{ site.Leancloud.appKey }}';
|
138
|
+
let serverURL = '{{ site.Leancloud.serverURL }}';
|
139
|
+
AV.init({
|
140
|
+
appId: appId,
|
141
|
+
appKey: appKey,
|
142
|
+
serverURL: serverURL,
|
143
|
+
});
|
144
|
+
document.getElementById('loginBtn').addEventListener("click", async function () {
|
145
|
+
var email = document.getElementById("email").value.trim();
|
146
|
+
try {
|
147
|
+
await AV.User.requestPasswordReset(email);
|
148
|
+
alert('The reset-password email was successfully!');
|
149
|
+
} catch (error) {
|
150
|
+
if (error.code == '204') {
|
151
|
+
alert('The email is missing, please enter your email address.');
|
152
|
+
}
|
153
|
+
else if (error.code == '205') {
|
154
|
+
alert('The email is invalid.');
|
155
|
+
} else {
|
156
|
+
alert('An unknown error occurred');
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
});
|
161
|
+
</script>
|
162
|
+
</body>
|
163
|
+
|
164
|
+
</html>
|