add top 100 stations blurhashes
This commit is contained in:
parent
26d494a696
commit
333a7d93b2
@ -51,6 +51,7 @@ export default {
|
||||
tableData: [],
|
||||
offset: 0,
|
||||
pageLoading: false,
|
||||
blurHashes: require('../assets/blurHashes.json'),
|
||||
}),
|
||||
provide: {
|
||||
player: {
|
||||
@ -163,6 +164,15 @@ export default {
|
||||
})
|
||||
.done(function(data) {
|
||||
vm.pageLoading = false
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
const obj = data[i]
|
||||
let blurHash = vm.blurHashes[obj.stationuuid]
|
||||
if (!blurHash) {
|
||||
blurHash = 'L1TSUA?bj[?b~qfQfQj[ayfQfQfQ'
|
||||
}
|
||||
data[i].blurHash = blurHash
|
||||
}
|
||||
console.log(data)
|
||||
vm.tableData = vm.tableData.concat(data)
|
||||
vm.offset += 20
|
||||
})
|
||||
|
@ -19,7 +19,7 @@
|
||||
class="stationIcon"
|
||||
width="32"
|
||||
height="32"
|
||||
hash="LdHfL}oJR$WBKnfi%3ofT0kCM{ay"
|
||||
:hash="station.blurHash"
|
||||
:src="station.favicon">
|
||||
<span :class="{ 'icon-starred': stationsFavored.includes(idx) }" />
|
||||
</blur-hash-image>
|
||||
|
Loading…
Reference in New Issue
Block a user