notherbase-fs 1.2.3 → 1.2.6

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 { inventory, game, item } = require("../models");
1
+ const { inventory, game, item, user } = require("../models");
2
2
 
3
3
  let router = require("express").Router();;
4
4
  let dir = "";
@@ -63,6 +63,7 @@ let complete = function complete(explorerBuild) {
63
63
 
64
64
  router.get(currentRoute, async function(req, res) {
65
65
  try {
66
+ const foundUser = await user.findById(req.session.currentUser);
66
67
  const foundInventory = await inventory.findOne({ user: req.session.currentUser }).populate("items.item");
67
68
 
68
69
  let serverScriptReturns = [];
@@ -84,7 +85,7 @@ let complete = function complete(explorerBuild) {
84
85
 
85
86
  let context = {
86
87
  siteTitle: "NotherBase",
87
- user: req.session.currentUserFull,
88
+ user: foundUser,
88
89
  styles: detail.options.styles,
89
90
  externalStyles: detail.options.externalStyles,
90
91
  main: detail.options.main,
@@ -1,7 +1,6 @@
1
1
  const express = require("express");
2
2
  const router = express.Router();
3
3
  const bcrypt = require("bcrypt");
4
- const nodemailer = require("nodemailer");
5
4
 
6
5
  // Import my Data
7
6
  const { user, inventory, sendMail } = require("../models");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.3",
3
+ "version": "1.2.6",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,7 +3,6 @@
3
3
  color: var(--textColor);
4
4
  width: 100%;
5
5
  height: 100%;
6
- /* background-color: var(--bgColor); */
7
6
  padding: 5px;
8
7
  z-index: 500;
9
8
  overflow: auto;
@@ -46,6 +45,7 @@
46
45
  padding: 5px;
47
46
  margin: 2.5px;
48
47
  position: relative;
48
+ background-color: var(--bgColor);
49
49
  }
50
50
 
51
51
  .item-card button {
@@ -41,7 +41,7 @@ body {
41
41
  }
42
42
 
43
43
  main {
44
- width: 500px;
44
+ width: 1000px;
45
45
  min-height: 500px;
46
46
  box-shadow: 5px 5px 5px 5px var(--shadowColor);
47
47
  padding: 20px;
@@ -62,7 +62,7 @@ footer {
62
62
  align-content: center;
63
63
  align-items: flex-start;
64
64
  min-height: 25px;
65
- width: 500px;
65
+ width: 1000px;
66
66
  background-color: var(--veryDarkBgColor);
67
67
  border-radius: 0px 0px 5px 5px;
68
68
  box-shadow: 5px 5px 5px 5px var(--shadowColor);
@@ -224,8 +224,12 @@ iframe {
224
224
  font-size: 12px;
225
225
  }
226
226
 
227
- @media only screen and (max-width: 500px) {
227
+ @media only screen and (max-width: 1000px) {
228
228
  main {
229
229
  width: 100%;
230
230
  }
231
+
232
+ footer {
233
+ width: 100%;
234
+ }
231
235
  }
@@ -42,8 +42,8 @@
42
42
 
43
43
  .ui button#menu {
44
44
  position: fixed;
45
- bottom: 30px;
46
- right: 5px;
45
+ bottom: 15px;
46
+ right: 15px;
47
47
  width: 64px;
48
48
  height: 64px;
49
49
  border-radius: 5px;
@@ -96,4 +96,18 @@
96
96
  border-top: none;
97
97
  border-radius: 0 0 5px 5px;
98
98
  text-align: center;
99
+ }
100
+
101
+ @media only screen and (max-width: 1000px) {
102
+ .menu {
103
+ width: 100%;
104
+ height: 90vh;
105
+ top: 0;
106
+ left: 0;
107
+ }
108
+
109
+ .ui button#menu {
110
+ bottom: 5px;
111
+ right: 5px;
112
+ }
99
113
  }
package/views/account.ejs CHANGED
@@ -31,12 +31,7 @@
31
31
  <h3>Password:</h3>
32
32
  <div class="setting" id="password">
33
33
  <p>*********</p>
34
- <button onclick="accountServices.editPassword()">Change Password</button>
35
- </div>
36
- <div class="edit invisible" id="password">
37
- <input type="password" name="password">
38
- <button onclick="accountServices.updatePassword()">Update</button>
39
- <button onclick="accountServices.cancelPassword()">Cancel</button>
34
+ <p>Visit the Keeper to Change Your Password</p>
40
35
  </div>
41
36
 
42
37
  <p id="info"></p>
@@ -132,29 +127,6 @@
132
127
  else this.$info.text("Server Error");
133
128
  }
134
129
  }
135
-
136
- editPassword() {
137
- this.$passwordSetting.addClass("invisible");
138
- this.$passwordEdit.removeClass("invisible");
139
- }
140
-
141
- cancelPassword() {
142
- this.$passwordSetting.removeClass("invisible");
143
- this.$passwordEdit.addClass("invisible");
144
- this.$passwordInput.val("");
145
- }
146
-
147
- async updatePassword() {
148
- try {
149
- await $.post("/user/password", { password: this.$passwordInput.val() }, (data) => {
150
- this.cancelPassword();
151
- this.$info.text("Password Updated!");
152
- });
153
- }
154
- catch(err) {
155
- this.$info.text(err);
156
- }
157
- }
158
130
  }
159
131
 
160
132
  let accountServices = new AccountServices();