Prettier format all js files
This commit is contained in:
20
js/index.js
20
js/index.js
@@ -2,7 +2,6 @@ import 'svg-innerhtml'
|
||||
import 'babel-polyfill'
|
||||
import ally from 'ally.js'
|
||||
|
||||
|
||||
import classes from '../styles/atat.scss'
|
||||
import Vue from 'vue/dist/vue'
|
||||
import VTooltip from 'v-tooltip'
|
||||
@@ -30,7 +29,7 @@ import MembersList from './components/members_list'
|
||||
import LocalDatetime from './components/local_datetime'
|
||||
import RequestsList from './components/requests_list'
|
||||
import ConfirmationPopover from './components/confirmation_popover'
|
||||
import {isNotInVerticalViewport} from './lib/viewport'
|
||||
import { isNotInVerticalViewport } from './lib/viewport'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
@@ -70,24 +69,27 @@ const app = new Vue({
|
||||
if (isOpen) {
|
||||
document.body.className += ' modal-open'
|
||||
} else {
|
||||
document.body.className = document.body.className.replace(' modal-open', '')
|
||||
document.body.className = document.body.className.replace(
|
||||
' modal-open',
|
||||
''
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
const modalOpen = document.querySelector("#modalOpen")
|
||||
const modalOpen = document.querySelector('#modalOpen')
|
||||
|
||||
if (modalOpen) {
|
||||
const modal = modalOpen.getAttribute("data-modal")
|
||||
const modal = modalOpen.getAttribute('data-modal')
|
||||
this.openModal(modal)
|
||||
}
|
||||
|
||||
ally.query.focusable().forEach( function(el) {
|
||||
el.addEventListener('focus', function(){
|
||||
ally.query.focusable().forEach(function(el) {
|
||||
el.addEventListener('focus', function() {
|
||||
if (isNotInVerticalViewport(el)) {
|
||||
el.scrollIntoView({block: 'center'})
|
||||
el.scrollIntoView({ block: 'center' })
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
delimiters: ['!{', '}']
|
||||
delimiters: ['!{', '}'],
|
||||
})
|
||||
|
Reference in New Issue
Block a user