From 18fbf98695a57d99bc63f34be8ad6ada238aee6b Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 2 Sep 2024 21:11:02 +0200 Subject: [PATCH] Working --- app/app.config.ts | 5 ++++ app/components/App/Tab.vue | 2 +- app/composables/users.ts | 2 -- app/pages/[user].vue | 47 ++++++++++++++++++++++++++++++++++++-- app/pages/index.vue | 13 +++++++++++ 5 files changed, 64 insertions(+), 5 deletions(-) diff --git a/app/app.config.ts b/app/app.config.ts index caa3c23..73cf2eb 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -26,5 +26,10 @@ export default defineAppConfig({ }, }, }, + avatar: { + size: { + '5xl': 'h-24 w-24 text-5xl', + }, + }, }, }) diff --git a/app/components/App/Tab.vue b/app/components/App/Tab.vue index e6a7139..ff673cb 100644 --- a/app/components/App/Tab.vue +++ b/app/components/App/Tab.vue @@ -51,7 +51,7 @@ function openDeleteTabModal(tab: TabType) { function visitLink() { if (!props.editMode) { window.open(props.tab.link, '_blank') - // add view count + // todo: add view count } } diff --git a/app/composables/users.ts b/app/composables/users.ts index a421d63..eaea966 100644 --- a/app/composables/users.ts +++ b/app/composables/users.ts @@ -42,9 +42,7 @@ export async function useUser() { method: 'PATCH', body: JSON.stringify(user), }) - console.log(session.value) await fetch() - console.log(session.value) useSuccessToast('User successfully updated!') } catch (error) { diff --git a/app/pages/[user].vue b/app/pages/[user].vue index cee0e73..4675a6c 100644 --- a/app/pages/[user].vue +++ b/app/pages/[user].vue @@ -26,6 +26,11 @@ onMounted(() => { useErrorToast('This user\'s profile is private.', 'Look for another user.') } }) + +function visitLink(link: string) { + window.open(link, '_blank') + // todo: add view count +}