mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
test rss? and made some more files.
This commit is contained in:
parent
569cd087e7
commit
5f897f1bd0
13 changed files with 132 additions and 2 deletions
3
pages/app/headlines.vue
Normal file
3
pages/app/headlines.vue
Normal file
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
|
||||
</template>
|
3
pages/app/index.vue
Normal file
3
pages/app/index.vue
Normal file
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<h1>The "For you page"</h1>
|
||||
</template>
|
25
pages/app/list/google.vue
Normal file
25
pages/app/list/google.vue
Normal file
|
@ -0,0 +1,25 @@
|
|||
<script lang="ts" setup>
|
||||
const ffeed = ref();
|
||||
|
||||
try {
|
||||
const { data } = await useFetch('/api/rss/google')
|
||||
ffeed.value = data.value
|
||||
} catch (error) {
|
||||
console.error('Error:', error)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{{ ffeed }}
|
||||
<hr/>
|
||||
<div v-for="item in ffeed">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<h4>{{ item.date }}</h4>
|
||||
類似項目:
|
||||
<div v-for="itit in item.content">
|
||||
{{ itit }}
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
</template>
|
3
pages/app/list/yahoo.vue
Normal file
3
pages/app/list/yahoo.vue
Normal file
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
https://tw.news.yahoo.com/rss/
|
||||
</template>
|
9
pages/app/news/[provider]/[slug].vue
Normal file
9
pages/app/news/[provider]/[slug].vue
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
const route = useRoute();
|
||||
|
||||
const provider = route.params.provider;
|
||||
const slug = route.params.slug;
|
||||
</script>
|
||||
<template>
|
||||
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue