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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.25.11",
3
+ "version": "1.25.13",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -11,6 +11,8 @@ node_modules
11
11
  dist
12
12
  dist-ssr
13
13
  *.local
14
+ stats.html
15
+ vite.config.ts.*
14
16
 
15
17
  # Editor directories and files
16
18
  .vscode/*
@@ -1,5 +1,2 @@
1
1
  export * from './app.model'
2
- export { default as AppLoading } from './app-loading'
3
- export { default as AppLayout } from './app-layout'
4
- export { default as AppNotFound } from './app-not-found'
5
2
  export { default as App } from './app'
@@ -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
- export default function AppLayout() {
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={<AppLoading />}>
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('@/domain/app/app-layout')),
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('@/domain/app/app-not-found'))
19
+ Component: lazy(() => import('@/pages/not-found'))
20
20
  }
21
21
  ]
22
22
 
@@ -1,5 +1,2 @@
1
1
  export * from './app.model'
2
- export { default as AppLoading } from './app-loading'
3
- export { default as AppLayout } from './app-layout'
4
- export { default as AppNotFound } from './app-not-found'
5
2
  export { default as App } from './app'
@@ -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
- export default function AppLayout() {
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={<AppLoading />}>
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('@/domain/app/app-layout')),
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('@/domain/app/app-not-found'))
19
+ Component: lazy(() => import('@/pages/not-found'))
20
20
  }
21
21
  ]
22
22
 
@@ -12,6 +12,7 @@ dist
12
12
  dist-ssr
13
13
  *.local
14
14
  stats.html
15
+ vite.config.ts.*
15
16
 
16
17
  # Editor directories and files
17
18
  .vscode/*
@@ -1,4 +1,2 @@
1
1
  export { default as app } from './app'
2
- export { default as AppLayout } from './app-layout.vue'
3
- export { default as AppNotFound } from './app-not-found.vue'
4
2
  export * from './createComponentInstance'
@@ -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('@/domain/app/app-layout.vue'),
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('@/domain/app/app-not-found.vue')
15
+ component: () => import('@/pages/not-found.vue')
16
16
  }
17
17
  ]
18
18
 
@@ -1,3 +0,0 @@
1
- export default function AppLoading() {
2
- return <>loading...</>
3
- }
@@ -1,3 +0,0 @@
1
- export default function AppLoading() {
2
- return <>loading...</>
3
- }