mirror of
https://github.com/usememos/memos.git
synced 2026-11-21 19:39:12 +01:00
refactor(api)!: drop the v1 version marker (#6447)
This commit is contained in:
@@ -10,7 +10,7 @@ import { BasemapLayer } from "@/components/map/BasemapLayer";
|
||||
import { createMarkerIcon, MinimalAttributionControl } from "@/components/map/map-utils";
|
||||
import UserAvatar from "@/components/UserAvatar";
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { Memo } from "@/types/proto/api/v1/memo_service_pb";
|
||||
import type { Memo } from "@/types/proto/api/memo_service_pb";
|
||||
import { type MapPin, type MapPinFace, type MapViewport, revealOffset } from "./model";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -13,7 +13,7 @@ import { useSpaceContext } from "@/contexts/SpaceContext";
|
||||
import useCurrentUser from "@/hooks/useCurrentUser";
|
||||
import useMediaQuery from "@/hooks/useMediaQuery";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { LocationSchema } from "@/types/proto/api/v1/memo_service_pb";
|
||||
import { LocationSchema } from "@/types/proto/api/memo_service_pb";
|
||||
import { useTranslate } from "@/utils/i18n";
|
||||
import { fitMemos, MapCanvas } from "./MapCanvas";
|
||||
import { locationKey, type MapViewport, pointLabel, readViewport, splitLabel } from "./model";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { MemoTimeBasis } from "@/contexts/ViewContext";
|
||||
import { getMemoSortTime } from "@/hooks/useMemoSorting";
|
||||
import type { Location, Memo } from "@/types/proto/api/v1/memo_service_pb";
|
||||
import type { Location, Memo } from "@/types/proto/api/memo_service_pb";
|
||||
|
||||
export interface MapViewport {
|
||||
lat: number;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useView } from "@/contexts/ViewContext";
|
||||
import { useMemoFilters } from "@/hooks/useMemoFilters";
|
||||
import { useInfiniteMemos } from "@/hooks/useMemoQueries";
|
||||
import { combineCELFilters } from "@/lib/cel-filter";
|
||||
import { State } from "@/types/proto/api/v1/common_pb";
|
||||
import { State } from "@/types/proto/api/common_pb";
|
||||
import { mapMemos } from "./model";
|
||||
|
||||
/** What the map can show; the sidebar counts against the same scope. */
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useAuth } from "@/contexts/AuthContext";
|
||||
import { useUsersByUsernames } from "@/hooks/useUserQueries";
|
||||
import { extractUsernameFromName } from "@/lib/resource-names";
|
||||
import { isMemoBlurred } from "@/lib/tag";
|
||||
import type { Memo } from "@/types/proto/api/v1/memo_service_pb";
|
||||
import type { Memo } from "@/types/proto/api/memo_service_pb";
|
||||
import { type MapPin, pinFace } from "./model";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user