-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.ts
77 lines (68 loc) · 1.24 KB
/
constants.ts
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
import { RoomHistory } from './typings'
import { Participant, Result, Room } from './typings/Room'
export const STORAGE_KEY_USER = '@minPoker'
export const STORAGE_THEME_KEY = '@minPokerTheme'
export const LIGHTEN_AMOUNT_LOW = 0.05
export const LIGHTEN_AMOUNT_NORMAL = 0.2
export const LIGHTEN_AMOUNT_HIGH = 0.5
export const ANIMATION_DURATION = 0.5
export const DELAY_DURATION = 0.5
export const RESULTS_TEXT = {
1: '1',
2: '2',
3: '3',
5: '5',
8: '8',
13: '13',
21: '21',
34: '34',
question: '?',
}
export const DEFAULT_THEME_OBJ = {
title: 'light',
}
export const DEFAULT_RESULT: Result = {
average: 0,
items: [
{
id: '',
text: '',
votes: 0,
},
],
}
export const DEFAULT_ROOM: Room = {
id: '',
name: '',
isVoting: false,
participants: [
{
id: '',
name: '',
vote: '',
viewerMode: false,
},
],
hostId: '',
ref: {
path: '',
},
showResults: false,
results: DEFAULT_RESULT,
}
export const DEFAULT_ROOM_HISTORY: RoomHistory = {
userId: '',
history: [
{
roomName: '',
roomId: '',
lastVisitDate: new Date(),
},
],
}
export const DEFAULT_PARTICIPANT: Participant = {
id: '',
name: '',
vote: '',
viewerMode: false,
}