notherbase-fs 4.2.10 → 4.3.1

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.
@@ -17,7 +17,7 @@ export default class Creation {
17
17
  this.router.get(`/the-front/:frontDetail`, this.frontDetail, this.explore);
18
18
 
19
19
  //pages
20
- this.router.get(`/:page`, this.page, this.explore);
20
+ // this.router.get(`/:page`, this.page, this.explore);
21
21
 
22
22
  //the-front optional shortcuts
23
23
  this.router.get(`/:frontDetail`, this.frontDetail, this.explore);
@@ -171,11 +171,11 @@ export default class Creation {
171
171
  * @param {Object} res An Express.js response.
172
172
  * @param {Function} next next()
173
173
  */
174
- page = async (req, res, next) => {
175
- req.main = `${req.contentPath}/pages/${req.params.page}/index`;
176
- req.preprocess = `${req.contentPath}/pages/${req.params.page}/_preprocess`;
177
- req.siteTitle = `${req.params.page}`;
178
- req.toRender = req.main;
179
- next();
180
- }
174
+ // page = async (req, res, next) => {
175
+ // req.main = `${req.contentPath}/pages/${req.params.page}/index`;
176
+ // req.preprocess = `${req.contentPath}/pages/${req.params.page}/_preprocess`;
177
+ // req.siteTitle = `${req.params.page}`;
178
+ // req.toRender = req.main;
179
+ // next();
180
+ // }
181
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "4.2.10",
3
+ "version": "4.3.1",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {
package/public/js/base.js CHANGED
@@ -221,7 +221,7 @@ class Base {
221
221
  return response;
222
222
  }
223
223
 
224
- sendOTP = async (email) => {
224
+ sendOTP = async () => {
225
225
  let response = await Base.commune("sendOTP");
226
226
 
227
227
  return response;
@@ -1,37 +1,6 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test</title>
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
11
- <link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
12
- <!-- 'Redacted Script', cursive; -->
13
- <link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
14
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
15
- <link rel="stylesheet" href="/styles/main.css">
16
- <link rel="stylesheet" href="/styles/menu.css">
17
- <link rel="stylesheet" href="/styles/inventory.css">
18
- <link rel="stylesheet" href="/styles/player.css">
19
- <link rel="stylesheet" href="/styles/account.css">
20
- <link rel="stylesheet" href="/styles/more.css">
21
- <link rel="stylesheet" href="/styles/chat.css">
22
- <script src="/js/base.js"></script>
23
- </head>
24
- <script>
25
- const currentRoute = "<%- route %>";
26
- </script>
27
-
28
- <body>
29
- <main>
30
- <div class="chatter" id="adam"></div>
31
- <input type="text" id="adam">
32
- <button id="adam">Chat</button>
33
- </main>
34
- </body>
1
+ <div class="chatter" id="adam"></div>
2
+ <input type="text" id="adam">
3
+ <button id="adam">Chat</button>
35
4
 
36
5
  <script>
37
6
  class Spirit {
@@ -0,0 +1,7 @@
1
+ <style>
2
+ <%- include("./void.css"); %>
3
+ </style>
4
+
5
+ <main>
6
+ <a href="/">Leave the Void</a>
7
+ </main>
@@ -1,37 +1,6 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test</title>
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
11
- <link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
12
- <!-- 'Redacted Script', cursive; -->
13
- <link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
14
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
15
- <link rel="stylesheet" href="/styles/main.css">
16
- <link rel="stylesheet" href="/styles/menu.css">
17
- <link rel="stylesheet" href="/styles/inventory.css">
18
- <link rel="stylesheet" href="/styles/player.css">
19
- <link rel="stylesheet" href="/styles/account.css">
20
- <link rel="stylesheet" href="/styles/more.css">
21
- <link rel="stylesheet" href="/styles/chat.css">
22
- <script src="/js/base.js"></script>
23
- </head>
24
- <script>
25
- const currentRoute = "<%- route %>";
26
- </script>
27
-
28
- <body>
29
- <main>
30
- <div class="chatter" id="adam"></div>
31
- <input type="text" id="adam">
32
- <button id="adam">Chat</button>
33
- </main>
34
- </body>
1
+ <div class="chatter" id="adam"></div>
2
+ <input type="text" id="adam">
3
+ <button id="adam">Chat</button>
35
4
 
36
5
  <script>
37
6
  class Spirit {
@@ -0,0 +1,7 @@
1
+ <style>
2
+ <%- include("./void.css"); %>
3
+ </style>
4
+
5
+ <main>
6
+ <a href="/">Leave the Test Void</a>
7
+ </main>
@@ -25,7 +25,7 @@
25
25
  <input type="password" placeholder="password" id="pass">
26
26
  </label>
27
27
  <button id="login" onclick="coverLogin()">Login</button>
28
- <a href="/the-front/keeper">Reset Password</a>
28
+ <a href="www.notherbase.com/the-front/keeper">Reset Password</a>
29
29
  </div>
30
30
  <p class="info"></p>
31
31
 
@@ -1,36 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test</title>
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
11
- <link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
12
- <!-- 'Redacted Script', cursive; -->
13
- <link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
14
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
15
- <link rel="stylesheet" href="/styles/main.css">
16
- <link rel="stylesheet" href="/styles/menu.css">
17
- <link rel="stylesheet" href="/styles/inventory.css">
18
- <link rel="stylesheet" href="/styles/player.css">
19
- <link rel="stylesheet" href="/styles/account.css">
20
- <link rel="stylesheet" href="/styles/more.css">
21
- <link rel="stylesheet" href="/styles/chat.css">
22
- <script src="/js/base.js"></script>
23
- </head>
24
- <script>
25
- const currentRoute = "<%- route %>";
26
- </script>
27
- <style>
28
- <%- include("./void.css"); %>
29
- </style>
30
-
31
- <body>
32
- <main>
33
- <a href="/">Leave the Void</a>
34
- </main>
35
- </body>
36
- </html>
@@ -1,36 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test</title>
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
11
- <link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
12
- <!-- 'Redacted Script', cursive; -->
13
- <link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
14
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
15
- <link rel="stylesheet" href="/styles/main.css">
16
- <link rel="stylesheet" href="/styles/menu.css">
17
- <link rel="stylesheet" href="/styles/inventory.css">
18
- <link rel="stylesheet" href="/styles/player.css">
19
- <link rel="stylesheet" href="/styles/account.css">
20
- <link rel="stylesheet" href="/styles/more.css">
21
- <link rel="stylesheet" href="/styles/chat.css">
22
- <script src="/js/base.js"></script>
23
- </head>
24
- <script>
25
- const currentRoute = "<%- route %>";
26
- </script>
27
- <style>
28
- <%- include("./void.css"); %>
29
- </style>
30
-
31
- <body>
32
- <main>
33
- <a href="/">Leave the Void</a>
34
- </main>
35
- </body>
36
- </html>
File without changes
File without changes