Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
fac8e3be
Commit
fac8e3be
authored
Apr 30, 2022
by
Stefan Probst
Browse files
fix: add page title and description to open graph meta
parent
15350704
Pipeline
#293872
passed with stages
in 9 minutes and 37 seconds
Changes
57
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/__templates__/page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export default function TemplatePage(_props: TemplatePage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
h1
>
{
title
}
</
h1
>
</
PageMainContent
>
...
...
src/pages/404.page.tsx
View file @
fac8e3be
...
...
@@ -46,7 +46,7 @@ export default function NotFoundPage(_props: NotFoundPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ErrorScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/500.page.tsx
View file @
fac8e3be
...
...
@@ -46,7 +46,7 @@ export default function NotFoundPage(_props: NotFoundPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ErrorScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/about/[id].page.template.tsx
View file @
fac8e3be
...
...
@@ -87,7 +87,7 @@ export default function AboutPage(props: AboutPage.TemplateProps): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
title
=
{
props
.
metadata
.
title
}
/>
<
PageMetadata
title
=
{
props
.
metadata
.
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AboutScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/actors.page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export default function ActorsPage(_props: ActorsPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithoutFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/contributed-items.page.tsx
View file @
fac8e3be
...
...
@@ -64,7 +64,7 @@ export default function ContributedItemsPage(_props: ContributedItemsPage.Props)
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/draft-items.page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export default function DraftItemsPage(_props: DraftItemsPage.Props): JSX.Elemen
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithoutFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/index.page.tsx
View file @
fac8e3be
...
...
@@ -55,7 +55,7 @@ export default function AccountPage(_props: AccountPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/moderate-items.page.tsx
View file @
fac8e3be
...
...
@@ -64,7 +64,7 @@ export default function ModerateItemsPage(_props: ModerateItemsPage.Props): JSX.
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/sources.page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export default function SourcesPage(_props: SourcesPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithoutFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/users.page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export default function UsersPage(_props: UsersPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithoutFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/account/vocabularies.page.tsx
View file @
fac8e3be
...
...
@@ -64,7 +64,7 @@ export default function VocabulariesPage(_props: VocabulariesPage.Props): JSX.El
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
AccountScreenWithFiltersLayout
>
<
BackgroundImage
/>
...
...
src/pages/admin.page.tsx
View file @
fac8e3be
...
...
@@ -63,7 +63,7 @@ export namespace AdminPage {
export
default
function
AdminPage
(
_props
:
AdminPage
.
Props
):
JSX
.
Element
{
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
"CMS"
/>
<
PageMetadata
nofollow
noindex
title
=
"CMS"
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
div
id
=
"nc-root"
/>
<
Cms
/>
</
Fragment
>
...
...
src/pages/auth/sign-in.page.tsx
View file @
fac8e3be
...
...
@@ -47,7 +47,7 @@ export default function SignInPage(_props: SignInPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
SignInScreenLayout
>
<
BackgroundGradient
/>
...
...
src/pages/auth/sign-up.page.tsx
View file @
fac8e3be
...
...
@@ -47,7 +47,7 @@ export default function SignUpPage(_props: SignUpPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
SignUpScreenLayout
>
<
BackgroundGradient
/>
...
...
src/pages/browse/[id].page.tsx
View file @
fac8e3be
...
...
@@ -89,7 +89,7 @@ export default function BrowsePage(props: BrowsePage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
title
=
{
title
}
/>
<
PageMetadata
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
BrowseScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/contact/index.page.tsx
View file @
fac8e3be
...
...
@@ -57,7 +57,7 @@ export default function ContactPage(_props: ContactPage.Props): JSX.Element {
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ContactScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/contribute/[id].page.template.tsx
View file @
fac8e3be
...
...
@@ -87,7 +87,7 @@ export default function ContributePage(props: ContributePage.TemplateProps): JSX
return
(
<
Fragment
>
<
PageMetadata
title
=
{
props
.
metadata
.
title
}
/>
<
PageMetadata
title
=
{
props
.
metadata
.
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ContributeScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/dataset/[persistentId]/edit.page.tsx
View file @
fac8e3be
...
...
@@ -35,7 +35,6 @@ import { routes } from '@/lib/core/navigation/routes'
import
{
PageMainContent
}
from
'
@/lib/core/page/PageMainContent
'
import
{
Centered
}
from
'
@/lib/core/ui/Centered/Centered
'
import
{
FullPage
}
from
'
@/lib/core/ui/FullPage/FullPage
'
import
{
LoadingIndicator
}
from
'
@/lib/core/ui/LoadingIndicator/LoadingIndicator
'
import
{
ProgressSpinner
}
from
'
@/lib/core/ui/ProgressSpinner/ProgressSpinner
'
export
type
UpdateDatasetFormValues
=
ItemFormValues
<
DatasetInput
>
...
...
@@ -147,7 +146,7 @@ export default function EditDatasetPage(props: EditDatasetPage.Props): JSX.Eleme
if
(
router
.
isFallback
||
dataset
==
null
)
{
return
(
<
Fragment
>
<
PageMetadata
title
=
{
title
}
/>
<
PageMetadata
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
FullPage
>
<
Centered
>
...
...
@@ -161,7 +160,7 @@ export default function EditDatasetPage(props: EditDatasetPage.Props): JSX.Eleme
return
(
<
Fragment
>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
/>
<
PageMetadata
nofollow
noindex
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ItemFormScreenLayout
>
<
BackgroundImage
/>
...
...
src/pages/dataset/[persistentId]/history.page.tsx
View file @
fac8e3be
...
...
@@ -32,7 +32,6 @@ import type { QueryMetadata } from '@/lib/core/query/types'
import
{
Breadcrumbs
}
from
'
@/lib/core/ui/Breadcrumbs/Breadcrumbs
'
import
{
Centered
}
from
'
@/lib/core/ui/Centered/Centered
'
import
{
FullPage
}
from
'
@/lib/core/ui/FullPage/FullPage
'
import
{
LoadingIndicator
}
from
'
@/lib/core/ui/LoadingIndicator/LoadingIndicator
'
import
{
ProgressSpinner
}
from
'
@/lib/core/ui/ProgressSpinner/ProgressSpinner
'
export
namespace
DatasetHistoryPage
{
...
...
@@ -105,7 +104,7 @@ export default function DatasetHistoryPage(props: DatasetHistoryPage.Props): JSX
if
(
router
.
isFallback
)
{
return
(
<
Fragment
>
<
PageMetadata
title
=
{
title
}
/>
<
PageMetadata
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
FullPage
>
<
Centered
>
...
...
@@ -135,7 +134,7 @@ export default function DatasetHistoryPage(props: DatasetHistoryPage.Props): JSX
return
(
<
Fragment
>
<
PageMetadata
title
=
{
title
}
/>
<
PageMetadata
title
=
{
title
}
openGraph
=
{
{}
}
twitter
=
{
{}
}
/>
<
PageMainContent
>
<
ItemHistoryScreenLayout
>
<
BackgroundImage
/>
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment