mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
removed all modules
This commit is contained in:
parent
aa8fd14517
commit
0c321f2bb3
21 changed files with 677 additions and 77 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
0
src/redux/types.ts
Normal 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue