cms v1 - notice about deprecation (#787)
This commit is contained in:
parent
5d41af93e1
commit
f6695817a7
5 changed files with 34 additions and 1 deletions
5
.changeset/eleven-students-cheer.md
Normal file
5
.changeset/eleven-students-cheer.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-app-cms": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Added warning bar that informs that app is no longer maintained
|
|
@ -1,7 +1,13 @@
|
||||||
|
# Deprecated
|
||||||
|
|
||||||
|
This is v1 version of the CMS app. It's no longer maintained and will be removed.
|
||||||
|
|
||||||
|
Please check [v2](../cms-v2/)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<h1>CMS</h1>
|
<h1>CMS v1</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
18
apps/cms/src/modules/ui/error-no-longer-maintained.tsx
Normal file
18
apps/cms/src/modules/ui/error-no-longer-maintained.tsx
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
export const ErrorNoLongerMaintained = () => (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
padding: "20px",
|
||||||
|
backgroundColor: "#ff000055",
|
||||||
|
marginBottom: "40px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h1
|
||||||
|
style={{
|
||||||
|
margin: "10px auto",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Warning
|
||||||
|
</h1>
|
||||||
|
<p>The app is no longer maintained. Please install CMS V2 app from the Saleor App Store</p>
|
||||||
|
</div>
|
||||||
|
);
|
|
@ -6,6 +6,7 @@ import { ReactElement } from "react";
|
||||||
import { AppTabNavButton } from "../modules/ui/app-tab-nav-button";
|
import { AppTabNavButton } from "../modules/ui/app-tab-nav-button";
|
||||||
import { makeStyles } from "@saleor/macaw-ui";
|
import { makeStyles } from "@saleor/macaw-ui";
|
||||||
import { Box, Typography } from "@material-ui/core";
|
import { Box, Typography } from "@material-ui/core";
|
||||||
|
import { ErrorNoLongerMaintained } from "../modules/ui/error-no-longer-maintained";
|
||||||
|
|
||||||
const useStyles = makeStyles({
|
const useStyles = makeStyles({
|
||||||
section: {
|
section: {
|
||||||
|
@ -70,6 +71,7 @@ const HomePage: NextPageWithLayout = () => {
|
||||||
HomePage.getLayout = function getLayout(page: ReactElement) {
|
HomePage.getLayout = function getLayout(page: ReactElement) {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
|
<ErrorNoLongerMaintained />
|
||||||
<AppLayout>{page}</AppLayout>
|
<AppLayout>{page}</AppLayout>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { useRouter } from "next/router";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { useIsMounted } from "usehooks-ts";
|
import { useIsMounted } from "usehooks-ts";
|
||||||
import { isInIframe } from "@saleor/apps-shared";
|
import { isInIframe } from "@saleor/apps-shared";
|
||||||
|
import { ErrorNoLongerMaintained } from "../modules/ui/error-no-longer-maintained";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is page publicly accessible from your app.
|
* This is page publicly accessible from your app.
|
||||||
|
@ -26,6 +27,7 @@ const IndexPage: NextPage = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<ErrorNoLongerMaintained />
|
||||||
<h1>Saleor CMS Hub</h1>
|
<h1>Saleor CMS Hub</h1>
|
||||||
<p>This is Saleor App that allows to use external cms providers to sync products data.</p>
|
<p>This is Saleor App that allows to use external cms providers to sync products data.</p>
|
||||||
<p>Install the app in your Saleor instance and open it in Dashboard.</p>
|
<p>Install the app in your Saleor instance and open it in Dashboard.</p>
|
||||||
|
|
Loading…
Reference in a new issue