Merge branch 'master' into report-content

This commit is contained in:
Grzegorz Leoniec 2019-01-18 16:31:45 +01:00 committed by GitHub
commit f19d46a7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 187 additions and 104 deletions

View File

@ -1,8 +1,5 @@
<template>
<ds-card space="small">
<ds-heading tag="h3">
{{ $t('admin.categories.name') }}
</ds-heading>
<ds-card :header="$t('admin.categories.name')">
<ds-table
:data="Category"
:fields="fields"

View File

@ -1,7 +1,18 @@
<template>
<ds-card space="small">
<ds-heading tag="h3">
{{ $t('admin.notifications.name') }}
</ds-heading>
<ds-card :header="$t('admin.notifications.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('admin.organizations.name') }}
</ds-space>
<ds-card :header="$t('admin.organizations.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('admin.pages.name') }}
</ds-space>
<ds-card :header="$t('admin.pages.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('admin.settings.name') }}
</ds-space>
<ds-card :header="$t('admin.settings.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,8 +1,5 @@
<template>
<ds-card space="small">
<ds-heading tag="h3">
{{ $t('admin.tags.name') }}
</ds-heading>
<ds-card :header="$t('admin.tags.name')">
<ds-table
:data="Tag"
:fields="fields"

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('admin.users.name') }}
</ds-space>
<ds-card :header="$t('admin.users.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -43,12 +43,12 @@
<hc-post-card :post="relatedPost" />
</ds-flex-item>
</ds-flex>
<ds-space
<hc-empty
v-else
style="text-align: center; padding-top: 2em; opacity: .6;"
>
No related Posts
</ds-space>
margin="large"
icon="file"
message="No related Posts"
/>
</ds-section>
<ds-space margin-bottom="large" />
</ds-card>
@ -57,6 +57,7 @@
<script>
import gql from 'graphql-tag'
import HcPostCard from '~/components/PostCard.vue'
import HcEmpty from '~/components/Empty.vue'
export default {
transition: {
@ -64,7 +65,8 @@ export default {
mode: 'out-in'
},
components: {
HcPostCard
HcPostCard,
HcEmpty
},
computed: {
post() {

View File

@ -1,52 +1,18 @@
<template>
<ds-card header="Werde aktiv!">
<p>Was kann ich tun? Hier findest du mögliche Projekte, Aktioner, etc.</p>
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import gql from 'graphql-tag'
import HcEmpty from '~/components/Empty.vue'
export default {
transition: {
name: 'slide-up',
mode: 'out-in'
},
data() {
return {
Post: []
}
},
computed: {
tags() {
return this.Post ? this.Post[0].tags.map(tag => tag.name) : '-'
}
},
apollo: {
Post: {
query: gql(`
query {
Post {
id
title
tags {
name
}
categories {
name
}
shoutedCount
shoutedBy {
name
friends {
name
}
}
}
}
`)
}
components: {
HcEmpty
}
}
</script>

View File

@ -251,7 +251,7 @@
</ds-flex>
</ds-card>
</ds-flex-item>
<template v-if="activePosts">
<template v-if="activePosts.length">
<ds-flex-item
v-for="post in activePosts"
:key="post.id"
@ -342,6 +342,9 @@ export default {
)
},
activePosts() {
if (!this.user.contributions) {
return []
}
return this.uniq(this.user.contributions.filter(post => !post.deleted))
}
},

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.download.name') }}
</ds-space>
<ds-card :header="$t('settings.download.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.delete.name') }}
</ds-space>
<ds-card :header="$t('settings.delete.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -3,10 +3,7 @@
v-model="form"
@submit="submit"
>
<ds-card space="small">
<ds-heading tag="h3">
{{ $t('settings.data.name') }}
</ds-heading>
<ds-card :header="$t('settings.data.name')">
<ds-input
id="name"
model="name"

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.invites.name') }}
</ds-space>
<ds-card :header="$t('settings.invites.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.languages.name') }}
</ds-space>
<ds-card :header="$t('settings.languages.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.organizations.name') }}
</ds-space>
<ds-card :header="$t('settings.organizations.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>

View File

@ -1,7 +1,18 @@
<template>
<ds-card>
<ds-space margin="small">
{{ $t('settings.security.name') }}
</ds-space>
<ds-card :header="$t('settings.security.name')">
<hc-empty
icon="tasks"
message="Comming Soon…"
/>
</ds-card>
</template>
<script>
import HcEmpty from '~/components/Empty.vue'
export default {
components: {
HcEmpty
}
}
</script>