mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat: implement csp, sty-src with nonce
This commit is contained in:
@@ -22,7 +22,8 @@ export const defaultOptions = {
|
||||
theme: {
|
||||
colors: undefined,
|
||||
transitions: true
|
||||
}
|
||||
},
|
||||
csp: false
|
||||
}
|
||||
|
||||
export const resolveColors = (colors?: string[]) => {
|
||||
|
||||
@@ -28,6 +28,13 @@ export interface ModuleOptions {
|
||||
*/
|
||||
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
|
||||
* @link https://ui.nuxt.com/getting-started/theme
|
||||
|
||||
Reference in New Issue
Block a user