fixed loading route and maps

This commit is contained in:
Fedor Katurov 2019-12-12 13:52:30 +07:00
parent 1f774a8299
commit 62cb8d8e18
18 changed files with 715 additions and 369 deletions

View file

@ -1,42 +1,39 @@
export interface IRoles {
guest: string,
vk: string,
admin: string,
guest: string;
vk: string;
admin: string;
}
export interface IUser {
new_messages: number,
place_types: {},
random_url: string,
role: IRoles[keyof IRoles],
routes: {},
success: boolean,
id?: string,
token?: string,
photo: string,
first_name: string,
// userdata: {
// name: string,
// agent: string,
// ip: string,
// }
new_messages: number;
place_types: {};
random_url: string;
role: IRoles[keyof IRoles];
routes: {};
success: boolean;
id?: number;
uid: string;
token?: string;
photo: string;
name: string;
}
export const ROLES: IRoles = {
guest: 'guest',
vk: 'vk',
admin: 'admin',
guest: "guest",
vk: "vk",
admin: "admin"
};
export const DEFAULT_USER: IUser = {
new_messages: 0,
place_types: {},
random_url: '',
random_url: "",
role: ROLES.guest,
routes: {},
success: false,
id: null,
token: null,
photo: null,
first_name: null,
name: null,
uid: null,
};