mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +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', () => {
|
||||
beforeEach(() => {
|
||||
propsData.post= {
|
||||
propsData.post = {
|
||||
title: "It's a title"
|
||||
}
|
||||
})
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import seo from '~/components/mixins/seo'
|
||||
import seo from '~/mixins/seo'
|
||||
|
||||
export default {
|
||||
mixins: [seo]
|
||||
|
||||
@ -120,7 +120,7 @@ import SearchInput from '~/components/SearchInput.vue'
|
||||
import Modal from '~/components/Modal'
|
||||
import NotificationMenu from '~/components/notifications/NotificationMenu'
|
||||
import Dropdown from '~/components/Dropdown'
|
||||
import seo from '~/components/mixins/seo'
|
||||
import seo from '~/mixins/seo'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
methods: {
|
||||
removeLinks(content){
|
||||
removeLinks(content) {
|
||||
if (!content) return ''
|
||||
// remove all links from excerpt to prevent issues with the surrounding link
|
||||
let excerpt = content.replace(/<a.*>(.+)<\/a>/gim, '$1')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user