Skip to content

Commit

Permalink
added whitespace config and updated bind and inserted to beforeMount …
Browse files Browse the repository at this point in the history
…and mounted respectively
  • Loading branch information
zeezo887 committed Apr 8, 2024
1 parent 32fcbf8 commit 45c2b52
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/js/directives/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
install (app, opts = {}) {
const vsticky = {
options: defaultOptions,
bind: function (el, binding, vnode) {
beforeMount: function (el, binding, vnode) {
const sticky = el._sticky = new Sticky(el, vsticky.options)
sticky._vueEl = el
},
Expand All @@ -17,7 +17,7 @@ export default {
el._sticky.refresh()
},

inserted: function (el, binding, vnode) {
mounted: function (el, binding, vnode) {
},

unbind: function (el, binding, vnode) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/js/directives/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { addSvg, removeSvg } from '@/utils/svg.js'
export default {
install (app, opts = {}) {
const dir = {
bind (el, binding, vnode) {
beforeMount (el, binding, vnode) {
addSvg(el, binding, vnode)
},
componentUpdated: function (el, binding, vnode, oldVnode) {
removeSvg(el)
addSvg(el, binding, vnode)
},
inserted: function (el, binding, vnode) {
mounted: function (el, binding, vnode) {
},
unbind: function (el, binding, vnode) {
// removeSvg(el)
Expand Down
4 changes: 2 additions & 2 deletions frontend/js/directives/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
install (app, opts = {}) {
const vtooltip = {
options: defaultOptions,
bind: function (el, binding, vnode) {
beforeMount: function (el, binding, vnode) {
if (!el._tooltip) {
const tooltip = el._tooltip = new Tooltip(el, vtooltip.options)
tooltip._vueEl = el
Expand All @@ -22,7 +22,7 @@ export default {
tooltip._vueEl = el
}
},
inserted: function (el, binding, vnode) {
mounted: function (el, binding, vnode) {
},
unbind: function (el, binding, vnode) {
if (el._tooltip) {
Expand Down
1 change: 1 addition & 0 deletions frontend/js/plugins/A17Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const A17Config = {

// Configurations
app.config.globalProperties.$http = axios
app.config.compilerOptions.whitespace = 'condense'

window.$trans = app.config.globalProperties.$trans = function (key, defaultValue) {
return get(window[process.env.VUE_APP_NAME].twillLocalization.lang, key, defaultValue)
Expand Down

0 comments on commit 45c2b52

Please sign in to comment.