Move types to lib directory for better organization
- Move types/location.ts to lib/types.ts - Update all imports from @/types/location to @/lib/types - Remove empty types/ directory - Better aligns with Next.js conventions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { useSession } from "next-auth/react";
|
||||
import { LocationResponse } from "@/types/location";
|
||||
import { LocationResponse } from "@/lib/types";
|
||||
|
||||
interface DeviceInfo {
|
||||
id: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import type { LocationResponse } from "@/types/location";
|
||||
import type { LocationResponse } from "@/lib/types";
|
||||
import { locationDb, Location, deviceDb, userDb } from "@/lib/db";
|
||||
import { auth } from "@/lib/auth";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState, useRef } from "react";
|
||||
import { Location, LocationResponse } from "@/types/location";
|
||||
import { Location, LocationResponse } from "@/lib/types";
|
||||
import { getDevice, DEFAULT_DEVICE } from "@/lib/devices";
|
||||
import L from "leaflet";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Device } from '@/types/location';
|
||||
import { Device } from '@/lib/types';
|
||||
|
||||
export const DEVICES: Record<string, Device> = {
|
||||
'10': { id: '10', name: 'Device A', color: '#e74c3c' },
|
||||
|
||||
Reference in New Issue
Block a user