Change to axios as there is no way to get the profile pic via the raw

html & remove the legacy hot news by google rss window, (it is still
accessable via the tty interface) and update i18n with the aboutNewsOrg
thingy added articles (that currently does not work) & also added the
privacy policy & tos page, both only accessbile via the tty interface
for now. It will be avaible via the settings interface.
This commit is contained in:
yuanhau 2025-06-03 16:40:25 +08:00
parent 12455ebd28
commit f0e33905b8
10 changed files with 74 additions and 14 deletions

View file

@ -16,11 +16,13 @@ const props = defineProps({
},
});
const staticProps = props;
const {
data: fetchNewsOrgInfo,
pending,
error,
} = useFetch(`/api/cached/getData/fetchNewsOrgInfo/${props.values}`, {
} = useFetch(`/api/publishers/lt/${staticProps.values}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
@ -73,18 +75,25 @@ watch(
<a
:href="fetchNewsOrgInfo?.website"
target="_blank"
v-if="fetchNewsOrgInfo?.website"
class="text-gray-800 hover:text-gray-500 transiton-all duration-150 flex flex-row"
><GlobeAltIcon class="w-6 h-6" />網站</a
>
<a
:href="fetchNewsOrgInfo?.facebook"
target="_blank"
v-if="fetchNewsOrgInfo?.facebook"
class="text-gray-800 hover:text-gray-500 transiton-all duration-150 flex flex-row"
><Facebook class="w-6 h-6" />Facebook
</a>
</div>
</div>
</div>
<div>
<div v-for="item in fetchNewsOrgInfo?.articles">
{{ item.title }}
</div>
</div>
</div>
</div>
</template>

View file

@ -0,0 +1,9 @@
<script setup lang="ts">
const { t } = useI18n();
</script>
<template>
<div class="justify-center align-center text-center">
<h1 class="text-2xl text-bold">{{ t("pages.privacypolicy.title") }}</h1>
<p>{{ t("pages.privacypolicy.content") }}</p>
</div>
</template>

View file

@ -0,0 +1,6 @@
<script setup lang="ts">
const { t } = useI18n();
</script>
<template>
<div></div>
</template>