mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[web] Lint source code
This commit is contained in:
parent
cbedb4d38c
commit
7b41980ace
@ -25,14 +25,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavbarTop from '@/components/NavbarTop.vue'
|
||||
import NavbarBottom from '@/components/NavbarBottom.vue'
|
||||
import NotificationList from '@/components/NotificationList.vue'
|
||||
import * as types from '@/store/mutation_types'
|
||||
import ModalDialogRemotePairing from '@/components/ModalDialogRemotePairing.vue'
|
||||
import ModalDialogUpdate from '@/components/ModalDialogUpdate.vue'
|
||||
import webapi from '@/webapi'
|
||||
import * as types from '@/store/mutation_types'
|
||||
import NavbarBottom from '@/components/NavbarBottom.vue'
|
||||
import NavbarTop from '@/components/NavbarTop.vue'
|
||||
import NotificationList from '@/components/NotificationList.vue'
|
||||
import ReconnectingWebSocket from 'reconnectingwebsocket'
|
||||
import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
|
@ -94,10 +94,9 @@ export default {
|
||||
: (end = index - 1)
|
||||
}
|
||||
return -1
|
||||
} else {
|
||||
this.reset_scrolling()
|
||||
return -1
|
||||
}
|
||||
this.reset_scrolling()
|
||||
return -1
|
||||
},
|
||||
lyrics() {
|
||||
const raw = this.$store.state.lyrics.content
|
||||
@ -110,7 +109,7 @@ export default {
|
||||
if (matches && matches[4]) {
|
||||
const verse = {
|
||||
text: matches[4],
|
||||
time: matches[2] * 60 + matches[3] * 1
|
||||
time: matches[2] * 60 + Number(matches[3])
|
||||
}
|
||||
parsed.push(verse)
|
||||
}
|
||||
|
@ -31,8 +31,8 @@ const characterIndex = (string = '') => {
|
||||
return '⌘'
|
||||
}
|
||||
|
||||
export const numberIndex = (number) => {
|
||||
return Math.floor(number / 10)
|
||||
const numberIndex = (number) => {
|
||||
Math.floor(number / 10)
|
||||
}
|
||||
|
||||
const times = [
|
||||
|
@ -1,6 +1,6 @@
|
||||
const toColor = (string) => {
|
||||
var hash = 0
|
||||
for (var i = 0; i < string.length; i++) {
|
||||
let hash = 0
|
||||
for (let i = 0; i < string.length; i++) {
|
||||
hash = string.charCodeAt(i) + ((hash << 5) - hash)
|
||||
}
|
||||
return (hash & 0x00ffffff).toString(16)
|
||||
|
@ -1,13 +1,13 @@
|
||||
import './mystyles.scss'
|
||||
import App from './App.vue'
|
||||
import VueClickAway from 'vue3-click-away'
|
||||
import VueLazyLoad from 'vue3-lazyload'
|
||||
import VueProgressBar from '@aacassandra/vue3-progressbar'
|
||||
import { createApp } from 'vue'
|
||||
import { filters } from './filter'
|
||||
import i18n from './i18n'
|
||||
import { icons } from './icons'
|
||||
import mdiVue from 'mdi-vue/v3'
|
||||
import VueClickAway from 'vue3-click-away'
|
||||
import VueLazyLoad from 'vue3-lazyload'
|
||||
import VueProgressBar from '@aacassandra/vue3-progressbar'
|
||||
import { router } from './router'
|
||||
import store from './store'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createStore } from 'vuex'
|
||||
import * as types from './mutation_types'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
export default createStore({
|
||||
state() {
|
||||
|
Loading…
Reference in New Issue
Block a user