Remove more-info of post

- Additionally remove take-action.
This commit is contained in:
Wolfgang Huß 2021-03-29 15:16:05 +02:00
parent ff50273f94
commit 02fa718fae
12 changed files with 6 additions and 199 deletions

View File

@ -102,7 +102,6 @@
"letsTalk": "Miteinander reden",
"loading": "wird geladen",
"loadMore": "mehr laden",
"moreInfo": "Mehr Info",
"name": "Name",
"organization": "Organisation ::: Organisationen",
"post": "Beitrag ::: Beiträge",
@ -464,14 +463,6 @@
"unpin": "Beitrag loslösen",
"unpinnedSuccessfully": "Angehefteten Beitrag erfolgreich losgelöst!"
},
"moreInfo": {
"description": "Hier findest Du weitere Infos zum Thema.",
"name": "Mehr Info",
"title": "Mehr Informationen",
"titleOfCategoriesSection": "Kategorien",
"titleOfHashtagsSection": "Hashtags",
"titleOfRelatedContributionsSection": "Verwandte Beiträge"
},
"name": "Beitrag",
"pinned": "Meldung",
"takeAction": {

View File

@ -102,7 +102,6 @@
"letsTalk": "Let`s Talk",
"loading": "loading",
"loadMore": "load more",
"moreInfo": "More Info",
"name": "Name",
"organization": "Organization ::: Organizations",
"post": "Post ::: Posts",
@ -464,14 +463,6 @@
"unpin": "Unpin post",
"unpinnedSuccessfully": "Post unpinned successfully!"
},
"moreInfo": {
"description": "Here you can find more information about this topic.",
"name": "More info",
"title": "More information",
"titleOfCategoriesSection": "Categories",
"titleOfHashtagsSection": "Hashtags",
"titleOfRelatedContributionsSection": "Related posts"
},
"name": "Post",
"pinned": "Announcement",
"takeAction": {

View File

@ -98,7 +98,6 @@
"letsTalk": "Hablemos",
"loading": "cargando",
"loadMore": "cargar más",
"moreInfo": "Más información",
"name": "Nombre",
"organization": "Organización ::: Organizaciones",
"post": "Mensaje ::: Mensajes",
@ -425,14 +424,6 @@
"unpin": "Desanclar contribución",
"unpinnedSuccessfully": "¡Contribución desanclado con éxito!"
},
"moreInfo": {
"description": "Aquí puede encontrar más información sobre este tema.",
"name": "Más info",
"title": "Más información",
"titleOfCategoriesSection": "Categorías",
"titleOfHashtagsSection": "Hashtags",
"titleOfRelatedContributionsSection": "Contribuciones relacionadas"
},
"name": "Contribución",
"pinned": "Anuncio",
"takeAction": {

View File

@ -98,7 +98,6 @@
"letsTalk": "Parlons-en",
"loading": "chargement",
"loadMore": "charger plus",
"moreInfo": "Plus d'infos",
"name": "Nom",
"organization": "Organisation ::: Organisations",
"post": "Message ::: Messages",
@ -413,14 +412,6 @@
"unpin": "Retirer l'épingle du poste",
"unpinnedSuccessfully": "Épingle retirer du Post avec succès!"
},
"moreInfo": {
"description": "Ici vous pouvez trouver plus d'informations à ce sujet.",
"name": "Plus d'infos",
"title": "Plus d'information",
"titleOfCategoriesSection": "Catégories",
"titleOfHashtagsSection": "Hashtags",
"titleOfRelatedContributionsSection": "Articles Similaires"
},
"name": "Post",
"pinned": "Annonce",
"takeAction": {

View File

@ -105,7 +105,6 @@
"letsTalk": "Discutiamo",
"loading": "Caricamento in corso",
"loadMore": "Caricare di più",
"moreInfo": "Ulteriori informazioni",
"name": "Nome",
"organization": "Organizzazione ::: Organizzazioni",
"post": "Messaggio ::: Messaggi",
@ -364,14 +363,6 @@
"unpin": null,
"unpinnedSuccessfully": null
},
"moreInfo": {
"description": null,
"name": "Ulteriori informazioni",
"title": null,
"titleOfCategoriesSection": null,
"titleOfHashtagsSection": null,
"titleOfRelatedContributionsSection": null
},
"name": "Messaggio",
"pinned": null,
"takeAction": {

View File

@ -52,7 +52,6 @@
"letsTalk": "Laten we praten",
"loading": "inlading",
"loadMore": "meer laden",
"moreInfo": "Meer info",
"name": "Naam",
"organization": "Organisatie ::: Organisaties",
"post": "Bericht ::: Berichten",

View File

@ -67,7 +67,6 @@
"letsTalk": "Porozmawiajmy",
"loading": "załadunek",
"loadMore": "Obciążenie więcej",
"moreInfo": "Więcej informacji",
"name": "Nazwa",
"organization": "Organization ::: Organizations",
"post": "Poczta ::: Posty",
@ -201,9 +200,6 @@
"delete": "Usuń wpis",
"edit": "Edytuj wpis"
},
"moreInfo": {
"name": "Więcej informacji"
},
"name": "Poczta",
"takeAction": {
"name": "Podejmij działanie"

View File

@ -145,7 +145,6 @@
"letsTalk": "Vamos Conversar",
"loading": "Carregando",
"loadMore": "Carregar mais",
"moreInfo": "Mais informações",
"name": "Nome",
"organization": "Organização ::: Organizações",
"post": "Postagem ::: Postagens",
@ -400,14 +399,6 @@
"unpin": "Desafixar publicação",
"unpinnedSuccessfully": "Publicação desafixada com sucesso!"
},
"moreInfo": {
"description": "Aqui você pode encontrar mais informações sobre este tópico.",
"name": "Mais informações",
"title": "Mais informações",
"titleOfCategoriesSection": "Categorias",
"titleOfHashtagsSection": "Hashtags",
"titleOfRelatedContributionsSection": "Publicações relacionadas"
},
"name": "Postar",
"pinned": "Anúncio",
"takeAction": {

View File

@ -98,7 +98,6 @@
"letsTalk": "Давай поговорим",
"loading": "загрузка",
"loadMore": "Загрузить ещё",
"moreInfo": "Больше информации",
"name": "Имя",
"organization": "Организация ::: Организации ::: Организации",
"post": "Пост ::: Посты ::: Посты",
@ -425,14 +424,6 @@
"unpin": "Открепить пост",
"unpinnedSuccessfully": "Пост успешно не закреплено!"
},
"moreInfo": {
"description": "Здесь содержится дополнительная информация по теме.",
"name": "Дополнительная информация",
"title": "Дополнительная информация",
"titleOfCategoriesSection": "Категории",
"titleOfHashtagsSection": "Хэштеги",
"titleOfRelatedContributionsSection": "Похожие посты"
},
"name": "Пост",
"pinned": "Объявление",
"takeAction": {

View File

@ -55,25 +55,16 @@ export default {
},
// TODO implement
/* {
name: this.$t('common.letsTalk'),
path: `/post/${id}/${slug}#lets-talk`
}, */
name: this.$t('common.letsTalk'),
path: `/post/${id}/${slug}#lets-talk`
}, */
// TODO implement
/* {
name: this.$t('common.versus'),
path: `/post/${id}/${slug}#versus`
} */
name: this.$t('common.versus'),
path: `/post/${id}/${slug}#versus`
} */
],
},
{
name: this.$t('common.moreInfo'),
path: `/post/${id}/${slug}/more-info`,
},
// TODO implement
/* {
name: this.$t('common.takeAction'),
path: `/post/${id}/${slug}/take-action`
} */
]
},
},

View File

@ -1,100 +0,0 @@
<template>
<base-card>
<h2 class="title">{{ $t('post.moreInfo.title') }}</h2>
<p>{{ $t('post.moreInfo.description') }}</p>
<ds-space />
<h3>{{ $t('post.moreInfo.titleOfCategoriesSection') }}</h3>
<hc-category
v-for="category in post.categories"
:key="category.id"
:icon="category.icon"
:name="$t(`contribution.category.name.${category.slug}`)"
/>
<template v-if="post.tags && post.tags.length">
<h3>
{{ $t('post.moreInfo.titleOfHashtagsSection') }}
</h3>
<hc-hashtag v-for="tag in sortedTags" :key="tag.id" :id="tag.id" />
</template>
<h3>{{ $t('post.moreInfo.titleOfRelatedContributionsSection') }}</h3>
<ds-section>
<masonry-grid v-if="post.relatedContributions && post.relatedContributions.length">
<masonry-grid-item
v-for="relatedPost in post.relatedContributions"
:key="relatedPost.id"
:imageAspectRatio="relatedPost.imageAspectRatio"
>
<post-teaser
:post="relatedPost"
:width="{ base: '100%', lg: 1 }"
@removePostFromList="
post.relatedContributions = removePostFromList(relatedPost, post.relatedContributions)
"
@pinPost="pinPost(relatedPost, refetchPostList)"
@unpinPost="unpinPost(relatedPost, refetchPostList)"
/>
</masonry-grid-item>
</masonry-grid>
<hc-empty v-else margin="large" icon="file" message="No related Posts" />
</ds-section>
</base-card>
</template>
<script>
import postListActions from '~/mixins/postListActions'
import HcEmpty from '~/components/Empty/Empty'
import PostTeaser from '~/components/PostTeaser/PostTeaser.vue'
import HcCategory from '~/components/Category'
import HcHashtag from '~/components/Hashtag/Hashtag'
import { relatedContributions } from '~/graphql/PostQuery'
import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue'
import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue'
import { sortTagsAlphabetically } from '~/components/utils/PostHelpers'
export default {
components: {
PostTeaser,
HcCategory,
HcHashtag,
HcEmpty,
MasonryGrid,
MasonryGridItem,
},
transition: {
name: 'slide-up',
mode: 'out-in',
},
mixins: [postListActions],
computed: {
post() {
return this.Post ? this.Post[0] || {} : {}
},
sortedTags() {
return sortTagsAlphabetically(this.post.tags)
},
},
methods: {
refetchPostList() {
this.$apollo.queries.Post.refetch()
},
},
apollo: {
Post: {
query() {
return relatedContributions(this.$i18n)
},
variables() {
return {
slug: this.$route.params.slug,
}
},
},
},
}
</script>
<style lang="scss">
.related-post {
box-shadow: $box-shadow-base;
}
</style>

View File

@ -1,16 +0,0 @@
<template>
<base-card>
<h2 class="title">Werde aktiv!</h2>
<hc-empty icon="tasks" message="Coming Soon…" />
</base-card>
</template>
<script>
import HcEmpty from '~/components/Empty/Empty'
export default {
components: {
HcEmpty,
},
}
</script>