create-antd-layout 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-antd-layout",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "this is create project for @adminui-dev/antd-layout's template proejct",
5
5
  "keywords": [
6
6
  "create-antd-layout",
@@ -10,7 +10,7 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "@adminui-dev/antd-layout": "^1.1.7",
13
+ "@adminui-dev/antd-layout": "^1.2.3",
14
14
  "@ant-design/colors": "^7.2.1",
15
15
  "@ant-design/icons": "^6.1.0",
16
16
  "nprogress": "^0.2.0",
@@ -1,13 +1,10 @@
1
1
  import { Suspense } from 'react'
2
2
  import './App.css'
3
3
  import 'nprogress/nprogress.css';
4
- import nProgress from 'nprogress';
5
4
  import { PageLoading } from '@adminui-dev/antd-layout'
6
5
  import { RouterProvider } from 'react-router'
7
6
  import { routers } from './routes'
8
7
 
9
- nProgress.configure({showSpinner:false})
10
-
11
8
  function App() {
12
9
  return (
13
10
  <>
@@ -15,7 +15,7 @@ const menuData:MenuData = {
15
15
  icon:<DashboardOutlined />,
16
16
  children:[
17
17
  {name:"welcome",path:"welcome",label:"Welcome",icon:<SmileOutlined />},
18
- {name:"workend",path:"workend",label:"Workend",icon:<BlockOutlined />,children:[
18
+ {name:"transaction",path:"transaction",label:"Transaction",icon:<BlockOutlined />,children:[
19
19
  {name:"order",path:"order",label:"Order",icon:<CarryOutOutlined />},
20
20
  {name:"order",path:"product",label:"Product",icon:<ProductOutlined />},
21
21
  ]},
@@ -5,7 +5,6 @@ const boxStyles:React.CSSProperties = {
5
5
  flexFlow:"column",
6
6
  justifyContent:"center",
7
7
  alignItems:"center",
8
- minHeight:"100%",
9
8
  textAlign:"center",
10
9
  padding:"1rem",
11
10
  flex:1
@@ -14,6 +13,11 @@ const titleStyles:React.CSSProperties = {
14
13
  margin:"2px",
15
14
  padding:"2px"
16
15
  }
16
+
17
+ /**
18
+ * This is just a casual demo
19
+ * @returns
20
+ */
17
21
  export default function(){
18
22
  return(
19
23
  <div style={boxStyles}>
@@ -5,8 +5,8 @@ const DashboardLayout = LazyPage(()=>import("@/layouts"))
5
5
  const LoginPage = LazyPage(()=>import("@/pages/login"))
6
6
  const ConfigPage = LazyPage(()=>import("@/pages/system/config"))
7
7
  const LogsPage = LazyPage(()=>import("@/pages/system/logs"))
8
- const OrderPage = LazyPage(()=>import("@/pages/workend/order"))
9
- const ProductPage = LazyPage(()=>import("@/pages/workend/product"))
8
+ const OrderPage = LazyPage(()=>import("@/pages/transaction/order"))
9
+ const ProductPage = LazyPage(()=>import("@/pages/transaction/product"))
10
10
  const WelcomePage = LazyPage(()=>import("@/pages/welcome"))
11
11
 
12
12
  /**
@@ -25,8 +25,8 @@ const routers = createBrowserRouter(
25
25
  {path:"config",Component:ConfigPage},
26
26
  {path:"logs",Component:LogsPage}
27
27
  ]},
28
- {path:"workend",children:[
29
- {index:true,loader:()=>redirect("/workend/order")},
28
+ {path:"transaction",children:[
29
+ {index:true,loader:()=>redirect("/transaction/order")},
30
30
  {path:"order",Component:OrderPage},
31
31
  {path:"product",Component:ProductPage}
32
32
  ]}