- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
window.api = window.location.href.match(/localhost/) ? '//localhost:3000/api' : '//bnbcrate.com:8081/api/'
window.public = 'http://localhost:3000'
import "babel-polyfill"
import Vue from 'vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import Vuetify from 'vuetify'
import Store from './store'
import App from './App.vue'
import Home from './pages/home.vue'
import About from './pages/about.vue'
import Crates from './pages/crates.vue'
import Dashboard from './pages/dashboard'
import Addresses from './pages/dashboard/addresses.vue'
import CreditCards from './pages/dashboard/creditcards.vue'
import OrderHistory from './pages/dashboard/orders.vue'
import AccountSettings from './pages/dashboard/account-settings.vue'
import Checkout from './pages/checkout/index.vue'
import Complete from './pages/checkout/complete.vue'
import ResetPassword from './pages/reset-password.vue'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuex)
// Vue.use(Vuetify, {
// theme: {
// primary: '#389ab9',
// accent: '#cd5c5c5',
// error: '#b71c1c'
// }
// })
Vue.use(Vuetify, {
theme: {
primary: '#389ab9',
secondary: '#b0bec5',
accent: '#cd5c5c',
error: '#b71c1c'
}
})
Vue.use(VueRouter)
const store = new Vuex.Store(Store)
const router = new VueRouter({
mode: 'history',
routes: [
{
name: "Home",
path: '/',
component: Home
},
{
name: "About",
path: '/about',
component: About
},
{
name: "Crates",
path: '/crates',
component: Crates
},
{
name: "Dashboard",
path: '/dashboard',
component: Dashboard
},
{
name: "Addresses",
path: '/dashboard/addresses',
component: Addresses
},
{
name: "CreditCards",
path: '/dashboard/credit-cards',
component: CreditCards
},
{
name: "OrderHistory",
path: '/dashboard/orders',
component: OrderHistory
},
{
name: "AccountSettings",
path: '/dashboard/account-settings',
component: AccountSettings
},
{
name: "Checkout",
path: '/checkout',
component: Checkout
},
{
name: "Complete",
path: '/checkout/complete',
component: Complete
},
{
name: "ResetPassword",
path: '/reset-password',
component: ResetPassword
},
]
})
new Vue({
el: '#app',
router,
store,
render: h => h(App)
});