-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
4,508 additions
and
2,279 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
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,5 @@ | ||
# Production license for @nuxt/ui-pro, get one at https://ui.nuxt.com/pro/purchase | ||
NUXT_UI_PRO_LICENSE= | ||
|
||
# Public URL, used for OG Image when running nuxt generate | ||
NUXT_PUBLIC_SITE_URL= |
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 @@ | ||
shamefully-hoist=true |
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 @@ | ||
imports.autoImport=true |
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,46 @@ | ||
export default defineAppConfig({ | ||
ui: { | ||
primary: 'green', | ||
gray: 'slate', | ||
footer: { | ||
bottom: { | ||
left: 'text-sm text-gray-500 dark:text-gray-400', | ||
wrapper: 'border-t border-gray-200 dark:border-gray-800', | ||
}, | ||
}, | ||
variables: { | ||
dark: { | ||
background: 'var(--color-gray-950)', | ||
}, | ||
}, | ||
}, | ||
seo: { | ||
siteName: 'Nuxt Scripts', | ||
}, | ||
header: { | ||
links: [{ | ||
'icon': 'i-simple-icons-github', | ||
'to': 'https://github.com/nuxt-hub/core', | ||
'target': '_blank', | ||
'aria-label': 'Nuxt Scripts', | ||
}], | ||
}, | ||
toc: { | ||
title: 'Table of Contents', | ||
bottom: { | ||
title: 'Community', | ||
edit: 'https://github.com/nuxt-hub/core/edit/main/docs/content', | ||
links: [{ | ||
icon: 'i-heroicons-star', | ||
label: 'Star on GitHub', | ||
to: 'https://github.com/nuxt-hub/core', | ||
target: '_blank', | ||
}, { | ||
icon: 'i-simple-icons-nuxtdotjs', | ||
label: 'Nuxt Scripts Admin', | ||
to: 'https://admin.hub.nuxt.com', | ||
target: '_blank', | ||
}], | ||
}, | ||
}, | ||
}) |
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,50 @@ | ||
<script setup lang="ts"> | ||
import type { ParsedContent } from '@nuxt/content/dist/runtime/types' | ||
const { seo } = useAppConfig() | ||
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation()) | ||
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', { | ||
default: () => [], | ||
server: false, | ||
}) | ||
useHead({ | ||
meta: [ | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
], | ||
link: [ | ||
{ rel: 'icon', href: '/favicon.ico' }, | ||
], | ||
htmlAttrs: { | ||
lang: 'en', | ||
}, | ||
}) | ||
useSeoMeta({ | ||
ogSiteName: seo?.siteName, | ||
twitterCard: 'summary_large_image', | ||
}) | ||
provide('navigation', navigation.value?.[0]?.children || []) | ||
</script> | ||
|
||
<template> | ||
<div class="bg-white dark:bg-gray-950"> | ||
<Header /> | ||
|
||
<UMain> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</UMain> | ||
|
||
<Footer /> | ||
|
||
<ClientOnly> | ||
<LazyUContentSearch :files="files" :navigation="navigation" /> | ||
</ClientOnly> | ||
|
||
<UNotifications /> | ||
</div> | ||
</template> |
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,26 @@ | ||
<script setup lang="ts"> | ||
const { footer } = useAppConfig() | ||
const links = [ | ||
] | ||
</script> | ||
|
||
<template> | ||
<UFooter :links="links"> | ||
<template #left> | ||
<span class="inline">Made by <a href="https://nuxtlabs.com" target="_blank" class="text-gray-900 dark:text-gray-50 hover:underline underline-offset-2 font-medium">Harlan Wilton</a>.</span> | ||
</template> | ||
|
||
<template #right> | ||
<UColorModeButton v-if="footer?.colorMode" /> | ||
<template v-if="footer?.links"> | ||
<UButton | ||
v-for="(link, index) of footer?.links" | ||
:key="index" | ||
v-bind="{ color: 'gray', variant: 'ghost', ...link }" | ||
/> | ||
</template> | ||
</template> | ||
</UFooter> | ||
</template> |
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,47 @@ | ||
<script setup lang="ts"> | ||
import type { NavItem } from '@nuxt/content/dist/runtime/types' | ||
const navigation = inject<NavItem[]>('navigation', []) | ||
const { metaSymbol } = useShortcuts() | ||
const { header } = useAppConfig() | ||
const links = [ | ||
{ | ||
label: 'Guides', | ||
to: '/docs/getting-started', | ||
}, | ||
{ | ||
label: 'Script Registry', | ||
to: '/scripts', | ||
}, | ||
{ | ||
label: 'API', | ||
to: '/docs/api', | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<UHeader :ui="{}" :links="links"> | ||
<template #logo> | ||
<Logo /> | ||
</template> | ||
|
||
<template #right> | ||
<UTooltip text="Search" :shortcuts="[metaSymbol, 'K']" :popper="{ strategy: 'absolute' }"> | ||
<UContentSearchButton :label="null" /> | ||
</UTooltip> | ||
<UColorModeButton /> | ||
<template v-if="header?.links"> | ||
<UButton | ||
v-for="(link, index) of header.links" | ||
:key="index" | ||
v-bind="{ color: 'gray', variant: 'ghost', ...link }" | ||
/> | ||
</template> | ||
</template> | ||
<template #panel> | ||
<UNavigationTree :links="mapContentNavigation(navigation)" /> | ||
</template> | ||
</UHeader> | ||
</template> |
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,5 @@ | ||
<template> | ||
<div> | ||
Nuxt<span style="color: #00dc82;">Scripts</span> | ||
</div> | ||
</template> |
Oops, something went wrong.