-
Notifications
You must be signed in to change notification settings - Fork 34
Major Upgrade - Latest Nuxt Packages #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
099de73
update tailwind
bryantgillespie 637695b
add content config
bryantgillespie df20672
Merge branch 'main' into let-me-upgrade-you
bryantgillespie 8635587
update dependencies
bryantgillespie d79b288
update to tailwind 4 / nuxt ui 3
bryantgillespie f74fa46
nuxt content changes
bryantgillespie 924373c
poppins font
bryantgillespie 234272e
API Reference updates
bryantgillespie 0bbce15
cleanup
bryantgillespie c5a481b
smooth scroll behavior
bryantgillespie d85ba2c
update content components to nuxt ui v4
bryantgillespie 5ddf31d
copy doc button for markdown
bryantgillespie fca27c0
add section links to sidebar using PageAnchors component
bryantgillespie f0476c8
update table of contents
bryantgillespie 016be7a
Update TOC
bryantgillespie c4368dc
header and footer
bryantgillespie 695f7cb
add back posthog
bryantgillespie f844842
docs homepage
bryantgillespie e17f5c1
updated app config
bryantgillespie 7dc462a
remove local search
bryantgillespie 5b3bdc8
fix layouts
bryantgillespie dd9d29e
newsletter form
bryantgillespie 175e221
only show query params when there are any
bryantgillespie b6386f3
tutorials
bryantgillespie 345e026
pages update
bryantgillespie 23e552f
navigation changes for nuxt content v2
bryantgillespie 2ac4630
shiny card updates
bryantgillespie d8227f2
remove logging
bryantgillespie 4bb2987
ignore highlight route - maybe fix the build?
bryantgillespie a35f924
testing no api route
bryantgillespie 24c73d9
fix studio box
bryantgillespie 8f9805b
Merge branch 'main' into let-me-upgrade-you
bryantgillespie 22898cf
Merge branch 'main' into let-me-upgrade-you
bryantgillespie c62dcba
fix duplicated vars
bryantgillespie 9b876d4
fix colors for callouts
bryantgillespie 15e76e1
fix content ordering
bryantgillespie 651e5b4
update layouts to match
bryantgillespie 95741db
fix font
bryantgillespie ba4c83b
fix docs header error
bryantgillespie 20d523a
point to bsl for license
bryantgillespie 4ee25c2
add claude and gpt
bryantgillespie 9ddaaa0
fix oas mapping
bryantgillespie 04f5130
page titles and descriptions
bryantgillespie 2bd532b
latest deps
bryantgillespie 0b872c8
remove minimark
bryantgillespie 65decb1
debug override for mdc locally
bryantgillespie 86a966f
fix tutorial text
bryantgillespie f4672d6
add keys to mdc components 🤞
bryantgillespie d8184c2
try transpile shiki again
bryantgillespie 2affefd
missing import for mapOasNavigation
bryantgillespie 8e3e81d
add prerender module to ensure all api references are prerendered
bryantgillespie e0b43e9
fix url for chatgpt or claude
bryantgillespie 6dfdfd4
fix mobile nav
bryantgillespie 48ed6dd
Merge branch 'main' into let-me-upgrade-you
bryantgillespie f8abc01
use non-null
bryantgillespie 56537c5
add repsonse label and fix type
bryantgillespie 18fc735
consistent use navigateTo
bryantgillespie 79c0982
fix type error
bryantgillespie 13830ff
add posthog
bryantgillespie 9057213
fix type issue
bryantgillespie a26e944
unused props const
bryantgillespie 038e721
fix types
bryantgillespie b5e47b0
remove comments
bryantgillespie 4815a4c
add non null
bryantgillespie d4e7045
fix toc
bryantgillespie 1c8235d
fix types
bryantgillespie a701b2e
Merge branch 'main' into let-me-upgrade-you
bryantgillespie d8794e2
fix banner bar
bryantgillespie 61d4ff9
Merge branch 'main' into let-me-upgrade-you
connorwinston 1d45d67
add back previous button behavior
bryantgillespie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,70 +1,27 @@ | ||
<script setup lang="ts"> | ||
import type { ContentNavigationItem } from '@nuxt/content'; | ||
import { spec } from '@directus/openapi'; | ||
import { useRoute } from 'vue-router'; | ||
import { nextTick, watch } from 'vue'; | ||
|
||
const route = useRoute(); | ||
|
||
const { data: navigation } = useAsyncData('navigation', () => fetchContentNavigation()); | ||
const { data: navigation } = useAsyncData('content-navigation', () => queryCollectionNavigation('content', ['title', 'description', 'icon', 'links'])); | ||
|
||
provide('openapi', spec); | ||
provide('navigation', navigation); | ||
provide('navigation', navigation as Ref<ContentNavigationItem[]>); | ||
|
||
defineOgImage({ | ||
url: '/img/og-image.png', | ||
}); | ||
|
||
const { search } = useAppConfig(); | ||
|
||
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', { default: () => [], server: false }); | ||
const updateLinks = () => { | ||
nextTick(() => { | ||
const links = document.querySelectorAll('a'); | ||
links.forEach((link) => { | ||
const href = link.getAttribute('href'); | ||
if ( | ||
href?.startsWith('http') | ||
&& link.hostname !== window.location.hostname | ||
) { | ||
link.setAttribute('target', '_blank'); | ||
link.setAttribute('rel', 'noopener noreferrer'); | ||
} | ||
}); | ||
}); | ||
}; | ||
|
||
onMounted(() => { | ||
nextTick(() => { | ||
setTimeout(updateLinks, 100); | ||
}); | ||
}); | ||
|
||
watch(() => route.fullPath, () => { | ||
nextTick(() => { | ||
setTimeout(updateLinks, 100); | ||
}); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<UApp> | ||
<NuxtLoadingIndicator color="var(--color-primary)" /> | ||
<DocsBanner /> | ||
<DocsHeader /> | ||
|
||
<UMain> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</UMain> | ||
|
||
<DocsFooter /> | ||
|
||
<ClientOnly v-if="search.backend === 'nuxt'"> | ||
<LazyUContentSearch | ||
ref="searchRef" | ||
:files="files" | ||
:navigation="navigation" | ||
:fuse="{ resultLimit: 42 }" | ||
/> | ||
</ClientOnly> | ||
</div> | ||
</UApp> | ||
</template> |
This file contains hidden or 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 hidden or 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,67 @@ | ||
@import "tailwindcss"; | ||
@import "@nuxt/ui-pro"; | ||
|
||
@source "../../../content/**/*"; | ||
|
||
|
||
@theme static { | ||
--font-sans: 'Inter', sans-serif; | ||
--font-display: 'Poppins', sans-serif; | ||
|
||
--color-purple-50: #f3f2ff; | ||
--color-purple-100: #e9e8ff; | ||
--color-purple-200: #d6d4ff; | ||
--color-purple-300: #b8b1ff; | ||
--color-purple-400: #9585ff; | ||
--color-purple-500: #6644ff; | ||
--color-purple-600: #6030f7; | ||
--color-purple-700: #531ee3; | ||
--color-purple-800: #4418bf; | ||
--color-purple-900: #39169c; | ||
--color-purple-950: #210b6a; | ||
|
||
|
||
--color-pink-50: #fef1fa; | ||
--color-pink-100: #fee5f6; | ||
--color-pink-200: #feccee; | ||
--color-pink-300: #ff99dd; | ||
--color-pink-400: #fe68c9; | ||
--color-pink-500: #f83cb0; | ||
--color-pink-600: #e81a8f; | ||
--color-pink-700: #ca0c72; | ||
--color-pink-800: #a70d5e; | ||
--color-pink-900: #8b1050; | ||
--color-pink-950: #55022d; | ||
} | ||
|
||
/* | ||
The default border color has changed to `currentcolor` in Tailwind CSS v4, | ||
so we've added these compatibility styles to make sure everything still | ||
looks the same as it did with Tailwind CSS v3. | ||
|
||
If we ever want to remove these styles, we need to add an explicit border | ||
color utility to any element that depends on these defaults. | ||
*/ | ||
@layer base { | ||
*, | ||
::after, | ||
::before, | ||
::backdrop, | ||
::file-selector-button { | ||
border-color: var(--color-gray-200, currentcolor); | ||
} | ||
} | ||
|
||
button, | ||
[role="button"] { | ||
cursor: pointer; | ||
} | ||
|
||
:disabled { | ||
cursor: default; | ||
} | ||
|
||
|
||
html { | ||
scroll-behavior: smooth; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be configured in runtimeConfig or env instead of app config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stuck these here in app.config because there was already one here before.