Skip to content

Commit

Permalink
Added the CSP nonce to Vuetify?
Browse files Browse the repository at this point in the history
Also cleaned up old Vue 2 code.

Refs #156
  • Loading branch information
The4thLaw committed Mar 16, 2024
1 parent f12f342 commit b1c5ae4
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions source/demyo-vue-frontend/src/plugins/vuetify.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
//import { TiptapVuetifyPlugin } from 'tiptap-vuetify'
//import 'tiptap-vuetify/dist/main.css'
import { cspStyleNonce } from '@/myenv'
// import { TiptapVuetifyPlugin } from 'tiptap-vuetify'
// import 'tiptap-vuetify/dist/main.css'
import { createVuetify } from 'vuetify'
import 'vuetify/styles'
// TODO: Vue 3: maybe we can remove the separate mdi import then?
import { aliases, mdi } from 'vuetify/iconsets/mdi'

/*Vue.use(Vuetify, {
directives: {
Touch,
// TODO: Workaround for https://github.com/vuetifyjs/vuetify/issues/12224, to be removed in Vue+Vuetify 3
Ripple
},
theme: {
options: {
cspNonce: cspStyleNonce
}
}
})*/

const vuetify = createVuetify({
icons: {
defaultSet: 'mdi',
aliases,
sets: {
mdi
}
},
theme: {
cspNonce: cspStyleNonce
}

// TODO: Vue 3
/*theme: {
/*
theme: {
options: {
customProperties: true
},
Expand All @@ -39,14 +32,8 @@ const vuetify = createVuetify({
accent: colors.pink
}
}
}*/
}
*/
})

//Vue.use(vuetify)

/*Vue.use(TiptapVuetifyPlugin, {
vuetify,
iconsGroup: 'mdi'
})*/

export default vuetify

0 comments on commit b1c5ae4

Please sign in to comment.