notherbase-fs 3.0.2 → 3.0.4
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/creation.js +0 -4
- package/models/index.js +24 -5
- package/models/spirit.js +1 -0
- package/models/user.js +1 -1
- package/package.json +1 -1
- package/views/scripts/base.js +1 -1
package/controllers/creation.js
CHANGED
|
@@ -43,10 +43,6 @@ export default class Creation {
|
|
|
43
43
|
main += `/${req.params.region}/${req.params.area}/${req.params.poi}/index`;
|
|
44
44
|
siteTitle += req.params.poi;
|
|
45
45
|
}
|
|
46
|
-
else if (req.params.page) {
|
|
47
|
-
main += `/${req.params.page}/index`;
|
|
48
|
-
siteTitle = req.params.page;
|
|
49
|
-
}
|
|
50
46
|
else {
|
|
51
47
|
main += `/the-front/index`;
|
|
52
48
|
siteTitle += "the-front";
|
package/models/index.js
CHANGED
|
@@ -63,11 +63,30 @@ catch (err) {
|
|
|
63
63
|
|
|
64
64
|
// user.find({}, async (err, users) => {
|
|
65
65
|
// for (let i = 0; i < users.length; i++) {
|
|
66
|
-
// let userSpirit = await
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
66
|
+
// let userSpirit = await Spirit.create({
|
|
67
|
+
// route: "/",
|
|
68
|
+
// service: "user",
|
|
69
|
+
// scope: "global",
|
|
70
|
+
// parent: null,
|
|
71
|
+
// _lastUpdate: Date.now()
|
|
72
|
+
// }, {
|
|
73
|
+
// username: users[i].username,
|
|
74
|
+
// password: users[i].password,
|
|
75
|
+
// email: users[i].email,
|
|
76
|
+
// resetToken: null,
|
|
77
|
+
// resetExp: null,
|
|
78
|
+
// coin: 0,
|
|
79
|
+
// home: "/",
|
|
80
|
+
// authLevels: [ "Basic" ],
|
|
81
|
+
// location: "/the-front",
|
|
82
|
+
// attributes: {
|
|
83
|
+
// translation: 0,
|
|
84
|
+
// strength: 0,
|
|
85
|
+
// agility: 0,
|
|
86
|
+
// defense: 0
|
|
87
|
+
// },
|
|
88
|
+
// inventory: []
|
|
89
|
+
// });
|
|
71
90
|
|
|
72
91
|
// let foundPages = await page.find({ user: users[i]._id });
|
|
73
92
|
|
package/models/spirit.js
CHANGED
package/models/user.js
CHANGED
package/package.json
CHANGED
package/views/scripts/base.js
CHANGED