Move bounds to API types
This commit is contained in:
parent
f88ca57d97
commit
531f3282d9
8 changed files with 13 additions and 15 deletions
|
|
@ -75,8 +75,8 @@ import { computed } from "vue";
|
|||
import MapMultipoint from "@/components/MapMultipoint.vue";
|
||||
import PublicreportCard from "@/components/PublicreportCard.vue";
|
||||
import TimeRelative from "@/components/TimeRelative.vue";
|
||||
import type { Bounds, Marker } from "@/types";
|
||||
import type { Communication, User } from "@/type/api";
|
||||
import type { Marker } from "@/types";
|
||||
import type { Bounds, Communication, User } from "@/type/api";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
|
||||
interface Emits {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ import "maplibre-gl/dist/maplibre-gl.css";
|
|||
import maplibregl from "maplibre-gl";
|
||||
import type { LngLatBoundsLike, Map as MapLibreMap } from "maplibre-gl";
|
||||
import { onMounted, onUnmounted, ref, shallowRef, type Ref } from "vue";
|
||||
import { Bounds, Marker } from "@/types";
|
||||
import { Marker } from "@/types";
|
||||
import type { Bounds } from "@/type/api";
|
||||
|
||||
interface Emits {
|
||||
(e: "cell-click", cell: number): void;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ import {
|
|||
watch,
|
||||
type Ref,
|
||||
} from "vue";
|
||||
import { Bounds, Marker } from "@/types";
|
||||
import { Marker } from "@/types";
|
||||
import type { Bounds } from "@/type/api";
|
||||
|
||||
interface Emits {}
|
||||
interface Props {
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ import MapMultipoint from "@/components/MapMultipoint.vue";
|
|||
import MapProxiedArcgisTile from "@/components/MapProxiedArcgisTile.vue";
|
||||
import { formatAddress } from "@/format";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
import type { Bounds, MapClickEvent, Marker } from "@/types";
|
||||
import { Contact, Pool, ReviewTask, User } from "@/type/api";
|
||||
import type { MapClickEvent, Marker } from "@/types";
|
||||
import { Bounds, Contact, Pool, ReviewTask, User } from "@/type/api";
|
||||
import type { Location } from "@/type/api";
|
||||
|
||||
interface Props {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
import type { Map as MapLibreMap } from "maplibre-gl";
|
||||
import { Location } from "@/type/api";
|
||||
|
||||
export interface Bounds {
|
||||
min: Location;
|
||||
max: Location;
|
||||
}
|
||||
export interface Changes {
|
||||
updated: string[];
|
||||
unchanged: string[];
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ import ToastNotification from "@/components/ToastNotification.vue";
|
|||
import { SSEManager } from "@/SSEManager";
|
||||
import { useCommunicationStore } from "@/store/communication";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
import type { Bounds, Marker } from "@/types";
|
||||
import type { Communication } from "@/type/api";
|
||||
import type { Marker } from "@/types";
|
||||
import type { Bounds, Communication } from "@/type/api";
|
||||
|
||||
const communication = useCommunicationStore();
|
||||
const session = useSessionStore();
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ import { onMounted, reactive } from "vue";
|
|||
import MapAggregate from "@/components/MapAggregate.vue";
|
||||
import { formatBigNumber, formatTimeRelative } from "@/format";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
import type { Bounds } from "@/types";
|
||||
import type { Bounds } from "@/type/api";
|
||||
|
||||
const dashboard = reactive({
|
||||
counts: {
|
||||
|
|
|
|||
|
|
@ -99,8 +99,8 @@ import ReviewPoolColumnAction from "@/components/ReviewPoolColumnAction.vue";
|
|||
import ReviewPoolColumnDetail from "@/components/ReviewPoolColumnDetail.vue";
|
||||
import ReviewPoolColumnList from "@/components/ReviewPoolColumnList.vue";
|
||||
import type { Changes } from "@/types";
|
||||
import { Contact, Location, ReviewTask } from "@/type/api";
|
||||
import { Bounds, MapClickEvent, Marker } from "@/types";
|
||||
import { Bounds, Contact, Location, ReviewTask } from "@/type/api";
|
||||
import { MapClickEvent, Marker } from "@/types";
|
||||
|
||||
interface FormData {
|
||||
latitude: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue