mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
feat: enhance localization by adding new app strings and descriptions; implement sources window for news sources display
This commit is contained in:
parent
3f60015b82
commit
26d3998a70
6 changed files with 86 additions and 9 deletions
22
components/app/windows/sources.vue
Normal file
22
components/app/windows/sources.vue
Normal file
|
@ -0,0 +1,22 @@
|
|||
<script setup lang="ts">
|
||||
const { t, locale } = useI18n();
|
||||
|
||||
const { data: source, pending, error } = await useFetch("/api/getData/fetchSources", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: {
|
||||
lang: locale,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div >
|
||||
<div v-for="item in source.data" :key="item.id">
|
||||
<h1>{{ item.title }}</h1>
|
||||
<span>{{ item.description }}</span>
|
||||
<a :href="item.url">{{ item.url }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue