|
1 | 1 | <template> |
2 | 2 | <div class="app"> |
3 | | - <CHeader fixed> |
4 | | - <CSidebarToggler class="d-lg-none" display="md" mobile /> |
5 | | - <CLink class="navbar-brand" to="#"> |
6 | | - <img class="navbar-brand-full" src="img/brand/logo.svg" width="89" height="25" alt="CoreUI Logo"> |
7 | | - <img class="navbar-brand-minimized" src="img/brand/sygnet.svg" width="30" height="30" alt="CoreUI Logo"> |
8 | | - </CLink> |
9 | | - <CSidebarToggler class="d-md-down-none" display="lg" /> |
10 | | - <CNavbarNav class="d-md-down-none"> |
11 | | - <CNavItem class="px-3" to="/dashboard">Dashboard</CNavItem> |
12 | | - <CNavItem class="px-3" to="/users" exact>Users</CNavItem> |
13 | | - <CNavItem class="px-3">Settings</CNavItem> |
14 | | - </CNavbarNav> |
15 | | - <CNavbarNav class="ml-auto"> |
16 | | - <CNavItem class="d-md-down-none"> |
17 | | - <i class="icon-bell"></i> |
18 | | - <CBadge pill variant="danger">5</CBadge> |
19 | | - </CNavItem> |
20 | | - <CNavItem class="d-md-down-none"> |
21 | | - <i class="icon-list"></i> |
22 | | - </CNavItem> |
23 | | - <CNavItem class="d-md-down-none"> |
24 | | - <i class="icon-location-pin"></i> |
25 | | - </CNavItem> |
26 | | - <DefaultHeaderDropdownAccnt/> |
27 | | - </CNavbarNav> |
28 | | - <CAsideToggler class="d-none d-lg-block" /> |
29 | | - <!--<AsideToggler class="d-lg-none" mobile />--> |
30 | | - </CHeader> |
| 3 | + <TheHeader/> |
31 | 4 | <div class="app-body"> |
32 | | - <CSidebar fixed> |
33 | | - <CSidebarHeader/> |
34 | | - <CSidebarForm/> |
35 | | - <!-- <CSidebarNav :navItems="computedNav"/> --> |
36 | | - <nav class="sidebar-nav"> |
37 | | - <VuePerfectScrollbar class="scroll-area" :settings="psSettings" |
38 | | - @ps-scroll-y="scrollHandle"> |
39 | | - <CSidebarNavItems :items="computedNav"/> |
40 | | - </VuePerfectScrollbar> |
41 | | - </nav> |
42 | | - <CSidebarFooter/> |
43 | | - <CSidebarMinimizer/> |
44 | | - </CSidebar> |
| 5 | + <TheSidebar/> |
45 | 6 | <main class="main"> |
46 | 7 | <CBreadcrumbRouter/> |
47 | | - <div class="container-fluid"> |
| 8 | + <CContainer fluid> |
48 | 9 | <router-view></router-view> |
49 | | - </div> |
| 10 | + </CContainer> |
50 | 11 | </main> |
51 | | - <CAside fixed> |
52 | | - <!--aside--> |
53 | | - <DefaultAside/> |
54 | | - </CAside> |
| 12 | + <TheAside/> |
55 | 13 | </div> |
56 | | - <CFooter> |
57 | | - <!--footer--> |
58 | | - <div> |
59 | | - <a href="https://coreui.io">CoreUI</a> |
60 | | - <span class="ml-1">© 2018 creativeLabs.</span> |
61 | | - </div> |
62 | | - <div class="ml-auto"> |
63 | | - <span class="mr-1">Powered by</span> |
64 | | - <a href="https://coreui.io">CoreUI for Vue</a> |
65 | | - </div> |
66 | | - </CFooter> |
| 14 | + <TheFooter/> |
67 | 15 | </div> |
68 | 16 | </template> |
69 | 17 |
|
70 | 18 | <script> |
71 | | -import nav from '@/_nav' |
72 | | -import DefaultAside from './DefaultAside' |
73 | | -import DefaultHeaderDropdownAccnt from './DefaultHeaderDropdownAccnt' |
74 | | -import VuePerfectScrollbar from 'vue-perfect-scrollbar' |
| 19 | +import TheAside from './TheAside' |
| 20 | +import TheSidebar from './TheSidebar' |
| 21 | +import TheHeader from './TheHeader' |
| 22 | +import TheFooter from './TheFooter' |
75 | 23 |
|
76 | 24 | export default { |
77 | 25 | name: 'full', |
78 | 26 | components: { |
79 | | - DefaultAside, |
80 | | - DefaultHeaderDropdownAccnt, |
81 | | - VuePerfectScrollbar |
82 | | - }, |
83 | | - data () { |
84 | | - return { |
85 | | - nav: nav.items |
86 | | - } |
87 | | - }, |
88 | | - computed: { |
89 | | - computedNav () { |
90 | | - return this.nav.filter((item) => item.name !== 'Dashboard') |
91 | | - }, |
92 | | - psSettings: () => { |
93 | | - // ToDo: find better rtl fix |
94 | | - return { |
95 | | - maxScrollbarLength: 200, |
96 | | - minScrollbarLength: 40, |
97 | | - suppressScrollX: getComputedStyle(document.querySelector('html')).direction !== 'rtl', |
98 | | - wheelPropagation: false, |
99 | | - interceptRailY: styles => ({ ...styles, height: 0 }) |
100 | | - } |
101 | | - } |
102 | | - }, |
103 | | - methods: { |
104 | | - /*eslint no-unused-vars: ["error", { "argsIgnorePattern": "evt" }]*/ |
105 | | - scrollHandle (evt) { |
106 | | - // console.log(evt) |
107 | | - } |
| 27 | + TheAside, |
| 28 | + TheSidebar, |
| 29 | + TheHeader, |
| 30 | + TheFooter |
108 | 31 | } |
109 | 32 | } |
110 | 33 | </script> |
111 | | - |
112 | | -<style scoped lang="css"> |
113 | | - .scroll-area { |
114 | | - position: absolute; |
115 | | - height: 100%; |
116 | | - margin: auto; |
117 | | - } |
118 | | -</style> |
0 commit comments