Move mixins to the right place

This commit is contained in:
Robert Schäfer 2019-04-17 00:04:06 +02:00
parent 4f2e70e871
commit c4577aa3e8
5 changed files with 4 additions and 4 deletions

View File

@ -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"
} }
}) })

View File

@ -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]

View File

@ -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: {

View File

@ -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')