-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInitialState.js
More file actions
338 lines (328 loc) · 9.48 KB
/
Copy pathInitialState.js
File metadata and controls
338 lines (328 loc) · 9.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
import randomPhrase from "./randomPhrase";
export const initialState = {
selectedHaiku: 0,
selectedLine: 0,
isShowingTranslation: false,
haiku: {
0: {
optionsArray: {
0: [randomPhrase(), "mountain stream / in", randomPhrase(), 1],
1: [randomPhrase(), randomPhrase(), "alone / hair / washing", 2],
2: ["god / to know", randomPhrase(), randomPhrase(), 0]
},
isCompleted: false,
soundsArray: [
require("./assets/0-0.mp3"),
require("./assets/0-1.mp3"),
require("./assets/0-2.mp3")
],
haikuLines: {
0: "山川に",
1: "ひとり髪洗ふ",
2: "神ぞ知る"
},
emoji: "🗻",
name: "Mountain",
literalTranslation: [
"mountain stream / in",
"alone / hair / washing",
"god / to know"
],
poeticTranslation:
"god knows in a mountain stream a woman alone washing her hair"
},
1: {
optionsArray: {
0: [randomPhrase(), randomPhrase(), "wind / to blow", 2],
1: [randomPhrase(), "death / come / to receive", randomPhrase(), 1],
2: ["hearing", randomPhrase(), randomPhrase(), 0]
},
isCompleted: false,
soundsArray: [
require("./assets/1-0.mp3"),
require("./assets/1-1.mp3"),
require("./assets/1-2.mp3")
],
haikuLines: {
0: "風が吹く",
1: "仏来給ふ",
2: "けはひあり"
},
emoji: "💀",
name: "Death",
literalTranslation: [
"wind / to blow",
"death / come / to receive",
"hearing"
],
poeticTranslation:
"a wind blows and I hear the soul of the deceased coming"
},
2: {
optionsArray: {
0: ["you / and / I", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "lie / as / if delving into", 2],
2: [randomPhrase(), "autumn / 's / end", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/2-0.mp3"),
require("./assets/2-1.mp3"),
require("./assets/2-2.mp3")
],
haikuLines: {
0: "君と我",
1: "うそにほればや",
2: "秋の暮"
},
emoji: "💛",
name: "Fake Love",
literalTranslation: [
"you / and / I",
"lie / as / if delving into",
"autumn / 's / end"
],
poeticTranslation:
"you and me, how about we fake being in love in autumn's end"
},
3: {
optionsArray: {
0: [randomPhrase(), "spider / to / birth", randomPhrase(), 1],
1: ["web / if not weaving", randomPhrase(), randomPhrase(), 0],
2: [randomPhrase(), randomPhrase(), "bad / is it?", 2]
},
isCompleted: false,
soundsArray: [
require("./assets/3-0.mp3"),
require("./assets/3-1.mp3"),
require("./assets/3-2.mp3")
],
haikuLines: {
0: "蜘蛛に生れ",
1: "網をかけねば",
2: "ならぬかな"
},
emoji: "🕷️",
name: "Web",
literalTranslation: [
"spider / to / birth",
"web / if not weaving",
"bad / is it?"
],
poeticTranslation: "a spider born to spin a thread must weave a web"
},
4: {
optionsArray: {
0: [randomPhrase(), randomPhrase(), "grass / picking", 2],
1: [randomPhrase(), "today / 's / field / grief", randomPhrase(), 1],
2: ["night rain / to come", randomPhrase(), randomPhrase(), 0]
},
isCompleted: false,
soundsArray: [
require("./assets/4-0.mp3"),
require("./assets/4-1.mp3"),
require("./assets/4-2.mp3")
],
haikuLines: {
0: "草摘みし",
1: "今日の野いたみ",
2: "夜雨来る"
},
emoji: "🌧️",
name: "Rain",
literalTranslation: [
"grass / picking",
"today / 's / field / grief",
"night rain / to come"
],
poeticTranslation:
"a night rain mourns the field where herbs were picked up this day"
},
5: {
optionsArray: {
0: [randomPhrase(), randomPhrase(), "white / rose", 2],
1: [randomPhrase(), "so called / even if", randomPhrase(), 1],
2: ["red / faint", randomPhrase(), randomPhrase(), 0]
},
isCompleted: false,
soundsArray: [
require("./assets/5-0.mp3"),
require("./assets/5-1.mp3"),
require("./assets/5-2.mp3")
],
haikuLines: {
0: "白牡丹",
1: "といふといへども",
2: "紅ほのか"
},
emoji: "🌹",
name: "Rose",
literalTranslation: [
"white / rose",
"so called / even if",
"red / faint"
],
poeticTranslation: "a so called white rose still tinged with red"
},
6: {
optionsArray: {
0: ["spring breeze / and", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "fighting spirit / embracing", 2],
2: [randomPhrase(), "hill / on / to stand", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/6-0.mp3"),
require("./assets/6-1.mp3"),
require("./assets/6-2.mp3")
],
haikuLines: {
0: "春風や",
1: "闘志抱きて",
2: "丘に佇つ"
},
emoji: "⚔️",
name: "Fight",
literalTranslation: [
"spring breeze / and",
"fighting spirit / embracing",
"hill / on / to stand"
],
poeticTranslation:
"I stand on a hill in a spring wind with my heart full of fight"
},
7: {
optionsArray: {
0: ["duck / 's / bill / from", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "dripping", 2],
2: [randomPhrase(), "spring / 's / mud", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/7-0.mp3"),
require("./assets/7-1.mp3"),
require("./assets/7-2.mp3")
],
haikuLines: {
0: "鴨の嘴より",
1: "たらたらと",
2: "春の泥"
},
emoji: "🦆",
name: "Duck",
literalTranslation: [
"duck / 's / bill / from",
"dripping",
"spring / 's / mud"
],
poeticTranslation: "Spring mud dribbles from the bill of a wild duck"
},
8: {
optionsArray: {
0: ["going / spring / and", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "bird / cry / fish / 's", 2],
2: [randomPhrase(), "eyes / tears", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/8-0.mp3"),
require("./assets/8-1.mp3"),
require("./assets/8-2.mp3")
],
haikuLines: {
0: "行春や",
1: "鳥啼き魚の",
2: "目は泪"
},
emoji: "🌱",
name: "Spring",
literalTranslation: [
"going / spring / and",
"bird / cry / fish / 's ",
"eyes / tears"
],
poeticTranslation:
"the birds cry and the fishes have tears on their eyes with the passing of spring"
},
8: {
optionsArray: {
0: ["summer / grass / and", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "soldiers", 2],
2: [randomPhrase(), "dream / 's / remains", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/8-0.mp3"),
require("./assets/8-1.mp3"),
require("./assets/8-2.mp3")
],
haikuLines: {
0: "夏草や",
1: "兵どもが",
2: "夢の跡"
},
emoji: "🛡️",
name: "Warrior",
literalTranslation: [
"summer / grass / and",
"soldiers",
"dream / 's / remains"
],
poeticTranslation:
"the grasses in the summer are all that's left of a warrior's dreams"
},
9: {
optionsArray: {
0: ["tranquility / and", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "stone / to / to permeate", 2],
2: [randomPhrase(), "cicada / 's / cry", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/9-0.mp3"),
require("./assets/9-1.mp3"),
require("./assets/9-2.mp3")
],
haikuLines: {
0: "閑けさや",
1: "岩にしみいる",
2: "蝉の声"
},
emoji: "😌",
name: "Tranquility",
literalTranslation: [
"tranquility / and",
"stone / to / to permeate",
"cicada / 's / cry"
],
poeticTranslation:
"a cicada's voice penetrating the very rock, tranquility"
},
10: {
optionsArray: {
0: ["old / pool / and", randomPhrase(), randomPhrase(), 0],
1: [randomPhrase(), randomPhrase(), "frog / to jump in", 2],
2: [randomPhrase(), "water / 's / sound", randomPhrase(), 1]
},
isCompleted: false,
soundsArray: [
require("./assets/9-0.mp3"),
require("./assets/9-1.mp3"),
require("./assets/9-2.mp3")
],
haikuLines: {
0: "古池や",
1: "蛙飛び込む",
2: "水の音"
},
emoji: "🐸",
name: "Frog",
literalTranslation: [
"old / pool / and",
"frog / to jump in",
"water / 's / sound"
],
poeticTranslation: "a frog leaps into an old pond with the sound of water"
}
}
};