mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +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",
|
||||
"loading": "wird geladen",
|
||||
"loadMore": "mehr laden",
|
||||
"moreInfo": "Mehr Info",
|
||||
"name": "Name",
|
||||
"organization": "Organisation ::: Organisationen",
|
||||
"post": "Beitrag ::: Beiträge",
|
||||
@ -485,14 +484,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": {
|
||||
|
||||
@ -102,7 +102,6 @@
|
||||
"letsTalk": "Let`s Talk",
|
||||
"loading": "loading",
|
||||
"loadMore": "load more",
|
||||
"moreInfo": "More Info",
|
||||
"name": "Name",
|
||||
"organization": "Organization ::: Organizations",
|
||||
"post": "Post ::: Posts",
|
||||
@ -485,14 +484,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": {
|
||||
|
||||
@ -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",
|
||||
@ -420,14 +419,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": {
|
||||
|
||||
@ -98,7 +98,6 @@
|
||||
"letsTalk": "Parlons-en",
|
||||
"loading": "chargement",
|
||||
"loadMore": "charger plus",
|
||||
"moreInfo": "Plus d'infos",
|
||||
"name": "Nom",
|
||||
"organization": "Organisation ::: Organisations",
|
||||
"post": "Message ::: Messages",
|
||||
@ -408,14 +407,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": {
|
||||
|
||||
@ -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",
|
||||
@ -361,14 +360,6 @@
|
||||
"unpin": null,
|
||||
"unpinnedSuccessfully": null
|
||||
},
|
||||
"moreInfo": {
|
||||
"description": null,
|
||||
"name": "Ulteriori informazioni",
|
||||
"title": null,
|
||||
"titleOfCategoriesSection": null,
|
||||
"titleOfHashtagsSection": null,
|
||||
"titleOfRelatedContributionsSection": null
|
||||
},
|
||||
"name": "Messaggio",
|
||||
"pinned": null,
|
||||
"takeAction": {
|
||||
|
||||
@ -52,7 +52,6 @@
|
||||
"letsTalk": "Laten we praten",
|
||||
"loading": "inlading",
|
||||
"loadMore": "meer laden",
|
||||
"moreInfo": "Meer info",
|
||||
"name": "Naam",
|
||||
"organization": "Organisatie ::: Organisaties",
|
||||
"post": "Bericht ::: Berichten",
|
||||
|
||||
@ -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",
|
||||
@ -203,9 +202,6 @@
|
||||
"delete": "Usuń wpis",
|
||||
"edit": "Edytuj wpis"
|
||||
},
|
||||
"moreInfo": {
|
||||
"name": "Więcej informacji"
|
||||
},
|
||||
"name": "Poczta",
|
||||
"takeAction": {
|
||||
"name": "Podejmij działanie"
|
||||
|
||||
@ -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",
|
||||
@ -397,14 +396,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": {
|
||||
|
||||
@ -98,7 +98,6 @@
|
||||
"letsTalk": "Давай поговорим",
|
||||
"loading": "загрузка",
|
||||
"loadMore": "Загрузить ещё",
|
||||
"moreInfo": "Больше информации",
|
||||
"name": "Имя",
|
||||
"organization": "Организация ::: Организации ::: Организации",
|
||||
"post": "Пост ::: Посты ::: Посты",
|
||||
@ -420,14 +419,6 @@
|
||||
"unpin": "Открепить пост",
|
||||
"unpinnedSuccessfully": "Пост успешно не закреплено!"
|
||||
},
|
||||
"moreInfo": {
|
||||
"description": "Здесь содержится дополнительная информация по теме.",
|
||||
"name": "Дополнительная информация",
|
||||
"title": "Дополнительная информация",
|
||||
"titleOfCategoriesSection": "Категории",
|
||||
"titleOfHashtagsSection": "Хэштеги",
|
||||
"titleOfRelatedContributionsSection": "Похожие посты"
|
||||
},
|
||||
"name": "Пост",
|
||||
"pinned": "Объявление",
|
||||
"takeAction": {
|
||||
|
||||
@ -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`
|
||||
} */
|
||||
]
|
||||
},
|
||||
},
|
||||
|
||||
@ -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