forked from htmlacademy-ecmascript/2253825-big-trip-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.js
45 lines (37 loc) · 804 Bytes
/
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
const FilterType = {
EVERYTHING: 'everything',
FUTURE: 'future',
PRESENT: 'present',
PAST: 'past'
};
const UserAction = {
UPDATE_EVENT: 'UPDATE_EVENT',
ADD_EVENT: 'ADD_EVENT',
DELETE_EVENT: 'DELETE_EVENT'
};
const UpdateType = {
INIT: 'INIT',
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR'
};
const Mode = {
DEFAULT: 'DEFAULT',
EDITING: 'EDITING',
CREATING: 'CREATING',
};
const UiTimeLimit = {
LOWER_LIMIT: 350,
UPPER_LIMIT: 1000,
};
const ApiServiceConnector = {
AUTHORIZATION: 'Basic er883jdzbdw33',
END_POINT: 'https://20.objects.htmlacademy.pro/big-trip'
};
const ApiServiceMethod = {
GET: 'GET',
PUT: 'PUT',
POST: 'POST',
DELETE: 'DELETE'
};
export { FilterType, UserAction, UpdateType, Mode, UiTimeLimit, ApiServiceConnector, ApiServiceMethod};