notherbase-fs 1.2.5 → 1.2.8

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.
@@ -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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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>
@@ -1,41 +0,0 @@
1
- .content#account {
2
- padding: 10px;
3
- }
4
-
5
- .content#account hr {
6
- margin: 10px 0;
7
- }
8
-
9
- .content#account #info {
10
- text-align: center;
11
- width: 100%;
12
- margin-top: 40px;
13
- }
14
-
15
- .content#account .setting {
16
- background: var(--darkBgColor);
17
- padding: 25px;
18
- border-radius: 5px;
19
- display: flex;
20
- justify-content: center;
21
- text-align: center;
22
- flex-wrap: wrap;
23
- }
24
-
25
- .content#account p {
26
- width: 100%;
27
- }
28
-
29
- .content#account button {
30
- width: 40%;
31
- }
32
-
33
- .content#account .edit {
34
- background: var(--darkWoodColor);
35
- padding: 25px;
36
- border-radius: 5px;
37
- display: flex;
38
- justify-content: center;
39
- text-align: center;
40
- flex-wrap: wrap;
41
- }
@@ -1,60 +0,0 @@
1
- .chat-box {
2
- position: relative;
3
- box-shadow: 5px 5px 10px 5px var(--shadowColor);
4
- margin-top: 20px;
5
- width: 100%;
6
- min-height: 200px;
7
- }
8
-
9
- .chat-name {
10
- color: var(--textColor);
11
- padding: 10px;
12
- }
13
-
14
- .chat-log {
15
- width: 100%;
16
- height: calc(100% - 65px);
17
- background-color: rgba(0, 0, 0, 0.534);
18
- overflow: auto;
19
- padding: 5px;
20
- }
21
-
22
- .chat-send {
23
- position: absolute;
24
- right: 0;
25
- bottom: 0;
26
- height: 25px;
27
- width: 5em;
28
- outline: none;
29
- background-color: var(--bgColor);
30
- border: 1px solid var(--textColor);
31
- color: var(--textColor);
32
- text-align: center;
33
- padding: 2px;
34
- }
35
-
36
- .chat-send:hover {
37
- border: 1px solid var(--textColorBright);
38
- color: var(--textColorBright);
39
- cursor: pointer;
40
- }
41
-
42
- .chat-entry {
43
- position: absolute;
44
- left: 0;
45
- bottom: 0;
46
- height: 25px;
47
- width: calc(100% - 5em);
48
- outline: none;
49
- background-color: var(--bgColor);
50
- border: 1px solid var(--textColor);
51
- color: var(--textColor);
52
- }
53
-
54
- .chat-log > p {
55
- color: var(--textColor);
56
- margin: 0;
57
- padding: 0;
58
- line-height: 1em;
59
- text-align: left;
60
- }
@@ -1,63 +0,0 @@
1
- .inventory {
2
- border: 1px solid var(--textColor);
3
- color: var(--textColor);
4
- width: 100%;
5
- height: 100%;
6
- /* background-color: var(--bgColor); */
7
- padding: 5px;
8
- z-index: 500;
9
- overflow: auto;
10
- }
11
-
12
- .inventory .item-list {
13
- width: 100%;
14
- display: flex;
15
- flex-wrap: wrap;
16
- overflow: auto;
17
- border: 1px solid var(--textColor);
18
- align-content: flex-start;
19
- }
20
-
21
- .inventory .item-spawner {
22
- width: 100%;
23
- border: 1px solid var(--textColor);
24
- }
25
-
26
- .item-spawner .search-results {
27
- width: 100%;
28
- border: 1px solid var(--textColor);
29
- overflow: auto;
30
- }
31
-
32
- .search-results p {
33
- width: 100%;
34
- cursor: pointer;
35
- }
36
-
37
- .search-results p:hover {
38
- background-color: var(--woodColor);
39
- }
40
-
41
- .item-card {
42
- width: 150px;
43
- height: 45px;
44
- border-radius: 3px;
45
- border: 1px solid var(--textColor);
46
- padding: 5px;
47
- margin: 2.5px;
48
- position: relative;
49
- }
50
-
51
- .item-card button {
52
- position: absolute;
53
- right: 0;
54
- top: 0;
55
- margin: 0;
56
- padding: 0;
57
- border-radius: 0;
58
- }
59
-
60
- .item-card hr {
61
- width: 100%;
62
- margin: 0;
63
- }
@@ -1,231 +0,0 @@
1
- :root {
2
- --bgColor: rgb(37, 37, 37);
3
- --bgColorTransparent: rgba(37, 37, 37, 0.404);
4
- --darkBgColor: rgb(27, 27, 27);
5
- --veryDarkBgColorTransparent: rgba(15, 15, 15, 0.404);
6
- --veryDarkBgColor: rgb(15, 15, 15);
7
- --lightBgColor: rgb(57, 57, 57);
8
- --shadowColor: rgb(26, 26, 26);
9
- --textColor: rgb(185, 135, 69);
10
- --textColorBright: rgb(221, 181, 130);
11
- --woodColor: rgb(95, 68, 43);
12
- --darkWoodColor: rgb(70, 50, 32);
13
- --standardBorder: 1px solid var(--textColor);
14
- }
15
-
16
- * {
17
- box-sizing: border-box;
18
- margin: 0;
19
- padding: 0;
20
- color: var(--textColor);
21
- }
22
-
23
- .invisible {
24
- display: none !important;
25
- }
26
-
27
- .camo {
28
- transition: all .15s;
29
- opacity: 0;
30
- }
31
-
32
- body {
33
- background-color: var(--darkBgColor);
34
- min-height: 100vh;
35
- display: flex;
36
- justify-content: center;
37
- align-items: center;
38
- align-content: center;
39
- flex-direction: column;
40
- position: relative;
41
- }
42
-
43
- main {
44
- width: 500px;
45
- min-height: 500px;
46
- box-shadow: 5px 5px 5px 5px var(--shadowColor);
47
- padding: 20px;
48
- border-radius: 5px 5px 0px 0px;
49
- margin-top: 15px;
50
- margin-bottom: 0;
51
- display: flex;
52
- flex-wrap: wrap;
53
- justify-content: center;
54
- align-content: center;
55
- align-items: flex-start;
56
- background-color: var(--bgColor);
57
- }
58
-
59
- footer {
60
- display: flex;
61
- justify-content: center;
62
- align-content: center;
63
- align-items: flex-start;
64
- min-height: 25px;
65
- width: 500px;
66
- background-color: var(--veryDarkBgColor);
67
- border-radius: 0px 0px 5px 5px;
68
- box-shadow: 5px 5px 5px 5px var(--shadowColor);
69
- padding: 5px;
70
- border: none;
71
- margin-bottom: 100px;
72
- }
73
-
74
- footer a {
75
- text-decoration: none;
76
- height: 100%;
77
- margin: 0;
78
- padding: 5px;
79
- width: 50%;
80
- height: 100%;
81
- }
82
-
83
- hr {
84
- border: none;
85
- border-bottom: 1px solid var(--textColor);
86
- margin: 20px;
87
- width: 100%;
88
- }
89
-
90
- p {
91
- color: var(--textColor);
92
- margin-bottom: 10px;
93
- width: 80%;
94
- }
95
-
96
- input, textarea {
97
- padding: 10px;
98
- width: calc(100% - 10px);
99
- background-color: var(--bgColor);
100
- border-radius: 5px;
101
- border: 1px solid var(--textColor);
102
- margin: 5px;
103
- font-size: 15px;
104
- }
105
-
106
- input[type=submit], button, a {
107
- background-color: var(--bgColor);
108
- padding: 10px;
109
- border-radius: 5px;
110
- border: 1px solid var(--textColor);
111
- color: var(--textColor);
112
- margin: 5px;
113
- margin-top: 20px;
114
- text-decoration: none;
115
- text-align: center;
116
- }
117
-
118
- input[type=submit]:hover, button:hover, a:hover {
119
- border: 1px solid var(--textColorBright);
120
- color: var(--textColorBright);
121
- cursor: pointer;
122
- }
123
-
124
- .locked {
125
- background-color: var(--bgColor);
126
- padding: 10px;
127
- border-radius: 5px;
128
- border: 1px solid var(--textColor);
129
- color: var(--textColor);
130
- margin: 5px;
131
- margin-top: 20px;
132
- text-decoration: none;
133
- text-align: center;
134
- filter: brightness(.5);
135
- user-select: none;
136
- }
137
-
138
- .to {
139
- width: 100%;
140
- height: 200px;
141
- display: flex;
142
- justify-content: flex-end;
143
- align-items: flex-end;
144
- padding: 20px;
145
- }
146
-
147
- .return {
148
- width: 100%;
149
- height: 75px;
150
- display: flex;
151
- justify-content: flex-end;
152
- align-items: flex-end;
153
- padding: 20px;
154
- }
155
-
156
- .do {
157
- width: 100%;
158
- height: 200px;
159
- display: flex;
160
- justify-content: flex-end;
161
- align-items: flex-end;
162
- padding: 20px;
163
- }
164
-
165
- h2, h3 {
166
- color: var(--textColor);
167
- width: 100%;
168
- }
169
-
170
- ul {
171
- margin: 10px;
172
- }
173
-
174
- .door {
175
- border: 1px solid var(--darkWoodColor);
176
- width: 100px;
177
- height: 150px;
178
- background-color: var(--woodColor);
179
- position: relative;
180
- }
181
-
182
- .knob {
183
- position: absolute;
184
- width: 20px;
185
- height: 20px;
186
- border-radius: 50%;
187
- right: 5px;
188
- top: 50%;
189
- background-color: var(--darkWoodColor);
190
- }
191
-
192
- iframe {
193
- border: none;
194
- }
195
-
196
- .auth-form {
197
- height: 100%;
198
- width: 100%;
199
- padding: 40px 5px;
200
- overflow: hidden;
201
- display: flex;
202
- justify-content: center;
203
- flex-wrap: wrap;
204
- }
205
-
206
- .auth-form h3 {
207
- width: calc(100% - 20px);
208
- text-align: center;
209
- margin: 10px;
210
- font-size: 15px;
211
- }
212
-
213
- .auth-form h1 {
214
- width: calc(100% - 20px);
215
- text-align: center;
216
- margin: 10px;
217
- font-size: 20px;
218
- }
219
-
220
- .auth-form p {
221
- width: calc(100% - 20px);
222
- text-align: center;
223
- margin: 10px;
224
- font-size: 12px;
225
- }
226
-
227
- @media only screen and (max-width: 500px) {
228
- main {
229
- width: 100%;
230
- }
231
- }
@@ -1,99 +0,0 @@
1
- .menu {
2
- width: 75%;
3
- height: 50%;
4
- border: 1px solid var(--textColor);
5
- color: var(--textColor);
6
- position: fixed;
7
- left: 12.5%;
8
- top: 5%;
9
- background-color: var(--bgColorTransparent);
10
- backdrop-filter: blur(3px);
11
- border-radius: 5px;
12
- z-index: 500;
13
- }
14
-
15
- .menu hr {
16
- margin: 0;
17
- }
18
-
19
- .ui .fade {
20
- background-color: var(--veryDarkBgColorTransparent);
21
- backdrop-filter: blur(3px);
22
- width: 100%;
23
- height: 100%;
24
- position: fixed;
25
- left: 0;
26
- top: 0;
27
- z-index: 400;
28
- }
29
-
30
- .ui button {
31
- background-color: var(--bgColor);
32
- border: 1px solid var(--textColor);
33
- margin: 0;
34
-
35
- }
36
-
37
- .ui button:hover {
38
- border: 1px solid var(--textColorBright);
39
- color: var(--textColorBright);
40
- cursor: pointer;
41
- }
42
-
43
- .ui button#menu {
44
- position: fixed;
45
- bottom: 30px;
46
- right: 5px;
47
- width: 64px;
48
- height: 64px;
49
- border-radius: 5px;
50
- }
51
-
52
- .menu button#close {
53
- top: 0;
54
- right: 0;
55
- width: 32px;
56
- height: 32px;
57
- position: absolute;
58
- border-radius: 0;
59
- }
60
-
61
- .menu .tabs {
62
- width: 100%;
63
- height: 30px;
64
- border: 1px solid var(--textColor);
65
- }
66
-
67
- .menu .tabs button {
68
- height: 30px;
69
- border-radius: 0;
70
- padding: 0 10px;
71
- }
72
-
73
- .menu .tabs .selected {
74
- border: 2px solid var(--textColorBright);
75
- }
76
-
77
- .menu #content-window {
78
- width: 100%;
79
- height: calc(100% - 30px);
80
- border: 1px solid var(--textColor);
81
- }
82
-
83
- .menu a {
84
- margin: 0;
85
- padding: 5px;
86
- }
87
-
88
- .menu #logout {
89
- position: absolute;
90
- width: 50%;
91
- height: 40px;
92
- bottom: -40px;
93
- left: calc(25%);
94
- background-color: var(--bgColor);
95
- border: var(--standardBorder);
96
- border-top: none;
97
- border-radius: 0 0 5px 5px;
98
- text-align: center;
99
- }
@@ -1,3 +0,0 @@
1
- .content#more {
2
- padding: 10px;
3
- }
@@ -1,12 +0,0 @@
1
- .content#player {
2
- padding: 10px;
3
- }
4
-
5
- .content#player h3 {
6
- width: 100%;
7
- text-transform: capitalize;
8
- }
9
-
10
- .content#player h3 button {
11
- width: 40px;
12
- }