test rss? and made some more files.

This commit is contained in:
yuanhau 2025-05-07 23:23:33 +08:00
parent 569cd087e7
commit 5f897f1bd0
13 changed files with 132 additions and 2 deletions

3
pages/app/headlines.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
</template>

3
pages/app/index.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
<h1>The "For you page"</h1>
</template>

25
pages/app/list/google.vue Normal file
View 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
View file

@ -0,0 +1,3 @@
<template>
https://tw.news.yahoo.com/rss/
</template>

View 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>