🔍 chore: seo component on all pages
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import CommentCell from 'src/components/CommentCell'
|
import CommentCell from 'src/components/CommentCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const CommentPage = ({ id }) => {
|
const CommentPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Comment" description="Comment page" lang="en-US" />
|
||||||
|
|
||||||
<CommentCell id={id} />
|
<CommentCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import CommentsCell from 'src/components/CommentsCell'
|
import CommentsCell from 'src/components/CommentsCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const CommentsPage = () => {
|
const CommentsPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Comments" description="Comments page" lang="en-US" />
|
||||||
|
|
||||||
<CommentsCell />
|
<CommentsCell />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import EditCommentCell from 'src/components/EditCommentCell'
|
import EditCommentCell from 'src/components/EditCommentCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const EditCommentPage = ({ id }) => {
|
const EditCommentPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Edit comment" description="Edit comment page" lang="en-US" />
|
||||||
|
|
||||||
<EditCommentCell id={id} />
|
<EditCommentCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,11 +2,14 @@ import { useAuth } from '@redwoodjs/auth'
|
|||||||
|
|
||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import Part2Cell from 'src/components/Part2Cell'
|
import Part2Cell from 'src/components/Part2Cell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const EditPart2Page = ({ userName, partTitle }) => {
|
const EditPart2Page = ({ userName, partTitle }) => {
|
||||||
const { currentUser } = useAuth()
|
const { currentUser } = useAuth()
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title={partTitle} description="Edit part page" lang="en-US" />
|
||||||
|
|
||||||
<Part2Cell
|
<Part2Cell
|
||||||
userName={userName}
|
userName={userName}
|
||||||
partTitle={partTitle}
|
partTitle={partTitle}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import EditPartCell from 'src/components/EditPartCell'
|
import EditPartCell from 'src/components/EditPartCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const EditPartPage = ({ id }) => {
|
const EditPartPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Edit part" description="Edit part page" lang="en-US" />
|
||||||
|
|
||||||
<EditPartCell id={id} />
|
<EditPartCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import EditPartReactionCell from 'src/components/EditPartReactionCell'
|
import EditPartReactionCell from 'src/components/EditPartReactionCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const EditPartReactionPage = ({ id }) => {
|
const EditPartReactionPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo
|
||||||
|
title="Edit part reaction"
|
||||||
|
description="Edit part reaction page"
|
||||||
|
lang="en-US"
|
||||||
|
/>
|
||||||
|
|
||||||
<EditPartReactionCell id={id} />
|
<EditPartReactionCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import EditUser2Cell from 'src/components/EditUser2Cell'
|
import EditUser2Cell from 'src/components/EditUser2Cell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const UserPage = ({ userName }) => {
|
const UserPage = ({ userName }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title={userName} description="Add new part page" lang="en-US" />
|
||||||
|
|
||||||
<EditUser2Cell userName={userName} />
|
<EditUser2Cell userName={userName} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import EditUserCell from 'src/components/EditUserCell'
|
import EditUserCell from 'src/components/EditUserCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const EditUserPage = ({ id }) => {
|
const EditUserPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Edit user" description="Edit user page" lang="en-US" />
|
||||||
|
|
||||||
<EditUserCell id={id} />
|
<EditUserCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,9 +6,12 @@
|
|||||||
// avoid the possibility that it will cause its own error. If it does, Redwood will
|
// avoid the possibility that it will cause its own error. If it does, Redwood will
|
||||||
// still render a generic error page, but your users will prefer something a bit more
|
// still render a generic error page, but your users will prefer something a bit more
|
||||||
// thoughtful. =)
|
// thoughtful. =)
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<main>
|
<main>
|
||||||
|
<Seo title="Fatal error" description="Fatal error" lang="en-US" />
|
||||||
|
|
||||||
<style
|
<style
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import IdePartCell from 'src/components/IdePartCell'
|
import IdePartCell from 'src/components/IdePartCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const IdePartPage = ({ userName, partTitle }) => {
|
const IdePartPage = ({ userName, partTitle }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title={partTitle} description={partTitle} lang="en-US" />
|
||||||
|
|
||||||
<IdePartCell userName={userName} partTitle={partTitle} />
|
<IdePartCell userName={userName} partTitle={partTitle} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import NewComment from 'src/components/NewComment'
|
import NewComment from 'src/components/NewComment'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const NewCommentPage = () => {
|
const NewCommentPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo
|
||||||
|
title="New comment page"
|
||||||
|
description="New comment page"
|
||||||
|
lang="en-US"
|
||||||
|
/>
|
||||||
|
|
||||||
<NewComment />
|
<NewComment />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { navigate, routes } from '@redwoodjs/router'
|
|||||||
|
|
||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import Part2Cell from 'src/components/Part2Cell'
|
import Part2Cell from 'src/components/Part2Cell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const NewPart2Page = ({ userName }) => {
|
const NewPart2Page = ({ userName }) => {
|
||||||
const { isAuthenticated, currentUser } = useAuth()
|
const { isAuthenticated, currentUser } = useAuth()
|
||||||
@@ -12,6 +13,8 @@ const NewPart2Page = ({ userName }) => {
|
|||||||
}, [currentUser])
|
}, [currentUser])
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="New part" description="Add new part page" lang="en-US" />
|
||||||
|
|
||||||
<Part2Cell
|
<Part2Cell
|
||||||
userName={userName}
|
userName={userName}
|
||||||
currentUserId={currentUser?.sub}
|
currentUserId={currentUser?.sub}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import NewPart from 'src/components/NewPart'
|
import NewPart from 'src/components/NewPart'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const NewPartPage = () => {
|
const NewPartPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="New Part" description="New part page" lang="en-US" />
|
||||||
|
|
||||||
<NewPart />
|
<NewPart />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import NewPartReaction from 'src/components/NewPartReaction'
|
import NewPartReaction from 'src/components/NewPartReaction'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const NewPartReactionPage = () => {
|
const NewPartReactionPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo
|
||||||
|
title="New part reaction"
|
||||||
|
description="New part reaction page"
|
||||||
|
lang="en-US"
|
||||||
|
/>
|
||||||
|
|
||||||
<NewPartReaction />
|
<NewPartReaction />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import NewUser from 'src/components/NewUser'
|
import NewUser from 'src/components/NewUser'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const NewUserPage = () => {
|
const NewUserPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="New user" description="New user page" lang="en-US" />
|
||||||
|
|
||||||
<NewUser />
|
<NewUser />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Page not found" description="404 page not found" lang="en-US" />
|
||||||
|
|
||||||
<style
|
<style
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
|
|||||||
@@ -2,11 +2,14 @@ import { useAuth } from '@redwoodjs/auth'
|
|||||||
|
|
||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import Part2Cell from 'src/components/Part2Cell'
|
import Part2Cell from 'src/components/Part2Cell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const Part2Page = ({ userName, partTitle }) => {
|
const Part2Page = ({ userName, partTitle }) => {
|
||||||
const { currentUser } = useAuth()
|
const { currentUser } = useAuth()
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title={partTitle} description={partTitle} lang="en-US" />
|
||||||
|
|
||||||
<Part2Cell
|
<Part2Cell
|
||||||
userName={userName}
|
userName={userName}
|
||||||
partTitle={partTitle}
|
partTitle={partTitle}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import PartCell from 'src/components/PartCell'
|
import PartCell from 'src/components/PartCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const PartPage = ({ id }) => {
|
const PartPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Part" description="Part page" lang="en-US" />
|
||||||
|
|
||||||
<PartCell id={id} />
|
<PartCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import PartReactionCell from 'src/components/PartReactionCell'
|
import PartReactionCell from 'src/components/PartReactionCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const PartReactionPage = ({ id }) => {
|
const PartReactionPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo
|
||||||
|
title="Part reaction"
|
||||||
|
description="Part reaction page"
|
||||||
|
lang="en-US"
|
||||||
|
/>
|
||||||
|
|
||||||
<PartReactionCell id={id} />
|
<PartReactionCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import PartReactionsCell from 'src/components/PartReactionsCell'
|
import PartReactionsCell from 'src/components/PartReactionsCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const PartReactionsPage = () => {
|
const PartReactionsPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo
|
||||||
|
title="Part reactions"
|
||||||
|
description="Part reactions page"
|
||||||
|
lang="en-US"
|
||||||
|
/>
|
||||||
|
|
||||||
<PartReactionsCell />
|
<PartReactionsCell />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import PartsCell from 'src/components/PartsCell'
|
import PartsCell from 'src/components/PartsCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const PartsPage = () => {
|
const PartsPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Parts page" description="Cadhub parts page" lang="en-US" />
|
||||||
|
|
||||||
<PartsCell />
|
<PartsCell />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import User2Cell from 'src/components/User2Cell'
|
import User2Cell from 'src/components/User2Cell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const UserPage = ({ userName }) => {
|
const UserPage = ({ userName }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title={userName} description="User page" lang="en-US" />
|
||||||
|
|
||||||
<User2Cell userName={userName} />
|
<User2Cell userName={userName} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import UserCell from 'src/components/UserCell'
|
import UserCell from 'src/components/UserCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const UserPage = ({ id }) => {
|
const UserPage = ({ id }) => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="User" description="User page" lang="en-US" />
|
||||||
|
|
||||||
<UserCell id={id} />
|
<UserCell id={id} />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import MainLayout from 'src/layouts/MainLayout'
|
import MainLayout from 'src/layouts/MainLayout'
|
||||||
import UsersCell from 'src/components/UsersCell'
|
import UsersCell from 'src/components/UsersCell'
|
||||||
|
import Seo from 'src/components/Seo/Seo'
|
||||||
|
|
||||||
const UsersPage = () => {
|
const UsersPage = () => {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Seo title="Users" description="Users page" lang="en-US" />
|
||||||
|
|
||||||
<UsersCell />
|
<UsersCell />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user