mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Move mixins to the right place
This commit is contained in:
parent
4f2e70e871
commit
c4577aa3e8
@ -48,7 +48,7 @@ describe('PostCard', () => {
|
|||||||
|
|
||||||
describe('given a post', () => {
|
describe('given a post', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
propsData.post= {
|
propsData.post = {
|
||||||
title: "It's a title"
|
title: "It's a title"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import seo from '~/components/mixins/seo'
|
import seo from '~/mixins/seo'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [seo]
|
mixins: [seo]
|
||||||
|
|||||||
@ -120,7 +120,7 @@ import SearchInput from '~/components/SearchInput.vue'
|
|||||||
import Modal from '~/components/Modal'
|
import Modal from '~/components/Modal'
|
||||||
import NotificationMenu from '~/components/notifications/NotificationMenu'
|
import NotificationMenu from '~/components/notifications/NotificationMenu'
|
||||||
import Dropdown from '~/components/Dropdown'
|
import Dropdown from '~/components/Dropdown'
|
||||||
import seo from '~/components/mixins/seo'
|
import seo from '~/mixins/seo'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
removeLinks(content){
|
removeLinks(content) {
|
||||||
if (!content) return ''
|
if (!content) return ''
|
||||||
// remove all links from excerpt to prevent issues with the surrounding link
|
// remove all links from excerpt to prevent issues with the surrounding link
|
||||||
let excerpt = content.replace(/<a.*>(.+)<\/a>/gim, '$1')
|
let excerpt = content.replace(/<a.*>(.+)<\/a>/gim, '$1')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user