chore: removes old unused files

This commit is contained in:
James
2024-03-02 14:17:23 -05:00
parent e5a12ade90
commit 4d29b74c29
8 changed files with 0 additions and 156 deletions

View File

@@ -1,14 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import { Account, generateMetadata as generateMeta } from '@payloadcms/next/pages/Account/index'
import config from '@payload-config'
export const generateMetadata = async () => generateMeta({ config })
type Args = {
searchParams: { [key: string]: string | string[] }
}
const Page: React.FC<Args> = ({ searchParams }) => Account({ config, searchParams })
export default Page

View File

@@ -1,20 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import React from 'react'
import { DocumentLayout } from '@payloadcms/next/layouts/Document/index'
import configPromise from '@payload-config'
type Args = {
children: React.ReactNode
params: {
collection: string
}
}
const Layout: React.FC<Args> = async ({ children, params }: Args) => (
<DocumentLayout config={configPromise} collectionSlug={params.collection}>
{children}
</DocumentLayout>
)
export default Layout

View File

@@ -1,24 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document/index'
import config from '@payload-config'
type Args = {
params: {
collection: string
global: string
segments: string[]
}
searchParams: { [key: string]: string | string[] }
}
export const generateMetadata = async ({ params }: Args) => generateMeta({ config, params })
const Page: React.FC<Args> = ({ params, searchParams }) =>
Document({
params,
searchParams,
config,
})
export default Page

View File

@@ -1,24 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import { ListView, generateMetadata as generateMeta } from '@payloadcms/next/pages/List/index'
import config from '@payload-config'
type Args = {
params: {
collection: string
[key: string]: string | string[]
}
searchParams: { [key: string]: string | string[] }
}
export const generateMetadata = async ({ params }: Args) => generateMeta({ config, params })
const Page: React.FC<Args> = ({ params, searchParams }) =>
ListView({
collectionSlug: params.collection,
searchParams,
config,
route: `/collections/${params.collection + (Array.isArray(params.segments) && params.segments?.length ? `/${params.segments.join('/')}` : '')}`,
})
export default Page

View File

@@ -1,26 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document/index'
import config from '@payload-config'
type Args = {
params: {
global?: string
collection?: string
segments: string[]
}
searchParams: {
[key: string]: string | string[]
}
}
export const generateMetadata = async ({ params }: Args) => generateMeta({ config, params })
const Page: React.FC<Args> = ({ params, searchParams }) =>
Document({
config,
params,
searchParams,
})
export default Page

View File

@@ -1,20 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import React from 'react'
import { DocumentLayout } from '@payloadcms/next/layouts/Document/index'
import configPromise from '@payload-config'
type Args = {
children: React.ReactNode
params: {
global: string
}
}
const Layout: React.FC<Args> = async ({ children, params }) => (
<DocumentLayout config={configPromise} globalSlug={params.global}>
{children}
</DocumentLayout>
)
export default Layout

View File

@@ -1,11 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import React from 'react'
import { AdminLayout } from '@payloadcms/next/layouts/Admin/index'
import configPromise from '@payload-config'
const Layout = async ({ children }: { children: React.ReactNode }) => (
<AdminLayout config={configPromise}>{children}</AdminLayout>
)
export default Layout

View File

@@ -1,17 +0,0 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
import { Dashboard, generateMetadata as generateMeta } from '@payloadcms/next/pages/Dashboard/index'
import { Metadata } from 'next'
import config from '@payload-config'
type Args = {
searchParams: {
[key: string]: string | string[]
}
}
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
const Page: React.FC<Args> = async ({ searchParams }) => Dashboard({ config, searchParams })
export default Page