mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-10 14:06:41 +00:00
Bugfix, remove console print
This commit is contained in:
parent
927072e6aa
commit
1becd1d015
@ -64,6 +64,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import AlbumCarousel from './AlbumCarousel'
|
import AlbumCarousel from './AlbumCarousel'
|
||||||
import {isGenreTag} from '../genres'
|
import {isGenreTag} from '../genres'
|
||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ArtistInfo',
|
name: 'ArtistInfo',
|
||||||
@ -95,10 +96,10 @@ export default {
|
|||||||
this.artistInfo.releases = this.artistInfo.releases
|
this.artistInfo.releases = this.artistInfo.releases
|
||||||
.sort((a, b) => a.year - b.year)
|
.sort((a, b) => a.year - b.year)
|
||||||
.filter(r => r.labels.indexOf('Album') !== -1 || r.labels.indexOf('EP') !== -1)
|
.filter(r => r.labels.indexOf('Album') !== -1 || r.labels.indexOf('EP') !== -1)
|
||||||
this.artistInfo.tags = info.tags.sort((a, b) => b.weight - a.weight).splice(0, 99).map(t => {
|
this.artistInfo.tags = _.uniqBy(info.tags.sort((a, b) => b.weight - a.weight).splice(0, 99).map(t => {
|
||||||
t.type = isGenreTag(t.name, t.tagid) ? '' : 'info'
|
t.type = isGenreTag(t.name, t.tagid) ? '' : 'info'
|
||||||
return t
|
return t
|
||||||
})
|
}), 'name')
|
||||||
|
|
||||||
if (this.artistInfo.tracks.length > 0) {
|
if (this.artistInfo.tracks.length > 0) {
|
||||||
const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)]
|
const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)]
|
||||||
|
@ -10,7 +10,6 @@ window.addEventListener('keydown', e => {
|
|||||||
if (e.key === 'ArrowDown') {
|
if (e.key === 'ArrowDown') {
|
||||||
INITIAL_DISTANCE -= 10
|
INITIAL_DISTANCE -= 10
|
||||||
}
|
}
|
||||||
console.log(INITIAL_DISTANCE)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user