Remove stuff including the chat function & TOS & Privacy Policy windows

& simplified the archive URL.
This commit is contained in:
yuanhau 2025-07-06 17:50:35 +08:00
parent aa8fb3a2d2
commit 3a3c2c81e2
14 changed files with 20 additions and 573 deletions

View file

@ -117,7 +117,7 @@ const starArticle = async () => {
};
onMounted(async () => {
const req = await fetch(`/user/${slug}/star`);
const req = await fetch(`/api/user/${slug}/star`);
const res = await req.json();
staredStatus.value = res;
});
@ -137,7 +137,7 @@ onMounted(async () => {
</div>
<div
v-if="loadingTranslations"
class="flex flex-col bg-gray-200/50 text-black w-full h-full absolute inset-0 justify-center align-middle text-center z-[20] backdrop-blur-sm"
class="flex flex-col bg-gray-200/50 text-black w-full h-full fixed inset-0 justify-center align-middle text-center z-[20] backdrop-blur-sm"
>
<!--Spinner from https://flowbite.com/docs/components/spinner/-->
<div role="status">
@ -164,10 +164,7 @@ onMounted(async () => {
class="justify-center align-center text-center flex flex-col md:flex-row flex-wrap"
>
<div class="flex flex-col">
<div class="p-4 w-full h-fit pt-0 mt-0">
<img v-if="data.images[0]" :src="data.images[0]" class="rounded" />
</div>
<div class="group -translate-y-12 backdrop-blur-lg bg-gray-300/40">
<div class="group translate-y-12">
<h2 class="text-3xl text-bold">
{{
displayTranslatedText
@ -189,6 +186,9 @@ onMounted(async () => {
}}</span
>
</div>
<div class="p-4 w-full h-fit pt-0 mt-0">
<img v-if="data.images[0]" :src="data.images[0]" class="rounded" />
</div>
<div class="text-center" v-for="item in data.paragraph">
{{ displayTranslatedText ? translateItem[item]?.translateText : item }}
</div>
@ -212,16 +212,6 @@ onMounted(async () => {
<div v-else>{{ summaryText }}</div>
</div>
</div>
<!--<div class="flex flex-col bg-gray-500">
<!--Similar articles-->
<!--<div class="flex flex-row" v-for="item in likeart">
<img /><!--Image-->
<!--<div class="flex flex-col">
<h2>title</h2>
<span>description</span>
</div>
</div>
</div>-->
<button
@click="starArticle"
:class="[