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