mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Add a few more database tables & made the api pull from the database
when then article exists & not ddos line today, Also made a basic newsView with the api & the scraping script now scraps more stuff! :D
This commit is contained in:
parent
fe5e2d996e
commit
b62a3cda3d
6 changed files with 84 additions and 40 deletions
11
components/app/windows/newsView.vue
Normal file
11
components/app/windows/newsView.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script setup lang="ts">
|
||||
const { data, error, pending } = useFetch("/api/get/lt/kEJjxKw"); //demo URL
|
||||
</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>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue