2019-06-03 13:47:12 +08:00
|
|
|
import Vue from 'vue/dist/vue'
|
|
|
|
import VueRouter from 'vue-router'
|
2019-05-24 20:09:35 +08:00
|
|
|
import '../styles/index.scss'
|
2019-06-04 11:30:56 +08:00
|
|
|
// import Demo from './demo.vue'
|
2019-06-03 13:47:12 +08:00
|
|
|
import Card from 'packages/common/Card'
|
|
|
|
import Icon from 'packages/common/Icon'
|
2019-06-03 23:42:44 +08:00
|
|
|
import Loader from 'packages/common/Loader'
|
2019-06-13 17:22:06 +08:00
|
|
|
import GradientText from 'packages/common/GradientText'
|
2019-06-04 16:01:34 +08:00
|
|
|
import ColumnGroup from 'packages/common/ColumnGroup'
|
|
|
|
import WithPadding from 'packages/common/WithPadding'
|
2019-06-06 16:44:10 +08:00
|
|
|
import WithMargin from 'packages/common/WithMargin'
|
2019-06-04 16:01:34 +08:00
|
|
|
import MasonryGroup from 'packages/common/MasonryGroup'
|
2019-06-06 16:44:10 +08:00
|
|
|
import Table from 'packages/common/Table'
|
2019-06-04 16:01:34 +08:00
|
|
|
|
|
|
|
import ServiceCard from 'packages/nimbus/ServiceCard'
|
|
|
|
import HomeLayout from 'packages/nimbus/HomeLayout'
|
2019-06-03 23:42:44 +08:00
|
|
|
import Navbar from 'packages/nimbus/Navbar'
|
2019-06-04 16:01:34 +08:00
|
|
|
import ServiceLayout from 'packages/nimbus/ServiceLayout'
|
2019-06-03 13:47:12 +08:00
|
|
|
|
|
|
|
import sideMenuDemo from './components/sideMenuDemo'
|
2019-06-03 23:42:44 +08:00
|
|
|
import homeDemo from './components/homeDemo'
|
2019-06-13 17:22:06 +08:00
|
|
|
import gradientTextDemo from './components/gradientTextDemo'
|
2019-06-13 14:53:30 +08:00
|
|
|
import demo from './demo'
|
2019-06-03 13:47:12 +08:00
|
|
|
|
|
|
|
Vue.use(VueRouter)
|
2019-05-24 20:09:35 +08:00
|
|
|
|
|
|
|
Card.install(Vue)
|
|
|
|
Icon.install(Vue)
|
2019-06-04 16:01:34 +08:00
|
|
|
ServiceLayout.install(Vue)
|
2019-06-03 23:42:44 +08:00
|
|
|
Navbar.install(Vue)
|
|
|
|
Loader.install(Vue)
|
2019-06-04 16:01:34 +08:00
|
|
|
HomeLayout.install(Vue)
|
2019-06-13 17:22:06 +08:00
|
|
|
GradientText.install(Vue)
|
2019-06-04 16:01:34 +08:00
|
|
|
ColumnGroup.install(Vue)
|
|
|
|
WithPadding.install(Vue)
|
|
|
|
ServiceCard.install(Vue)
|
|
|
|
MasonryGroup.install(Vue)
|
2019-06-06 16:44:10 +08:00
|
|
|
Table.install(Vue)
|
|
|
|
WithMargin.install(Vue)
|
2019-06-03 13:47:12 +08:00
|
|
|
|
|
|
|
const routes = [
|
2019-06-13 14:53:30 +08:00
|
|
|
{ path: '/', component: demo },
|
2019-06-13 17:22:06 +08:00
|
|
|
{ path: '/n-nimbus-service-layout', component: sideMenuDemo },
|
|
|
|
{ path: '/n-nimbus-home-layout', component: homeDemo },
|
|
|
|
{ path: '/n-gradient-text', component: gradientTextDemo }
|
2019-06-03 13:47:12 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
routes
|
|
|
|
})
|
|
|
|
|
|
|
|
;(new Vue({
|
|
|
|
router
|
|
|
|
})).$mount('#app')
|
2019-05-24 20:09:35 +08:00
|
|
|
|
2019-06-04 11:30:56 +08:00
|
|
|
console.log('...')
|