mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
feat: implement csp, sty-src with nonce
This commit is contained in:
@@ -22,7 +22,8 @@ export const defaultOptions = {
|
|||||||
theme: {
|
theme: {
|
||||||
colors: undefined,
|
colors: undefined,
|
||||||
transitions: true
|
transitions: true
|
||||||
}
|
},
|
||||||
|
csp: false
|
||||||
}
|
}
|
||||||
|
|
||||||
export const resolveColors = (colors?: string[]) => {
|
export const resolveColors = (colors?: string[]) => {
|
||||||
|
|||||||
@@ -28,6 +28,13 @@ export interface ModuleOptions {
|
|||||||
*/
|
*/
|
||||||
colorMode?: boolean
|
colorMode?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configure Content Security Policy for Nuxt UI
|
||||||
|
* @defaultValue `false`
|
||||||
|
* @link https://ui.nuxt.com/getting-started/installation/nuxt#csp
|
||||||
|
*/
|
||||||
|
csp?: boolean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customize how the theme is generated
|
* Customize how the theme is generated
|
||||||
* @link https://ui.nuxt.com/getting-started/theme
|
* @link https://ui.nuxt.com/getting-started/theme
|
||||||
|
|||||||
Reference in New Issue
Block a user