notherbase-fs 1.1.22 → 1.1.26

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,4 @@
1
- const User = require("../models/user.js").user;
1
+ const User = require("../models/user.js");
2
2
 
3
3
  const authCheck = async function authCheck(req, res, next){
4
4
  try {
@@ -103,10 +103,11 @@ let complete = function complete(explorerBuild) {
103
103
 
104
104
  //the void
105
105
  router.use(function(req, res, next){
106
- res.render(`${dir}/${explorerBuild.void}/index`,
106
+ res.render(`explorer`,
107
107
  {
108
- siteTitle: "NotherBase",
109
- user: null
108
+ siteTitle: "NotherBase | The Void",
109
+ styles: detail.options.styles,
110
+ main: `${dir}/${explorerBuild.void}/index`
110
111
  });
111
112
  });
112
113
 
@@ -3,7 +3,7 @@ const router = express.Router();
3
3
  const bcrypt = require("bcrypt");
4
4
 
5
5
  // Import my Data
6
- const User = require("../models/user").user;
6
+ const User = require("../models/user");
7
7
  const inventory = require("../models/inventory");
8
8
 
9
9
  const authCheck = require("./authCheck");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.1.22",
3
+ "version": "1.1.26",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server.js CHANGED
@@ -27,6 +27,7 @@ module.exports = function start(frontRouter, exploreRouter) {
27
27
 
28
28
  // allows us to get static files like css
29
29
  app.use(express.static('public'));
30
+ app.use(express.static(`${__dirname}/public`));
30
31
 
31
32
  // sets the favicon image
32
33
  const favicon = require('serve-favicon');
@@ -1,37 +0,0 @@
1
- :root {
2
- --shadow: rgb(71, 71, 71);
3
- --textColor: rgb(49, 49, 49);
4
- --woodColor: rgb(170, 117, 68);
5
- --metalColor: rgb(104, 101, 100);
6
- --brickColor: rgb(139, 67, 38);
7
- --gravelColor: rgb(160, 158, 154);
8
- --grassColor: rgb(50, 93, 61);
9
- --voidColor: rgb(41, 0, 41);
10
- --darkVoidColor: rgb(24, 0, 24);
11
- }
12
-
13
- * {
14
- box-sizing: border-box;
15
- font-family: 'Chela One', cursive;
16
- color: var(--voidColor);
17
- }
18
-
19
- body {
20
- background-color: var(--voidColor);
21
- }
22
-
23
- main {
24
- background-color: var(--darkVoidColor);
25
- }
26
-
27
- h1 {
28
- width: 100%;
29
- }
30
-
31
- a {
32
- background-color: var(--darkVoidColor);
33
- }
34
-
35
- a:hover {
36
- border: 1px solid var(--voidColor);
37
- }