Commit 5f6a4100 authored by Anton's avatar Anton

fix eslint problems

parent f06dc3c6
......@@ -64,7 +64,7 @@
target = 'milliseconds'
break
}
this.$emit('sliderChange', {target, val})
this.$emit('sliderChange', { target, val })
}
},
methods: {
......
......@@ -51,10 +51,10 @@
framebyframe: {
fps: 23.98, // FIXME: 25.0 ?!?, make "smart"
steps: [
{text: '-1s', step: -24},
{text: '-1f', step: -1},
{text: '+1f', step: 1},
{text: '+1s', step: 24}
{ text: '-1s', step: -24 },
{ text: '-1f', step: -1 },
{ text: '+1f', step: 1 },
{ text: '+1s', step: 24 }
]
}
} : {}
......
......@@ -100,7 +100,7 @@
async loadACL () {
if (!this.resource) return
const aclQuery = {role: 'public', id: this.resource.id, permission: 'get'}
const aclQuery = { role: 'public', id: this.resource.id, permission: 'get' }
const permissions = await this.$store.dispatch('acl/isRoleAllowed', aclQuery)
this.acl.public = permissions.get === true
},
......
......@@ -138,7 +138,7 @@
data.items = await this.requestTransform(data.items)
}
if (Array.isArray(data.items)) {
this.rows = data.items.map(r => Object.assign(r, {actions: ''}))
this.rows = data.items.map(r => Object.assign(r, { actions: '' }))
}
}
catch (err) {
......
......@@ -13,7 +13,7 @@
'a': ['href', 'target', 'name']
},
transformTags: {
'a': sanitizeHtml.simpleTransform('a', {target: '_blank'})
'a': sanitizeHtml.simpleTransform('a', { target: '_blank' })
}
})
}
......
......@@ -13,7 +13,7 @@
return Promise.resolve()
.then(() => {
if (source.indexOf('http') !== 0) return
if (path.extname(url.parse(source).path) === '.mp4') {
if (path.extname(url.URL(source).path) === '.mp4') {
source = source.replace(/\.mp4/i, '.html')
}
return this.$axios.get(`${_this.$globalConfig.app.hosts.api}/proxy?url=${encodeURIComponent(source)}`)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment