@wordup-md/nuxt-layer-shadcn-unocss 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/package.json +1 -1
  2. package/pages/index.vue +9 -7
  3. package/.agent-docs/nuxt/.cache-meta.json +0 -1
  4. package/.agent-docs/nuxt/1.getting-started/01.introduction.md +0 -81
  5. package/.agent-docs/nuxt/1.getting-started/02.installation.md +0 -115
  6. package/.agent-docs/nuxt/1.getting-started/03.configuration.md +0 -226
  7. package/.agent-docs/nuxt/1.getting-started/04.views.md +0 -165
  8. package/.agent-docs/nuxt/1.getting-started/05.assets.md +0 -54
  9. package/.agent-docs/nuxt/1.getting-started/06.styling.md +0 -581
  10. package/.agent-docs/nuxt/1.getting-started/07.routing.md +0 -153
  11. package/.agent-docs/nuxt/1.getting-started/08.seo-meta.md +0 -377
  12. package/.agent-docs/nuxt/1.getting-started/09.transitions.md +0 -478
  13. package/.agent-docs/nuxt/1.getting-started/10.data-fetching.md +0 -818
  14. package/.agent-docs/nuxt/1.getting-started/11.state-management.md +0 -230
  15. package/.agent-docs/nuxt/1.getting-started/12.error-handling.md +0 -241
  16. package/.agent-docs/nuxt/1.getting-started/13.server.md +0 -94
  17. package/.agent-docs/nuxt/1.getting-started/14.layers.md +0 -172
  18. package/.agent-docs/nuxt/1.getting-started/15.prerendering.md +0 -208
  19. package/.agent-docs/nuxt/1.getting-started/16.deployment.md +0 -131
  20. package/.agent-docs/nuxt/1.getting-started/17.testing.md +0 -822
  21. package/.agent-docs/nuxt/1.getting-started/18.upgrade.md +0 -1360
  22. package/.agent-docs/nuxt/2.directory-structure/0.nuxt.md +0 -20
  23. package/.agent-docs/nuxt/2.directory-structure/0.output.md +0 -18
  24. package/.agent-docs/nuxt/2.directory-structure/1.app/1.assets.md +0 -16
  25. package/.agent-docs/nuxt/2.directory-structure/1.app/1.components.md +0 -633
  26. package/.agent-docs/nuxt/2.directory-structure/1.app/1.composables.md +0 -121
  27. package/.agent-docs/nuxt/2.directory-structure/1.app/1.layouts.md +0 -216
  28. package/.agent-docs/nuxt/2.directory-structure/1.app/1.middleware.md +0 -253
  29. package/.agent-docs/nuxt/2.directory-structure/1.app/1.pages.md +0 -467
  30. package/.agent-docs/nuxt/2.directory-structure/1.app/1.plugins.md +0 -298
  31. package/.agent-docs/nuxt/2.directory-structure/1.app/1.utils.md +0 -49
  32. package/.agent-docs/nuxt/2.directory-structure/1.app/3.app-config.md +0 -177
  33. package/.agent-docs/nuxt/2.directory-structure/1.app/3.app.md +0 -72
  34. package/.agent-docs/nuxt/2.directory-structure/1.app/3.error.md +0 -57
  35. package/.agent-docs/nuxt/2.directory-structure/1.content.md +0 -67
  36. package/.agent-docs/nuxt/2.directory-structure/1.layers.md +0 -87
  37. package/.agent-docs/nuxt/2.directory-structure/1.modules.md +0 -76
  38. package/.agent-docs/nuxt/2.directory-structure/1.node_modules.md +0 -12
  39. package/.agent-docs/nuxt/2.directory-structure/1.public.md +0 -27
  40. package/.agent-docs/nuxt/2.directory-structure/1.server.md +0 -556
  41. package/.agent-docs/nuxt/2.directory-structure/1.shared.md +0 -98
  42. package/.agent-docs/nuxt/2.directory-structure/2.env.md +0 -79
  43. package/.agent-docs/nuxt/2.directory-structure/2.gitignore.md +0 -37
  44. package/.agent-docs/nuxt/2.directory-structure/2.nuxtignore.md +0 -37
  45. package/.agent-docs/nuxt/2.directory-structure/2.nuxtrc.md +0 -57
  46. package/.agent-docs/nuxt/2.directory-structure/3.nuxt-config.md +0 -34
  47. package/.agent-docs/nuxt/2.directory-structure/3.package.md +0 -32
  48. package/.agent-docs/nuxt/2.directory-structure/3.tsconfig.md +0 -70
  49. package/.agent-docs/nuxt/2.directory-structure/index.md +0 -65
  50. package/.agent-docs/nuxt/3.guide/0.index.md +0 -28
  51. package/.agent-docs/nuxt/3.guide/1.concepts/1.rendering.md +0 -236
  52. package/.agent-docs/nuxt/3.guide/1.concepts/10.vuejs-development.md +0 -104
  53. package/.agent-docs/nuxt/3.guide/1.concepts/2.nuxt-lifecycle.md +0 -158
  54. package/.agent-docs/nuxt/3.guide/1.concepts/3.auto-imports.md +0 -205
  55. package/.agent-docs/nuxt/3.guide/1.concepts/4.server-engine.md +0 -62
  56. package/.agent-docs/nuxt/3.guide/1.concepts/5.modules.md +0 -61
  57. package/.agent-docs/nuxt/3.guide/1.concepts/7.esm.md +0 -306
  58. package/.agent-docs/nuxt/3.guide/1.concepts/8.typescript.md +0 -120
  59. package/.agent-docs/nuxt/3.guide/1.concepts/9.code-style.md +0 -22
  60. package/.agent-docs/nuxt/3.guide/2.best-practices/hydration.md +0 -188
  61. package/.agent-docs/nuxt/3.guide/2.best-practices/performance.md +0 -305
  62. package/.agent-docs/nuxt/3.guide/2.best-practices/plugins.md +0 -20
  63. package/.agent-docs/nuxt/3.guide/3.ai/1.mcp.md +0 -277
  64. package/.agent-docs/nuxt/3.guide/3.ai/2.llms-txt.md +0 -65
  65. package/.agent-docs/nuxt/3.guide/4.modules/1.getting-started.md +0 -103
  66. package/.agent-docs/nuxt/3.guide/4.modules/2.module-anatomy.md +0 -138
  67. package/.agent-docs/nuxt/3.guide/4.modules/3.recipes-basics.md +0 -330
  68. package/.agent-docs/nuxt/3.guide/4.modules/4.recipes-advanced.md +0 -243
  69. package/.agent-docs/nuxt/3.guide/4.modules/5.testing.md +0 -76
  70. package/.agent-docs/nuxt/3.guide/4.modules/6.best-practices.md +0 -104
  71. package/.agent-docs/nuxt/3.guide/4.modules/7.ecosystem.md +0 -32
  72. package/.agent-docs/nuxt/3.guide/4.modules/index.md +0 -36
  73. package/.agent-docs/nuxt/3.guide/5.recipes/1.custom-routing.md +0 -181
  74. package/.agent-docs/nuxt/3.guide/5.recipes/2.vite-plugin.md +0 -110
  75. package/.agent-docs/nuxt/3.guide/5.recipes/3.custom-usefetch.md +0 -125
  76. package/.agent-docs/nuxt/3.guide/5.recipes/4.sessions-and-authentication.md +0 -217
  77. package/.agent-docs/nuxt/3.guide/6.going-further/1.events.md +0 -62
  78. package/.agent-docs/nuxt/3.guide/6.going-further/1.experimental-features.md +0 -936
  79. package/.agent-docs/nuxt/3.guide/6.going-further/1.features.md +0 -108
  80. package/.agent-docs/nuxt/3.guide/6.going-further/1.internals.md +0 -82
  81. package/.agent-docs/nuxt/3.guide/6.going-further/10.runtime-config.md +0 -174
  82. package/.agent-docs/nuxt/3.guide/6.going-further/11.nightly-release-channel.md +0 -62
  83. package/.agent-docs/nuxt/3.guide/6.going-further/2.hooks.md +0 -98
  84. package/.agent-docs/nuxt/3.guide/6.going-further/4.kit.md +0 -51
  85. package/.agent-docs/nuxt/3.guide/6.going-further/6.nuxt-app.md +0 -64
  86. package/.agent-docs/nuxt/3.guide/6.going-further/7.layers.md +0 -311
  87. package/.agent-docs/nuxt/3.guide/6.going-further/9.debugging.md +0 -112
  88. package/.agent-docs/nuxt/3.guide/6.going-further/index.md +0 -4
  89. package/.agent-docs/nuxt/4.api/1.components/1.client-only.md +0 -79
  90. package/.agent-docs/nuxt/4.api/1.components/1.dev-only.md +0 -51
  91. package/.agent-docs/nuxt/4.api/1.components/1.nuxt-client-fallback.md +0 -87
  92. package/.agent-docs/nuxt/4.api/1.components/10.nuxt-picture.md +0 -27
  93. package/.agent-docs/nuxt/4.api/1.components/11.teleports.md +0 -43
  94. package/.agent-docs/nuxt/4.api/1.components/12.nuxt-route-announcer.md +0 -54
  95. package/.agent-docs/nuxt/4.api/1.components/13.nuxt-time.md +0 -202
  96. package/.agent-docs/nuxt/4.api/1.components/2.nuxt-page.md +0 -154
  97. package/.agent-docs/nuxt/4.api/1.components/3.nuxt-layout.md +0 -161
  98. package/.agent-docs/nuxt/4.api/1.components/4.nuxt-link.md +0 -346
  99. package/.agent-docs/nuxt/4.api/1.components/5.nuxt-loading-indicator.md +0 -50
  100. package/.agent-docs/nuxt/4.api/1.components/6.nuxt-error-boundary.md +0 -67
  101. package/.agent-docs/nuxt/4.api/1.components/7.nuxt-welcome.md +0 -25
  102. package/.agent-docs/nuxt/4.api/1.components/8.nuxt-island.md +0 -77
  103. package/.agent-docs/nuxt/4.api/1.components/9.nuxt-img.md +0 -43
  104. package/.agent-docs/nuxt/4.api/2.composables/on-prehydrate.md +0 -69
  105. package/.agent-docs/nuxt/4.api/2.composables/use-app-config.md +0 -19
  106. package/.agent-docs/nuxt/4.api/2.composables/use-async-data.md +0 -283
  107. package/.agent-docs/nuxt/4.api/2.composables/use-cookie.md +0 -183
  108. package/.agent-docs/nuxt/4.api/2.composables/use-error.md +0 -55
  109. package/.agent-docs/nuxt/4.api/2.composables/use-fetch.md +0 -249
  110. package/.agent-docs/nuxt/4.api/2.composables/use-head-safe.md +0 -72
  111. package/.agent-docs/nuxt/4.api/2.composables/use-head.md +0 -184
  112. package/.agent-docs/nuxt/4.api/2.composables/use-hydration.md +0 -74
  113. package/.agent-docs/nuxt/4.api/2.composables/use-lazy-async-data.md +0 -96
  114. package/.agent-docs/nuxt/4.api/2.composables/use-lazy-fetch.md +0 -111
  115. package/.agent-docs/nuxt/4.api/2.composables/use-loading-indicator.md +0 -77
  116. package/.agent-docs/nuxt/4.api/2.composables/use-nuxt-app.md +0 -296
  117. package/.agent-docs/nuxt/4.api/2.composables/use-nuxt-data.md +0 -112
  118. package/.agent-docs/nuxt/4.api/2.composables/use-preview-mode.md +0 -115
  119. package/.agent-docs/nuxt/4.api/2.composables/use-request-event.md +0 -23
  120. package/.agent-docs/nuxt/4.api/2.composables/use-request-fetch.md +0 -52
  121. package/.agent-docs/nuxt/4.api/2.composables/use-request-header.md +0 -34
  122. package/.agent-docs/nuxt/4.api/2.composables/use-request-headers.md +0 -37
  123. package/.agent-docs/nuxt/4.api/2.composables/use-request-url.md +0 -41
  124. package/.agent-docs/nuxt/4.api/2.composables/use-response-header.md +0 -47
  125. package/.agent-docs/nuxt/4.api/2.composables/use-route-announcer.md +0 -58
  126. package/.agent-docs/nuxt/4.api/2.composables/use-route.md +0 -87
  127. package/.agent-docs/nuxt/4.api/2.composables/use-router.md +0 -94
  128. package/.agent-docs/nuxt/4.api/2.composables/use-runtime-config.md +0 -142
  129. package/.agent-docs/nuxt/4.api/2.composables/use-runtime-hook.md +0 -43
  130. package/.agent-docs/nuxt/4.api/2.composables/use-seo-meta.md +0 -80
  131. package/.agent-docs/nuxt/4.api/2.composables/use-server-seo-meta.md +0 -27
  132. package/.agent-docs/nuxt/4.api/2.composables/use-state.md +0 -58
  133. package/.agent-docs/nuxt/4.api/3.utils/$fetch.md +0 -100
  134. package/.agent-docs/nuxt/4.api/3.utils/abort-navigation.md +0 -73
  135. package/.agent-docs/nuxt/4.api/3.utils/add-route-middleware.md +0 -88
  136. package/.agent-docs/nuxt/4.api/3.utils/call-once.md +0 -90
  137. package/.agent-docs/nuxt/4.api/3.utils/clear-error.md +0 -29
  138. package/.agent-docs/nuxt/4.api/3.utils/clear-nuxt-data.md +0 -23
  139. package/.agent-docs/nuxt/4.api/3.utils/clear-nuxt-state.md +0 -23
  140. package/.agent-docs/nuxt/4.api/3.utils/create-error.md +0 -55
  141. package/.agent-docs/nuxt/4.api/3.utils/define-lazy-hydration-component.md +0 -261
  142. package/.agent-docs/nuxt/4.api/3.utils/define-nuxt-component.md +0 -53
  143. package/.agent-docs/nuxt/4.api/3.utils/define-nuxt-plugin.md +0 -102
  144. package/.agent-docs/nuxt/4.api/3.utils/define-nuxt-route-middleware.md +0 -67
  145. package/.agent-docs/nuxt/4.api/3.utils/define-page-meta.md +0 -241
  146. package/.agent-docs/nuxt/4.api/3.utils/define-route-rules.md +0 -52
  147. package/.agent-docs/nuxt/4.api/3.utils/navigate-to.md +0 -230
  148. package/.agent-docs/nuxt/4.api/3.utils/on-before-route-leave.md +0 -11
  149. package/.agent-docs/nuxt/4.api/3.utils/on-before-route-update.md +0 -11
  150. package/.agent-docs/nuxt/4.api/3.utils/on-nuxt-ready.md +0 -25
  151. package/.agent-docs/nuxt/4.api/3.utils/prefetch-components.md +0 -28
  152. package/.agent-docs/nuxt/4.api/3.utils/preload-components.md +0 -23
  153. package/.agent-docs/nuxt/4.api/3.utils/preload-route-components.md +0 -41
  154. package/.agent-docs/nuxt/4.api/3.utils/prerender-routes.md +0 -46
  155. package/.agent-docs/nuxt/4.api/3.utils/refresh-cookie.md +0 -44
  156. package/.agent-docs/nuxt/4.api/3.utils/refresh-nuxt-data.md +0 -96
  157. package/.agent-docs/nuxt/4.api/3.utils/reload-nuxt-app.md +0 -74
  158. package/.agent-docs/nuxt/4.api/3.utils/set-page-layout.md +0 -60
  159. package/.agent-docs/nuxt/4.api/3.utils/set-response-status.md +0 -36
  160. package/.agent-docs/nuxt/4.api/3.utils/show-error.md +0 -31
  161. package/.agent-docs/nuxt/4.api/3.utils/update-app-config.md +0 -28
  162. package/.agent-docs/nuxt/4.api/4.commands/add.md +0 -112
  163. package/.agent-docs/nuxt/4.api/4.commands/analyze.md +0 -42
  164. package/.agent-docs/nuxt/4.api/4.commands/build-module.md +0 -42
  165. package/.agent-docs/nuxt/4.api/4.commands/build.md +0 -47
  166. package/.agent-docs/nuxt/4.api/4.commands/cleanup.md +0 -38
  167. package/.agent-docs/nuxt/4.api/4.commands/dev.md +0 -60
  168. package/.agent-docs/nuxt/4.api/4.commands/devtools.md +0 -38
  169. package/.agent-docs/nuxt/4.api/4.commands/generate.md +0 -42
  170. package/.agent-docs/nuxt/4.api/4.commands/info.md +0 -33
  171. package/.agent-docs/nuxt/4.api/4.commands/init.md +0 -50
  172. package/.agent-docs/nuxt/4.api/4.commands/module.md +0 -84
  173. package/.agent-docs/nuxt/4.api/4.commands/prepare.md +0 -41
  174. package/.agent-docs/nuxt/4.api/4.commands/preview.md +0 -44
  175. package/.agent-docs/nuxt/4.api/4.commands/test.md +0 -40
  176. package/.agent-docs/nuxt/4.api/4.commands/typecheck.md +0 -44
  177. package/.agent-docs/nuxt/4.api/4.commands/upgrade.md +0 -37
  178. package/.agent-docs/nuxt/4.api/5.kit/1.modules.md +0 -401
  179. package/.agent-docs/nuxt/4.api/5.kit/10.runtime-config.md +0 -29
  180. package/.agent-docs/nuxt/4.api/5.kit/10.templates.md +0 -309
  181. package/.agent-docs/nuxt/4.api/5.kit/11.nitro.md +0 -503
  182. package/.agent-docs/nuxt/4.api/5.kit/12.resolving.md +0 -214
  183. package/.agent-docs/nuxt/4.api/5.kit/13.logging.md +0 -55
  184. package/.agent-docs/nuxt/4.api/5.kit/14.builder.md +0 -327
  185. package/.agent-docs/nuxt/4.api/5.kit/15.examples.md +0 -39
  186. package/.agent-docs/nuxt/4.api/5.kit/16.layers.md +0 -220
  187. package/.agent-docs/nuxt/4.api/5.kit/2.programmatic.md +0 -72
  188. package/.agent-docs/nuxt/4.api/5.kit/3.compatibility.md +0 -183
  189. package/.agent-docs/nuxt/4.api/5.kit/4.autoimports.md +0 -148
  190. package/.agent-docs/nuxt/4.api/5.kit/5.components.md +0 -146
  191. package/.agent-docs/nuxt/4.api/5.kit/6.context.md +0 -174
  192. package/.agent-docs/nuxt/4.api/5.kit/7.pages.md +0 -193
  193. package/.agent-docs/nuxt/4.api/5.kit/8.layout.md +0 -99
  194. package/.agent-docs/nuxt/4.api/5.kit/9.head.md +0 -132
  195. package/.agent-docs/nuxt/4.api/5.kit/9.plugins.md +0 -217
  196. package/.agent-docs/nuxt/4.api/6.advanced/1.hooks.md +0 -105
  197. package/.agent-docs/nuxt/4.api/6.advanced/2.import-meta.md +0 -60
  198. package/.agent-docs/nuxt/4.api/6.nuxt-config.md +0 -2422
  199. package/.agent-docs/nuxt/4.api/index.md +0 -31
  200. package/.agent-docs/nuxt/5.community/2.getting-help.md +0 -48
  201. package/.agent-docs/nuxt/5.community/3.reporting-bugs.md +0 -50
  202. package/.agent-docs/nuxt/5.community/4.contribution.md +0 -223
  203. package/.agent-docs/nuxt/5.community/5.framework-contribution.md +0 -142
  204. package/.agent-docs/nuxt/5.community/6.roadmap.md +0 -84
  205. package/.agent-docs/nuxt/5.community/7.changelog.md +0 -112
  206. package/.agent-docs/nuxt/6.bridge/1.overview.md +0 -145
  207. package/.agent-docs/nuxt/6.bridge/10.configuration.md +0 -97
  208. package/.agent-docs/nuxt/6.bridge/2.typescript.md +0 -48
  209. package/.agent-docs/nuxt/6.bridge/3.bridge-composition-api.md +0 -132
  210. package/.agent-docs/nuxt/6.bridge/4.plugins-and-middleware.md +0 -65
  211. package/.agent-docs/nuxt/6.bridge/5.nuxt3-compatible-api.md +0 -207
  212. package/.agent-docs/nuxt/6.bridge/6.meta.md +0 -118
  213. package/.agent-docs/nuxt/6.bridge/7.runtime-config.md +0 -38
  214. package/.agent-docs/nuxt/6.bridge/8.nitro.md +0 -106
  215. package/.agent-docs/nuxt/6.bridge/9.vite.md +0 -37
  216. package/.agent-docs/nuxt/7.migration/1.overview.md +0 -24
  217. package/.agent-docs/nuxt/7.migration/10.bundling.md +0 -28
  218. package/.agent-docs/nuxt/7.migration/11.server.md +0 -17
  219. package/.agent-docs/nuxt/7.migration/2.configuration.md +0 -256
  220. package/.agent-docs/nuxt/7.migration/20.module-authors.md +0 -94
  221. package/.agent-docs/nuxt/7.migration/3.auto-imports.md +0 -18
  222. package/.agent-docs/nuxt/7.migration/4.meta.md +0 -130
  223. package/.agent-docs/nuxt/7.migration/5.plugins-and-middleware.md +0 -80
  224. package/.agent-docs/nuxt/7.migration/6.pages-and-layouts.md +0 -237
  225. package/.agent-docs/nuxt/7.migration/7.component-options.md +0 -156
  226. package/.agent-docs/nuxt/7.migration/8.runtime-config.md +0 -58
  227. package/.agent-docs/nuxt/README.md +0 -11
  228. package/.agent-docs/tailwindcss/.cache-meta.json +0 -1
  229. package/.agent-docs/vue/.cache-meta.json +0 -1
  230. package/.agent-docs/vue/about/coc.md +0 -47
  231. package/.agent-docs/vue/about/community-guide.md +0 -83
  232. package/.agent-docs/vue/about/faq.md +0 -101
  233. package/.agent-docs/vue/about/privacy.md +0 -42
  234. package/.agent-docs/vue/about/releases.md +0 -79
  235. package/.agent-docs/vue/about/team.md +0 -10
  236. package/.agent-docs/vue/api/application.md +0 -664
  237. package/.agent-docs/vue/api/built-in-components.md +0 -354
  238. package/.agent-docs/vue/api/built-in-directives.md +0 -541
  239. package/.agent-docs/vue/api/built-in-special-attributes.md +0 -111
  240. package/.agent-docs/vue/api/built-in-special-elements.md +0 -164
  241. package/.agent-docs/vue/api/compile-time-flags.md +0 -106
  242. package/.agent-docs/vue/api/component-instance.md +0 -326
  243. package/.agent-docs/vue/api/composition-api-dependency-injection.md +0 -120
  244. package/.agent-docs/vue/api/composition-api-helpers.md +0 -138
  245. package/.agent-docs/vue/api/composition-api-lifecycle.md +0 -345
  246. package/.agent-docs/vue/api/composition-api-setup.md +0 -171
  247. package/.agent-docs/vue/api/custom-elements.md +0 -86
  248. package/.agent-docs/vue/api/custom-renderer.md +0 -77
  249. package/.agent-docs/vue/api/general.md +0 -227
  250. package/.agent-docs/vue/api/index.md +0 -12
  251. package/.agent-docs/vue/api/options-composition.md +0 -266
  252. package/.agent-docs/vue/api/options-lifecycle.md +0 -348
  253. package/.agent-docs/vue/api/options-misc.md +0 -173
  254. package/.agent-docs/vue/api/options-rendering.md +0 -114
  255. package/.agent-docs/vue/api/options-state.md +0 -475
  256. package/.agent-docs/vue/api/reactivity-advanced.md +0 -345
  257. package/.agent-docs/vue/api/reactivity-core.md +0 -581
  258. package/.agent-docs/vue/api/reactivity-utilities.md +0 -265
  259. package/.agent-docs/vue/api/render-function.md +0 -324
  260. package/.agent-docs/vue/api/sfc-css-features.md +0 -223
  261. package/.agent-docs/vue/api/sfc-script-setup.md +0 -562
  262. package/.agent-docs/vue/api/sfc-spec.md +0 -148
  263. package/.agent-docs/vue/api/ssr.md +0 -242
  264. package/.agent-docs/vue/api/utility-types.md +0 -211
  265. package/.agent-docs/vue/ecosystem/newsletters.md +0 -11
  266. package/.agent-docs/vue/ecosystem/themes.md +0 -9
  267. package/.agent-docs/vue/error-reference/index.md +0 -30
  268. package/.agent-docs/vue/examples/index.md +0 -25
  269. package/.agent-docs/vue/glossary/index.md +0 -422
  270. package/.agent-docs/vue/guide/best-practices/accessibility.md +0 -521
  271. package/.agent-docs/vue/guide/best-practices/performance.md +0 -220
  272. package/.agent-docs/vue/guide/best-practices/production-deployment.md +0 -53
  273. package/.agent-docs/vue/guide/best-practices/security.md +0 -183
  274. package/.agent-docs/vue/guide/built-ins/keep-alive.md +0 -143
  275. package/.agent-docs/vue/guide/built-ins/suspense.md +0 -170
  276. package/.agent-docs/vue/guide/built-ins/teleport.md +0 -216
  277. package/.agent-docs/vue/guide/built-ins/transition-group.md +0 -139
  278. package/.agent-docs/vue/guide/built-ins/transition.md +0 -657
  279. package/.agent-docs/vue/guide/components/async.md +0 -212
  280. package/.agent-docs/vue/guide/components/attrs.md +0 -194
  281. package/.agent-docs/vue/guide/components/events.md +0 -290
  282. package/.agent-docs/vue/guide/components/props.md +0 -762
  283. package/.agent-docs/vue/guide/components/provide-inject.md +0 -386
  284. package/.agent-docs/vue/guide/components/registration.md +0 -141
  285. package/.agent-docs/vue/guide/components/slots.md +0 -543
  286. package/.agent-docs/vue/guide/components/v-model.md +0 -609
  287. package/.agent-docs/vue/guide/essentials/application.md +0 -124
  288. package/.agent-docs/vue/guide/essentials/class-and-style.md +0 -360
  289. package/.agent-docs/vue/guide/essentials/component-basics.md +0 -633
  290. package/.agent-docs/vue/guide/essentials/computed.md +0 -386
  291. package/.agent-docs/vue/guide/essentials/conditional.md +0 -117
  292. package/.agent-docs/vue/guide/essentials/event-handling.md +0 -361
  293. package/.agent-docs/vue/guide/essentials/forms.md +0 -476
  294. package/.agent-docs/vue/guide/essentials/lifecycle.md +0 -66
  295. package/.agent-docs/vue/guide/essentials/list.md +0 -440
  296. package/.agent-docs/vue/guide/essentials/reactivity-fundamentals.md +0 -598
  297. package/.agent-docs/vue/guide/essentials/template-refs.md +0 -348
  298. package/.agent-docs/vue/guide/essentials/template-syntax.md +0 -291
  299. package/.agent-docs/vue/guide/essentials/watchers.md +0 -670
  300. package/.agent-docs/vue/guide/extras/animation.md +0 -216
  301. package/.agent-docs/vue/guide/extras/composition-api-faq.md +0 -159
  302. package/.agent-docs/vue/guide/extras/reactivity-in-depth.md +0 -484
  303. package/.agent-docs/vue/guide/extras/reactivity-transform.md +0 -346
  304. package/.agent-docs/vue/guide/extras/render-function.md +0 -879
  305. package/.agent-docs/vue/guide/extras/rendering-mechanism.md +0 -192
  306. package/.agent-docs/vue/guide/extras/ways-of-using-vue.md +0 -60
  307. package/.agent-docs/vue/guide/extras/web-components.md +0 -519
  308. package/.agent-docs/vue/guide/introduction.md +0 -282
  309. package/.agent-docs/vue/guide/quick-start.md +0 -417
  310. package/.agent-docs/vue/guide/reusability/composables.md +0 -382
  311. package/.agent-docs/vue/guide/reusability/custom-directives.md +0 -290
  312. package/.agent-docs/vue/guide/reusability/plugins.md +0 -138
  313. package/.agent-docs/vue/guide/scaling-up/routing.md +0 -107
  314. package/.agent-docs/vue/guide/scaling-up/sfc.md +0 -107
  315. package/.agent-docs/vue/guide/scaling-up/ssr.md +0 -361
  316. package/.agent-docs/vue/guide/scaling-up/state-management.md +0 -237
  317. package/.agent-docs/vue/guide/scaling-up/testing.md +0 -455
  318. package/.agent-docs/vue/guide/scaling-up/tooling.md +0 -189
  319. package/.agent-docs/vue/guide/typescript/composition-api.md +0 -518
  320. package/.agent-docs/vue/guide/typescript/options-api.md +0 -297
  321. package/.agent-docs/vue/guide/typescript/overview.md +0 -207
  322. package/.agent-docs/vue/index.md +0 -10
  323. package/.agent-docs/vue/partners/[partnerId].md +0 -13
  324. package/.agent-docs/vue/partners/all.md +0 -10
  325. package/.agent-docs/vue/partners/index.md +0 -11
  326. package/.agent-docs/vue/sponsor/index.md +0 -84
  327. package/.agent-docs/vue/style-guide/index.md +0 -45
  328. package/.agent-docs/vue/style-guide/rules-essential.md +0 -426
  329. package/.agent-docs/vue/style-guide/rules-recommended.md +0 -316
  330. package/.agent-docs/vue/style-guide/rules-strongly-recommended.md +0 -886
  331. package/.agent-docs/vue/style-guide/rules-use-with-caution.md +0 -255
  332. package/.agent-docs/vue/translations/index.md +0 -34
  333. package/.agent-docs/vue/tutorial/index.md +0 -26
  334. package/.agent-docs/vue/tutorial/src/step-1/description.md +0 -52
  335. package/.agent-docs/vue/tutorial/src/step-10/description.md +0 -43
  336. package/.agent-docs/vue/tutorial/src/step-11/description.md +0 -68
  337. package/.agent-docs/vue/tutorial/src/step-12/description.md +0 -72
  338. package/.agent-docs/vue/tutorial/src/step-13/description.md +0 -71
  339. package/.agent-docs/vue/tutorial/src/step-14/description.md +0 -49
  340. package/.agent-docs/vue/tutorial/src/step-15/description.md +0 -13
  341. package/.agent-docs/vue/tutorial/src/step-2/description.md +0 -130
  342. package/.agent-docs/vue/tutorial/src/step-3/description.md +0 -19
  343. package/.agent-docs/vue/tutorial/src/step-4/description.md +0 -111
  344. package/.agent-docs/vue/tutorial/src/step-5/description.md +0 -47
  345. package/.agent-docs/vue/tutorial/src/step-6/description.md +0 -20
  346. package/.agent-docs/vue/tutorial/src/step-7/description.md +0 -55
  347. package/.agent-docs/vue/tutorial/src/step-8/description.md +0 -104
  348. package/.agent-docs/vue/tutorial/src/step-9/description.md +0 -100
  349. package/.playground/content/__menu-header.md +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wordup-md/nuxt-layer-shadcn-unocss",
3
3
  "type": "module",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "author": "Emmanuel Salomon <emmanuel.salomon@gmail.com>",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
package/pages/index.vue CHANGED
@@ -1,12 +1,14 @@
1
1
  <template>
2
2
  <NuxtLayout :class="page?.header?.position === 'over' && 'header-over'">
3
- <ContentCms
4
- v-if="page"
5
- :key="page._id"
6
- :value="page"
7
- class="content-grid"
8
- />
9
- <!-- <ContentRenderer :key="page._id" :value="page" class="content-grid" /> -->
3
+ <main>
4
+ <ContentCms
5
+ v-if="page"
6
+ :key="page._id"
7
+ :value="page"
8
+ class="content-grid"
9
+ />
10
+ <!-- <ContentRenderer :key="page._id" :value="page" class="content-grid" /> -->
11
+ </main>
10
12
  </NuxtLayout>
11
13
  </template>
12
14
 
@@ -1 +0,0 @@
1
- {"skill":"nuxt","version":"3.17.2","branch":"main","fetchedAt":1770327660571}
@@ -1,81 +0,0 @@
1
- ---
2
- title: Introduction
3
- description: Nuxt's goal is to make web development intuitive and performant with a great Developer Experience in mind.
4
- navigation:
5
- icon: i-lucide-info
6
- ---
7
-
8
- Nuxt is a free and [open-source framework](https://github.com/nuxt/nuxt) with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with [Vue.js](https://vuejs.org).
9
-
10
- We made everything so you can start writing `.vue` files from the beginning while enjoying hot module replacement in development and a performant application in production with server-side rendering by default.
11
-
12
- Nuxt has no vendor lock-in, allowing you to deploy your application [**everywhere, even on the edge**](/blog/nuxt-on-the-edge).
13
-
14
- ::tip
15
- If you want to play around with Nuxt in your browser, you can [try it out in one of our online sandboxes](/docs/4.x/getting-started/installation#play-online).
16
- ::
17
-
18
- ## Automation and Conventions
19
-
20
- Nuxt uses conventions and an opinionated directory structure to automate repetitive tasks and allow developers to focus on pushing features. The configuration file can still customize and override its default behaviors.
21
-
22
- - **File-based routing:** define routes based on the structure of your [`app/pages/` directory](/docs/4.x/directory-structure/app/pages). This can make it easier to organize your application and avoid the need for manual route configuration.
23
- - **Code splitting:** Nuxt automatically splits your code into smaller chunks, which can help reduce the initial load time of your application.
24
- - **Server-side rendering out of the box:** Nuxt comes with built-in SSR capabilities, so you don't have to set up a separate server yourself.
25
- - **Auto-imports:** write Vue composables and components in their respective directories and use them without having to import them with the benefits of tree-shaking and optimized JS bundles.
26
- - **Data-fetching utilities:** Nuxt provides composables to handle SSR-compatible data fetching as well as different strategies.
27
- - **Zero-config TypeScript support:** write type-safe code without having to learn TypeScript with our auto-generated types and `tsconfig.json`.
28
- - **Configured build tools:** we use [Vite](https://vite.dev) by default to support hot module replacement (HMR) in development and bundling your code for production with best-practices baked-in.
29
-
30
- Nuxt takes care of these and provides both frontend and backend functionality so you can focus on what matters: **creating your web application**.
31
-
32
- ## Server-Side Rendering
33
-
34
- Nuxt comes with built-in server-side rendering (SSR) capabilities by default, without having to configure a server yourself, which has many benefits for web applications:
35
-
36
- - **Faster initial page load time:** Nuxt sends a fully rendered HTML page to the browser, which can be displayed immediately. This can provide a faster perceived page load time and a better user experience (UX), especially on slower networks or devices.
37
- - **Improved SEO:** search engines can better index SSR pages because the HTML content is available immediately, rather than requiring JavaScript to render the content on the client-side.
38
- - **Better performance on low-powered devices:** it reduces the amount of JavaScript that needs to be downloaded and executed on the client-side, which can be beneficial for low-powered devices that may struggle with processing heavy JavaScript applications.
39
- - **Better accessibility:** the content is immediately available on the initial page load, improving accessibility for users who rely on screen readers or other assistive technologies.
40
- - **Easier caching:** pages can be cached on the server-side, which can further improve performance by reducing the amount of time it takes to generate and send the content to the client.
41
-
42
- Overall, server-side rendering can provide a faster and more efficient user experience, as well as improve search engine optimization and accessibility.
43
-
44
- As Nuxt is a versatile framework, it gives you the possibility to statically render your whole application to a static hosting with `nuxt generate`,
45
- disable SSR globally with the `ssr: false` option or leverage hybrid rendering by setting up the `routeRules` option.
46
-
47
- :read-more{title="Nuxt rendering modes" to="/docs/4.x/guide/concepts/rendering"}
48
-
49
- ### Server engine
50
-
51
- The Nuxt server engine [Nitro](https://nitro.build/) unlocks new full-stack capabilities.
52
-
53
- In development, it uses Rollup and Node.js workers for your server code and context isolation. It also generates your server API by reading files in `server/api/` and server middleware from `server/middleware/`.
54
-
55
- In production, Nitro builds your app and server into one universal `.output` directory. This output is light: minified and removed from any Node.js modules (except polyfills). You can deploy this output on any system supporting JavaScript, from Node.js, Serverless, Workers, Edge-side rendering or purely static.
56
-
57
- :read-more{title="Nuxt server engine" to="/docs/4.x/guide/concepts/server-engine"}
58
-
59
- ### Production-ready
60
-
61
- A Nuxt application can be deployed on a Node or Deno server, pre-rendered to be hosted in static environments, or deployed to serverless and edge providers.
62
-
63
- :read-more{title="Deployment section" to="/docs/4.x/getting-started/deployment"}
64
-
65
- ### Modular
66
-
67
- A module system allows you to extend Nuxt with custom features and integrations with third-party services.
68
-
69
- :read-more{title="Nuxt Modules Concept" to="/docs/4.x/guide/concepts/modules"}
70
-
71
- ### Architecture
72
-
73
- Nuxt is composed of different [core packages](https://github.com/nuxt/nuxt/tree/main/packages):
74
-
75
- - Core engine: [nuxt](https://github.com/nuxt/nuxt/tree/main/packages/nuxt)
76
- - Bundlers: [@nuxt/vite-builder](https://github.com/nuxt/nuxt/tree/main/packages/vite), [@nuxt/rspack-builder](https://github.com/nuxt/nuxt/tree/main/packages/rspack) and [@nuxt/webpack-builder](https://github.com/nuxt/nuxt/tree/main/packages/webpack)
77
- - Command line interface: [@nuxt/cli](https://github.com/nuxt/cli)
78
- - Server engine: [nitro](https://github.com/nitrojs/nitro)
79
- - Development kit: [@nuxt/kit](https://github.com/nuxt/nuxt/tree/main/packages/kit)
80
-
81
- We recommend reading each concept to have a full vision of Nuxt capabilities and the scope of each package.
@@ -1,115 +0,0 @@
1
- ---
2
- title: 'Installation'
3
- description: 'Get started with Nuxt quickly with our online starters or start locally with your terminal.'
4
- navigation.icon: i-lucide-play
5
- ---
6
-
7
- ## Play Online
8
-
9
- If you just want to play around with Nuxt in your browser without setting up a project, you can use one of our online sandboxes:
10
-
11
- ::card-group
12
- :card{title="Open on StackBlitz" icon="i-simple-icons-stackblitz" to="https://nuxt.new/s/v4" target="_blank"}
13
- :card{title="Open on CodeSandbox" icon="i-simple-icons-codesandbox" to="https://nuxt.new/c/v4" target="_blank"}
14
- ::
15
-
16
- Or follow the steps below to set up a new Nuxt project on your computer.
17
-
18
- ## New Project
19
-
20
- ### Prerequisites
21
-
22
- - **Node.js** - [`20.x`](https://nodejs.org/en) or newer (but we recommend the [active LTS release](https://github.com/nodejs/release#release-schedule))
23
- - **Text editor** - There is no IDE requirement, but we recommend [Visual Studio Code](https://code.visualstudio.com/) with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously known as Volar) or [WebStorm](https://www.jetbrains.com/webstorm/), which, along with [other JetBrains IDEs](https://www.jetbrains.com/ides/), offers great Nuxt support right out-of-the-box.
24
- - **Terminal** - In order to run Nuxt commands
25
-
26
- ::note
27
- ::details
28
- :summary[Additional notes for an optimal setup:]
29
- - **Node.js**: Make sure to use an even numbered version (20, 22, etc.)
30
- - **WSL**: If you are using Windows and experience slow HMR, you may want to try using [WSL (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/install) which may solve some performance issues.
31
- - **Windows slow DNS resolution**: Instead of using `localhost:3000` for local dev server on Windows, use `127.0.0.1` for much faster loading experience on browsers.
32
- ::
33
- ::
34
-
35
- Open a terminal (if you're using [Visual Studio Code](https://code.visualstudio.com), you can open an [integrated terminal](https://code.visualstudio.com/docs/terminal/basics)) and use the following command to create a new starter project:
36
-
37
- ::code-group{sync="pm"}
38
-
39
- ```bash [npm]
40
- npm create nuxt@latest <project-name>
41
- ```
42
-
43
- ```bash [yarn]
44
- yarn create nuxt <project-name>
45
- ```
46
-
47
- ```bash [pnpm]
48
- pnpm create nuxt@latest <project-name>
49
- ```
50
-
51
- ```bash [bun]
52
- bun create nuxt@latest <project-name>
53
- ```
54
-
55
- ```bash [deno]
56
- deno -A npm:create-nuxt@latest <project-name>
57
- ```
58
-
59
- ::
60
-
61
- ::tip
62
- Alternatively, you can find other starters or themes by opening [nuxt.new](https://nuxt.new) and following the instructions there.
63
- ::
64
-
65
- Open your project folder in Visual Studio Code:
66
-
67
- ```bash [Terminal]
68
- code <project-name>
69
- ```
70
-
71
- Or change directory into your new project from your terminal:
72
-
73
- ```bash
74
- cd <project-name>
75
- ```
76
-
77
- ## Development Server
78
-
79
- Now you'll be able to start your Nuxt app in development mode:
80
-
81
- ::code-group{sync="pm"}
82
-
83
- ```bash [npm]
84
- npm run dev -- -o
85
- ```
86
-
87
- ```bash [yarn]
88
- yarn dev --open
89
- ```
90
-
91
- ```bash [pnpm]
92
- pnpm dev -o
93
- ```
94
-
95
- ```bash [bun]
96
- bun run dev -o
97
-
98
- # To use the Bun runtime during development
99
- # bun --bun run dev -o
100
- ```
101
-
102
- ```bash [deno]
103
- deno run dev -o
104
- ```
105
- ::
106
-
107
- ::tip{icon="i-lucide-circle-check"}
108
- Well done! A browser window should automatically open for <http://localhost:3000>.
109
- ::
110
-
111
- ## Next Steps
112
-
113
- Now that you've created your Nuxt project, you are ready to start building your application.
114
-
115
- :read-more{title="Nuxt Concepts" to="/docs/4.x/guide/concepts"}
@@ -1,226 +0,0 @@
1
- ---
2
- title: Configuration
3
- description: Nuxt is configured with sensible defaults to make you productive.
4
- navigation.icon: i-lucide-cog
5
- ---
6
-
7
- By default, Nuxt is configured to cover most use cases. The [`nuxt.config.ts`](/docs/4.x/directory-structure/nuxt-config) file can override or extend this default configuration.
8
-
9
- ## Nuxt Configuration
10
-
11
- The [`nuxt.config.ts`](/docs/4.x/directory-structure/nuxt-config) file is located at the root of a Nuxt project and can override or extend the application's behavior.
12
-
13
- A minimal configuration file exports the `defineNuxtConfig` function containing an object with your configuration. The `defineNuxtConfig` helper is globally available without import.
14
-
15
- ```ts twoslash [nuxt.config.ts]
16
- export default defineNuxtConfig({
17
- // My Nuxt config
18
- })
19
- ```
20
-
21
- This file will often be mentioned in the documentation, for example to add custom scripts, register modules or change rendering modes.
22
-
23
- ::read-more{to="/docs/4.x/api/configuration/nuxt-config"}
24
- Every option is described in the **Configuration Reference**.
25
- ::
26
-
27
- ::note
28
- You don't have to use TypeScript to build an application with Nuxt. However, it is strongly recommended to use the `.ts` extension for the `nuxt.config` file. This way you can benefit from hints in your IDE to avoid typos and mistakes while editing your configuration.
29
- ::
30
-
31
- ### Environment Overrides
32
-
33
- You can configure fully typed, per-environment overrides in your nuxt.config
34
-
35
- ```ts twoslash [nuxt.config.ts]
36
- export default defineNuxtConfig({
37
- $production: {
38
- routeRules: {
39
- '/**': { isr: true },
40
- },
41
- },
42
- $development: {
43
- //
44
- },
45
- $env: {
46
- staging: {
47
- //
48
- },
49
- },
50
- })
51
- ```
52
-
53
- To select an environment when running a Nuxt CLI command, simply pass the name to the `--envName` flag, like so: `nuxt build --envName staging`.
54
-
55
- To learn more about the mechanism behind these overrides, please refer to the `c12` documentation on [environment-specific configuration](https://github.com/unjs/c12?tab=readme-ov-file#environment-specific-configuration).
56
-
57
- :video-accordion{title="Watch a video from Alexander Lichter about the env-aware nuxt.config.ts" videoId="DFZI2iVCrNc"}
58
-
59
- ::note
60
- If you're authoring layers, you can also use the `$meta` key to provide metadata that you or the consumers of your layer might use.
61
- ::
62
-
63
- ### Environment Variables and Private Tokens
64
-
65
- The `runtimeConfig` API exposes values like environment variables to the rest of your application. By default, these keys are only available server-side. The keys within `runtimeConfig.public` and `runtimeConfig.app` (which is used by Nuxt internally) are also available client-side.
66
-
67
- Those values should be defined in `nuxt.config` and can be overridden using environment variables.
68
-
69
- ::code-group
70
-
71
- ```ts twoslash [nuxt.config.ts]
72
- export default defineNuxtConfig({
73
- runtimeConfig: {
74
- // The private keys which are only available server-side
75
- apiSecret: '123',
76
- // Keys within public are also exposed client-side
77
- public: {
78
- apiBase: '/api',
79
- },
80
- },
81
- })
82
- ```
83
-
84
- ```ini [.env]
85
- # This will override the value of apiSecret
86
- NUXT_API_SECRET=api_secret_token
87
- ```
88
-
89
- ::
90
-
91
- These variables are exposed to the rest of your application using the [`useRuntimeConfig()`](/docs/4.x/api/composables/use-runtime-config) composable.
92
-
93
- ```vue [app/pages/index.vue]
94
- <script setup lang="ts">
95
- const runtimeConfig = useRuntimeConfig()
96
- </script>
97
- ```
98
-
99
- :read-more{to="/docs/4.x/guide/going-further/runtime-config"}
100
-
101
- ## App Configuration
102
-
103
- The `app.config.ts` file, located in the source directory (by default `app/`), is used to expose public variables that can be determined at build time. Contrary to the `runtimeConfig` option, these cannot be overridden using environment variables.
104
-
105
- A minimal configuration file exports the `defineAppConfig` function containing an object with your configuration. The `defineAppConfig` helper is globally available without import.
106
-
107
- ```ts [app/app.config.ts]
108
- export default defineAppConfig({
109
- title: 'Hello Nuxt',
110
- theme: {
111
- dark: true,
112
- colors: {
113
- primary: '#ff0000',
114
- },
115
- },
116
- })
117
- ```
118
-
119
- These variables are exposed to the rest of your application using the [`useAppConfig`](/docs/4.x/api/composables/use-app-config) composable.
120
-
121
- ```vue [app/pages/index.vue]
122
- <script setup lang="ts">
123
- const appConfig = useAppConfig()
124
- </script>
125
- ```
126
-
127
- :read-more{to="/docs/4.x/directory-structure/app/app-config"}
128
-
129
- ## `runtimeConfig` vs. `app.config`
130
-
131
- As stated above, `runtimeConfig` and `app.config` are both used to expose variables to the rest of your application. To determine whether you should use one or the other, here are some guidelines:
132
-
133
- - `runtimeConfig`: Private or public tokens that need to be specified after build using environment variables.
134
- - `app.config`: Public tokens that are determined at build time, website configuration such as theme variant, title and any project config that are not sensitive.
135
-
136
- | Feature | `runtimeConfig` | `app.config` |
137
- |---------------------------|-----------------|--------------|
138
- | Client-side | Hydrated | Bundled |
139
- | Environment variables | ✅ Yes | ❌ No |
140
- | Reactive | ✅ Yes | ✅ Yes |
141
- | Types support | ✅ Partial | ✅ Yes |
142
- | Configuration per request | ❌ No | ✅ Yes |
143
- | Hot module replacement | ❌ No | ✅ Yes |
144
- | Non-primitive JS types | ❌ No | ✅ Yes |
145
-
146
- ## External Configuration Files
147
-
148
- Nuxt uses [`nuxt.config.ts`](/docs/4.x/directory-structure/nuxt-config) file as the single source of truth for configurations and skips reading external configuration files. During the course of building your project, you may have a need to configure those. The following table highlights common configurations and, where applicable, how they can be configured with Nuxt.
149
-
150
- | Name | Config File | How To Configure |
151
- |-----------------------------------|-------------------------|---------------------------------------------------------------------------|
152
- | [Nitro](https://nitro.build) | ~~`nitro.config.ts`~~ | Use [`nitro`](/docs/4.x/api/nuxt-config#nitro) key in `nuxt.config` |
153
- | [PostCSS](https://postcss.org) | ~~`postcss.config.js`~~ | Use [`postcss`](/docs/4.x/api/nuxt-config#postcss) key in `nuxt.config` |
154
- | [Vite](https://vite.dev) | ~~`vite.config.ts`~~ | Use [`vite`](/docs/4.x/api/nuxt-config#vite) key in `nuxt.config` |
155
- | [webpack](https://webpack.js.org) | ~~`webpack.config.ts`~~ | Use [`webpack`](/docs/4.x/api/nuxt-config#webpack-1) key in `nuxt.config` |
156
-
157
- Here is a list of other common config files:
158
-
159
- | Name | Config File | How To Configure |
160
- |----------------------------------------------|-----------------------|-------------------------------------------------------------------------------|
161
- | [TypeScript](https://www.typescriptlang.org) | `tsconfig.json` | [More Info](/docs/4.x/directory-structure/tsconfig) |
162
- | [ESLint](https://eslint.org) | `eslint.config.js` | [More Info](https://eslint.org/docs/latest/use/configure/configuration-files) |
163
- | [Prettier](https://prettier.io) | `prettier.config.js` | [More Info](https://prettier.io/docs/configuration.html) |
164
- | [Stylelint](https://stylelint.io) | `stylelint.config.js` | [More Info](https://stylelint.io/user-guide/configure/) |
165
- | [TailwindCSS](https://tailwindcss.com) | `tailwind.config.js` | [More Info](https://tailwindcss.nuxtjs.org/tailwindcss/configuration/) |
166
- | [Vitest](https://vitest.dev) | `vitest.config.ts` | [More Info](https://vitest.dev/config/) |
167
-
168
- ## Vue Configuration
169
-
170
- ### With Vite
171
-
172
- If you need to pass options to `@vitejs/plugin-vue` or `@vitejs/plugin-vue-jsx`, you can do this in your `nuxt.config` file.
173
-
174
- - `vite.vue` for `@vitejs/plugin-vue`. Check [available options](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue).
175
- - `vite.vueJsx` for `@vitejs/plugin-vue-jsx`. Check [available options](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx).
176
-
177
- ```ts twoslash [nuxt.config.ts]
178
- export default defineNuxtConfig({
179
- vite: {
180
- vue: {
181
- customElement: true,
182
- },
183
- vueJsx: {
184
- mergeProps: true,
185
- },
186
- },
187
- })
188
- ```
189
-
190
- :read-more{to="/docs/4.x/api/configuration/nuxt-config#vue"}
191
-
192
- ### With webpack
193
-
194
- If you use webpack and need to configure `vue-loader`, you can do this using `webpack.loaders.vue` key inside your `nuxt.config` file. The available options are [defined here](https://github.com/vuejs/vue-loader/blob/main/src/index.ts#L32-L62).
195
-
196
- ```ts twoslash [nuxt.config.ts]
197
- export default defineNuxtConfig({
198
- webpack: {
199
- loaders: {
200
- vue: {
201
- hotReload: true,
202
- },
203
- },
204
- },
205
- })
206
- ```
207
-
208
- :read-more{to="/docs/4.x/api/configuration/nuxt-config#loaders"}
209
-
210
- ### Enabling Experimental Vue Features
211
-
212
- You may need to enable experimental features in Vue, such as `propsDestructure`. Nuxt provides an easy way to do that in `nuxt.config.ts`, no matter which builder you are using:
213
-
214
- ```ts twoslash [nuxt.config.ts]
215
- export default defineNuxtConfig({
216
- vue: {
217
- propsDestructure: true,
218
- },
219
- })
220
- ```
221
-
222
- #### experimental `reactivityTransform` migration from Vue 3.4 and Nuxt 3.9
223
-
224
- Since Nuxt 3.9 and Vue 3.4, `reactivityTransform` has been moved from Vue to Vue Macros which has a [Nuxt integration](https://vue-macros.dev/guide/nuxt-integration.html).
225
-
226
- :read-more{to="/docs/4.x/api/configuration/nuxt-config#vue-1"}
@@ -1,165 +0,0 @@
1
- ---
2
- title: 'Views'
3
- description: 'Nuxt provides several component layers to implement the user interface of your application.'
4
- navigation.icon: i-lucide-panels-top-left
5
- ---
6
-
7
- ## `app.vue`
8
-
9
- ![The app.vue file is the entry point of your application](/assets/docs/getting-started/views/app.svg)
10
-
11
- By default, Nuxt will treat this file as the **entrypoint** and render its content for every route of the application.
12
-
13
- ```vue [app/app.vue]
14
- <template>
15
- <div>
16
- <h1>Welcome to the homepage</h1>
17
- </div>
18
- </template>
19
- ```
20
-
21
- ::tip
22
- If you are familiar with Vue, you might wonder where `main.js` is (the file that normally creates a Vue app). Nuxt does this behind the scene.
23
- ::
24
-
25
- ## Components
26
-
27
- ![Components are reusable pieces of UI](/assets/docs/getting-started/views/components.svg)
28
-
29
- Most components are reusable pieces of the user interface, like buttons and menus. In Nuxt, you can create these components in the [`app/components/`](/docs/4.x/directory-structure/app/components) directory, and they will be automatically available across your application without having to explicitly import them.
30
-
31
- ::code-group
32
-
33
- ```vue [app/app.vue]
34
- <template>
35
- <div>
36
- <h1>Welcome to the homepage</h1>
37
- <AppAlert>
38
- This is an auto-imported component.
39
- </AppAlert>
40
- </div>
41
- </template>
42
- ```
43
-
44
- ```vue [app/components/AppAlert.vue]
45
- <template>
46
- <span>
47
- <slot />
48
- </span>
49
- </template>
50
- ```
51
-
52
- ::
53
-
54
- ## Pages
55
-
56
- ![Pages are views tied to a specific route](/assets/docs/getting-started/views/pages.svg)
57
-
58
- Pages represent views for each specific route pattern. Every file in the [`app/pages/`](/docs/4.x/directory-structure/app/pages) directory represents a different route displaying its content.
59
-
60
- To use pages, create an `app/pages/index.vue` file and add `<NuxtPage />` component to the [`app/app.vue`](/docs/4.x/directory-structure/app/app) (or remove `app/app.vue` for default entry). You can now create more pages and their corresponding routes by adding new files in the [`app/pages/`](/docs/4.x/directory-structure/app/pages) directory.
61
-
62
- ::code-group
63
-
64
- ```vue [app/pages/index.vue]
65
- <template>
66
- <div>
67
- <h1>Welcome to the homepage</h1>
68
- <AppAlert>
69
- This is an auto-imported component
70
- </AppAlert>
71
- </div>
72
- </template>
73
- ```
74
-
75
- ```vue [app/pages/about.vue]
76
- <template>
77
- <section>
78
- <p>This page will be displayed at the /about route.</p>
79
- </section>
80
- </template>
81
- ```
82
-
83
- ::
84
-
85
- :read-more{title="Routing Section" to="/docs/4.x/getting-started/routing"}
86
-
87
- ## Layouts
88
-
89
- ![Layouts are wrapper around pages](/assets/docs/getting-started/views/layouts.svg)
90
-
91
- Layouts are wrappers around pages that contain a common User Interface for several pages, such as header and footer displays. Layouts are Vue files using `<slot />` components to display the **page** content. The `app/layouts/default.vue` file will be used by default. Custom layouts can be set as part of your page metadata.
92
-
93
- ::note
94
- If you only have a single layout in your application, we recommend using [`app/app.vue`](/docs/4.x/directory-structure/app/app) with [`<NuxtPage />`](/docs/4.x/api/components/nuxt-page) instead.
95
- ::
96
-
97
- ::code-group
98
-
99
- ```vue [app/app.vue]
100
- <template>
101
- <div>
102
- <NuxtLayout>
103
- <NuxtPage />
104
- </NuxtLayout>
105
- </div>
106
- </template>
107
- ```
108
-
109
- ```vue [app/layouts/default.vue]
110
- <template>
111
- <div>
112
- <AppHeader />
113
- <slot />
114
- <AppFooter />
115
- </div>
116
- </template>
117
- ```
118
-
119
- ```vue [app/pages/index.vue]
120
- <template>
121
- <div>
122
- <h1>Welcome to the homepage</h1>
123
- <AppAlert>
124
- This is an auto-imported component
125
- </AppAlert>
126
- </div>
127
- </template>
128
- ```
129
-
130
- ```vue [app/pages/about.vue]
131
- <template>
132
- <section>
133
- <p>This page will be displayed at the /about route.</p>
134
- </section>
135
- </template>
136
- ```
137
-
138
- ::
139
-
140
- If you want to create more layouts and learn how to use them in your pages, find more information in the [Layouts section](/docs/4.x/directory-structure/app/layouts).
141
-
142
- ## Advanced: Extending the HTML Template
143
-
144
- ::note
145
- If you only need to modify the `<head>`, you can refer to the [SEO and meta section](/docs/4.x/getting-started/seo-meta).
146
- ::
147
-
148
- You can have full control over the HTML template by adding a Nitro plugin that registers a hook.
149
- The callback function of the `render:html` hook allows you to mutate the HTML before it is sent to the client.
150
-
151
- <!-- TODO: figure out how to use twoslash to inject types for a different context -->
152
-
153
- ```ts [server/plugins/extend-html.ts]
154
- export default defineNitroPlugin((nitroApp) => {
155
- nitroApp.hooks.hook('render:html', (html, { event }) => {
156
- // This will be an object representation of the html template.
157
- console.log(html)
158
- html.head.push(`<meta name="description" content="My custom description" />`)
159
- })
160
- // You can also intercept the response here.
161
- nitroApp.hooks.hook('render:response', (response, { event }) => { console.log(response) })
162
- })
163
- ```
164
-
165
- :read-more{to="/docs/4.x/guide/going-further/hooks"}
@@ -1,54 +0,0 @@
1
- ---
2
- title: 'Assets'
3
- description: 'Nuxt offers two options for your assets.'
4
- navigation.icon: i-lucide-image
5
- ---
6
-
7
- Nuxt uses two directories to handle assets like stylesheets, fonts or images.
8
-
9
- - The [`public/`](/docs/4.x/directory-structure/public) directory content is served at the server root as-is.
10
- - The [`app/assets/`](/docs/4.x/directory-structure/app/assets) directory contains by convention every asset that you want the build tool (Vite or webpack) to process.
11
-
12
- ## Public Directory
13
-
14
- The [`public/`](/docs/4.x/directory-structure/public) directory is used as a public server for static assets publicly available at a defined URL of your application.
15
-
16
- You can get a file in the [`public/`](/docs/4.x/directory-structure/public) directory from your application's code or from a browser by the root URL `/`.
17
-
18
- ### Example
19
-
20
- For example, referencing an image file in the `public/img/` directory, available at the static URL `/img/nuxt.png`:
21
-
22
- ```vue [app/app.vue]
23
- <template>
24
- <img
25
- src="/img/nuxt.png"
26
- alt="Discover Nuxt"
27
- >
28
- </template>
29
- ```
30
-
31
- ## Assets Directory
32
-
33
- Nuxt uses [Vite](https://vite.dev/guide/assets) (default) or [webpack](https://webpack.js.org/guides/asset-management/) to build and bundle your application. The main function of these build tools is to process JavaScript files, but they can be extended through [plugins](https://vite.dev/plugins/) (for Vite) or [loaders](https://webpack.js.org/loaders/) (for webpack) to process other kinds of assets, like stylesheets, fonts or SVGs. This step transforms the original file, mainly for performance or caching purposes (such as stylesheet minification or browser cache invalidation).
34
-
35
- By convention, Nuxt uses the [`app/assets/`](/docs/4.x/directory-structure/app/assets) directory to store these files but there is no auto-scan functionality for this directory, and you can use any other name for it.
36
-
37
- In your application's code, you can reference a file located in the [`app/assets/`](/docs/4.x/directory-structure/app/assets) directory by using the `~/assets/` path.
38
-
39
- ### Example
40
-
41
- For example, referencing an image file that will be processed if a build tool is configured to handle this file extension:
42
-
43
- ```vue [app/app.vue]
44
- <template>
45
- <img
46
- src="~/assets/img/nuxt.png"
47
- alt="Discover Nuxt"
48
- >
49
- </template>
50
- ```
51
-
52
- ::note
53
- Nuxt won't serve files in the [`app/assets/`](/docs/4.x/directory-structure/app/assets) directory at a static URL like `/assets/my-file.png`. If you need a static URL, use the [`public/`](/docs/4.x/getting-started/assets#public-directory) directory.
54
- ::