Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/components/ads/AdsUIPro.vue
#	app/pages/modules/[slug].vue
#	content/7.blog/8.nuxt-static-improvements.md
  • Loading branch information
Ivan Bochkarev committed Dec 1, 2024
2 parents 83c4408 + d1d4e25 commit 48095c5
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 93 deletions.
12 changes: 9 additions & 3 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,17 @@ onMounted(() => {
<NuxtLoadingIndicator />

<AppBanner
id="black-friday-2024-mn"
to="https://masteringnuxt.com/#plans"
id="black-friday-2024-nuxt-ui"
to="https://ui.nuxt.com/pro/pricing?utm_source=nuxt_website&utm_medium=banner"
>
<div class="flex items-center gap-1 text-black">
<span><span class="font-bold dark:bg-black dark:text-white bg-white text-black px-2 py-1 rounded text-xs">37% OFF</span> during <span class="font-semibold">Black Friday</span> at <span class="font-semibold">Mastering Nuxt</span>.</span>
<UIcon
name="i-ri-discount-percent-fill"
class="w-5 h-5 flex-shrink-0 pointer-events-none"
/>
<span>
<span class="font-bold pr-1">Black Friday Week</span>
<span class="font-bold dark:bg-black dark:text-white bg-white text-black px-2 py-1 rounded text-xs">20% OFF</span> on <span class="font-semibold">Nuxt UI Pro</span> until <span class="font-semibold">Dec 2nd</span></span>
<UButton
label="Shop now"
color="white"
Expand Down
21 changes: 15 additions & 6 deletions app/components/ads/AdsUIPro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,24 @@
body: { padding: 'p-2 sm:p-2', base: 'text-center' } }"
>
<template #header>
<UColorModeImage dark="https://ui.nuxt.com/_ipx/s_1152x720/templates/dashboard3.png" light="https://ui.nuxt.com/_ipx/s_1152x720/templates/dashboard2.png" alt="Nuxt UI Pro" />
<!-- <UColorModeImage dark="https://ui.nuxt.com/_ipx/s_1152x720/templates/dashboard3.png" light="https://ui.nuxt.com/_ipx/s_1152x720/templates/dashboard2.png" alt="Nuxt UI Pro" /> -->
<NuxtImg src="/assets/ads/nuxt-ui-pro-black-friday.png" width="168" height="105" alt="Nuxt UI Pro Black Friday" class="rounded" />
</template>
<div class="inline-flex gap-1 my-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 inline-block" fill="none" viewBox="0 0 83 16"><path fill="currentColor" d="M30.7412 16.0001c.1728 0 .32-.1433.32-.32V8.24002s.4.72001 1.12 1.91998l3.12 5.3601c.1428.2992.4595.48.72.48h2.16V4h-2.16c-.1438 0-.32.11953-.32.32v7.52l-1.44-2.55997L31.3812 4.4c-.1402-.2487-.4417-.4-.72-.4h-2.08v12.0001h2.16ZM58.6613 7.36002h1.04c.2651 0 .48-.21491.48-.48V4.8h2.2401v2.56002h2.16v1.92001h-2.16V12.72c0 .8401.4046 1.2001 1.12 1.2001h1.04v2.08h-1.36c-1.8442 0-3.0401-1.1943-3.0401-3.2001V9.28003h-1.52V7.36002ZM47.8613 7.36002V12.32c0 1.1203-.4206 2.0648-1.04 2.7201-.6194.6552-1.4747.96-2.64.96-1.1653 0-2.1007-.3048-2.7201-.96-.6088-.6553-1.04-1.5998-1.04-2.7201V7.36002h1.28c.273 0 .5416.04976.7201.24.1784.17967.24.28521.24.56V12.32c0 .6447.0365 1.043.32 1.3601.2834.3064.6331.4 1.2.4.5774 0 .8365-.0936 1.12-.4.2834-.3171.32-.7154.32-1.3601V8.16002c0-.27479.0615-.44976.24-.64.1568-.16714.3222-.16321.56-.16.0328.00044.1268 0 .16 0h1.28ZM54.6613 11.52l2.72-4.15998h-2.08c-.2621 0-.495.09406-.64.32l-1.28 1.92001-1.2-1.84001c-.1449-.22594-.4579-.4-.72-.4h-2l2.72 4.07998-2.96 4.5601h2.08c.26 0 .4946-.2571.64-.48l1.44-2.16 1.52 2.24c.1454.2229.38.4.64.4h2.08l-2.96-4.4801Z" /><path fill="#00DC82" d="M14.0211 16.0001h8.8801c.2834 0 .5546-.0996.8-.24.2454-.1405.4984-.3168.64-.56.1416-.2433.2401-.5192.24-.8001-.0001-.2809-.0982-.5567-.24-.7999l-6-10.32008c-.1417-.2432-.3147-.41959-.5601-.56001-.2453-.14041-.5966-.24-.88-.24-.2833 0-.5546.09959-.8.24-.2453.14042-.4183.31681-.56.56001l-1.52 2.64001-3.04-5.120214c-.1417-.243185-.3146-.499421-.56-.639815C10.1757.0196071 9.90447 0 9.6211 0c-.28336 0-.55458.0196071-.8.160001-.24542.140394-.49826.39663-.64.639815L.741056 13.6001c-.141843.2432-.159878.519-.160001.7999-.000123.2809.018372.5568.160001.8.141628.2433.394594.4196.640004.5601.2454.1404.51662.24.8.24h5.60003c2.21891 0 3.83401-.9954 4.96001-2.88l2.72-4.72005 1.44-2.48002 4.4001 7.52007h-5.8401l-1.44 2.56Zm-6.32001-2.56H3.78107L9.6211 3.36002l2.96 5.04003-1.9607 3.41805c-.74775 1.2228-1.60029 1.622-2.91931 1.622ZM77.2214 4.79981h-1.6c-.358 0-.6459-.00485-.88.24-.2341.23124-.16.36634-.16.72v5.51999c0 .8298-.1082 1.272-.48 1.6801-.3718.3944-.8426.56-1.6.56-.7436 0-1.3082-.1656-1.68-.56-.3718-.4081-.4-.8503-.4-1.6801V5.75982c0-.35367-.0059-.48877-.24-.72001-.2341-.24484-.522-.24-.88-.24h-1.52v6.47999c0 1.4419.4013 2.5967 1.2 3.4401.8125.8433 1.9914 1.28 3.52 1.28s2.7075-.4367 3.52-1.28c.8125-.8434 1.2-1.9982 1.2-3.4401V4.79981Z" /><path fill="#00DC82" fill-rule="evenodd" d="m80.5814 4.80167 1.6-.00187v10.3204c0 .3147-.0013.434-.24.6398-.2386.2178-.5949.2399-.96.2399h-1.5199v-1.5195l-.0001-4.0796V5.60153c0-.30911.0013-.43777.24-.63988.2256-.19098.515-.15998.88-.15998Z" clip-rule="evenodd" /></svg>
<UBadge variant="subtle" size="xs" class="text-[10px]">
PRO
</UBadge>
<svg class="h-4 inline-block" viewBox="0 0 109 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30.4598 16.6748C30.6326 16.6748 30.7798 16.5315 30.7798 16.3548V8.9148C30.7798 8.9148 31.1798 9.6348 31.8998 10.8348L35.0198 16.1948C35.1626 16.494 35.4793 16.6748 35.7398 16.6748H37.8998V4.6748H35.7398C35.5959 4.6748 35.4198 4.79433 35.4198 4.9948V12.5148L33.9798 9.9548L31.0998 5.0748C30.9596 4.8261 30.6581 4.6748 30.3798 4.6748H28.2998V16.6748H30.4598Z" fill="white" />
<path d="M58.3798 8.0348H59.4198C59.6849 8.0348 59.8998 7.8199 59.8998 7.5548V5.4748H62.1398V8.0348H64.2998V9.9548H62.1398V13.3948C62.1398 14.2348 62.5444 14.5948 63.2598 14.5948H64.2998V16.6748H62.9398C61.0956 16.6748 59.8998 15.4805 59.8998 13.4748V9.9548H58.3798V8.0348Z" fill="white" />
<path d="M47.5798 8.0348V12.9948C47.5798 14.1151 47.1592 15.0595 46.5398 15.7148C45.9204 16.3701 45.0651 16.6748 43.8998 16.6748C42.7345 16.6748 41.7992 16.3701 41.1798 15.7148C40.5709 15.0595 40.1398 14.1151 40.1398 12.9948V8.0348H41.4198C41.6927 8.0348 41.9613 8.08456 42.1398 8.2748C42.3183 8.45447 42.3798 8.56001 42.3798 8.8348V12.9948C42.3798 13.6395 42.4163 14.0377 42.6998 14.3548C42.9832 14.6613 43.3329 14.7548 43.8998 14.7548C44.4772 14.7548 44.7363 14.6613 45.0198 14.3548C45.3032 14.0377 45.3398 13.6395 45.3398 12.9948V8.8348C45.3398 8.56001 45.4013 8.38504 45.5798 8.1948C45.7366 8.02766 45.902 8.0316 46.1398 8.0348C46.1726 8.03524 46.2667 8.0348 46.2998 8.0348H47.5798Z" fill="white" />
<path d="M54.3798 12.1948L57.0998 8.0348H55.0198C54.7576 8.0348 54.5247 8.12887 54.3798 8.3548L53.0998 10.2748L51.8998 8.4348C51.7548 8.20886 51.4419 8.0348 51.1798 8.0348H49.1798L51.8998 12.1148L48.9398 16.6748H51.0198C51.2798 16.6748 51.5144 16.4178 51.6598 16.1948L53.0998 14.0348L54.6198 16.2748C54.7652 16.4978 54.9998 16.6748 55.2598 16.6748H57.3398L54.3798 12.1948Z" fill="white" />
<path d="M13.7398 16.6748H22.6198C22.9032 16.6748 23.1744 16.5752 23.4198 16.4348C23.6652 16.2944 23.9182 16.1181 24.0598 15.8748C24.2014 15.6315 24.2999 15.3556 24.2998 15.0747C24.2997 14.7939 24.2016 14.518 24.0598 14.2749L18.0598 3.9548C17.9182 3.7116 17.7451 3.53522 17.4998 3.3948C17.2544 3.25438 16.9031 3.1548 16.6198 3.1548C16.3365 3.1548 16.0651 3.25438 15.8198 3.3948C15.5744 3.53522 15.4014 3.7116 15.2598 3.9548L13.7398 6.5948L10.6998 1.47462C10.5581 1.23143 10.3852 0.975197 10.1398 0.834805C9.89438 0.694412 9.62316 0.674805 9.3398 0.674805C9.05643 0.674805 8.78522 0.694412 8.5398 0.834805C8.29438 0.975197 8.04154 1.23143 7.8998 1.47462L0.459805 14.2749C0.317963 14.518 0.299928 14.7939 0.299805 15.0747C0.299682 15.3556 0.318177 15.6315 0.459805 15.8748C0.601433 16.118 0.8544 16.2944 1.0998 16.4348C1.34521 16.5752 1.61643 16.6748 1.8998 16.6748H7.4998C9.71873 16.6748 11.3338 15.6794 12.4598 13.7948L15.1798 9.0748L16.6198 6.5948L21.0198 14.1148H15.1798L13.7398 16.6748ZM7.4198 14.1148H3.4998L9.3398 4.0348L12.2998 9.0748L10.3391 12.4928C9.59134 13.7156 8.73881 14.1148 7.4198 14.1148Z" fill="#00DC82" />
<path d="M76.94 5.4751H75.34C74.9819 5.4751 74.6941 5.47025 74.46 5.7151C74.2259 5.94634 74.3 6.08144 74.3 6.4351V11.9551C74.3 12.7848 74.1918 13.227 73.82 13.6351C73.4482 14.0296 72.9774 14.1951 72.22 14.1951C71.4764 14.1951 70.9118 14.0296 70.54 13.6351C70.1682 13.227 70.14 12.7848 70.14 11.9551V6.4351C70.14 6.08144 70.1341 5.94634 69.9 5.7151C69.6659 5.47026 69.378 5.4751 69.02 5.4751H67.5V11.9551C67.5 13.397 67.9013 14.5517 68.7 15.3951C69.5125 16.2384 70.6914 16.6751 72.22 16.6751C73.7486 16.6751 74.9275 16.2384 75.74 15.3951C76.5525 14.5517 76.94 13.3969 76.94 11.9551V5.4751Z" fill="white" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M80.2997 5.47696L81.8996 5.4751V6.8351L81.8997 10.9151V13.1557L81.8997 15.1551L81.8997 15.7954C81.8997 16.1101 81.8984 16.2294 81.6597 16.4352C81.421 16.6531 81.0647 16.6751 80.6997 16.6751H79.1797V15.1556L79.1797 11.076V6.27682C79.1797 5.96771 79.181 5.83905 79.4197 5.63694C79.6452 5.44597 79.9346 5.47696 80.2997 5.47696Z" fill="white" />
<path d="M85.0996 16.6751V5.4751H89.6596C90.4335 5.4751 91.0977 5.57827 91.6596 5.8751C92.2321 6.17193 92.7228 6.62505 93.0196 7.1551C93.3164 7.68515 93.4196 8.30603 93.4196 8.99509C93.4196 9.67356 93.3164 10.305 93.0196 10.8351C92.7228 11.3651 92.2321 11.7277 91.6596 12.0351C91.0977 12.3319 90.4335 12.5151 89.6596 12.5151H87.4996V16.6751H85.0996ZM89.4996 10.5151C90.0297 10.5151 90.4346 10.4013 90.6996 10.1151C90.9646 9.81827 91.0996 9.42974 91.0996 8.99509C91.0996 8.56045 90.9646 8.16132 90.6996 7.8751C90.4346 7.57827 90.0297 7.4751 89.4996 7.4751H87.4996V10.5151H89.4996Z" fill="#00DC82" />
<path d="M98.3796 10.5151C97.8495 10.5151 97.4446 10.6723 97.1796 11.0751C96.9146 11.4779 96.7796 12.0448 96.7796 12.7551V16.6751H94.5396V8.67509H96.2996C96.5647 8.67509 96.7796 8.89 96.7796 9.15509V9.95509C96.9916 9.46745 97.1922 9.19651 97.4996 8.99509C97.8176 8.79368 98.2813 8.67509 98.7796 8.67509H99.6596V10.5151H98.3796Z" fill="#00DC82" />
<path d="M104.22 16.6751C103.414 16.6751 102.706 16.4649 102.06 16.1151C101.413 15.7547 100.9 15.3005 100.54 14.6751C100.179 14.039 99.9796 13.2996 99.9796 12.5151C99.9796 11.7306 100.179 11.0606 100.54 10.4351C100.9 9.79903 101.413 9.26493 102.06 8.91509C102.706 8.55466 103.414 8.4351 104.22 8.4351C105.025 8.4351 105.813 8.55466 106.46 8.91509C107.106 9.26493 107.539 9.79903 107.9 10.4351C108.26 11.0606 108.46 11.7306 108.46 12.5151C108.46 13.2996 108.26 14.039 107.9 14.6751C107.539 15.3005 107.106 15.7547 106.46 16.1151C105.813 16.4649 105.025 16.6751 104.22 16.6751ZM104.22 14.7551C104.813 14.7551 105.289 14.5285 105.66 14.1151C106.031 13.7017 106.22 13.1724 106.22 12.5151C106.22 11.8472 106.031 11.3285 105.66 10.9151C105.289 10.5017 104.813 10.2751 104.22 10.2751C103.626 10.2751 103.151 10.5017 102.78 10.9151C102.409 11.3285 102.22 11.8472 102.22 12.5151C102.22 13.1724 102.409 13.7017 102.78 14.1151C103.151 14.5285 103.626 14.7551 104.22 14.7551Z" fill="#00DC82" />
</svg>
</div>
<p class="text-sm dark:text-gray-400 text-gray-500 pb-1">
<p class="text-xs dark:text-gray-400 text-gray-500 pb-1">
Премиум-компоненты Vue для приложений Nuxt.
</p>
</UPageCard>
Expand Down
5 changes: 5 additions & 0 deletions app/pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const communityLinks = computed(() => [{
label: 'Master Nuxt',
to: 'https://masteringnuxt.com/nuxt3',
target: '_blank'
}, {
icon: 'i-ph-certificate',
label: 'Nuxt Certification',
to: 'https://certification.nuxt.com',
target: '_blank'
}])
const title = page.value.head?.title || page.value.title
Expand Down
2 changes: 1 addition & 1 deletion app/pages/modules/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defineOgImageComponent('Docs', {

<div class="flex flex-col lg:flex-row lg:items-center gap-3 mt-4">
<UTooltip text="Ежемесячное количество загрузок NPM">
<NuxtLink class="flex items-center gap-1.5" :to="`https://npmjs.org/package/${module.npm}`" target="_blank">
<NuxtLink class="flex items-center gap-1.5" :to="`https://npm.chart.dev/${module.npm}`" target="_blank">
<UIcon name="i-ph-arrow-circle-down" class="w-5 h-5 flex-shrink-0" />
<span class="text-sm font-medium">{{ formatNumber(module.stats.downloads) }} загрузок</span>
</NuxtLink>
Expand Down
2 changes: 1 addition & 1 deletion app/pages/modules/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const { copy } = useCopyToClipboard()
<UTooltip text="Ежемесячное количество загрузок NPM">
<NuxtLink
class="flex items-center gap-1 hover:text-gray-900 hover:dark:text-white"
:to="`https://npmjs.org/package/${module.npm}`"
:to="`https://npm.chart.dev/${module.npm}`"
target="_blank"
>
<UIcon name="i-ph-arrow-circle-down" class="w-4 h-4 flex-shrink-0" />
Expand Down
2 changes: 1 addition & 1 deletion content/7.blog/8.nuxt-static-improvements.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {

### [](#module-authors)Авторы модулей

Что делать, если вы разрабатываете модуль nuxt, который работает с файлами, которые не должны запускать повторную сборку? Лучшим примером является модуль [@nuxt/content](https://content.nuxtjs.org), который читает файлы markdown из репозитория. В этом случае эти файлы используются в runtime-модуле, что имеет место при использовании `@nuxt/content`, сам модуль может сообщить nuxt игнорировать эти файлы для вас, так что вам не нужно ничего делать! Авторы модулей могут использовать новый хук `generate:cache:ignore` для этого:
Что делать, если вы разрабатываете модуль nuxt, который работает с файлами, которые не должны запускать повторную сборку? Лучшим примером является модуль [@nuxt/content](content.nuxt.com), который читает файлы markdown из репозитория. В этом случае эти файлы используются в runtime-модуле, что имеет место при использовании `@nuxt/content`, сам модуль может сообщить nuxt игнорировать эти файлы для вас, так что вам не нужно ничего делать! Авторы модулей могут использовать новый хук `generate:cache:ignore` для этого:

```js
nuxt.hook('generate:cache:ignore', ignore => ignore.push('content'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"feed": "^4.2.2",
"floating-vue": "^5.2.2",
"nuxt": "^3.14.1592",
"nuxt-og-image": "^3.0.8",
"nuxt-og-image": "^4.0.0",
"ofetch": "^1.4.1",
"perfect-debounce": "^1.0.0",
"scule": "^1.3.0",
Expand Down
Loading

0 comments on commit 48095c5

Please sign in to comment.