Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16490 Replaced v-sanitize with vue-sanitize-directive #543

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-edit-ui",
"version": "4.7.6",
"version": "4.7.7",
"private": true,
"appName": "Edit UI",
"sbcName": "SBC Common Components",
Expand Down Expand Up @@ -52,11 +52,11 @@
"sbc-common-components": "3.0.8",
"tiptap-vuetify": "^2.24.0",
"uuid": "^9.0.0",
"v-sanitize": "^0.0.11",
"vue": "2.7.14",
"vue-affix": "^0.5.2",
"vue-hotjar": "^1.4.0",
"vue-router": "^3.6.5",
"vue-sanitize-directive": "^0.2.1",
"vue-the-mask": "^0.11.1",
"vue2-filters": "^0.14.0",
"vuelidate": "0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SpecialResolution/ResolutionEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>
<div
v-else
v-sanitize="getSpecialResolution.resolution"
v-sanitize.basic="getSpecialResolution.resolution"
class="resizable info-text"
/>
</v-col>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SpecialResolution/ResolutionSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
>
<div
v-if="getSpecialResolution"
v-sanitize="getSpecialResolution.resolution"
v-sanitize.basic="getSpecialResolution.resolution"
class="resizable"
/>
</v-col>
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'regenerator-runtime/runtime' // to use transpiled generator functions
import Vue from 'vue'
import Vuetify from 'vuetify'
import Vuelidate from 'vuelidate'
import VSanitize from 'v-sanitize'
import VueSanitize from 'vue-sanitize-directive'
import Affix from 'vue-affix'
import Vue2Filters from 'vue2-filters' // needed by SbcFeeSummary
import Hotjar from 'vue-hotjar'
Expand Down Expand Up @@ -42,7 +42,7 @@ Vue.use(Affix)
Vue.use(Vuelidate)
Vue.use(Vue2Filters)
// Default options - https://github.com/apostrophecms/sanitize-html (under Default options)
Vue.use(VSanitize)
Vue.use(VueSanitize)
const vuetify = new Vuetify({
iconfont: 'mdi',
theme: {
Expand Down
4 changes: 2 additions & 2 deletions tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* why some of the errors are showing up due to Vue not having the plugins it needs.
* See src/main.ts.
*/
import VSanitize from 'v-sanitize'
import VueSanitize from 'vue-sanitize-directive'
import Vuelidate from 'vuelidate'
import Vue from 'vue'
import Affix from 'vue-affix'
Expand All @@ -16,7 +16,7 @@ Vue.use(Affix)
// needed for address component or Completing Party
Vue.use(Vuelidate)
Vue.use(Vue2Filters)
Vue.use(VSanitize)
Vue.use(VueSanitize)

const vuetify = new Vuetify({})

Expand Down
Loading