nuxt-ignis 0.3.0 → 0.3.2

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 (128) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.env +43 -0
  3. package/.nuxt/app.config.mjs +227 -1
  4. package/.nuxt/components.d.ts +496 -132
  5. package/.nuxt/content/components.ts +108 -0
  6. package/.nuxt/content/database.compressed.mjs +1 -0
  7. package/.nuxt/content/manifest.ts +33 -0
  8. package/.nuxt/content/sql_dump +6 -0
  9. package/.nuxt/content/types.d.ts +13 -0
  10. package/.nuxt/dev/index.mjs +4719 -66
  11. package/.nuxt/dev/index.mjs.map +1 -1
  12. package/.nuxt/dist/server/client.manifest.json +2 -2
  13. package/.nuxt/dist/server/client.manifest.mjs +18 -1
  14. package/.nuxt/eslint.config.d.mts +2 -2
  15. package/.nuxt/eslint.config.mjs +2 -2
  16. package/.nuxt/i18n.options.mjs +165 -0
  17. package/.nuxt/imports.d.ts +62 -31
  18. package/.nuxt/manifest/latest.json +1 -1
  19. package/.nuxt/manifest/meta/dev.json +1 -1
  20. package/.nuxt/mdc-configs.mjs +8 -0
  21. package/.nuxt/mdc-highlighter.mjs +213 -0
  22. package/.nuxt/mdc-image-component.mjs +1 -0
  23. package/.nuxt/mdc-imports.mjs +12 -0
  24. package/.nuxt/module/@nuxtjs-sitemap.d.ts +28 -0
  25. package/.nuxt/module/nuxt-robots.d.ts +35 -0
  26. package/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
  27. package/.nuxt/module/nuxt-seo-utils.d.ts +22 -0
  28. package/.nuxt/module/nuxt-site-config.d.ts +43 -0
  29. package/.nuxt/nitro.json +4 -4
  30. package/.nuxt/nuxt-i18n-logger.mjs +1 -0
  31. package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
  32. package/.nuxt/nuxt-icon-server-bundle.mjs +15 -0
  33. package/.nuxt/nuxt.d.ts +23 -6
  34. package/.nuxt/nuxt.json +2 -2
  35. package/.nuxt/schema/nuxt.schema.d.ts +193 -0
  36. package/.nuxt/schema/nuxt.schema.json +261 -1
  37. package/.nuxt/tsconfig.json +216 -42
  38. package/.nuxt/tsconfig.server.json +181 -23
  39. package/.nuxt/types/app.config.d.ts +227 -1
  40. package/.nuxt/types/build.d.ts +4 -1
  41. package/.nuxt/types/i18n-plugin.d.ts +104 -0
  42. package/.nuxt/types/imports.d.ts +334 -210
  43. package/.nuxt/types/neon.d.ts +137 -0
  44. package/.nuxt/types/nitro-imports.d.ts +268 -6
  45. package/.nuxt/types/nitro-routes.d.ts +65 -1
  46. package/.nuxt/types/plugins.d.ts +40 -17
  47. package/.nuxt/types/schema.d.ts +984 -2
  48. package/.nuxt/types/ui.d.ts +35 -0
  49. package/.nuxt/ui/accordion.ts +20 -0
  50. package/.nuxt/ui/alert.ts +264 -0
  51. package/.nuxt/ui/avatar-group.ts +52 -0
  52. package/.nuxt/ui/avatar.ts +54 -0
  53. package/.nuxt/ui/badge.ts +263 -0
  54. package/.nuxt/ui/breadcrumb.ts +45 -0
  55. package/.nuxt/ui/button-group.ts +16 -0
  56. package/.nuxt/ui/button.ts +378 -0
  57. package/.nuxt/ui/calendar.ts +103 -0
  58. package/.nuxt/ui/card.ts +34 -0
  59. package/.nuxt/ui/carousel.ts +38 -0
  60. package/.nuxt/ui/checkbox-group.ts +204 -0
  61. package/.nuxt/ui/checkbox.ts +236 -0
  62. package/.nuxt/ui/chip.ts +96 -0
  63. package/.nuxt/ui/collapsible.ts +6 -0
  64. package/.nuxt/ui/color-picker.ts +47 -0
  65. package/.nuxt/ui/command-palette.ts +50 -0
  66. package/.nuxt/ui/container.ts +3 -0
  67. package/.nuxt/ui/context-menu.ts +217 -0
  68. package/.nuxt/ui/drawer.ts +126 -0
  69. package/.nuxt/ui/dropdown-menu.ts +218 -0
  70. package/.nuxt/ui/form-field.ts +48 -0
  71. package/.nuxt/ui/form.ts +3 -0
  72. package/.nuxt/ui/index.ts +50 -0
  73. package/.nuxt/ui/input-menu.ts +436 -0
  74. package/.nuxt/ui/input-number.ts +245 -0
  75. package/.nuxt/ui/input.ts +289 -0
  76. package/.nuxt/ui/kbd.ts +31 -0
  77. package/.nuxt/ui/link.ts +22 -0
  78. package/.nuxt/ui/modal.ts +29 -0
  79. package/.nuxt/ui/navigation-menu.ts +510 -0
  80. package/.nuxt/ui/pagination.ts +13 -0
  81. package/.nuxt/ui/pin-input.ts +171 -0
  82. package/.nuxt/ui/popover.ts +6 -0
  83. package/.nuxt/ui/progress.ts +297 -0
  84. package/.nuxt/ui/radio-group.ts +350 -0
  85. package/.nuxt/ui/select-menu.ts +346 -0
  86. package/.nuxt/ui/select.ts +341 -0
  87. package/.nuxt/ui/separator.ts +172 -0
  88. package/.nuxt/ui/skeleton.ts +3 -0
  89. package/.nuxt/ui/slideover.ts +71 -0
  90. package/.nuxt/ui/slider.ts +171 -0
  91. package/.nuxt/ui/stepper.ts +202 -0
  92. package/.nuxt/ui/switch.ts +131 -0
  93. package/.nuxt/ui/table.ts +147 -0
  94. package/.nuxt/ui/tabs.ts +256 -0
  95. package/.nuxt/ui/textarea.ts +294 -0
  96. package/.nuxt/ui/toast.ts +81 -0
  97. package/.nuxt/ui/toaster.ts +91 -0
  98. package/.nuxt/ui/tooltip.ts +9 -0
  99. package/.nuxt/ui/tree.ts +154 -0
  100. package/.nuxt/ui-image-component.ts +1 -0
  101. package/.nuxt/ui.css +146 -0
  102. package/content.config.ts +6 -10
  103. package/features.ts +43 -22
  104. package/nuxt.config.ts +1 -1
  105. package/package.json +13 -12
  106. package/server/api/neonTest.ts +7 -5
  107. package/tailwind.config.ts +1 -1
  108. package/test/features/db-neon.txt +3 -0
  109. package/test/features/db-off.txt +3 -0
  110. package/test/features/db-supabase.txt +3 -0
  111. package/test/features/default.txt +3 -0
  112. package/test/features/disable-core.txt +3 -0
  113. package/test/features/enable-all.txt +4 -0
  114. package/test/features/forms-formkit.txt +3 -0
  115. package/test/features/forms-off.txt +3 -0
  116. package/test/features/forms-vueform.txt +3 -0
  117. package/test/features/ui-nuxt-ui.txt +3 -0
  118. package/test/features/ui-off.txt +3 -0
  119. package/test/features/ui-tailwind.txt +4 -0
  120. package/test/features.test.ts +191 -0
  121. package/utils/config/content.config.ts +12 -0
  122. package/utils/config/vueform.config.ts +20 -0
  123. package/utils/content.ts +31 -0
  124. package/utils/tailwind.ts +19 -0
  125. package/utils/vueform.ts +16 -0
  126. package/vueform.config.ts +4 -16
  127. package/.nuxt/component-chunk.mjs +0 -1
  128. package/.nuxt/dist/server/server.mjs +0 -1
@@ -0,0 +1,20 @@
1
+ // this is basic "getting started" configuration example
2
+ // for more options check:
3
+ // https://vueform.com/docs/configuration
4
+
5
+ import en from '@vueform/vueform/locales/en'
6
+ import vueform from '@vueform/vueform/dist/vueform'
7
+ import { defineConfig } from '@vueform/vueform'
8
+
9
+ // add Vueform type definitions
10
+ import '@vueform/vueform/types/index.d.ts'
11
+
12
+ // add default CSS styles
13
+ // can be placed anywhere else in your project
14
+ import '@vueform/vueform/dist/vueform.css'
15
+
16
+ export default defineConfig({
17
+ theme: vueform,
18
+ locales: { en },
19
+ locale: 'en',
20
+ })
@@ -0,0 +1,31 @@
1
+ // this function adresses https://github.com/AloisSeckar/nuxt-ignis/issues/70
2
+ // Nuxt Content requires its configuration to be injected and config exported
3
+ // this normally happens in content.config.ts file in project root
4
+ // however, it is not possible to transfer this config file when extending a layer
5
+ // user only have to setup small custom config file in his own project
6
+ // more info in the docs
7
+ // TODO can this be changed? can layer's "auto-imports" be configured?
8
+
9
+ import { defu } from 'defu'
10
+ import { defineCollection } from '@nuxt/content'
11
+ import { log } from './consola'
12
+
13
+ // re-export so it can be called in target apps without '@nuxt/content' dependency
14
+ export function defineContentCollection(...args: Parameters<typeof defineCollection>) {
15
+ return defineCollection(...args)
16
+ }
17
+
18
+ // @ts-expect-error no-implicit-any
19
+ export async function loadContentConfig(userContentConfig) {
20
+ // only if content is allowed
21
+ if (process.env.NUXT_PUBLIC_IGNIS_CONTENT === 'true') {
22
+ // get nuxt-ignis default
23
+ const defaultContentConfig = await import('./config/content.config')
24
+ // merge with possible user values
25
+ const contentConfig = defu(userContentConfig, defaultContentConfig.default)
26
+ return contentConfig
27
+ }
28
+ // otherwise there is nothing to load
29
+ log.warn('@nuxt/content is not enabled, ensure you have NUXT_PUBLIC_IGNIS_CONTENT=true')
30
+ return null
31
+ }
@@ -0,0 +1,19 @@
1
+ // TEMPORARY FIX for https://github.com/tailwindlabs/tailwindcss/discussions/16119
2
+ export const ignisTailwindcssFix = {
3
+ name: 'vite-plugin-ignore-sourcemap-warnings',
4
+ apply: 'build',
5
+ // @ts-expect-error no-implicit-any
6
+ configResolved(config) {
7
+ // @ts-expect-error no-implicit-any
8
+ config.build.rollupOptions.onwarn = (warning, warn) => {
9
+ if (
10
+ warning.code === 'SOURCEMAP_BROKEN'
11
+ && warning.plugin === '@tailwindcss/vite:generate:build'
12
+ ) {
13
+ return
14
+ }
15
+
16
+ warn(warning)
17
+ }
18
+ },
19
+ }
@@ -0,0 +1,16 @@
1
+ // this function adresses https://github.com/AloisSeckar/nuxt-ignis/issues/71
2
+ // Vueform requires its configuration to be injected and config exported
3
+ // this normally happens in vueform.config.ts file in project root
4
+ // however, it is not possible to transfer this config file when extending a layer
5
+ // user only have to setup small custom config file in his own project
6
+ // more info in the docs
7
+ // TODO can this be changed? can layer's "auto-imports" be configured?
8
+
9
+ export async function loadDefaultVueformConfig() {
10
+ const config = useRuntimeConfig().public.ignis
11
+ if (config.preset.forms === 'vueform' || config.vueform === true) {
12
+ const vueformConfig = await import('./config/vueform.config')
13
+ return vueformConfig.default
14
+ }
15
+ return null
16
+ }
package/vueform.config.ts CHANGED
@@ -1,20 +1,8 @@
1
- // this is basic "getting started" configuration example
2
- // for more options check:
3
- // https://vueform.com/docs/configuration
1
+ // minimal config for Vueform
2
+ // currently required to be loaded like this...
4
3
 
5
- import en from '@vueform/vueform/locales/en'
6
- import vueform from '@vueform/vueform/dist/vueform'
7
4
  import { defineConfig } from '@vueform/vueform'
8
5
 
9
- // add Vueform type definitions
10
- import '@vueform/vueform/types/index.d.ts'
6
+ const vueformConfig = await loadDefaultVueformConfig()
11
7
 
12
- // add default CSS styles
13
- // can be placed anywhere else in your project
14
- import '@vueform/vueform/dist/vueform.css'
15
-
16
- export default defineConfig({
17
- theme: vueform,
18
- locales: { en },
19
- locale: 'en',
20
- })
8
+ export default defineConfig(vueformConfig!)
@@ -1 +0,0 @@
1
- export default {}
@@ -1 +0,0 @@
1
- export { default } from "file:///C:/Git/nuxt-ignis/core/node_modules/.pnpm/@nuxt+vite-builder@3.17.4_@_1e4eaac97c7526a7ec98fffee6b1d729/node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs"