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