From 96e7ad5e33f660c9ff5e841a677ba91c541da1b2 Mon Sep 17 00:00:00 2001 From: PeachScript Date: Fri, 7 Oct 2022 23:02:32 +0800 Subject: [PATCH] docs: create empty extra pages --- .dumi/pages/404/index.tsx | 18 ++++++++++++++++++ .dumi/pages/changelog-cn/index.tsx | 1 + .dumi/pages/changelog/index.tsx | 18 ++++++++++++++++++ .dumi/pages/components/overview-cn.tsx | 1 + .dumi/pages/components/overview.tsx | 18 ++++++++++++++++++ .dumi/pages/index-cn/index.tsx | 1 + .dumi/pages/index/.gitkeep | 2 ++ .dumi/pages/index/index/index.tsx | 18 ++++++++++++++++++ 8 files changed, 77 insertions(+) create mode 100644 .dumi/pages/404/index.tsx create mode 100644 .dumi/pages/changelog-cn/index.tsx create mode 100644 .dumi/pages/changelog/index.tsx create mode 100644 .dumi/pages/components/overview-cn.tsx create mode 100644 .dumi/pages/components/overview.tsx create mode 100644 .dumi/pages/index-cn/index.tsx create mode 100644 .dumi/pages/index/.gitkeep create mode 100644 .dumi/pages/index/index/index.tsx diff --git a/.dumi/pages/404/index.tsx b/.dumi/pages/404/index.tsx new file mode 100644 index 0000000000..eb74ff416f --- /dev/null +++ b/.dumi/pages/404/index.tsx @@ -0,0 +1,18 @@ +import React, { type FC } from 'react'; + +const NotFoundPage: FC = () => { + // TODO: implement 404 page + // from: https://github.com/ant-design/ant-design/blob/0067b923b998eb8e68748a7c5b6f9414fb819052/site/theme/template/NotFound.tsx + return ( +
+ 404 page +
+ ); +}; + +export default NotFoundPage; diff --git a/.dumi/pages/changelog-cn/index.tsx b/.dumi/pages/changelog-cn/index.tsx new file mode 100644 index 0000000000..952769363e --- /dev/null +++ b/.dumi/pages/changelog-cn/index.tsx @@ -0,0 +1 @@ +export { default } from '../changelog/index'; diff --git a/.dumi/pages/changelog/index.tsx b/.dumi/pages/changelog/index.tsx new file mode 100644 index 0000000000..f4176ca3d0 --- /dev/null +++ b/.dumi/pages/changelog/index.tsx @@ -0,0 +1,18 @@ +import React, { type FC } from 'react'; + +const Changelog: FC = () => { + // TODO: implement changelog + // from: https://github.com/ant-design/ant-design/blob/2a754bd5cad7fd4892a065a8e044fb402f51f426/site/theme/template/Content/MainContent.jsx#L35 + return ( +
+ changelog page +
+ ); +}; + +export default Changelog; diff --git a/.dumi/pages/components/overview-cn.tsx b/.dumi/pages/components/overview-cn.tsx new file mode 100644 index 0000000000..189a7d7782 --- /dev/null +++ b/.dumi/pages/components/overview-cn.tsx @@ -0,0 +1 @@ +export { default } from './overview'; diff --git a/.dumi/pages/components/overview.tsx b/.dumi/pages/components/overview.tsx new file mode 100644 index 0000000000..68ca288da3 --- /dev/null +++ b/.dumi/pages/components/overview.tsx @@ -0,0 +1,18 @@ +import React, { type FC } from 'react'; + +const Overview: FC = () => { + // TODO: implement overview + // from: https://github.com/ant-design/ant-design/blob/44d8e382bae77b82915effba051af58efd3d0551/site/theme/template/Content/ComponentOverview.jsx + return ( +
+ overview page +
+ ); +}; + +export default Overview; diff --git a/.dumi/pages/index-cn/index.tsx b/.dumi/pages/index-cn/index.tsx new file mode 100644 index 0000000000..6e02bf486c --- /dev/null +++ b/.dumi/pages/index-cn/index.tsx @@ -0,0 +1 @@ +export { default } from '../index/index/index'; diff --git a/.dumi/pages/index/.gitkeep b/.dumi/pages/index/.gitkeep new file mode 100644 index 0000000000..12d8266deb --- /dev/null +++ b/.dumi/pages/index/.gitkeep @@ -0,0 +1,2 @@ +# workaround to keep /index route from umi conventional routes logic +# ref: https://github.com/umijs/umi/blob/cabb186057d801494340f533195b6b330e5ef4e0/packages/core/src/route/routesConvention.ts#L91 diff --git a/.dumi/pages/index/index/index.tsx b/.dumi/pages/index/index/index.tsx new file mode 100644 index 0000000000..7205dc1167 --- /dev/null +++ b/.dumi/pages/index/index/index.tsx @@ -0,0 +1,18 @@ +import React, { type FC } from 'react'; + +const Homepage: FC = () => { + // TODO: implement homepage + // from: https://github.com/ant-design/ant-design/blob/2804cb843a1f6d8b46e44e13c2552f34c487b797/site/theme/template/Home/index.tsx + return ( +
+ home page +
+ ); +}; + +export default Homepage;