+
Modules
-
- {{modules}}
-
+
@@ -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);
+ }
}
}
},
diff --git a/client/src/plugins/vuetify.js b/client/src/plugins/vuetify.js
deleted file mode 100644
index 01bfd807..00000000
--- a/client/src/plugins/vuetify.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import 'vuetify/dist/vuetify.min.css'
-import Vuetify from 'vuetify'
-import Vue from 'vue'
-
-Vue.use(Vuetify)
diff --git a/client/src/router/index.js b/client/src/router/index.js
deleted file mode 100644
index ceba4269..00000000
--- a/client/src/router/index.js
+++ /dev/null
@@ -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'
-})
diff --git a/client/src/store/index.js b/client/src/store/index.js
index 29bfd1f1..7e705109 100644
--- a/client/src/store/index.js
+++ b/client/src/store/index.js
@@ -1,5 +1,4 @@
import Vuex from 'vuex'
-import Vue from 'vue'
const createStore = () => {
return new Vuex.Store({
diff --git a/client/src/util/uuid.js b/client/src/util/uuid.js
deleted file mode 100644
index a667e54d..00000000
--- a/client/src/util/uuid.js
+++ /dev/null
@@ -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)
-})