Skip to content

Commit 90b3e83

Browse files
authored
feat(templates): update website src directory structure (#7971)
1 parent 76dda13 commit 90b3e83

File tree

144 files changed

+1873
-5102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1873
-5102
lines changed

templates/website/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
1919
},
2020
"dependencies": {
21-
"@payloadcms/db-mongodb": "3.0.0-beta.91",
22-
"@payloadcms/live-preview-react": "3.0.0-beta.91",
23-
"@payloadcms/next": "3.0.0-beta.91",
24-
"@payloadcms/plugin-cloud": "3.0.0-beta.91",
25-
"@payloadcms/plugin-form-builder": "3.0.0-beta.91",
26-
"@payloadcms/plugin-nested-docs": "3.0.0-beta.91",
27-
"@payloadcms/plugin-redirects": "3.0.0-beta.91",
28-
"@payloadcms/plugin-seo": "3.0.0-beta.91",
29-
"@payloadcms/richtext-lexical": "3.0.0-beta.91",
30-
"@payloadcms/ui": "3.0.0-beta.91",
21+
"@payloadcms/db-mongodb": "3.0.0-beta.96",
22+
"@payloadcms/live-preview-react": "3.0.0-beta.96",
23+
"@payloadcms/next": "3.0.0-beta.96",
24+
"@payloadcms/plugin-cloud": "3.0.0-beta.96",
25+
"@payloadcms/plugin-form-builder": "3.0.0-beta.96",
26+
"@payloadcms/plugin-nested-docs": "3.0.0-beta.96",
27+
"@payloadcms/plugin-redirects": "3.0.0-beta.96",
28+
"@payloadcms/plugin-seo": "3.0.0-beta.96",
29+
"@payloadcms/richtext-lexical": "3.0.0-beta.96",
30+
"@payloadcms/ui": "3.0.0-beta.96",
3131
"@radix-ui/react-checkbox": "^1.0.4",
3232
"@radix-ui/react-label": "^2.0.2",
3333
"@radix-ui/react-select": "^2.0.0",
@@ -41,7 +41,7 @@
4141
"lexical": "0.17.0",
4242
"lucide-react": "^0.378.0",
4343
"next": "15.0.0-canary.104",
44-
"payload": "3.0.0-beta.91",
44+
"payload": "3.0.0-beta.96",
4545
"payload-admin-bar": "^1.0.6",
4646
"prism-react-renderer": "^2.3.1",
4747
"react": "19.0.0-rc-06d0b89e-20240801",

templates/website/pnpm-lock.yaml

Lines changed: 1697 additions & 4930 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/website/src/app/components/Footer/index.tsx renamed to templates/website/src/Footer/Component.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { getCachedGlobal } from '@/utilities/getGlobals'
22
import Link from 'next/link'
33
import React from 'react'
44

5-
import type { Footer } from '../../../payload-types'
5+
import type { Footer } from '@/payload-types'
66

7-
import { ThemeSelector } from '../../providers/Theme/ThemeSelector'
8-
import { CMSLink } from '../Link'
7+
import { ThemeSelector } from '@/providers/Theme/ThemeSelector'
8+
import { CMSLink } from '@/components/Link'
99

1010
export async function Footer() {
1111
const footer: Footer = await getCachedGlobal('footer')()

templates/website/src/payload/globals/Footer/Footer.ts renamed to templates/website/src/Footer/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { GlobalConfig } from 'payload'
22

3-
import { link } from '../../fields/link'
3+
import { link } from '@/fields/link'
44
import { revalidateFooter } from './hooks/revalidateFooter'
55

66
export const Footer: GlobalConfig = {

templates/website/src/app/components/Header/index.client.tsx renamed to templates/website/src/Header/Component.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import Link from 'next/link'
44
import { usePathname } from 'next/navigation'
55
import React, { useEffect, useState } from 'react'
66

7-
import type { Header } from '../../../payload-types'
7+
import type { Header } from '@/payload-types'
88

9-
import { Logo } from '../Logo/Logo'
9+
import { Logo } from '@/components/Logo/Logo'
1010
import { HeaderNav } from './Nav'
1111

1212
interface HeaderClientProps {

templates/website/src/app/components/Header/index.tsx renamed to templates/website/src/Header/Component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { HeaderClient } from '@/components/Header/index.client'
1+
import { HeaderClient } from './Component.client'
22
import { getCachedGlobal } from '@/utilities/getGlobals'
33
import React from 'react'
44

5-
import type { Header } from '../../../payload-types'
5+
import type { Header } from '@/payload-types'
66

77
export async function Header() {
88
const header: Header = await getCachedGlobal('header', 1)()

templates/website/src/app/components/Header/Nav/index.tsx renamed to templates/website/src/Header/Nav/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import React from 'react'
44

5-
import type { Header as HeaderType } from '../../../../payload-types'
5+
import type { Header as HeaderType } from '@/payload-types'
66

7-
import { CMSLink } from '../../Link'
7+
import { CMSLink } from '@/components/Link'
88

99
export const HeaderNav: React.FC<{ header: HeaderType }> = ({ header }) => {
1010
const navItems = header?.navItems || []

templates/website/src/payload/globals/Header/Header.ts renamed to templates/website/src/Header/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { GlobalConfig } from 'payload'
22

3-
import { link } from '../../fields/link'
3+
import { link } from '@/fields/link'
44
import { revalidateHeader } from './hooks/revalidateHeader'
55

66
export const Header: GlobalConfig = {

0 commit comments

Comments
 (0)