-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from fumeapp/docs
🎨 great start on docs
- Loading branch information
Showing
27 changed files
with
6,195 additions
and
7,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup lang="ts"> | ||
import type { Cartridge, Pen } from '@prisma/client' | ||
import type { MetapiResponse } from '~/types/metapi' | ||
const { user } = useUserSession() | ||
const { data: pens, refresh: pensRefresh } = await useFetch<MetapiResponse<Pen[]>>(`/api/user/${user.value.id}/pen`) | ||
const { data: cartridges, refresh: cartridgesRefresh } = await useFetch<MetapiResponse<Cartridge[]>>(`/api/user/${user.value.id}/cartridge`) | ||
const reload = async () => { | ||
await pensRefresh() | ||
await cartridgesRefresh() | ||
} | ||
</script> | ||
|
||
<template> | ||
<div v-if="pens?.data.length === 0" class="w-full max-w-md mx-auto"> | ||
<u-alert | ||
icon="i-mdi-clock" | ||
title="Awaiting Implementation" | ||
description="We are still setting up your account, check back soon!" | ||
:actions="[{ label: 'Refresh', icon: 'i-mdi-refresh', onClick: reload, variant: 'solid' }]" | ||
/> | ||
</div> | ||
<pen-list | ||
v-else-if="pens && cartridges" | ||
:pens="pens?.data" | ||
:cartridges="cartridges?.data" | ||
readonly | ||
@reload="reload" | ||
/> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,9 @@ | ||
<template> | ||
<div> | ||
<header-main /> | ||
<u-main class="bg-gray-100 dark:bg-gray-950 overlay flex flex-col w-full"> | ||
<div class="py-2 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto w-full flex-1"> | ||
<slot /> | ||
</div> | ||
</u-main> | ||
<layout-footer /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.gradient { | ||
position: absolute; | ||
inset: 0; | ||
pointer-events: none; | ||
background: radial-gradient(50% 50% at 50% 50%, rgb(var(--color-primary-500) / 0.25) 0, #FFF 100%); | ||
} | ||
.dark { | ||
.gradient { | ||
background: radial-gradient(50% 50% at 50% 50%, rgb(var(--color-primary-400) / 0.1) 0, rgb(var(--color-gray-950)) 100%); | ||
} | ||
} | ||
.overlay { | ||
background-size: 100px 100px; | ||
background-image: | ||
linear-gradient(to right, rgb(var(--color-gray-200)) 0.5px, transparent 0.5px), | ||
linear-gradient(to bottom, rgb(var(--color-gray-200)) 0.5px, transparent 0.5px); | ||
} | ||
.dark { | ||
.overlay { | ||
background-image: | ||
linear-gradient(to right, rgb(var(--color-gray-900)) 0.5px, transparent 0.5px), | ||
linear-gradient(to bottom, rgb(var(--color-gray-900)) 0.5px, transparent 0.5px); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup lang="ts"> | ||
import type { NavItem } from '@nuxt/content' | ||
const navigation = inject<Ref<NavItem[]>>('navigation') | ||
</script> | ||
|
||
<template> | ||
<u-main class="bg-gray-100 dark:bg-gray-950 overlay flex flex-col w-full"> | ||
<UContainer> | ||
<UPage> | ||
<template #left> | ||
<UAside> | ||
<UNavigationTree :links="mapContentNavigation(navigation[0].children)" /> | ||
</UAside> | ||
</template> | ||
|
||
<slot /> | ||
</UPage> | ||
</UContainer> | ||
</u-main> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.