remaining changes...

This commit is contained in:
Henry Jameson 2020-10-21 00:01:28 +03:00
parent 3cbaa00449
commit a50cd7e37d
23 changed files with 162 additions and 97 deletions

View file

@ -7,6 +7,24 @@ import fileType from 'src/services/file_type/file_type.service'
import { processHtml } from 'src/services/tiny_post_html_processor/tiny_post_html_processor.service.js'
import { mentionMatchesUrl, extractTagFromUrl } from 'src/services/matcher/matcher.service.js'
import { mapGetters, mapState } from 'vuex'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faCircleNotch,
faFile,
faMusic,
faImage,
faLink,
faPollH
} from '@fortawesome/free-solid-svg-icons'
library.add(
faCircleNotch,
faFile,
faMusic,
faImage,
faLink,
faPollH
)
const StatusContent = {
name: 'StatusContent',

View file

@ -55,29 +55,29 @@
@click.prevent="toggleShowMore"
>
{{ $t("status.show_content") }}
<span
<FAIcon
v-if="attachmentTypes.includes('image')"
class="icon-picture"
icon="image"
/>
<span
<FAIcon
v-if="attachmentTypes.includes('video')"
class="icon-video"
icon="video"
/>
<span
<FAIcon
v-if="attachmentTypes.includes('audio')"
class="icon-music"
icon="music"
/>
<span
<FAIcon
v-if="attachmentTypes.includes('unknown')"
class="icon-doc"
icon="file"
/>
<span
<FAIcon
v-if="status.poll && status.poll.options"
class="icon-chart-bar"
icon="poll-h"
/>
<span
<FAIcon
v-if="status.card"
class="icon-link"
icon="link"
/>
</a>
<a
@ -182,6 +182,10 @@ $status-margin: 0.75em;
text-align: center;
display: inline-block;
word-break: break-all;
svg {
color: inherit;
}
}
img, video {