Remove unused code
This commit is contained in:
parent
bac0690721
commit
d884298413
|
|
@ -34,7 +34,7 @@ Sources
|
|||
# install dependencies
|
||||
npm install --prefix client
|
||||
|
||||
# serve with hot reload at localhost:8080
|
||||
# serve with hot reload at localhost:3000
|
||||
npm run dev --prefix client
|
||||
|
||||
# build
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ module.exports = {
|
|||
},
|
||||
plugins: [
|
||||
'~plugins/vue-axios',
|
||||
'~plugins/vue-vimeo-player',
|
||||
'~plugins/vuetify'
|
||||
'~plugins/vue-vimeo-player'
|
||||
],
|
||||
srcDir: 'src/'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,50 +0,0 @@
|
|||
<template>
|
||||
<v-app id="inspire">
|
||||
<v-navigation-drawer v-model="drawer" fixed class="hidden-md-and-up">
|
||||
<v-list dense>
|
||||
<v-list-tile :to="{ name: 'dashboard'}" exact router>
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title>Dashboard</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
<v-toolbar fixed app dark class="elevation-0">
|
||||
<v-toolbar-side-icon @click.stop="drawer = !drawer" class="hidden-md-and-up"></v-toolbar-side-icon>
|
||||
<v-toolbar-title>skillBox</v-toolbar-title>
|
||||
<v-spacer></v-spacer>
|
||||
<v-toolbar-items class="hidden-sm-and-down">
|
||||
<v-btn flat :to="{ name: 'dashboard'}" exact router>Dashboard</v-btn>
|
||||
</v-toolbar-items>
|
||||
</v-toolbar>
|
||||
<v-content fluid fill-height>
|
||||
<v-slide-x-transition mode="out-in">
|
||||
<router-view></router-view>
|
||||
</v-slide-x-transition>
|
||||
</v-content>
|
||||
</v-app>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
|
||||
data() {
|
||||
return {
|
||||
active: null,
|
||||
drawer: null,
|
||||
userid: 1,
|
||||
name: 'Max Muster',
|
||||
email: 'skillbox@iterativ.ch'
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "styles/main";
|
||||
</style>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
import 'babel-polyfill'
|
||||
import Vue from 'vue'
|
||||
import apolloClient from './graphql/client'
|
||||
import VueApollo from 'vue-apollo'
|
||||
import App from './App'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.use(VueApollo)
|
||||
|
||||
const apolloProvider = new VueApollo({
|
||||
defaultClient: apolloClient
|
||||
})
|
||||
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
el: '#app',
|
||||
provide: apolloProvider.provide(),
|
||||
render: h => h(App)
|
||||
})
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
<template>
|
||||
<div>
|
||||
<div>
|
||||
<h3>Modules</h3>
|
||||
<div>
|
||||
{{modules}}
|
||||
</div>
|
||||
<ul>
|
||||
<li v-for="module in modules" :key="module.id">
|
||||
{{module.title}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -16,14 +18,14 @@
|
|||
modules: []
|
||||
}
|
||||
},
|
||||
|
||||
apollo: {
|
||||
modules: {
|
||||
query: ALL_MODULES,
|
||||
prefetch: true,
|
||||
manual: true,
|
||||
result(data, loading, networkStatus) {
|
||||
this.modules = data.data.modules.edges.map(entry => entry.node)
|
||||
result({data, loading, networkStatus}) {
|
||||
if (!loading) {
|
||||
this.modules = data.modules.edges.map(node => node.node);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
import 'vuetify/dist/vuetify.min.css'
|
||||
import Vuetify from 'vuetify'
|
||||
import Vue from 'vue'
|
||||
|
||||
Vue.use(Vuetify)
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import Dashboard from '@/pages/PageDashboard'
|
||||
import NotFound from '@/pages/PageNotFound'
|
||||
|
||||
const routerOptions = [
|
||||
{ path: '/', name: 'dashboard', component: Dashboard },
|
||||
{ path: '/dashboard', name: 'dashboard', component: Dashboard },
|
||||
{ path: '*', component: NotFound }
|
||||
]
|
||||
|
||||
const routes = routerOptions.map(route => {
|
||||
return {
|
||||
...route
|
||||
}
|
||||
})
|
||||
|
||||
Vue.use(Router)
|
||||
export default new Router({
|
||||
routes,
|
||||
mode: 'history'
|
||||
})
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import Vuex from 'vuex'
|
||||
import Vue from 'vue'
|
||||
|
||||
const createStore = () => {
|
||||
return new Vuex.Store({
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
export default () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
||||
let r = Math.random() * 16 | 0
|
||||
let v = c === 'x' ? r : (r & 0x3 | 0x8)
|
||||
return v.toString(16)
|
||||
})
|
||||
Loading…
Reference in New Issue