mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 00:01:03 +08:00
i18n stuff & update some more to add images and unknown data oh, also paragraphs are now a thing :) and do so much debugging.
16 lines
646 B
Vue
16 lines
646 B
Vue
<script setup lang="ts">
|
|
// FOR THIS MODULE DO NOT USE THE ?APPNAME URL TYPE, IT WILL FALL AT ALL TIMES, I HAVE NO CLUE WHY IS BEHAVIOR HAPPENING RN?
|
|
const { data, error, pending } = await useFetch("/api/news/get/lt/kEJjxKw"); //demo URL
|
|
console.log(data.value);
|
|
console.log(error.value);
|
|
</script>
|
|
<template>
|
|
<div class="justify-center align-center text-center flex flex-col">
|
|
<h2 class="text-3xl text-bold">{{ data.title }}</h2>
|
|
<span class="text-lg text-bold"
|
|
>origin: {{ data.origin }} • author: {{ data.author }}</span
|
|
>
|
|
<div class="test-center" v-for="item in data.paragraph">{{ item }}</div>
|
|
</div>
|
|
</template>
|