notherbase-fs 4.0.22 → 4.0.23
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/README.md +6 -6
- package/controllers/creation.js +147 -147
- package/controllers/spirit-world.js +174 -174
- package/controllers/user.js +240 -240
- package/controllers/util.js +64 -64
- package/models/index.js +33 -33
- package/models/send-mail.js +58 -58
- package/models/spirit.js +234 -234
- package/notherbase-fs.js +112 -112
- package/package.json +40 -40
- package/public/js/base.js +222 -227
- package/public/js/chat-box.js +120 -120
- package/test/coast/tall-beach/nono-cove/index.css +17 -17
- package/test/coast/tall-beach/nono-cove/index.ejs +29 -29
- package/test/coast/tall-beach/nono-cove/nono-og/add-gold.js +15 -15
- package/test/coast/tall-beach/nono-cove/nono-og/index.ejs +46 -46
- package/test/coast/tall-beach/nono-cove/nono-og/nono.css +88 -88
- package/test/coast/tall-beach/nono-cove/nono-og/nono.js +207 -207
- package/test/pages/test-page/emailTime.js +8 -8
- package/test/pages/test-page/index.ejs +104 -104
- package/test/pages/void/index.ejs +35 -35
- package/test/pages/void/void.css +2 -2
- package/test/public/styles/main.css +792 -792
- package/test/the-front/add-gold.js +13 -13
- package/test/the-front/check/check.css +2 -2
- package/test/the-front/check/emailTime.js +9 -9
- package/test/the-front/check/flip.js +9 -9
- package/test/the-front/check/index.ejs +54 -54
- package/test/the-front/check/save-input.js +7 -7
- package/test/the-front/index.ejs +116 -99
- package/test/the-front/keeper/clipboards.js +133 -133
- package/test/the-front/keeper/index.ejs +80 -80
- package/test/the-front/keeper/keeper.css +157 -157
- package/test/the-front/keeper/keeper.js +140 -140
- package/test-index.js +19 -19
- package/test2/pages/test-page/emailTime.js +8 -8
- package/test2/pages/test-page/index.ejs +104 -104
- package/test2/pages/void/index.ejs +35 -35
- package/test2/pages/void/void.css +2 -2
- package/test2/public/styles/main.css +792 -792
- package/test2/the-front/add-gold.js +13 -13
- package/test2/the-front/check/check.css +2 -2
- package/test2/the-front/check/emailTime.js +9 -9
- package/test2/the-front/check/flip.js +9 -9
- package/test2/the-front/check/index.ejs +54 -54
- package/test2/the-front/check/save-input.js +7 -7
- package/test2/the-front/index.ejs +99 -99
- package/test2/the-front/keeper/clipboards.js +133 -133
- package/test2/the-front/keeper/index.ejs +80 -80
- package/test2/the-front/keeper/keeper.css +157 -157
- package/test2/the-front/keeper/keeper.js +140 -140
- package/views/explorer.ejs +82 -82
- package/views/footer.ejs +9 -9
- package/views/head.ejs +17 -17
package/views/explorer.ejs
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
<%- include("./head.ejs"); %>
|
|
2
|
-
|
|
3
|
-
<main class="override">
|
|
4
|
-
<script src="/socket.io/socket.io.js"></script>
|
|
5
|
-
<script src="/js/base.js"></script>
|
|
6
|
-
<script>
|
|
7
|
-
const currentRoute = "<%- route %>";
|
|
8
|
-
const base = new Base();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<% if (requireUser && !user?.memory) { %>
|
|
12
|
-
<div class="login-cover">
|
|
13
|
-
<a class="header-link" href="/">
|
|
14
|
-
<img src="/img/logo.png">
|
|
15
|
-
<h1>NotherBase</h1>
|
|
16
|
-
</a>
|
|
17
|
-
<div class="form">
|
|
18
|
-
<h3>Login to Your Account</h3>
|
|
19
|
-
<label>
|
|
20
|
-
<h4>Your Name:</h4>
|
|
21
|
-
<input type="text" placeholder="Username" id="username">
|
|
22
|
-
</label>
|
|
23
|
-
<label>
|
|
24
|
-
<h4>Your Password:</h4>
|
|
25
|
-
<input type="password" placeholder="password" id="pass">
|
|
26
|
-
</label>
|
|
27
|
-
<button id="login" onclick="coverLogin()">Login</button>
|
|
28
|
-
<a href="/the-front/keeper">Reset Password</a>
|
|
29
|
-
</div>
|
|
30
|
-
<p class="info"></p>
|
|
31
|
-
|
|
32
|
-
<script>
|
|
33
|
-
let $username = $(".login-cover #username");
|
|
34
|
-
let $pass = $(".login-cover #pass");
|
|
35
|
-
let $form = $(".login-cover .form");
|
|
36
|
-
let $info = $(".login-cover .info");
|
|
37
|
-
|
|
38
|
-
const coverLogin = async () => {
|
|
39
|
-
let username = $username.val();
|
|
40
|
-
$username.val("");
|
|
41
|
-
let pass = $pass.val();
|
|
42
|
-
$pass.val("");
|
|
43
|
-
|
|
44
|
-
$form.addClass("invisible");
|
|
45
|
-
$info.text("Attempting to login...");
|
|
46
|
-
|
|
47
|
-
let response = await base.attemptLogin(username, pass);
|
|
48
|
-
|
|
49
|
-
$info.text(response.message);
|
|
50
|
-
|
|
51
|
-
if (response.status === "success") location.reload();
|
|
52
|
-
else {
|
|
53
|
-
$form.removeClass("invisible");
|
|
54
|
-
$username.focus();
|
|
55
|
-
$username.val(username);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
$username.keypress(function (e) {
|
|
60
|
-
if (e.which == 13) {
|
|
61
|
-
coverLogin();
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
$pass.keypress(function (e) {
|
|
67
|
-
if (e.which == 13) {
|
|
68
|
-
coverLogin();
|
|
69
|
-
e.stopPropagation();
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
</script>
|
|
73
|
-
</div>
|
|
74
|
-
<% } else { %>
|
|
75
|
-
<%- include(`${main}.ejs`); %>
|
|
76
|
-
<% } %>
|
|
77
|
-
</main>
|
|
78
|
-
|
|
79
|
-
<%- include("./footer.ejs"); %>
|
|
80
|
-
|
|
81
|
-
<script>
|
|
82
|
-
base.createToggleViewButton();
|
|
1
|
+
<%- include("./head.ejs"); %>
|
|
2
|
+
|
|
3
|
+
<main class="override">
|
|
4
|
+
<script src="/socket.io/socket.io.js"></script>
|
|
5
|
+
<script src="/js/base.js"></script>
|
|
6
|
+
<script>
|
|
7
|
+
const currentRoute = "<%- route %>";
|
|
8
|
+
const base = new Base();
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<% if (requireUser && !user?.memory) { %>
|
|
12
|
+
<div class="login-cover">
|
|
13
|
+
<a class="header-link" href="/">
|
|
14
|
+
<img src="/img/logo.png">
|
|
15
|
+
<h1>NotherBase</h1>
|
|
16
|
+
</a>
|
|
17
|
+
<div class="form">
|
|
18
|
+
<h3>Login to Your Account</h3>
|
|
19
|
+
<label>
|
|
20
|
+
<h4>Your Name:</h4>
|
|
21
|
+
<input type="text" placeholder="Username" id="username">
|
|
22
|
+
</label>
|
|
23
|
+
<label>
|
|
24
|
+
<h4>Your Password:</h4>
|
|
25
|
+
<input type="password" placeholder="password" id="pass">
|
|
26
|
+
</label>
|
|
27
|
+
<button id="login" onclick="coverLogin()">Login</button>
|
|
28
|
+
<a href="/the-front/keeper">Reset Password</a>
|
|
29
|
+
</div>
|
|
30
|
+
<p class="info"></p>
|
|
31
|
+
|
|
32
|
+
<script>
|
|
33
|
+
let $username = $(".login-cover #username");
|
|
34
|
+
let $pass = $(".login-cover #pass");
|
|
35
|
+
let $form = $(".login-cover .form");
|
|
36
|
+
let $info = $(".login-cover .info");
|
|
37
|
+
|
|
38
|
+
const coverLogin = async () => {
|
|
39
|
+
let username = $username.val();
|
|
40
|
+
$username.val("");
|
|
41
|
+
let pass = $pass.val();
|
|
42
|
+
$pass.val("");
|
|
43
|
+
|
|
44
|
+
$form.addClass("invisible");
|
|
45
|
+
$info.text("Attempting to login...");
|
|
46
|
+
|
|
47
|
+
let response = await base.attemptLogin(username, pass);
|
|
48
|
+
|
|
49
|
+
$info.text(response.message);
|
|
50
|
+
|
|
51
|
+
if (response.status === "success") location.reload();
|
|
52
|
+
else {
|
|
53
|
+
$form.removeClass("invisible");
|
|
54
|
+
$username.focus();
|
|
55
|
+
$username.val(username);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
$username.keypress(function (e) {
|
|
60
|
+
if (e.which == 13) {
|
|
61
|
+
coverLogin();
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
$pass.keypress(function (e) {
|
|
67
|
+
if (e.which == 13) {
|
|
68
|
+
coverLogin();
|
|
69
|
+
e.stopPropagation();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
73
|
+
</div>
|
|
74
|
+
<% } else { %>
|
|
75
|
+
<%- include(`${main}.ejs`); %>
|
|
76
|
+
<% } %>
|
|
77
|
+
</main>
|
|
78
|
+
|
|
79
|
+
<%- include("./footer.ejs"); %>
|
|
80
|
+
|
|
81
|
+
<script>
|
|
82
|
+
base.createToggleViewButton();
|
|
83
83
|
</script>
|
package/views/footer.ejs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
<footer>
|
|
3
|
-
<% if (user) { %>
|
|
4
|
-
<p class="login-status">Logged In: <%= user.memory.data.username %></p><button class="logout" onclick="base.logout()">Logout</button>
|
|
5
|
-
<% } else { %>
|
|
6
|
-
<p class="login-status">Not Logged In</p><button class="invisible logout" onclick="base.logout()">Logout</button>
|
|
7
|
-
<% } %>
|
|
8
|
-
</footer>
|
|
9
|
-
</body>
|
|
1
|
+
|
|
2
|
+
<footer>
|
|
3
|
+
<% if (user) { %>
|
|
4
|
+
<p class="login-status">Logged In: <%= user.memory.data.username %></p><button class="logout" onclick="base.logout()">Logout</button>
|
|
5
|
+
<% } else { %>
|
|
6
|
+
<p class="login-status">Not Logged In</p><button class="invisible logout" onclick="base.logout()">Logout</button>
|
|
7
|
+
<% } %>
|
|
8
|
+
</footer>
|
|
9
|
+
</body>
|
|
10
10
|
</html>
|
package/views/head.ejs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title><%= siteTitle %></title>
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<link async rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
-
<link async rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
-
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
10
|
-
<link async href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
11
|
-
<!-- 'Redacted Script', cursive; -->
|
|
12
|
-
<link async href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
13
|
-
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
14
|
-
<link async rel="stylesheet" href="/styles/main.css">
|
|
15
|
-
</head>
|
|
16
|
-
|
|
17
|
-
<body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title><%= siteTitle %></title>
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
+
<link async rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link async rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
10
|
+
<link async href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
11
|
+
<!-- 'Redacted Script', cursive; -->
|
|
12
|
+
<link async href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
13
|
+
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
14
|
+
<link async rel="stylesheet" href="/styles/main.css">
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
18
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|