Moved files out of app dir
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { getAirport } from '@/app/_api/airport';
|
import { getAirport } from '@/api/airport';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
export default async function Page({ params }: { params: { icao: string } }) {
|
export default async function Page({ params }: { params: { icao: string } }) {
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import RecoilRootWrapper from '@app/recoil-root-wrapper';
|
import RecoilRootWrapper from '@app/recoil-root-wrapper';
|
||||||
import Sidebar from '@/app/_components/Sidebar';
|
import Sidebar from '@/components/Sidebar';
|
||||||
import Topbar from '@/app/_components/Topbar';
|
import Topbar from '@/components/Topbar';
|
||||||
import 'styles/globals.css';
|
import 'styles/globals.css';
|
||||||
import 'styles/leaflet.css';
|
import 'styles/leaflet.css';
|
||||||
import StyledComponentsRegistry from '@/app/_lib/AntdRegistry';
|
import StyledComponentsRegistry from '@/lib/AntdRegistry';
|
||||||
import { Inter } from 'next/font/google';
|
import { Inter } from 'next/font/google';
|
||||||
|
|
||||||
const inter = Inter({ subsets: ['latin'] });
|
const inter = Inter({ subsets: ['latin'] });
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Metar from '@/app/_components/Metars';
|
import Metar from '@/components/Metars';
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return <Metar />;
|
return <Metar />;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { getAirports } from '@/app/_api/airport';
|
import { getAirports } from '@/api/airport';
|
||||||
import { Airport } from '@/app/_api/airport.types';
|
import { Airport } from '@/api/airport.types';
|
||||||
import { getMetars } from '@/app/_api/metar';
|
import { getMetars } from '@/api/metar';
|
||||||
import { DivIcon, LatLngBounds } from 'leaflet';
|
import { DivIcon, LatLngBounds } from 'leaflet';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import ReactDOMServer from 'react-dom/server';
|
import ReactDOMServer from 'react-dom/server';
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Airport } from '@/app/_api/airport.types';
|
import { Airport } from '@/api/airport.types';
|
||||||
import { Metar } from '@/app/_api/metar.types';
|
import { Metar } from '@/api/metar.types';
|
||||||
import { FaArrowsSpin, FaLocationArrow } from 'react-icons/fa6';
|
import { FaArrowsSpin, FaLocationArrow } from 'react-icons/fa6';
|
||||||
import { Col, Grid, Modal, Row, Tooltip } from 'antd';
|
import { Col, Grid, Modal, Row, Tooltip } from 'antd';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Metar } from '@/app/_api/metar.types';
|
import { Metar } from '@/api/metar.types';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
|
|
||||||
export default async function Metar({ className = '' }: { className?: string }) {
|
export default async function Metar({ className = '' }: { className?: string }) {
|
||||||
const Map = dynamic(() => import('@/app/_components/Metars/MetarMap'), {
|
const Map = dynamic(() => import('@/components/Metars/MetarMap'), {
|
||||||
loading: () => (
|
loading: () => (
|
||||||
<div className='grid min-h-full place-items-center px-6 py-24 sm:py-32 lg:px-8'>
|
<div className='grid min-h-full place-items-center px-6 py-24 sm:py-32 lg:px-8'>
|
||||||
<div className='text-center'>
|
<div className='text-center'>
|
||||||
@@ -4,7 +4,7 @@ import { AutoComplete, Avatar } from 'antd';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { AiOutlineUser } from 'react-icons/ai';
|
import { AiOutlineUser } from 'react-icons/ai';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { getAirports } from '@/app/_api/airport';
|
import { getAirports } from '@/api/airport';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
|
|
||||||
const DEFAULT_ICON_SIZE = 40;
|
const DEFAULT_ICON_SIZE = 40;
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": ["./src/*"],
|
||||||
"@api/*": ["src/app/_api"],
|
"@api/*": ["src/api"],
|
||||||
"@app/*": ["./src/app/*"],
|
"@app/*": ["./src/app/*"],
|
||||||
"@components/*": ["src/app/_components/*"],
|
"@components/*": ["src/components/*"],
|
||||||
"@lib/*": ["src/app/_components/*"]
|
"@lib/*": ["src/components/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
Reference in New Issue
Block a user