Enhance dashboard components with new icons, layout adjustments, and improved file display

This commit is contained in:
grngxd 2025-06-21 20:27:32 +01:00
parent f164351011
commit b36d3b76a1
9 changed files with 159 additions and 26 deletions

View file

@ -1,4 +1,4 @@
import { $, component$, Slot, useOnDocument } from '@builder.io/qwik';
import { $, component$, Slot, useOnDocument, useVisibleTask$ } from '@builder.io/qwik';
import AOS from 'aos';
import 'aos/dist/aos.css';
import { useNanostore$ } from '~/hooks/nanostores';
@ -9,8 +9,11 @@ import { StereoUser } from '~/lib/types';
export default component$(() => {
const info = useNanostore$<StereoUser>(userInfo);
useVisibleTask$(async () => {
info.value = await api.me();
})
useOnDocument("DOMContentLoaded", $(async () => {
info.value = await api.me()
AOS.init({
once: true,