This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-07-22 13:19:23 -07:00
|
|
|
|
<template>
|
2020-07-28 09:55:51 -07:00
|
|
|
|
<div v-show="!filter || filter === source.type" class="my-2">
|
2020-07-25 10:21:52 -07:00
|
|
|
|
<Icon :v="source.icon()"/>
|
2020-07-24 04:25:21 -07:00
|
|
|
|
<strong>{{source.author}}<span v-if="source.author"> – </span><em><a v-if="source.link" :href="source.link" target="_blank" rel="noopener">{{source.title}}</a><span v-else>{{source.title}}</span></em></strong><template v-if="source.extra"> ({{source.extra}})</template>, {{source.year}}<template v-if="source.comment">; {{source.comment}}</template>
|
2020-07-22 13:19:23 -07:00
|
|
|
|
<ul v-if="source.fragments.length">
|
|
|
|
|
<li v-for="fragment in source.fragments">
|
|
|
|
|
„<span v-html="fragment.replace(/\n/g, '<br/>')"></span>”
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-07-25 10:21:52 -07:00
|
|
|
|
import { sources } from '../src/data';
|
|
|
|
|
|
2020-07-22 13:19:23 -07:00
|
|
|
|
export default {
|
|
|
|
|
props: {
|
2020-07-25 10:21:52 -07:00
|
|
|
|
name: { required: true },
|
2020-07-27 10:06:41 -07:00
|
|
|
|
filter: { default: '' },
|
2020-07-25 10:21:52 -07:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
source: sources[this.name],
|
|
|
|
|
};
|
2020-07-22 13:19:23 -07:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|