mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #4316 from Ocelot-Social-Community/4260-remove-more-info-on-post
feat: 🍰 Remove More-Info Of Post
This commit is contained in:
commit
fbbc9c9325
@ -102,7 +102,6 @@
|
|||||||
"letsTalk": "Miteinander reden",
|
"letsTalk": "Miteinander reden",
|
||||||
"loading": "wird geladen",
|
"loading": "wird geladen",
|
||||||
"loadMore": "mehr laden",
|
"loadMore": "mehr laden",
|
||||||
"moreInfo": "Mehr Info",
|
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"organization": "Organisation ::: Organisationen",
|
"organization": "Organisation ::: Organisationen",
|
||||||
"post": "Beitrag ::: Beiträge",
|
"post": "Beitrag ::: Beiträge",
|
||||||
@ -485,14 +484,6 @@
|
|||||||
"unpin": "Beitrag loslösen",
|
"unpin": "Beitrag loslösen",
|
||||||
"unpinnedSuccessfully": "Angehefteten Beitrag erfolgreich losgelöst!"
|
"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",
|
"name": "Beitrag",
|
||||||
"pinned": "Meldung",
|
"pinned": "Meldung",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -102,7 +102,6 @@
|
|||||||
"letsTalk": "Let`s Talk",
|
"letsTalk": "Let`s Talk",
|
||||||
"loading": "loading",
|
"loading": "loading",
|
||||||
"loadMore": "load more",
|
"loadMore": "load more",
|
||||||
"moreInfo": "More Info",
|
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"organization": "Organization ::: Organizations",
|
"organization": "Organization ::: Organizations",
|
||||||
"post": "Post ::: Posts",
|
"post": "Post ::: Posts",
|
||||||
@ -485,14 +484,6 @@
|
|||||||
"unpin": "Unpin post",
|
"unpin": "Unpin post",
|
||||||
"unpinnedSuccessfully": "Post unpinned successfully!"
|
"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",
|
"name": "Post",
|
||||||
"pinned": "Announcement",
|
"pinned": "Announcement",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -98,7 +98,6 @@
|
|||||||
"letsTalk": "Hablemos",
|
"letsTalk": "Hablemos",
|
||||||
"loading": "cargando",
|
"loading": "cargando",
|
||||||
"loadMore": "cargar más",
|
"loadMore": "cargar más",
|
||||||
"moreInfo": "Más información",
|
|
||||||
"name": "Nombre",
|
"name": "Nombre",
|
||||||
"organization": "Organización ::: Organizaciones",
|
"organization": "Organización ::: Organizaciones",
|
||||||
"post": "Mensaje ::: Mensajes",
|
"post": "Mensaje ::: Mensajes",
|
||||||
@ -420,14 +419,6 @@
|
|||||||
"unpin": "Desanclar contribución",
|
"unpin": "Desanclar contribución",
|
||||||
"unpinnedSuccessfully": "¡Contribución desanclado con éxito!"
|
"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",
|
"name": "Contribución",
|
||||||
"pinned": "Anuncio",
|
"pinned": "Anuncio",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -98,7 +98,6 @@
|
|||||||
"letsTalk": "Parlons-en",
|
"letsTalk": "Parlons-en",
|
||||||
"loading": "chargement",
|
"loading": "chargement",
|
||||||
"loadMore": "charger plus",
|
"loadMore": "charger plus",
|
||||||
"moreInfo": "Plus d'infos",
|
|
||||||
"name": "Nom",
|
"name": "Nom",
|
||||||
"organization": "Organisation ::: Organisations",
|
"organization": "Organisation ::: Organisations",
|
||||||
"post": "Message ::: Messages",
|
"post": "Message ::: Messages",
|
||||||
@ -408,14 +407,6 @@
|
|||||||
"unpin": "Retirer l'épingle du poste",
|
"unpin": "Retirer l'épingle du poste",
|
||||||
"unpinnedSuccessfully": "Épingle retirer du Post avec succès!"
|
"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",
|
"name": "Post",
|
||||||
"pinned": "Annonce",
|
"pinned": "Annonce",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -105,7 +105,6 @@
|
|||||||
"letsTalk": "Discutiamo",
|
"letsTalk": "Discutiamo",
|
||||||
"loading": "Caricamento in corso",
|
"loading": "Caricamento in corso",
|
||||||
"loadMore": "Caricare di più",
|
"loadMore": "Caricare di più",
|
||||||
"moreInfo": "Ulteriori informazioni",
|
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"organization": "Organizzazione ::: Organizzazioni",
|
"organization": "Organizzazione ::: Organizzazioni",
|
||||||
"post": "Messaggio ::: Messaggi",
|
"post": "Messaggio ::: Messaggi",
|
||||||
@ -361,14 +360,6 @@
|
|||||||
"unpin": null,
|
"unpin": null,
|
||||||
"unpinnedSuccessfully": null
|
"unpinnedSuccessfully": null
|
||||||
},
|
},
|
||||||
"moreInfo": {
|
|
||||||
"description": null,
|
|
||||||
"name": "Ulteriori informazioni",
|
|
||||||
"title": null,
|
|
||||||
"titleOfCategoriesSection": null,
|
|
||||||
"titleOfHashtagsSection": null,
|
|
||||||
"titleOfRelatedContributionsSection": null
|
|
||||||
},
|
|
||||||
"name": "Messaggio",
|
"name": "Messaggio",
|
||||||
"pinned": null,
|
"pinned": null,
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -52,7 +52,6 @@
|
|||||||
"letsTalk": "Laten we praten",
|
"letsTalk": "Laten we praten",
|
||||||
"loading": "inlading",
|
"loading": "inlading",
|
||||||
"loadMore": "meer laden",
|
"loadMore": "meer laden",
|
||||||
"moreInfo": "Meer info",
|
|
||||||
"name": "Naam",
|
"name": "Naam",
|
||||||
"organization": "Organisatie ::: Organisaties",
|
"organization": "Organisatie ::: Organisaties",
|
||||||
"post": "Bericht ::: Berichten",
|
"post": "Bericht ::: Berichten",
|
||||||
|
|||||||
@ -67,7 +67,6 @@
|
|||||||
"letsTalk": "Porozmawiajmy",
|
"letsTalk": "Porozmawiajmy",
|
||||||
"loading": "załadunek",
|
"loading": "załadunek",
|
||||||
"loadMore": "Obciążenie więcej",
|
"loadMore": "Obciążenie więcej",
|
||||||
"moreInfo": "Więcej informacji",
|
|
||||||
"name": "Nazwa",
|
"name": "Nazwa",
|
||||||
"organization": "Organization ::: Organizations",
|
"organization": "Organization ::: Organizations",
|
||||||
"post": "Poczta ::: Posty",
|
"post": "Poczta ::: Posty",
|
||||||
@ -203,9 +202,6 @@
|
|||||||
"delete": "Usuń wpis",
|
"delete": "Usuń wpis",
|
||||||
"edit": "Edytuj wpis"
|
"edit": "Edytuj wpis"
|
||||||
},
|
},
|
||||||
"moreInfo": {
|
|
||||||
"name": "Więcej informacji"
|
|
||||||
},
|
|
||||||
"name": "Poczta",
|
"name": "Poczta",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
"name": "Podejmij działanie"
|
"name": "Podejmij działanie"
|
||||||
|
|||||||
@ -145,7 +145,6 @@
|
|||||||
"letsTalk": "Vamos Conversar",
|
"letsTalk": "Vamos Conversar",
|
||||||
"loading": "Carregando",
|
"loading": "Carregando",
|
||||||
"loadMore": "Carregar mais",
|
"loadMore": "Carregar mais",
|
||||||
"moreInfo": "Mais informações",
|
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"organization": "Organização ::: Organizações",
|
"organization": "Organização ::: Organizações",
|
||||||
"post": "Postagem ::: Postagens",
|
"post": "Postagem ::: Postagens",
|
||||||
@ -397,14 +396,6 @@
|
|||||||
"unpin": "Desafixar publicação",
|
"unpin": "Desafixar publicação",
|
||||||
"unpinnedSuccessfully": "Publicação desafixada com sucesso!"
|
"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",
|
"name": "Postar",
|
||||||
"pinned": "Anúncio",
|
"pinned": "Anúncio",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -98,7 +98,6 @@
|
|||||||
"letsTalk": "Давай поговорим",
|
"letsTalk": "Давай поговорим",
|
||||||
"loading": "загрузка",
|
"loading": "загрузка",
|
||||||
"loadMore": "Загрузить ещё",
|
"loadMore": "Загрузить ещё",
|
||||||
"moreInfo": "Больше информации",
|
|
||||||
"name": "Имя",
|
"name": "Имя",
|
||||||
"organization": "Организация ::: Организации ::: Организации",
|
"organization": "Организация ::: Организации ::: Организации",
|
||||||
"post": "Пост ::: Посты ::: Посты",
|
"post": "Пост ::: Посты ::: Посты",
|
||||||
@ -420,14 +419,6 @@
|
|||||||
"unpin": "Открепить пост",
|
"unpin": "Открепить пост",
|
||||||
"unpinnedSuccessfully": "Пост успешно не закреплено!"
|
"unpinnedSuccessfully": "Пост успешно не закреплено!"
|
||||||
},
|
},
|
||||||
"moreInfo": {
|
|
||||||
"description": "Здесь содержится дополнительная информация по теме.",
|
|
||||||
"name": "Дополнительная информация",
|
|
||||||
"title": "Дополнительная информация",
|
|
||||||
"titleOfCategoriesSection": "Категории",
|
|
||||||
"titleOfHashtagsSection": "Хэштеги",
|
|
||||||
"titleOfRelatedContributionsSection": "Похожие посты"
|
|
||||||
},
|
|
||||||
"name": "Пост",
|
"name": "Пост",
|
||||||
"pinned": "Объявление",
|
"pinned": "Объявление",
|
||||||
"takeAction": {
|
"takeAction": {
|
||||||
|
|||||||
@ -55,25 +55,16 @@ export default {
|
|||||||
},
|
},
|
||||||
// TODO implement
|
// TODO implement
|
||||||
/* {
|
/* {
|
||||||
name: this.$t('common.letsTalk'),
|
name: this.$t('common.letsTalk'),
|
||||||
path: `/post/${id}/${slug}#lets-talk`
|
path: `/post/${id}/${slug}#lets-talk`
|
||||||
}, */
|
}, */
|
||||||
// TODO implement
|
// TODO implement
|
||||||
/* {
|
/* {
|
||||||
name: this.$t('common.versus'),
|
name: this.$t('common.versus'),
|
||||||
path: `/post/${id}/${slug}#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`
|
|
||||||
} */
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>
|
|
||||||
@ -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>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user