mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
linting
This commit is contained in:
parent
eda58c25e3
commit
a7fb3f0095
@ -1,26 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<ds-card :image="post.image" :class="{'post-card': true, 'disabled-content': post.disabled}">
|
<ds-card
|
||||||
|
:image="post.image"
|
||||||
|
:class="{'post-card': true, 'disabled-content': post.disabled}"
|
||||||
|
>
|
||||||
<!-- Post Link Target -->
|
<!-- Post Link Target -->
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
class="post-link"
|
class="post-link"
|
||||||
:to="{ name: 'post-id-slug', params: { id: post.id, slug: post.slug } }"
|
:to="{ name: 'post-id-slug', params: { id: post.id, slug: post.slug } }"
|
||||||
>{{ post.title }}</nuxt-link>
|
>
|
||||||
<ds-space margin-bottom="small"/>
|
{{ post.title }}
|
||||||
|
</nuxt-link>
|
||||||
|
<ds-space margin-bottom="small" />
|
||||||
<!-- Username, Image & Date of Post -->
|
<!-- Username, Image & Date of Post -->
|
||||||
<div>
|
<div>
|
||||||
<no-ssr>
|
<no-ssr>
|
||||||
<hc-user :user="post.author" :trunc="35" :date-time="post.createdAt"/>
|
<hc-user
|
||||||
|
:user="post.author"
|
||||||
|
:trunc="35"
|
||||||
|
:date-time="post.createdAt"
|
||||||
|
/>
|
||||||
</no-ssr>
|
</no-ssr>
|
||||||
<hc-ribbon :text="$t('post.name')"/>
|
<hc-ribbon :text="$t('post.name')" />
|
||||||
</div>
|
</div>
|
||||||
<ds-space margin-bottom="small"/>
|
<ds-space margin-bottom="small" />
|
||||||
<!-- Post Title -->
|
<!-- Post Title -->
|
||||||
<ds-heading tag="h3" no-margin>{{ post.title }}</ds-heading>
|
<ds-heading
|
||||||
<ds-space margin-bottom="small"/>
|
tag="h3"
|
||||||
|
no-margin
|
||||||
|
>
|
||||||
|
{{ post.title }}
|
||||||
|
</ds-heading>
|
||||||
|
<ds-space margin-bottom="small" />
|
||||||
<!-- Post Content Excerpt -->
|
<!-- Post Content Excerpt -->
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
<!-- TODO: replace editor content with tiptap render view -->
|
<!-- TODO: replace editor content with tiptap render view -->
|
||||||
<div class="hc-editor-content" v-html="excerpt"/>
|
<div
|
||||||
|
class="hc-editor-content"
|
||||||
|
v-html="excerpt"
|
||||||
|
/>
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
<!-- Footer o the Post -->
|
<!-- Footer o the Post -->
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
@ -37,17 +54,21 @@
|
|||||||
<div style="display: inline-block; float: right">
|
<div style="display: inline-block; float: right">
|
||||||
<!-- Shouts Count -->
|
<!-- Shouts Count -->
|
||||||
<span :style="{ opacity: post.shoutedCount ? 1 : .5 }">
|
<span :style="{ opacity: post.shoutedCount ? 1 : .5 }">
|
||||||
<ds-icon name="bullhorn"/>
|
<ds-icon name="bullhorn" />
|
||||||
<small>{{ post.shoutedCount }}</small>
|
<small>{{ post.shoutedCount }}</small>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- Comments Count -->
|
<!-- Comments Count -->
|
||||||
<span :style="{ opacity: post.commentsCount ? 1 : .5 }">
|
<span :style="{ opacity: post.commentsCount ? 1 : .5 }">
|
||||||
<ds-icon name="comments"/>
|
<ds-icon name="comments" />
|
||||||
<small>{{ post.commentsCount }}</small>
|
<small>{{ post.commentsCount }}</small>
|
||||||
</span>
|
</span>
|
||||||
<!-- Menu -->
|
<!-- Menu -->
|
||||||
<content-menu resource-type="contribution" :resource="post" :is-owner="isAuthor"/>
|
<content-menu
|
||||||
|
resource-type="contribution"
|
||||||
|
:resource="post"
|
||||||
|
:is-owner="isAuthor"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</no-ssr>
|
</no-ssr>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user