removed all modules

This commit is contained in:
Fedor Katurov 2020-01-08 12:07:36 +07:00
parent aa8fd14517
commit 0c321f2bb3
21 changed files with 677 additions and 77 deletions

View file

@ -1,16 +1,16 @@
import { MAP_ACTIONS } from "./constants";
import { IMapReducer } from "./";
import { IStickerDump } from "$modules/Sticker";
import { ILatLng } from "./types";
import { MAP_ACTIONS } from './constants';
import { IMapReducer } from './';
import { IStickerDump } from '$redux/map/types';
import { ILatLng } from './types';
export const mapSet = (map: Partial<IMapReducer>) => ({
type: MAP_ACTIONS.SET_MAP,
map
map,
});
export const mapSetProvider = (provider: IMapReducer['provider']) => ({
type: MAP_ACTIONS.SET_PROVIDER,
provider
provider,
});
export const mapSetRoute = (route: IMapReducer['route']) => ({
@ -65,6 +65,6 @@ export const mapSetPublic = (is_public: IMapReducer['is_public']) => ({
});
export const mapSetLogo = (logo: IMapReducer['logo']) => ({
type: MAP_ACTIONS.SET_LOGO,
type: MAP_ACTIONS.SET_LOGO,
logo,
});

View file

@ -2,7 +2,7 @@ import { createReducer } from 'reduxsauce';
import { MAP_HANDLERS } from './handlers';
import { DEFAULT_PROVIDER } from '$constants/providers';
import { IMapRoute } from './types';
import { IStickerDump } from '$modules/Sticker';
import { IStickerDump } from '$redux/map/types';
import { DEFAULT_LOGO } from '$constants/logos';
export interface IMapReducer {

View file

@ -5,4 +5,13 @@ export type ILatLng = {
lng: number,
}
export type IMapRoute = ILatLng[];
export type IMapRoute = ILatLng[];
export interface IStickerDump {
latlng: ILatLng,
set: string,
sticker: string,
angle?: number,
text?: string,
}

0
src/redux/types.ts Normal file
View file

View file

@ -6,7 +6,7 @@ import { DEFAULT_PROVIDER, PROVIDERS } from '$constants/providers';
import { DIALOGS, IDialogs, TABS } from '$constants/dialogs';
import { IStickers } from "$constants/stickers";
import { IRoutePoint } from '$utils/gpx';
import { IStickerDump } from '$modules/Sticker';
import { IStickerDump } from '$redux/map/types';
import { USER_HANDLERS } from './handlers';
export interface IRoute {