map_list: initial

urls: editing now handled through urls
This commit is contained in:
muerwre 2018-12-05 14:16:23 +07:00
parent 3771e5d338
commit 0d9bad9095
23 changed files with 386 additions and 68 deletions

5
src/constants/dialogs.js Normal file
View file

@ -0,0 +1,5 @@
// @flow
export const DIALOGS = ({
NONE: 'NONE',
MAP_LIST: 'MAP_LIST',
}: { [key: String]: String });

View file

@ -1,4 +1,6 @@
export const MODES = {
// @flow
export const MODES = ({
POLY: 'POLY',
STICKERS: 'STICKERS',
ROUTER: 'ROUTER',
@ -9,4 +11,4 @@ export const MODES = {
SAVE: 'SAVE',
CONFIRM_CANCEL: 'CONFIRM_CANCEL',
PROVIDER: 'PROVIDER',
};
}: { [key: String]: String });

View file

@ -14,3 +14,18 @@ export type UserType = {
photo: String,
}
};
type Path = Array<{ lat: Number, lng: Number }>;
type Stickers = Array<Object>;
export type Route = {
_id: String,
title: String,
version: Number,
stickers: Array<Stickers>,
route: Array<Path>,
logo: String,
distance: Number,
created_at: String,
updated_at: String,
}