|
|
|
@ -21,8 +21,7 @@ const apolloClient = new ApolloClient({ |
|
|
|
|
uri: '/api/graphql/' |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
import { BootstrapVue } from 'bootstrap-vue' |
|
|
|
|
|
|
|
|
|
import { BootstrapVue } from 'bootstrap-vue'; |
|
|
|
|
// Install BootstrapVue
|
|
|
|
|
Vue.use(BootstrapVue) |
|
|
|
|
// Optionally install the BootstrapVue icon components plugin
|
|
|
|
@ -44,6 +43,12 @@ const apolloProvider = new VueApollo({ |
|
|
|
|
defaultClient: apolloClient, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const prettyBytes = require('pretty-bytes'); |
|
|
|
|
|
|
|
|
|
Vue.filter('prettyBytes', function (num) { |
|
|
|
|
return prettyBytes(num); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
store.registerModule( |
|
|
|
|
'course', |
|
|
|
|
makeCrudModule({ |
|
|
|
|