|
|
@ -33,7 +33,8 @@ const renderedText = computedAsync(async () => { |
|
|
|
.process( |
|
|
|
.process( |
|
|
|
Description.replace(/!\[.*?\]\(.*?\)/g, '') |
|
|
|
Description.replace(/!\[.*?\]\(.*?\)/g, '') |
|
|
|
.substring(0, 300) |
|
|
|
.substring(0, 300) |
|
|
|
.concat('...'), |
|
|
|
.concat('...') |
|
|
|
|
|
|
|
.concat(` [Read more](${Url})`), |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -43,7 +44,7 @@ const renderedText = computedAsync(async () => { |
|
|
|
<div class="flex items-center justify-between px-5 py-4"> |
|
|
|
<div class="flex items-center justify-between px-5 py-4"> |
|
|
|
<div class="flex items-center gap-3"> |
|
|
|
<div class="flex items-center gap-3"> |
|
|
|
<component :is="feedIcon[source as any]" class="w-4 h-4 stroke-transparent" /> |
|
|
|
<component :is="feedIcon[source as any]" class="w-4 h-4 stroke-transparent" /> |
|
|
|
<span class="font-weight-medium leading-5"> |
|
|
|
<span class="font-weight-medium leading-5 cursor-pointer" @click="openLink(Url)"> |
|
|
|
{{ source }} |
|
|
|
{{ source }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -74,4 +75,10 @@ const renderedText = computedAsync(async () => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"></style> |
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
.prose { |
|
|
|
|
|
|
|
a { |
|
|
|
|
|
|
|
@apply !text-gray-900; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|