mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
map_list: initial
urls: editing now handled through urls
This commit is contained in:
parent
3771e5d338
commit
0d9bad9095
23 changed files with 386 additions and 68 deletions
5
src/constants/dialogs.js
Normal file
5
src/constants/dialogs.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
// @flow
|
||||
export const DIALOGS = ({
|
||||
NONE: 'NONE',
|
||||
MAP_LIST: 'MAP_LIST',
|
||||
}: { [key: String]: String });
|
|
@ -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 });
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue