-
Notifications
You must be signed in to change notification settings - Fork 1
/
const.js
51 lines (43 loc) · 1.03 KB
/
const.js
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
export const TYPES = ['taxi', 'bus', 'train', 'ship', 'drive', 'flight', 'check-in', 'sightseeing', 'restaurant'];
export const FilterType = {
EVERYTHING: 'everything',
FUTURE: 'future',
PRESENT: 'present',
PAST: 'past'
};
export const SortType = {
DEFAULT: 'day',
TIME: 'time',
PRICE: 'price'
};
export const NoPointsTextType = {
[FilterType.EVERYTHING]: 'click new event to create your first point',
[FilterType.FUTURE]: 'there are no future events now',
[FilterType.PAST]: 'there are no past events now',
[FilterType.PRESENT]: 'there are no present events now',
};
export const Mode = {
DEFAULT: 'DEFAULT',
EDITING: 'EDITING'
};
export const UserAction = {
UPDATE_POINT: 'UPDATE_POINT',
ADD_POINT: 'ADD_POINT',
DELETE_POINT: 'DELETE_POINT'
};
export const UpdateType = {
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR',
INIT: 'INIT'
};
export const ApiServiceMethod = {
GET: 'GET',
PUT: 'PUT',
POST: 'POST',
DELETE: 'DELETE'
};
export const TimeLimit = {
LOWER_LIMIT: 350,
UPPER_LIMIT: 1000,
};