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,137 @@
|
|
|
1
|
+
// NOTE: when editing this file, please also update exports in `src/utils/neonTypes.ts`
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Possible options for Neon driver SSL mode.
|
|
5
|
+
* @see https://neon.tech/docs/connect/connect-securely#connection-modes
|
|
6
|
+
*/
|
|
7
|
+
export type NeonSSLModeOption = 'require' | 'verify-ca' | 'verify-full' | 'none'
|
|
8
|
+
|
|
9
|
+
/** Custom error object to be passed when something goes wrong */
|
|
10
|
+
export type NeonError = {
|
|
11
|
+
name: 'NuxtNeonServerError' | 'NuxtNeonClientError'
|
|
12
|
+
source: string
|
|
13
|
+
code: number
|
|
14
|
+
message: string
|
|
15
|
+
sql?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Result of `neonStatus` health check. */
|
|
19
|
+
export type NeonStatusResult = {
|
|
20
|
+
/**
|
|
21
|
+
* Database name based on `NUXT_PUBLIC_NEON_DB`.
|
|
22
|
+
* Empty unless called with `anonymous = false`.
|
|
23
|
+
*/
|
|
24
|
+
database: string
|
|
25
|
+
/**
|
|
26
|
+
* `OK` if database connection can be established,
|
|
27
|
+
* `ERR` if error was thrown by the Neon driver.
|
|
28
|
+
*/
|
|
29
|
+
status: 'OK' | 'ERR'
|
|
30
|
+
/**
|
|
31
|
+
* Details, if error is encountered.
|
|
32
|
+
* Empty unless called with `debug = true`.
|
|
33
|
+
*/
|
|
34
|
+
debugInfo?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Object for defining column with a table alias */
|
|
38
|
+
export type NeonColumnObject = {
|
|
39
|
+
/** Alias used for table */
|
|
40
|
+
alias?: string
|
|
41
|
+
/** Column name */
|
|
42
|
+
name: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Object for defining 2+ tables for JOIN in SELECT. */
|
|
46
|
+
export type NeonTableObject = {
|
|
47
|
+
/** Schema name */
|
|
48
|
+
schema?: string
|
|
49
|
+
/** Table name */
|
|
50
|
+
table: string
|
|
51
|
+
/** Alias used for table */
|
|
52
|
+
alias?: string
|
|
53
|
+
/** Left column (including alias) for JOIN (ignored for 1st table) */
|
|
54
|
+
joinColumn1?: string | NeonColumnObject
|
|
55
|
+
/** Right column (including alias) for JOIN (ignored for 1st table) */
|
|
56
|
+
joinColumn2?: string | NeonColumnObject
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Enum-like type to define operation for column-value pair in WHERE clause */
|
|
60
|
+
export type NeonWhereCondition = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'LIKE'
|
|
61
|
+
|
|
62
|
+
/** Enum-like type to define logical operator between more WHERE clauses */
|
|
63
|
+
export type NeonWhereOperator = 'AND' | 'OR'
|
|
64
|
+
|
|
65
|
+
/** Object for defining a WHERE clause. */
|
|
66
|
+
export type NeonWhereObject = {
|
|
67
|
+
/** Alias used for table */
|
|
68
|
+
alias?: string
|
|
69
|
+
/** Column name */
|
|
70
|
+
column: string
|
|
71
|
+
/** Condition type */
|
|
72
|
+
condition: NeonWhereCondition
|
|
73
|
+
/** Value to be used for filtering */
|
|
74
|
+
value: string
|
|
75
|
+
/** Relation with other clauses (ignored for 1st clause) */
|
|
76
|
+
operator?: NeonWhereOperator
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Enum-like type to define `ascending` or `descending` sorting */
|
|
80
|
+
export type NeonSortDirection = 'ASC' | 'DESC'
|
|
81
|
+
|
|
82
|
+
/** Object for defining an ORDER BY clause. */
|
|
83
|
+
export type NeonOrderObject = {
|
|
84
|
+
/** Column name */
|
|
85
|
+
column: string
|
|
86
|
+
/** Sort direction (`ASC` if not specified) */
|
|
87
|
+
direction?: NeonSortDirection
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// consolidated types
|
|
91
|
+
|
|
92
|
+
export type NeonDataType<T> = Array<T> | NeonError
|
|
93
|
+
export type NeonCountType = number | NeonError
|
|
94
|
+
export type NeonEditType = string | NeonError
|
|
95
|
+
export type NeonStatusType = NeonStatusResult
|
|
96
|
+
|
|
97
|
+
export type NeonColumnType = string | string[] | NeonColumnObject | NeonColumnObject[]
|
|
98
|
+
export type NeonTableType = string | NeonTableObject
|
|
99
|
+
export type NeonFromType = string | NeonTableObject | NeonTableObject[]
|
|
100
|
+
export type NeonWhereType = string | NeonWhereObject | NeonWhereObject[]
|
|
101
|
+
export type NeonOrderType = string | NeonOrderObject | NeonOrderObject[]
|
|
102
|
+
export type NeonInsertType = Record<string, string> | Record<string, string>[]
|
|
103
|
+
export type NeonUpdateType = Record<string, string>
|
|
104
|
+
export type NeonBodyType = Record<string, unknown>
|
|
105
|
+
|
|
106
|
+
// query objects for SQL wrappers
|
|
107
|
+
|
|
108
|
+
export type NeonCountQuery = {
|
|
109
|
+
from: NeonFromType
|
|
110
|
+
where?: NeonWhereType
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type NeonSelectQuery = {
|
|
114
|
+
columns: NeonColumnType
|
|
115
|
+
from: NeonFromType
|
|
116
|
+
where?: NeonWhereType
|
|
117
|
+
order?: NeonOrderType
|
|
118
|
+
limit?: number
|
|
119
|
+
group?: NeonColumnType
|
|
120
|
+
having?: NeonWhereType
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type NeonInsertQuery = {
|
|
124
|
+
table: NeonTableType
|
|
125
|
+
values: NeonInsertType
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type NeonUpdateQuery = {
|
|
129
|
+
table: NeonTableType
|
|
130
|
+
values: NeonUpdateType
|
|
131
|
+
where?: NeonWhereType
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type NeonDeleteQuery = {
|
|
135
|
+
table: NeonTableType
|
|
136
|
+
where?: NeonWhereType
|
|
137
|
+
}
|