notherbase-fs 1.2.6 → 1.2.7
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/controllers/explorer.js +7 -2
- package/controllers/the-front.js +4 -1
- package/package.json +1 -1
- package/views/explorer.ejs +7 -0
- package/views/head.ejs +2 -2
package/controllers/explorer.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { inventory, game, item, user } = require("../models");
|
|
2
|
+
const path = require('path');
|
|
2
3
|
|
|
3
4
|
let router = require("express").Router();;
|
|
4
5
|
let dir = "";
|
|
@@ -94,7 +95,9 @@ let complete = function complete(explorerBuild) {
|
|
|
94
95
|
itemIDs: foundItemIDs,
|
|
95
96
|
pov: req.query.pov,
|
|
96
97
|
inventory: foundInventory,
|
|
97
|
-
query: req.query
|
|
98
|
+
query: req.query,
|
|
99
|
+
dir: dir,
|
|
100
|
+
path: path
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
if (detail.options.needsKey !== "" && foundInventory) {
|
|
@@ -134,7 +137,9 @@ let complete = function complete(explorerBuild) {
|
|
|
134
137
|
localScripts: [],
|
|
135
138
|
inventory: null,
|
|
136
139
|
itemIDs: [],
|
|
137
|
-
main: `${dir}/${explorerBuild.void}/index
|
|
140
|
+
main: `${dir}/${explorerBuild.void}/index`,
|
|
141
|
+
dir: dir,
|
|
142
|
+
path: path
|
|
138
143
|
});
|
|
139
144
|
});
|
|
140
145
|
}
|
package/controllers/the-front.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { user, inventory, connectionSuccess } = require("../models");
|
|
2
|
+
const path = require('path');
|
|
2
3
|
|
|
3
4
|
let router = require("express").Router();
|
|
4
5
|
let dir = "";
|
|
@@ -51,7 +52,9 @@ let front = function front(detail) {
|
|
|
51
52
|
localScripts: detail.options.localScripts,
|
|
52
53
|
itemIDs: foundItemIDs,
|
|
53
54
|
inventory: null,
|
|
54
|
-
query: req.query
|
|
55
|
+
query: req.query,
|
|
56
|
+
dir: dir,
|
|
57
|
+
path: path
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
if (connectionSuccess) {
|
package/package.json
CHANGED
package/views/explorer.ejs
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
<%- include("./head.ejs"); %>
|
|
2
2
|
|
|
3
3
|
<style>
|
|
4
|
+
<%- include(path.resolve(dir, "../", "public/styles/main.css")); %>
|
|
5
|
+
<%- include(path.resolve(dir, "../", "public/styles/menu.css")); %>
|
|
6
|
+
<%- include(path.resolve(dir, "../", "public/styles/inventory.css")); %>
|
|
7
|
+
<%- include(path.resolve(dir, "../", "public/styles/player.css")); %>
|
|
8
|
+
<%- include(path.resolve(dir, "../", "public/styles/account.css")); %>
|
|
9
|
+
<%- include(path.resolve(dir, "../", "public/styles/more.css")); %>
|
|
10
|
+
|
|
4
11
|
<% for (let i = 0; i < styles.length; i++) { %>
|
|
5
12
|
<%- include(`${styles[i]}.css`); %>
|
|
6
13
|
<% } %>
|
package/views/head.ejs
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
<!-- 'Redacted Script', cursive; -->
|
|
14
14
|
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
15
15
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
16
|
-
<link rel="stylesheet" href="/styles/main.css">
|
|
16
|
+
<!-- <link rel="stylesheet" href="/styles/main.css">
|
|
17
17
|
<link rel="stylesheet" href="/styles/menu.css">
|
|
18
18
|
<link rel="stylesheet" href="/styles/inventory.css">
|
|
19
19
|
<link rel="stylesheet" href="/styles/player.css">
|
|
20
20
|
<link rel="stylesheet" href="/styles/account.css">
|
|
21
|
-
<link rel="stylesheet" href="/styles/more.css">
|
|
21
|
+
<link rel="stylesheet" href="/styles/more.css"> -->
|
|
22
22
|
</head>
|
|
23
23
|
|
|
24
24
|
<body>
|