mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
up
This commit is contained in:
@@ -23,7 +23,9 @@ export const defaultOptions = {
|
||||
colors: undefined,
|
||||
transitions: true
|
||||
},
|
||||
csp: false
|
||||
csp: {
|
||||
nonce: false
|
||||
}
|
||||
}
|
||||
|
||||
export const resolveColors = (colors?: string[]) => {
|
||||
|
||||
@@ -30,10 +30,18 @@ export interface ModuleOptions {
|
||||
|
||||
/**
|
||||
* Configure Content Security Policy for Nuxt UI
|
||||
* @defaultValue `false`
|
||||
* @defaultValue `{ nonce: false }`
|
||||
* @link https://ui.nuxt.com/getting-started/installation/nuxt#csp
|
||||
*/
|
||||
csp?: boolean
|
||||
csp?: {
|
||||
/**
|
||||
* Enable nonce for inline styles.
|
||||
* Set to `true` to automatically generate and use a nonce.
|
||||
* Provide a string to use a specific nonce.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
nonce?: boolean | string
|
||||
}
|
||||
|
||||
/**
|
||||
* Customize how the theme is generated
|
||||
|
||||
Reference in New Issue
Block a user