chore: update import and tsconfig
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { CallToActionSection } from 'apps/landing/src/payload-types';
|
||||
import { CallToActionSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { CommunitiesSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { CommunitiesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { FeaturesSection } from '@/payload-types';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { FeaturesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
CodeIcon,
|
||||
SparklesIcon,
|
||||
UsersIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { formatCMSImageDataToMedia } from 'apps/landing/src/lib/format';
|
||||
import { HeroSection } from 'apps/landing/src/payload-types';
|
||||
import { formatCMSImageDataToMedia } from '@/lib/format';
|
||||
import { HeroSection } from '@/payload-types';
|
||||
import { Button, CodeIcon, SparklesIcon, UsersIcon } from '@components/atoms';
|
||||
import { motion } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { Fragment, useEffect, useState } from 'react';
|
||||
@@ -136,7 +131,7 @@ export function Hero(props: HeroSection) {
|
||||
if (!media) return null;
|
||||
return (
|
||||
<Image
|
||||
src={media.url!}
|
||||
src={String(media.url)}
|
||||
alt={media.alt}
|
||||
width={600}
|
||||
height={500}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { LearningResourcesSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { LearningResourcesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { QuoteIcon } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { formatCMSImageDataToMedia } from 'apps/landing/src/lib/format';
|
||||
import { TestimonialsSection } from 'apps/landing/src/payload-types';
|
||||
import { formatCMSImageDataToMedia } from '@/lib/format';
|
||||
import { TestimonialsSection } from '@/payload-types';
|
||||
import { QuoteIcon } from '@components/atoms';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { useRef } from 'react';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { getGlobalsCallToActionSection } from '../../../services/get-globals-call-to-action-section';
|
||||
import { getGlobalsCommunitiesSection } from '../../../services/get-globals-communitues-section';
|
||||
import { getGlobalsHeroSection } from '../../../services/get-globals-hero-section';
|
||||
import { getGlobalsTestimonialsSection } from '../../../services/get-globals-testimonials-section';
|
||||
import { getGlobalsCallToActionSection } from '@/services/get-globals-call-to-action-section';
|
||||
import { getGlobalsCommunitiesSection } from '@/services/get-globals-communitues-section';
|
||||
import { getGlobalsHeroSection } from '@/services/get-globals-hero-section';
|
||||
import { getGlobalsTestimonialsSection } from '@/services/get-globals-testimonials-section';
|
||||
import { CallToAction } from './_components/call-to-action';
|
||||
import { Community } from './_components/community';
|
||||
import { Hero } from './_components/hero';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { cn } from '@imphnen-frontend-service/utils';
|
||||
import { cn } from '@utils/ui';
|
||||
import { ReactNode, useEffect, useState } from 'react';
|
||||
|
||||
export function HeaderWrapper({ children }: { children: ReactNode }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { useMobileMenuStore } from '../../../../stores/mobile-menu-store';
|
||||
import { useMobileMenuStore } from '@/stores/mobile-menu-store';
|
||||
import { DesktopNavigation } from './desktop-navigation';
|
||||
import { HeaderWrapper } from './header-wrapper';
|
||||
import { Logo } from './logo';
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
MenuIcon,
|
||||
XIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { useMobileMenuStore } from '../../../../stores/mobile-menu-store';
|
||||
import { useMobileMenuStore } from '@/stores/mobile-menu-store';
|
||||
import { Button, MenuIcon, XIcon } from '@components/atoms';
|
||||
|
||||
export function MobileMenuHamburger() {
|
||||
const mobileMenuOpen = useMobileMenuStore((s) => s.mobileMenuOpen);
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
MoonIcon,
|
||||
SunIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { Button, MoonIcon, SunIcon } from '@components/atoms';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import type { Metadata } from 'next';
|
||||
|
||||
import config from '@/payload.config';
|
||||
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views';
|
||||
import config from '../../../../payload.config';
|
||||
import { importMap } from '../importMap';
|
||||
|
||||
type Args = {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import type { Metadata } from 'next';
|
||||
|
||||
import config from '@/payload.config';
|
||||
import { RootPage, generatePageMetadata } from '@payloadcms/next/views';
|
||||
import config from '../../../../payload.config';
|
||||
import { importMap } from '../importMap';
|
||||
|
||||
type Args = {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import config from '@/payload.config';
|
||||
import '@payloadcms/next/css';
|
||||
import {
|
||||
REST_DELETE,
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
REST_POST,
|
||||
REST_PUT,
|
||||
} from '@payloadcms/next/routes';
|
||||
import config from '../../../../payload.config';
|
||||
|
||||
export const GET = REST_GET(config);
|
||||
export const POST = REST_POST(config);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import config from '@/payload.config';
|
||||
import '@payloadcms/next/css';
|
||||
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes';
|
||||
import config from '../../../../payload.config';
|
||||
|
||||
export const GET = GRAPHQL_PLAYGROUND_GET(config);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import config from '@/payload.config';
|
||||
import { GRAPHQL_POST, REST_OPTIONS } from '@payloadcms/next/routes';
|
||||
import config from '../../../../payload.config';
|
||||
|
||||
export const POST = GRAPHQL_POST(config);
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import config from '@/payload.config';
|
||||
import '@payloadcms/next/css';
|
||||
import { handleServerFunctions, RootLayout } from '@payloadcms/next/layouts';
|
||||
import type { ServerFunctionClient } from 'payload';
|
||||
import React from 'react';
|
||||
import config from '../../payload.config';
|
||||
|
||||
import { importMap } from './admin/importMap.js';
|
||||
import './custom.scss';
|
||||
|
||||
@@ -11,11 +11,7 @@
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
@@ -24,7 +20,13 @@
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@components/atoms": ["../../libs/shadcn-ui/src/atoms/index.ts"],
|
||||
"@utils/ui": ["../../libs/utils/src/index.ts"],
|
||||
"@/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"**/*.js",
|
||||
@@ -36,10 +38,5 @@
|
||||
"next-env.d.ts",
|
||||
".next/types/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"jest.config.ts",
|
||||
"**/*.spec.ts",
|
||||
"**/*.test.ts"
|
||||
]
|
||||
"exclude": ["node_modules", "jest.config.ts", "**/*.spec.ts", "**/*.test.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user