Explorar el Código

refac: removed example lazy-load comp | feat: lazy-loading list and single comp

tags/0.9.0
J hace 6 años
padre
commit
c217813da1

+ 0
- 2
vue-theme/src/components/navigation/navigation.vue Ver fichero

@@ -13,6 +13,4 @@ nav.main
13 13
             a(href="/artists") artists
14 14
         li
15 15
             a(href="/episodes") episodes
16
-        li
17
-            a(href="/lazy") lazy
18 16
 </template>

+ 2
- 13
vue-theme/src/index.js Ver fichero

@@ -8,24 +8,13 @@ import App from '@/app.vue'
8 8
 import store from '@/store'
9 9
 
10 10
 import IndexPage from '@/pages/index.vue'
11
-import ListPage from '@/pages/list'
12
-import SinglePage from '@/pages/single'
13 11
 
14 12
 const router = new VueRouter({
15 13
     mode: 'history',
16 14
     routes: [
17 15
         { path: '/', component: IndexPage },
18
-        { path: '/lazy', component:  () => import(/* webpackChunkName: "pages-lazy" */ './pages/lazy.vue') },
19
-        {
20
-            path: '/:type',
21
-            component: ListPage,
22
-            props: { sidebar: true }
23
-        },
24
-        {
25
-            path: '/:type/:id',
26
-            component: SinglePage,
27
-            props: { sidebar: true }
28
-        },
16
+        { path: '/:type', component: () => import(/* webpackChunkName: "pages-list" */ './pages/list.vue'), props: { sidebar: true } },
17
+        { path: '/:type/:id', component: () => import(/* webpackChunkName: "pages-single" */ './pages/single.vue'), props: { sidebar: true } },
29 18
     ]
30 19
 })
31 20
 

+ 0
- 4
vue-theme/src/pages/lazy.vue Ver fichero

@@ -1,4 +0,0 @@
1
-<template lang="pug">
2
-article.page--lazy
3
-    h1 LAAZYY
4
-</template>

Loading…
Cancelar
Guardar