documentation coming soon view

This commit is contained in:
ronronscelestes 2021-09-28 11:59:03 +02:00
parent 6c82548a90
commit 6d69b1ef30
6 changed files with 36 additions and 5 deletions

View File

@ -104,7 +104,7 @@ const InstalledPluginsPage = () => {
<ContentLayout>
<NoContent
content={{
id: 'coming soon',
id: 'coming.soon',
defaultMessage:
'This content is currently under construction and will be back in a few weeks!',
}}

View File

@ -136,7 +136,7 @@ const MarketPlacePage = () => {
<ContentLayout>
<NoContent
content={{
id: 'coming soon',
id: 'coming.soon',
defaultMessage:
'This content is currently under construction and will be back in a few weeks!',
}}

View File

@ -347,6 +347,7 @@
"app.utils.publish": "Publish",
"app.utils.select-all": "Select all",
"app.utils.unpublish": "Unpublish",
"coming.soon": "This content is currently under construction and will be back in a few weeks!",
"components.Select.placeholder": "Select",
"components.TableHeader.actions-label": "Actions",
"components.pagination.go-to": "Go to page {page}",

View File

@ -67,7 +67,7 @@ const App = () => {
<ContentLayout>
<NoContent
content={{
id: 'coming soon',
id: 'coming.soon',
defaultMessage:
'This content is currently under construction and will be back in a few weeks!',
}}

View File

@ -6,11 +6,40 @@
*/
import React from 'react';
import { CheckPagePermissions } from '@strapi/helper-plugin';
import { useIntl } from 'react-intl';
import { CheckPagePermissions, NoContent } from '@strapi/helper-plugin';
import { Layout, HeaderLayout, ContentLayout } from '@strapi/parts/Layout';
import { Main } from '@strapi/parts/Main';
import pluginPermissions from '../../permissions';
import { getTrad } from '../../utils';
// import HomePage from '../HomePage';
const ComingSoon = () => <div>Coming soon</div>;
const ComingSoon = () => {
const { formatMessage } = useIntl();
console.log(pluginPermissions);
return (
<Layout>
<Main>
<HeaderLayout
title={formatMessage({
id: getTrad('plugin.name'),
defaultMessage: 'Documentation',
})}
/>
<ContentLayout>
<NoContent
content={{
id: getTrad('coming.soon'),
defaultMessage:
'This content is currently under construction and will be back in a few weeks!',
}}
/>
</ContentLayout>
</Main>
</Layout>
);
};
function App() {
return (

View File

@ -1,4 +1,5 @@
{
"coming-soon": "This content is currently under construction and will be back in a few weeks!",
"components.Row.generatedDate": "Last generation",
"components.Row.open": "Open",
"components.Row.regenerate": "Regenerate",