Skip to content

Commit

Permalink
chore: update nuxt v3.7.x + deps (#279)
Browse files Browse the repository at this point in the history
* chore: update deps

* fix: rm log

* update @nuxt/content

* bump deps

* fix: inline-block links

* fix: use trailingSlash

* fix: ignore link checker hash fails (for now)

* rebuild pnpm-lock
  • Loading branch information
cwaring authored Sep 5, 2023
1 parent a83ebb6 commit a4a8d88
Show file tree
Hide file tree
Showing 10 changed files with 1,885 additions and 1,414 deletions.
2 changes: 1 addition & 1 deletion components/AppLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function isExternal(href: string | undefined) {
</script>

<template>
<NuxtLink class="pointer inline-block" :href="href || to" :target="isExternal(href || to) ? '_blank' : undefined">
<NuxtLink class="inline-block cursor-pointer" :href="href || to" :target="isExternal(href || to) ? '_blank' : undefined">
<slot />
</NuxtLink>
</template>
2 changes: 1 addition & 1 deletion components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</AppLink>
</li>
<li>
<AppLink href="/media">
<AppLink href="/media/">
Press Kit
</AppLink>
</li>
Expand Down
8 changes: 4 additions & 4 deletions components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ defineProps({
})
const headerLinks = [
{ text: 'Community', link: '/community' },
{ text: 'Developers', link: '/developers' },
{ text: 'Docs', link: 'https://docs.ipfs.tech/' },
{ text: 'Blog', link: 'https://blog.ipfs.tech/' },
{ text: 'Community', link: '/community/' },
{ text: 'Developers', link: '/developers/' },
{ text: 'Docs', link: '//docs.ipfs.tech/' },
{ text: 'Blog', link: '//blog.ipfs.tech/' },
]
const mobileLinks = [
Expand Down
1 change: 0 additions & 1 deletion components/Ribbon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ interface Props {
}
const props = defineProps<Props>()
const pImages = computed(() => props.images.map(img => useAsset(`images/${img}`)))
console.log(pImages.value)
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion content/_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ useCards:
title: Expand our universe
description: |
We're reimagining the structure of the traditional web so we're ready for what's next - we need you to help us discover what's possible
link: /community
link: /community/
label: Join the community
- image: logo-lockheed.png
title: Literally store your data out of this world
Expand Down
29 changes: 18 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,36 @@ export default defineNuxtConfig({
},

linkChecker: {
failOn404: false, // TODO: enable before launch
// TODO: enable once these issues are resolved
// https://github.com/harlan-zw/nuxt-link-checker/issues/2
// https://github.com/harlan-zw/nuxt-link-checker/issues/13
failOn404: false,
},

site: {
siteUrl: PUBLIC_SITE_URL,
siteName: 'IPFS Powers the Distributed Web',
siteDescription: 'The InterPlanetary File System is a peer-to-peer hypermedia protocol designed to preserve and grow humanity\'s knowledge by making the web upgradeable, resilient, and more open.',
trailingSlash: true,
siteImage: '/images/social-card.png',
indexable: false, // TODO: enable before launch
language: 'en-US',
},

sitemap: {
exclude: [
'/__nuxt_island/**',
'/help',
'/team',
'/help/',
'/team/',
'/docs/**',
'/privacy',
'/companion-privacy',
'/privacy/',
'/companion-privacy/',
],
},

runtimeConfig: {
public: {
siteUrl: PUBLIC_SITE_URL,
siteName: 'IPFS Powers the Distributed Web',
siteDescription: 'The InterPlanetary File System is a peer-to-peer hypermedia protocol designed to preserve and grow humanity\'s knowledge by making the web upgradeable, resilient, and more open.',
siteImage: '/images/social-card.png',
blogUrl: PUBLIC_BLOG_URL,
language: 'en-US',
indexable: false, // TODO: enable before launch
plausible: {
domain: PUBLIC_DOMAIN,
},
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ipfs-website",
"version": "3.0.0",
"private": true,
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@8.7.1",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
Expand All @@ -13,23 +13,23 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@vueuse/core": "^10.3.0",
"@vueuse/core": "^10.4.1",
"@vueuse/motion": "2.0.0",
"vue3-carousel": "^0.3.1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@iconify-json/carbon": "^1.1.20",
"@nuxt/content": "^2.7.2",
"@nuxt/devtools": "^0.8.0",
"@antfu/eslint-config": "^0.41.0",
"@iconify-json/carbon": "^1.1.21",
"@nuxt/content": "^2.8.2",
"@nuxt/devtools": "^0.8.2",
"@nuxtjs/plausible": "^0.2.1",
"@unocss/eslint-config": "^0.55.2",
"@unocss/nuxt": "^0.55.2",
"@unocss/preset-icons": "^0.55.2",
"@vueuse/nuxt": "^10.3.0",
"eslint": "^8.47.0",
"nuxt": "^3.6.5",
"nuxt-seo-kit": "^1.3.9",
"typescript": "^5.1.6"
"@unocss/eslint-config": "^0.55.7",
"@unocss/nuxt": "^0.55.7",
"@unocss/preset-icons": "^0.55.7",
"@vueuse/nuxt": "^10.4.1",
"eslint": "^8.48.0",
"nuxt": "^3.7.0",
"nuxt-seo-kit": "^1.3.11",
"typescript": "^5.2.2"
}
}
13 changes: 8 additions & 5 deletions pages/community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,21 @@ definePageMeta({
</Subhead>
<img src="~/assets/images/circle-star.svg" class="mx-auto my-6">
<p class="text-xl text-black">
Meet other members of the community virtually or in-person by <AppLink href="https://lu.ma/ipfs">
subscribing
</AppLink> to our event calendar.
Meet other members of the community virtually or in-person by
subscribing
to our <AppLink href="https://lu.ma/ipfs">
event calendar
</AppLink>.
</p>
</Card>
<Card background="light">
<Subhead bold tight>
Keep up with what's new
</Subhead>
<p class="text-xl text-black">
Get the latest on news about what's happening in the IPFS ecosystem by <AppLink href="https://share.hsforms.com/1-wT-kbwkRw-4HLsYY3nLIgnkivw">
subscribing to our newsletter
Get the latest on news about what's happening in the IPFS ecosystem by
subscribing to our <AppLink href="https://share.hsforms.com/1-wT-kbwkRw-4HLsYY3nLIgnkivw">
newsletter
</AppLink> or watching
<AppLink href="https://www.youtube.com/@IPFSbot/videos">
This Month in IPFS
Expand Down
6 changes: 3 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const { data: latestVideos } = await useFetch('/videos.json', {
</Card>
</Grid>
<div class="mx-auto table">
<Btn href="/developers" primary>
<Btn href="/developers/" primary>
Learn how it works
</Btn>
</div>
Expand All @@ -126,7 +126,7 @@ const { data: latestVideos } = await useFetch('/videos.json', {
</p>
</ImageSplit>
<ListLinks>
<ListLink label="Developers" link="/developers" />
<ListLink label="Developers" link="/developers/" />
<ListLink label="Documentation" link="https://docs.ipfs.tech/" />
<ListLink label="Read Case Studies" link="https://docs.ipfs.tech/case-studies/arbol/" />
</ListLinks>
Expand Down Expand Up @@ -215,7 +215,7 @@ const { data: latestVideos } = await useFetch('/videos.json', {
<Subhead center>
<b>Our protocol's success hinges on participation from all of our neighbors:</b> Each new node that joins IPFS makes the network stronger for everyone.
</Subhead>
<Btn href="/community" primary>
<Btn href="/community/" primary>
Join the Community
</Btn>
</div>
Expand Down
Loading

0 comments on commit a4a8d88

Please sign in to comment.