Remove some files & trying to make the desktop look more fun & I'm going

to sleep now.
This commit is contained in:
yuanhau 2025-05-22 00:09:01 +08:00
parent c8429ee1a3
commit 109a39f6e9
12 changed files with 458 additions and 119 deletions

View file

@ -10,7 +10,7 @@ const props = defineProps<{
black?: boolean | false;
}>();
const emit = defineEmits(["close", "min", "maximize", "restore"]);
const emit = defineEmits(["close", "min", "restore"]);
const title = computed(() => props.title || "Draggable Window");
const isDragging = ref(false);
@ -86,12 +86,6 @@ const stopDrag = () => {
>
</button>
<button
@click="emit('maximize')"
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-600 rounded transition duration-200"
>
</button>
<button
@click="emit('close')"
class="p-1 rounded bg-red-500 text-white hover:bg-red-600 transition duration-200"

View file

@ -2,12 +2,26 @@
import BlurPageBeforeLogin from "~/components/blurPageBeforeLogin.vue";
const { t } = useI18n();
const { data: favData, error, pending } = useFetch("/api/user/fav", {});
const openApp = (link: string) => {
console.log(link);
};
</script>
<template>
<BlurPageBeforeLogin>
<div>
<div
class="justify-center text-center align-center flex flex-row flex-wrap"
>
<div v-for="items in favData.items">
{{ items }}
<div
@click="openApp(items.article_link)"
class="cursor-pointer p-4 bg-gray-300/80 rounded-xl backdrop-blur-sm hover:-translate-y-2 transition-all duration-200"
>
<h1 class="text-2xl text-bold">{{ items.name }}</h1>
<div class="flex flex-row gap-2 text-center">
<span>Date:</span>
<span>{{ items.favTime }}</span>
</div>
</div>
</div>
</div>
</BlurPageBeforeLogin>