create-packer 1.25.11 → 1.25.13
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 +1 -1
- package/template/web-app/react/.gitignore +2 -0
- package/template/web-app/react/domain/app/index.ts +0 -3
- package/template/web-app/react/{domain/app/app-layout.tsx → pages/index.tsx} +4 -3
- package/template/web-app/react/router/router.tsx +2 -2
- package/template/web-app/react-webpack/domain/app/index.ts +0 -3
- package/template/web-app/react-webpack/{domain/app/app-layout.tsx → pages/index.tsx} +4 -3
- package/template/web-app/react-webpack/router/router.tsx +2 -2
- package/template/web-app/vue/.gitignore +1 -0
- package/template/web-app/vue/domain/app/index.ts +0 -2
- package/template/web-app/vue/pages/index.ts +1 -0
- package/template/web-app/vue/router/index.ts +2 -2
- package/template/web-app/react/domain/app/app-loading.tsx +0 -3
- package/template/web-app/react-webpack/domain/app/app-loading.tsx +0 -3
- /package/template/web-app/react/{domain/app/app-not-found.tsx → pages/not-found.tsx} +0 -0
- /package/template/web-app/react-webpack/{domain/app/app-not-found.tsx → pages/not-found.tsx} +0 -0
- /package/template/web-app/vue/{domain/app/app-layout.vue → pages/index.vue} +0 -0
- /package/template/web-app/vue/{domain/app/app-not-found.vue → pages/not-found.vue} +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Suspense, useEffect } from 'react'
|
|
2
2
|
import { Outlet, useLocation } from 'react-router-dom'
|
|
3
3
|
import { navigate, routerIds } from '@/router'
|
|
4
|
-
import AppLoading from './app-loading'
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
const View = () => {
|
|
7
6
|
const location = useLocation()
|
|
8
7
|
|
|
9
8
|
useEffect(() => {
|
|
@@ -13,8 +12,10 @@ export default function AppLayout() {
|
|
|
13
12
|
}, [location])
|
|
14
13
|
|
|
15
14
|
return (
|
|
16
|
-
<Suspense fallback={
|
|
15
|
+
<Suspense fallback={<>loading...</>}>
|
|
17
16
|
<Outlet />
|
|
18
17
|
</Suspense>
|
|
19
18
|
)
|
|
20
19
|
}
|
|
20
|
+
|
|
21
|
+
export default View
|
|
@@ -10,13 +10,13 @@ const routes: routeType[] = [
|
|
|
10
10
|
{
|
|
11
11
|
path: '/',
|
|
12
12
|
id: ids.root,
|
|
13
|
-
Component: lazy(() => import('@/
|
|
13
|
+
Component: lazy(() => import('@/pages')),
|
|
14
14
|
children: [...home.routes]
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: '*',
|
|
18
18
|
id: ids.notFound,
|
|
19
|
-
Component: lazy(() => import('@/
|
|
19
|
+
Component: lazy(() => import('@/pages/not-found'))
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Suspense, useEffect } from 'react'
|
|
2
2
|
import { Outlet, useLocation } from 'react-router-dom'
|
|
3
3
|
import { navigate, routerIds } from '@/router'
|
|
4
|
-
import AppLoading from './app-loading'
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
const View = () => {
|
|
7
6
|
const location = useLocation()
|
|
8
7
|
|
|
9
8
|
useEffect(() => {
|
|
@@ -13,8 +12,10 @@ export default function AppLayout() {
|
|
|
13
12
|
}, [location])
|
|
14
13
|
|
|
15
14
|
return (
|
|
16
|
-
<Suspense fallback={
|
|
15
|
+
<Suspense fallback={<>loading...</>}>
|
|
17
16
|
<Outlet />
|
|
18
17
|
</Suspense>
|
|
19
18
|
)
|
|
20
19
|
}
|
|
20
|
+
|
|
21
|
+
export default View
|
|
@@ -10,13 +10,13 @@ const routes: routeType[] = [
|
|
|
10
10
|
{
|
|
11
11
|
path: '/',
|
|
12
12
|
id: ids.root,
|
|
13
|
-
Component: lazy(() => import('@/
|
|
13
|
+
Component: lazy(() => import('@/pages')),
|
|
14
14
|
children: [...home.routes]
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
path: '*',
|
|
18
18
|
id: ids.notFound,
|
|
19
|
-
Component: lazy(() => import('@/
|
|
19
|
+
Component: lazy(() => import('@/pages/not-found'))
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './index.vue'
|
|
@@ -5,14 +5,14 @@ import * as homeRouter from './home'
|
|
|
5
5
|
const routes: RouteRecordRaw[] = [
|
|
6
6
|
{
|
|
7
7
|
path: '/',
|
|
8
|
-
component: () => import('@/
|
|
8
|
+
component: () => import('@/pages'),
|
|
9
9
|
redirect: { name: names.home },
|
|
10
10
|
children: [...homeRouter.routes]
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
path: '/404',
|
|
14
14
|
name: names.notFound,
|
|
15
|
-
component: () => import('@/
|
|
15
|
+
component: () => import('@/pages/not-found.vue')
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
|
|
File without changes
|
/package/template/web-app/react-webpack/{domain/app/app-not-found.tsx → pages/not-found.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|