Adds scaffold for objectives
This commit is contained in:
parent
e3ee972530
commit
5d48f42ffe
|
|
@ -25,11 +25,43 @@
|
||||||
import ObjectiveGroup from '@/components/ObjectiveGroup.vue';
|
import ObjectiveGroup from '@/components/ObjectiveGroup.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'module',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
ObjectiveGroup
|
ObjectiveGroup
|
||||||
},
|
},
|
||||||
|
|
||||||
props: ['module']
|
props: {
|
||||||
|
module: {
|
||||||
|
required: true,
|
||||||
|
type: Object
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// apollo: {
|
||||||
|
// categories: {
|
||||||
|
// query: CATEGORIES_QUERY,
|
||||||
|
// variables: {
|
||||||
|
// username: 'test'
|
||||||
|
// },
|
||||||
|
// fetchPolicy: 'network-only',
|
||||||
|
// manual: true,
|
||||||
|
// result(data, loading, networkStatus) {
|
||||||
|
// if (!loading) {
|
||||||
|
// this.categories = data.data.categories.edges.map(entry => entry.node)
|
||||||
|
// this.modules = data.data.userModules.edges.map(entry => ({'status': entry.node.status, ...entry.node.module}))
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
created() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,17 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['group']
|
name: 'objective-group',
|
||||||
|
|
||||||
|
props: {
|
||||||
|
group: {
|
||||||
|
required: true,
|
||||||
|
type: Object
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ query ModulesQuery($slug: String!) {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
aSlug: slug
|
metaTitle
|
||||||
|
slug
|
||||||
objectivegroupSet {
|
objectivegroupSet {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue