notherbase-fs 4.0.21 → 4.0.23
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/README.md +6 -6
- package/controllers/creation.js +147 -147
- package/controllers/spirit-world.js +174 -174
- package/controllers/user.js +240 -240
- package/controllers/util.js +64 -64
- package/models/index.js +33 -33
- package/models/send-mail.js +58 -58
- package/models/spirit.js +234 -234
- package/notherbase-fs.js +112 -111
- package/package.json +40 -40
- package/public/js/base.js +222 -227
- package/public/js/chat-box.js +120 -120
- package/test/coast/tall-beach/nono-cove/index.css +17 -17
- package/test/coast/tall-beach/nono-cove/index.ejs +29 -29
- package/test/coast/tall-beach/nono-cove/nono-og/add-gold.js +15 -15
- package/test/coast/tall-beach/nono-cove/nono-og/index.ejs +46 -46
- package/test/coast/tall-beach/nono-cove/nono-og/nono.css +88 -88
- package/test/coast/tall-beach/nono-cove/nono-og/nono.js +207 -207
- package/test/pages/test-page/emailTime.js +8 -8
- package/test/pages/test-page/index.ejs +104 -104
- package/test/pages/void/index.ejs +35 -35
- package/test/pages/void/void.css +2 -2
- package/test/public/styles/main.css +792 -792
- package/test/the-front/add-gold.js +13 -13
- package/test/the-front/check/check.css +2 -2
- package/test/the-front/check/emailTime.js +9 -9
- package/test/the-front/check/flip.js +9 -9
- package/test/the-front/check/index.ejs +54 -54
- package/test/the-front/check/save-input.js +7 -7
- package/test/the-front/index.ejs +116 -99
- package/test/the-front/keeper/clipboards.js +133 -133
- package/test/the-front/keeper/index.ejs +80 -80
- package/test/the-front/keeper/keeper.css +157 -157
- package/test/the-front/keeper/keeper.js +140 -140
- package/test-index.js +19 -19
- package/test2/pages/test-page/emailTime.js +8 -8
- package/test2/pages/test-page/index.ejs +104 -104
- package/test2/pages/void/index.ejs +35 -35
- package/test2/pages/void/void.css +2 -2
- package/test2/public/styles/main.css +792 -792
- package/test2/the-front/add-gold.js +13 -13
- package/test2/the-front/check/check.css +2 -2
- package/test2/the-front/check/emailTime.js +9 -9
- package/test2/the-front/check/flip.js +9 -9
- package/test2/the-front/check/index.ejs +54 -54
- package/test2/the-front/check/save-input.js +7 -7
- package/test2/the-front/index.ejs +99 -99
- package/test2/the-front/keeper/clipboards.js +133 -133
- package/test2/the-front/keeper/index.ejs +80 -80
- package/test2/the-front/keeper/keeper.css +157 -157
- package/test2/the-front/keeper/keeper.js +140 -140
- package/views/explorer.ejs +82 -82
- package/views/footer.ejs +9 -9
- package/views/head.ejs +17 -17
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--gate: rgba(128, 128, 128, 0.678);
|
|
3
|
-
--paperWhite: rgb(231, 231, 231);
|
|
4
|
-
--inkBlack: rgb(22, 22, 22);
|
|
5
|
-
--woodColor: rgb(110, 76, 37);
|
|
6
|
-
--darkWoodColor: rgb(70, 48, 23);
|
|
7
|
-
--gateColor: rgba(128, 128, 128, 0.678);
|
|
8
|
-
--gateColorBright: rgba(187, 187, 187, 0.678);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.shack {
|
|
12
|
-
background-color: rgb(20, 15, 11);
|
|
13
|
-
border: 3px solid var(--woodColor);
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 500px;
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.counter {
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 25%;
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 0;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
background-color: var(--woodColor);
|
|
26
|
-
border-bottom: 3vh solid var(--darkWoodColor);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.clipboard {
|
|
30
|
-
background-color: rgb(73, 47, 28);
|
|
31
|
-
width: 240px;
|
|
32
|
-
height: 420px;
|
|
33
|
-
position: absolute;
|
|
34
|
-
left: 5%;
|
|
35
|
-
bottom: 5px;
|
|
36
|
-
padding: 5px;
|
|
37
|
-
cursor: initial;
|
|
38
|
-
transition: all .5s ease;
|
|
39
|
-
z-index: 10;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.clipboard.for-register {
|
|
43
|
-
left: initial;
|
|
44
|
-
right: 5%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.clipboard.on-counter {
|
|
48
|
-
width: 75px;
|
|
49
|
-
height: 110px;
|
|
50
|
-
position: absolute;
|
|
51
|
-
left: 10%;
|
|
52
|
-
top: -25%;
|
|
53
|
-
padding: 5px;
|
|
54
|
-
transform: rotate3d(1, 1, 1, -70deg);
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
z-index: 5;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.clipboard.on-counter.for-register {
|
|
60
|
-
left: initial;
|
|
61
|
-
right: 10%;
|
|
62
|
-
transform: rotate3d(1, -1, -1, -70deg);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.close {
|
|
66
|
-
display: initial;
|
|
67
|
-
color: black;
|
|
68
|
-
border-radius: 50%;
|
|
69
|
-
background-color: rgba(255, 0, 0, 0.63);
|
|
70
|
-
border: 1px solid black;
|
|
71
|
-
position: absolute;
|
|
72
|
-
right: var(--padding);
|
|
73
|
-
top: var(--padding);
|
|
74
|
-
width: 25px;
|
|
75
|
-
height: 25px;
|
|
76
|
-
padding: 0;
|
|
77
|
-
z-index: 11;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.clipboard.on-counter .close {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.clipboard.on-counter .auth-form {
|
|
85
|
-
display: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.application {
|
|
89
|
-
background-color: rgb(231, 231, 231);
|
|
90
|
-
width: calc(100% - 10px);
|
|
91
|
-
height: calc(100% - 10px);
|
|
92
|
-
position: absolute;
|
|
93
|
-
left: 5px;
|
|
94
|
-
top: 5px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.clamp {
|
|
98
|
-
background-color: rgb(155, 155, 155);
|
|
99
|
-
width: 30%;
|
|
100
|
-
height: 5%;
|
|
101
|
-
position: absolute;
|
|
102
|
-
left: 35%;
|
|
103
|
-
top: 0;
|
|
104
|
-
border-radius: 1px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.application * {
|
|
108
|
-
color: var(--inkBlack);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.auth-form {
|
|
112
|
-
height: 100%;
|
|
113
|
-
width: 100%;
|
|
114
|
-
padding: 40px 5px;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: center;
|
|
118
|
-
flex-wrap: wrap;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.auth-form p {
|
|
122
|
-
width: 100%;
|
|
123
|
-
text-align: center;
|
|
124
|
-
margin: 0;
|
|
125
|
-
font-size: 15px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.auth-form input, .auth-form button {
|
|
129
|
-
background-color: var(--paperWhite);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.auth-form button {
|
|
133
|
-
width: 60%;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.auth-form p.error {
|
|
137
|
-
color: rgb(160, 19, 19);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.scribbles {
|
|
141
|
-
color: var(--inkBlack);
|
|
142
|
-
font-size: 10px;
|
|
143
|
-
width: 100%;
|
|
144
|
-
height: 100%;
|
|
145
|
-
position: absolute;
|
|
146
|
-
left: 0;
|
|
147
|
-
top: 0;
|
|
148
|
-
font-family: 'Redacted Script', cursive;
|
|
149
|
-
padding: 10px;
|
|
150
|
-
line-height: normal;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.subtle, .subtle:hover {
|
|
154
|
-
border: none !important;
|
|
155
|
-
width: 100% !important;
|
|
156
|
-
height: 25px !important;
|
|
157
|
-
text-decoration: underline;
|
|
1
|
+
:root {
|
|
2
|
+
--gate: rgba(128, 128, 128, 0.678);
|
|
3
|
+
--paperWhite: rgb(231, 231, 231);
|
|
4
|
+
--inkBlack: rgb(22, 22, 22);
|
|
5
|
+
--woodColor: rgb(110, 76, 37);
|
|
6
|
+
--darkWoodColor: rgb(70, 48, 23);
|
|
7
|
+
--gateColor: rgba(128, 128, 128, 0.678);
|
|
8
|
+
--gateColorBright: rgba(187, 187, 187, 0.678);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.shack {
|
|
12
|
+
background-color: rgb(20, 15, 11);
|
|
13
|
+
border: 3px solid var(--woodColor);
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 500px;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.counter {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 25%;
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
background-color: var(--woodColor);
|
|
26
|
+
border-bottom: 3vh solid var(--darkWoodColor);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.clipboard {
|
|
30
|
+
background-color: rgb(73, 47, 28);
|
|
31
|
+
width: 240px;
|
|
32
|
+
height: 420px;
|
|
33
|
+
position: absolute;
|
|
34
|
+
left: 5%;
|
|
35
|
+
bottom: 5px;
|
|
36
|
+
padding: 5px;
|
|
37
|
+
cursor: initial;
|
|
38
|
+
transition: all .5s ease;
|
|
39
|
+
z-index: 10;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.clipboard.for-register {
|
|
43
|
+
left: initial;
|
|
44
|
+
right: 5%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.clipboard.on-counter {
|
|
48
|
+
width: 75px;
|
|
49
|
+
height: 110px;
|
|
50
|
+
position: absolute;
|
|
51
|
+
left: 10%;
|
|
52
|
+
top: -25%;
|
|
53
|
+
padding: 5px;
|
|
54
|
+
transform: rotate3d(1, 1, 1, -70deg);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
z-index: 5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.clipboard.on-counter.for-register {
|
|
60
|
+
left: initial;
|
|
61
|
+
right: 10%;
|
|
62
|
+
transform: rotate3d(1, -1, -1, -70deg);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.close {
|
|
66
|
+
display: initial;
|
|
67
|
+
color: black;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
background-color: rgba(255, 0, 0, 0.63);
|
|
70
|
+
border: 1px solid black;
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: var(--padding);
|
|
73
|
+
top: var(--padding);
|
|
74
|
+
width: 25px;
|
|
75
|
+
height: 25px;
|
|
76
|
+
padding: 0;
|
|
77
|
+
z-index: 11;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.clipboard.on-counter .close {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.clipboard.on-counter .auth-form {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.application {
|
|
89
|
+
background-color: rgb(231, 231, 231);
|
|
90
|
+
width: calc(100% - 10px);
|
|
91
|
+
height: calc(100% - 10px);
|
|
92
|
+
position: absolute;
|
|
93
|
+
left: 5px;
|
|
94
|
+
top: 5px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.clamp {
|
|
98
|
+
background-color: rgb(155, 155, 155);
|
|
99
|
+
width: 30%;
|
|
100
|
+
height: 5%;
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: 35%;
|
|
103
|
+
top: 0;
|
|
104
|
+
border-radius: 1px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.application * {
|
|
108
|
+
color: var(--inkBlack);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.auth-form {
|
|
112
|
+
height: 100%;
|
|
113
|
+
width: 100%;
|
|
114
|
+
padding: 40px 5px;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.auth-form p {
|
|
122
|
+
width: 100%;
|
|
123
|
+
text-align: center;
|
|
124
|
+
margin: 0;
|
|
125
|
+
font-size: 15px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.auth-form input, .auth-form button {
|
|
129
|
+
background-color: var(--paperWhite);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.auth-form button {
|
|
133
|
+
width: 60%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.auth-form p.error {
|
|
137
|
+
color: rgb(160, 19, 19);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.scribbles {
|
|
141
|
+
color: var(--inkBlack);
|
|
142
|
+
font-size: 10px;
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
position: absolute;
|
|
146
|
+
left: 0;
|
|
147
|
+
top: 0;
|
|
148
|
+
font-family: 'Redacted Script', cursive;
|
|
149
|
+
padding: 10px;
|
|
150
|
+
line-height: normal;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.subtle, .subtle:hover {
|
|
154
|
+
border: none !important;
|
|
155
|
+
width: 100% !important;
|
|
156
|
+
height: 25px !important;
|
|
157
|
+
text-decoration: underline;
|
|
158
158
|
}
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
let keeper = new Dialogue("keeper", 2000, function () {
|
|
2
|
-
//if logged in
|
|
3
|
-
if (Dialogue.checkGlobalFlag("logged-in")) {
|
|
4
|
-
Dialogue.removeGlobalFlag("logged-in");
|
|
5
|
-
|
|
6
|
-
return [
|
|
7
|
-
Dialogue.textSlide("Did you hear that?", 1),
|
|
8
|
-
Dialogue.textSlide("You've logged in successfully!"),
|
|
9
|
-
Dialogue.textSlide("Head on in through the gate.")
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
// about nb
|
|
13
|
-
else if (this.checkFlag("what-kind")) {
|
|
14
|
-
this.removeFlag("what-kind");
|
|
15
|
-
this.removeFlag("about-nb");
|
|
16
|
-
this.addFlag("human")
|
|
17
|
-
|
|
18
|
-
return [
|
|
19
|
-
Dialogue.textSlide("Oh, I love this question!"),
|
|
20
|
-
Dialogue.textSlide("NotherBase has a variety of web apps and games."),
|
|
21
|
-
Dialogue.textSlide("You can even interact with other humans in certain places.")
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
else if (this.checkFlag("who-made")) {
|
|
25
|
-
this.removeFlag("who-made");
|
|
26
|
-
this.removeFlag("about-nb");
|
|
27
|
-
|
|
28
|
-
return [
|
|
29
|
-
Dialogue.textSlide("Uh- well, God did.", 3),
|
|
30
|
-
Dialogue.textSlide("Same as the way every other place was made, right?"),
|
|
31
|
-
Dialogue.textSlide("Wait, you mean to ask who made the fence and buildings within?"),
|
|
32
|
-
Dialogue.textSlide("That's just Nother.", 1),
|
|
33
|
-
Dialogue.textSlide("But, I think they're still working for God.")
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
else if (this.checkFlag("how-big")) {
|
|
37
|
-
this.removeFlag("how-big");
|
|
38
|
-
this.removeFlag("about-nb");
|
|
39
|
-
|
|
40
|
-
return [
|
|
41
|
-
Dialogue.textSlide("How big?", 1),
|
|
42
|
-
Dialogue.textSlide("Um..."),
|
|
43
|
-
Dialogue.textSlide("I'm really not sure to be honest."),
|
|
44
|
-
Dialogue.textSlide("I think it's pretty big, though. Should be.")
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
else if (this.checkFlag("about-nb")) {
|
|
48
|
-
return [
|
|
49
|
-
Dialogue.buttonSlide([
|
|
50
|
-
Dialogue.button("What kind of website is this?", "what-kind"),
|
|
51
|
-
Dialogue.button("Who made this place?", "who-made"),
|
|
52
|
-
Dialogue.button("How big is NotherBase?", "how-big")
|
|
53
|
-
])
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
// about account
|
|
57
|
-
else if (this.checkFlag("why-account")) {
|
|
58
|
-
this.removeFlag("why-account");
|
|
59
|
-
this.removeFlag("about-account");
|
|
60
|
-
|
|
61
|
-
return [
|
|
62
|
-
Dialogue.textSlide("Registering an account allows NotherBase to indentify you."),
|
|
63
|
-
Dialogue.textSlide("This way, NotherBase can provide features like game saves synced across all your devices.")
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
else if (this.checkFlag("why-email")) {
|
|
67
|
-
this.removeFlag("why-email");
|
|
68
|
-
this.removeFlag("about-account");
|
|
69
|
-
|
|
70
|
-
return [
|
|
71
|
-
Dialogue.textSlide("Your email is needed in for account recovery."),
|
|
72
|
-
Dialogue.textSlide("My boss said he didn't want everyone calling him when they forget their passwords.")
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
else if (this.checkFlag("what-info")) {
|
|
76
|
-
this.removeFlag("what-info");
|
|
77
|
-
this.removeFlag("about-account");
|
|
78
|
-
|
|
79
|
-
return [
|
|
80
|
-
Dialogue.textSlide("Only information about you that has been generated on NotherBase will be saved.", 4),
|
|
81
|
-
Dialogue.textSlide("For example, imagine you are choosing an alias for a game."),
|
|
82
|
-
Dialogue.textSlide("NotherBase servers will save that info in order to sync across your devices.")
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
else if (this.checkFlag("about-account")) {
|
|
86
|
-
return [
|
|
87
|
-
Dialogue.buttonSlide([
|
|
88
|
-
Dialogue.button("Why is an account needed?", "why-account"),
|
|
89
|
-
Dialogue.button("Why is my email address needed?", "why-email"),
|
|
90
|
-
Dialogue.button("What information is saved about me?", "what-info")
|
|
91
|
-
])
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
//about self
|
|
95
|
-
else if (this.checkFlag("about-self")) {
|
|
96
|
-
this.removeFlag("about-self");
|
|
97
|
-
|
|
98
|
-
return [
|
|
99
|
-
Dialogue.textSlide("Oh we don't need to talk about little 'ol me."),
|
|
100
|
-
Dialogue.textSlide("I'm no important person.", 1)
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
//about self
|
|
104
|
-
else if (this.checkFlag("poke")) {
|
|
105
|
-
this.removeFlag("poke");
|
|
106
|
-
|
|
107
|
-
return [
|
|
108
|
-
Dialogue.textSlide("It's true that you can interact with other people like myself, but..."),
|
|
109
|
-
Dialogue.textSlide("You already knew that.", 1),
|
|
110
|
-
Dialogue.textSlide("I was just trying to emphasize that you can interact with others like yourself, too.")
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
//start
|
|
114
|
-
else if (this.checkFlag("greeted")) {
|
|
115
|
-
if (this.checkFlag("human")) return [
|
|
116
|
-
Dialogue.textSlide("Let me know if you have any questions."),
|
|
117
|
-
Dialogue.buttonSlide([
|
|
118
|
-
Dialogue.button("About NotherBase...", "about-nb"),
|
|
119
|
-
Dialogue.button("About Accounts...", "about-account"),
|
|
120
|
-
Dialogue.button("Why did you say other humans and not other people?", "poke")
|
|
121
|
-
])
|
|
122
|
-
];
|
|
123
|
-
else return [
|
|
124
|
-
Dialogue.textSlide("Let me know if you have any questions.", 1),
|
|
125
|
-
Dialogue.buttonSlide([
|
|
126
|
-
Dialogue.button("About NotherBase...", "about-nb"),
|
|
127
|
-
Dialogue.button("About Accounts...", "about-account"),
|
|
128
|
-
Dialogue.button("About Yourself...", "about-self")
|
|
129
|
-
])
|
|
130
|
-
];
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this.addFlag("greeted");
|
|
134
|
-
|
|
135
|
-
return [
|
|
136
|
-
Dialogue.textSlide("Hi!", 1),
|
|
137
|
-
Dialogue.textSlide("Welcome to NotherBase!", 2)
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
});
|
|
1
|
+
let keeper = new Dialogue("keeper", 2000, function () {
|
|
2
|
+
//if logged in
|
|
3
|
+
if (Dialogue.checkGlobalFlag("logged-in")) {
|
|
4
|
+
Dialogue.removeGlobalFlag("logged-in");
|
|
5
|
+
|
|
6
|
+
return [
|
|
7
|
+
Dialogue.textSlide("Did you hear that?", 1),
|
|
8
|
+
Dialogue.textSlide("You've logged in successfully!"),
|
|
9
|
+
Dialogue.textSlide("Head on in through the gate.")
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
// about nb
|
|
13
|
+
else if (this.checkFlag("what-kind")) {
|
|
14
|
+
this.removeFlag("what-kind");
|
|
15
|
+
this.removeFlag("about-nb");
|
|
16
|
+
this.addFlag("human")
|
|
17
|
+
|
|
18
|
+
return [
|
|
19
|
+
Dialogue.textSlide("Oh, I love this question!"),
|
|
20
|
+
Dialogue.textSlide("NotherBase has a variety of web apps and games."),
|
|
21
|
+
Dialogue.textSlide("You can even interact with other humans in certain places.")
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
else if (this.checkFlag("who-made")) {
|
|
25
|
+
this.removeFlag("who-made");
|
|
26
|
+
this.removeFlag("about-nb");
|
|
27
|
+
|
|
28
|
+
return [
|
|
29
|
+
Dialogue.textSlide("Uh- well, God did.", 3),
|
|
30
|
+
Dialogue.textSlide("Same as the way every other place was made, right?"),
|
|
31
|
+
Dialogue.textSlide("Wait, you mean to ask who made the fence and buildings within?"),
|
|
32
|
+
Dialogue.textSlide("That's just Nother.", 1),
|
|
33
|
+
Dialogue.textSlide("But, I think they're still working for God.")
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
else if (this.checkFlag("how-big")) {
|
|
37
|
+
this.removeFlag("how-big");
|
|
38
|
+
this.removeFlag("about-nb");
|
|
39
|
+
|
|
40
|
+
return [
|
|
41
|
+
Dialogue.textSlide("How big?", 1),
|
|
42
|
+
Dialogue.textSlide("Um..."),
|
|
43
|
+
Dialogue.textSlide("I'm really not sure to be honest."),
|
|
44
|
+
Dialogue.textSlide("I think it's pretty big, though. Should be.")
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
else if (this.checkFlag("about-nb")) {
|
|
48
|
+
return [
|
|
49
|
+
Dialogue.buttonSlide([
|
|
50
|
+
Dialogue.button("What kind of website is this?", "what-kind"),
|
|
51
|
+
Dialogue.button("Who made this place?", "who-made"),
|
|
52
|
+
Dialogue.button("How big is NotherBase?", "how-big")
|
|
53
|
+
])
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
// about account
|
|
57
|
+
else if (this.checkFlag("why-account")) {
|
|
58
|
+
this.removeFlag("why-account");
|
|
59
|
+
this.removeFlag("about-account");
|
|
60
|
+
|
|
61
|
+
return [
|
|
62
|
+
Dialogue.textSlide("Registering an account allows NotherBase to indentify you."),
|
|
63
|
+
Dialogue.textSlide("This way, NotherBase can provide features like game saves synced across all your devices.")
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
else if (this.checkFlag("why-email")) {
|
|
67
|
+
this.removeFlag("why-email");
|
|
68
|
+
this.removeFlag("about-account");
|
|
69
|
+
|
|
70
|
+
return [
|
|
71
|
+
Dialogue.textSlide("Your email is needed in for account recovery."),
|
|
72
|
+
Dialogue.textSlide("My boss said he didn't want everyone calling him when they forget their passwords.")
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
else if (this.checkFlag("what-info")) {
|
|
76
|
+
this.removeFlag("what-info");
|
|
77
|
+
this.removeFlag("about-account");
|
|
78
|
+
|
|
79
|
+
return [
|
|
80
|
+
Dialogue.textSlide("Only information about you that has been generated on NotherBase will be saved.", 4),
|
|
81
|
+
Dialogue.textSlide("For example, imagine you are choosing an alias for a game."),
|
|
82
|
+
Dialogue.textSlide("NotherBase servers will save that info in order to sync across your devices.")
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
else if (this.checkFlag("about-account")) {
|
|
86
|
+
return [
|
|
87
|
+
Dialogue.buttonSlide([
|
|
88
|
+
Dialogue.button("Why is an account needed?", "why-account"),
|
|
89
|
+
Dialogue.button("Why is my email address needed?", "why-email"),
|
|
90
|
+
Dialogue.button("What information is saved about me?", "what-info")
|
|
91
|
+
])
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
//about self
|
|
95
|
+
else if (this.checkFlag("about-self")) {
|
|
96
|
+
this.removeFlag("about-self");
|
|
97
|
+
|
|
98
|
+
return [
|
|
99
|
+
Dialogue.textSlide("Oh we don't need to talk about little 'ol me."),
|
|
100
|
+
Dialogue.textSlide("I'm no important person.", 1)
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
//about self
|
|
104
|
+
else if (this.checkFlag("poke")) {
|
|
105
|
+
this.removeFlag("poke");
|
|
106
|
+
|
|
107
|
+
return [
|
|
108
|
+
Dialogue.textSlide("It's true that you can interact with other people like myself, but..."),
|
|
109
|
+
Dialogue.textSlide("You already knew that.", 1),
|
|
110
|
+
Dialogue.textSlide("I was just trying to emphasize that you can interact with others like yourself, too.")
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
//start
|
|
114
|
+
else if (this.checkFlag("greeted")) {
|
|
115
|
+
if (this.checkFlag("human")) return [
|
|
116
|
+
Dialogue.textSlide("Let me know if you have any questions."),
|
|
117
|
+
Dialogue.buttonSlide([
|
|
118
|
+
Dialogue.button("About NotherBase...", "about-nb"),
|
|
119
|
+
Dialogue.button("About Accounts...", "about-account"),
|
|
120
|
+
Dialogue.button("Why did you say other humans and not other people?", "poke")
|
|
121
|
+
])
|
|
122
|
+
];
|
|
123
|
+
else return [
|
|
124
|
+
Dialogue.textSlide("Let me know if you have any questions.", 1),
|
|
125
|
+
Dialogue.buttonSlide([
|
|
126
|
+
Dialogue.button("About NotherBase...", "about-nb"),
|
|
127
|
+
Dialogue.button("About Accounts...", "about-account"),
|
|
128
|
+
Dialogue.button("About Yourself...", "about-self")
|
|
129
|
+
])
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this.addFlag("greeted");
|
|
134
|
+
|
|
135
|
+
return [
|
|
136
|
+
Dialogue.textSlide("Hi!", 1),
|
|
137
|
+
Dialogue.textSlide("Welcome to NotherBase!", 2)
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
});
|
package/test-index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import NotherBaseFS from "./notherbase-fs.js";
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
-
|
|
4
|
-
const notherBaseFS = new NotherBaseFS({}, {
|
|
5
|
-
notherbase: {
|
|
6
|
-
title: "NotherBase",
|
|
7
|
-
directory: fileURLToPath(new URL('./test', import.meta.url)),
|
|
8
|
-
icon: '/public/drum.png'
|
|
9
|
-
},
|
|
10
|
-
notherbaselo: {
|
|
11
|
-
title: "NotherBase",
|
|
12
|
-
directory: fileURLToPath(new URL('./test', import.meta.url)),
|
|
13
|
-
icon: '/public/drum.png'
|
|
14
|
-
},
|
|
15
|
-
test: {
|
|
16
|
-
title: "TestBase",
|
|
17
|
-
directory: fileURLToPath(new URL('./test2', import.meta.url)),
|
|
18
|
-
icon: '/public/drum.png'
|
|
19
|
-
}
|
|
1
|
+
import NotherBaseFS from "./notherbase-fs.js";
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
|
|
4
|
+
const notherBaseFS = new NotherBaseFS({}, {
|
|
5
|
+
notherbase: {
|
|
6
|
+
title: "NotherBase",
|
|
7
|
+
directory: fileURLToPath(new URL('./test', import.meta.url)),
|
|
8
|
+
icon: '/public/drum.png'
|
|
9
|
+
},
|
|
10
|
+
notherbaselo: {
|
|
11
|
+
title: "NotherBase",
|
|
12
|
+
directory: fileURLToPath(new URL('./test', import.meta.url)),
|
|
13
|
+
icon: '/public/drum.png'
|
|
14
|
+
},
|
|
15
|
+
test: {
|
|
16
|
+
title: "TestBase",
|
|
17
|
+
directory: fileURLToPath(new URL('./test2', import.meta.url)),
|
|
18
|
+
icon: '/public/drum.png'
|
|
19
|
+
}
|
|
20
20
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default async function emailTime(req, user) {
|
|
2
|
-
await req.db.SendMail.send(
|
|
3
|
-
req.body.data.toEmail,
|
|
4
|
-
req.body.data.subject,
|
|
5
|
-
req.body.data.html
|
|
6
|
-
);
|
|
7
|
-
|
|
8
|
-
return "Sent";
|
|
1
|
+
export default async function emailTime(req, user) {
|
|
2
|
+
await req.db.SendMail.send(
|
|
3
|
+
req.body.data.toEmail,
|
|
4
|
+
req.body.data.subject,
|
|
5
|
+
req.body.data.html
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
return "Sent";
|
|
9
9
|
}
|