mbkauthe 2.5.0 → 3.0.0
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/LICENSE +339 -373
- package/README.md +106 -285
- package/docs/api.md +139 -1
- package/docs/db.md +1 -1
- package/docs/error-messages.md +557 -0
- package/index.d.ts +233 -0
- package/index.js +43 -32
- package/lib/config/cookies.js +52 -0
- package/lib/{config.js → config/index.js} +15 -95
- package/lib/config/security.js +8 -0
- package/lib/{pool.js → database/pool.js} +1 -1
- package/lib/main.js +27 -1041
- package/lib/{validateSessionAndRole.js → middleware/auth.js} +5 -3
- package/lib/middleware/index.js +106 -0
- package/lib/routes/auth.js +521 -0
- package/lib/routes/misc.js +272 -0
- package/lib/routes/oauth.js +325 -0
- package/lib/utils/errors.js +257 -0
- package/lib/utils/response.js +21 -0
- package/package.json +5 -2
- package/public/main.js +4 -4
- package/views/Error/dError.handlebars +1 -1
- package/views/errorCodes.handlebars +341 -0
- package/views/showmessage.handlebars +7 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="showmessageWindow">
|
|
3
3
|
<h1></h1>
|
|
4
4
|
<p></p>
|
|
5
|
-
|
|
5
|
+
<a href="" target="_blank" class="error-code"></a>
|
|
6
6
|
<button class="btn btn-save full" onclick="hideMessage()">Okay</button>
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
document.querySelector(".showmessageWindow h1").innerText = heading;
|
|
13
13
|
document.querySelector(".showmessageWindow p").innerHTML = message;
|
|
14
14
|
|
|
15
|
-
/* Disable for now
|
|
16
15
|
if (errorCode) {
|
|
17
16
|
document.querySelector(".showmessageWindow .error-code").style.display = "block";
|
|
18
17
|
document.querySelector(".showmessageWindow .error-code").innerText = `Error Code: ${errorCode}`;
|
|
@@ -20,8 +19,8 @@
|
|
|
20
19
|
document.querySelector(".showmessageWindow .error-code").style.display = "none";
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
document.querySelector(".showmessageWindow .error-code").href =
|
|
24
|
-
|
|
22
|
+
document.querySelector(".showmessageWindow .error-code").href = `/mbkauthe/ErrorCode/#${errorCode}`;
|
|
23
|
+
|
|
25
24
|
document.querySelector(".showMessageblurWindow").classList.add("active");
|
|
26
25
|
document.body.classList.add("blur-active");
|
|
27
26
|
}
|
|
@@ -47,11 +46,13 @@
|
|
|
47
46
|
align-items: center;
|
|
48
47
|
z-index: 10000;
|
|
49
48
|
backdrop-filter: blur(10px);
|
|
49
|
+
pointer-events: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.showMessageblurWindow.active {
|
|
53
53
|
display: flex;
|
|
54
54
|
animation: fadeIn 0.3s ease-in-out;
|
|
55
|
+
pointer-events: all;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
.showMessageblurWindow.fade-out {
|
|
@@ -72,12 +73,13 @@
|
|
|
72
73
|
padding: 2rem 2.5rem;
|
|
73
74
|
border-radius: 8px;
|
|
74
75
|
max-width: 90%;
|
|
75
|
-
width:
|
|
76
|
+
width: 550px;
|
|
76
77
|
position: relative;
|
|
77
78
|
color: #e0f7fa;
|
|
78
79
|
border: 1px solid rgba(0, 184, 148, 0.2);
|
|
79
80
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
80
81
|
animation: slideIn 0.3s ease-out;
|
|
82
|
+
pointer-events: all;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.showmessageWindow h1 {
|
|
@@ -115,7 +117,6 @@
|
|
|
115
117
|
.showmessageWindow .error-code:hover {
|
|
116
118
|
background: rgba(255, 209, 102, 0.2);
|
|
117
119
|
color: #ffd166;
|
|
118
|
-
transform: translateY(-2px);
|
|
119
120
|
box-shadow: 0 4px 10px rgba(255, 209, 102, 0.2);
|
|
120
121
|
}
|
|
121
122
|
|