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.
- package/.data/content/contents.sqlite +0 -0
- package/.env +43 -0
- package/.nuxt/app.config.mjs +227 -1
- package/.nuxt/components.d.ts +496 -132
- package/.nuxt/content/components.ts +108 -0
- package/.nuxt/content/database.compressed.mjs +1 -0
- package/.nuxt/content/manifest.ts +33 -0
- package/.nuxt/content/sql_dump +6 -0
- package/.nuxt/content/types.d.ts +13 -0
- package/.nuxt/dev/index.mjs +4719 -66
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.json +2 -2
- package/.nuxt/dist/server/client.manifest.mjs +18 -1
- package/.nuxt/eslint.config.d.mts +2 -2
- package/.nuxt/eslint.config.mjs +2 -2
- package/.nuxt/i18n.options.mjs +165 -0
- package/.nuxt/imports.d.ts +62 -31
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-configs.mjs +8 -0
- package/.nuxt/mdc-highlighter.mjs +213 -0
- package/.nuxt/mdc-image-component.mjs +1 -0
- package/.nuxt/mdc-imports.mjs +12 -0
- package/.nuxt/module/@nuxtjs-sitemap.d.ts +28 -0
- package/.nuxt/module/nuxt-robots.d.ts +35 -0
- package/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
- package/.nuxt/module/nuxt-seo-utils.d.ts +22 -0
- package/.nuxt/module/nuxt-site-config.d.ts +43 -0
- package/.nuxt/nitro.json +4 -4
- package/.nuxt/nuxt-i18n-logger.mjs +1 -0
- package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
- package/.nuxt/nuxt-icon-server-bundle.mjs +15 -0
- package/.nuxt/nuxt.d.ts +23 -6
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/schema/nuxt.schema.d.ts +193 -0
- package/.nuxt/schema/nuxt.schema.json +261 -1
- package/.nuxt/tsconfig.json +216 -42
- package/.nuxt/tsconfig.server.json +181 -23
- package/.nuxt/types/app.config.d.ts +227 -1
- package/.nuxt/types/build.d.ts +4 -1
- package/.nuxt/types/i18n-plugin.d.ts +104 -0
- package/.nuxt/types/imports.d.ts +334 -210
- package/.nuxt/types/neon.d.ts +137 -0
- package/.nuxt/types/nitro-imports.d.ts +268 -6
- package/.nuxt/types/nitro-routes.d.ts +65 -1
- package/.nuxt/types/plugins.d.ts +40 -17
- package/.nuxt/types/schema.d.ts +984 -2
- package/.nuxt/types/ui.d.ts +35 -0
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/checkbox-group.ts +204 -0
- package/.nuxt/ui/checkbox.ts +236 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +50 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +217 -0
- package/.nuxt/ui/drawer.ts +126 -0
- package/.nuxt/ui/dropdown-menu.ts +218 -0
- package/.nuxt/ui/form-field.ts +48 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +50 -0
- package/.nuxt/ui/input-menu.ts +436 -0
- package/.nuxt/ui/input-number.ts +245 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +31 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/modal.ts +29 -0
- package/.nuxt/ui/navigation-menu.ts +510 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +350 -0
- package/.nuxt/ui/select-menu.ts +346 -0
- package/.nuxt/ui/select.ts +341 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +71 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +131 -0
- package/.nuxt/ui/table.ts +147 -0
- package/.nuxt/ui/tabs.ts +256 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/toast.ts +81 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui-image-component.ts +1 -0
- package/.nuxt/ui.css +146 -0
- package/content.config.ts +6 -10
- package/features.ts +43 -22
- package/nuxt.config.ts +1 -1
- package/package.json +13 -12
- package/server/api/neonTest.ts +7 -5
- package/tailwind.config.ts +1 -1
- package/test/features/db-neon.txt +3 -0
- package/test/features/db-off.txt +3 -0
- package/test/features/db-supabase.txt +3 -0
- package/test/features/default.txt +3 -0
- package/test/features/disable-core.txt +3 -0
- package/test/features/enable-all.txt +4 -0
- package/test/features/forms-formkit.txt +3 -0
- package/test/features/forms-off.txt +3 -0
- package/test/features/forms-vueform.txt +3 -0
- package/test/features/ui-nuxt-ui.txt +3 -0
- package/test/features/ui-off.txt +3 -0
- package/test/features/ui-tailwind.txt +4 -0
- package/test/features.test.ts +191 -0
- package/utils/config/content.config.ts +12 -0
- package/utils/config/vueform.config.ts +20 -0
- package/utils/content.ts +31 -0
- package/utils/tailwind.ts +19 -0
- package/utils/vueform.ts +16 -0
- package/vueform.config.ts +4 -16
- package/.nuxt/component-chunk.mjs +0 -1
- 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
|
+
})
|
package/utils/content.ts
ADDED
|
@@ -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
|
+
}
|
package/utils/vueform.ts
ADDED
|
@@ -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
|
-
//
|
|
2
|
-
//
|
|
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
|
-
|
|
10
|
-
import '@vueform/vueform/types/index.d.ts'
|
|
6
|
+
const vueformConfig = await loadDefaultVueformConfig()
|
|
11
7
|
|
|
12
|
-
|
|
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"
|