|
@@ -38,6 +38,7 @@
|
|
v-if="
|
|
v-if="
|
|
currentSong &&
|
|
currentSong &&
|
|
(currentSong.songId === 'l9PxOanFjxQ' ||
|
|
(currentSong.songId === 'l9PxOanFjxQ' ||
|
|
|
|
+ currentSong.songId === 'xKVcVSYmesU' ||
|
|
currentSong.songId === '60ItHLz5WEA')
|
|
currentSong.songId === '60ItHLz5WEA')
|
|
"
|
|
"
|
|
class="bg-bubbles"
|
|
class="bg-bubbles"
|
|
@@ -156,6 +157,8 @@
|
|
currentSong &&
|
|
currentSong &&
|
|
(currentSong.songId ===
|
|
(currentSong.songId ===
|
|
'l9PxOanFjxQ' ||
|
|
'l9PxOanFjxQ' ||
|
|
|
|
+ currentSong.songId ===
|
|
|
|
+ 'xKVcVSYmesU' ||
|
|
currentSong.songId ===
|
|
currentSong.songId ===
|
|
'60ItHLz5WEA')
|
|
'60ItHLz5WEA')
|
|
"
|
|
"
|
|
@@ -175,9 +178,7 @@
|
|
<div id="left-buttons">
|
|
<div id="left-buttons">
|
|
<!-- Debug Box -->
|
|
<!-- Debug Box -->
|
|
<button
|
|
<button
|
|
- :v-if="
|
|
|
|
- frontendDevMode === 'development'
|
|
|
|
- "
|
|
|
|
|
|
+ v-if="frontendDevMode === 'development'"
|
|
class="button is-primary"
|
|
class="button is-primary"
|
|
@click="togglePlayerDebugBox()"
|
|
@click="togglePlayerDebugBox()"
|
|
@dblclick="resetPlayerDebugBox()"
|
|
@dblclick="resetPlayerDebugBox()"
|
|
@@ -334,19 +335,12 @@
|
|
<div
|
|
<div
|
|
slot="button"
|
|
slot="button"
|
|
id="add-song-to-playlist"
|
|
id="add-song-to-playlist"
|
|
- v-click-outside="
|
|
|
|
- () =>
|
|
|
|
- (this.showPlaylistDropdown = false)
|
|
|
|
- "
|
|
|
|
content="Add Song to Playlist"
|
|
content="Add Song to Playlist"
|
|
v-tippy
|
|
v-tippy
|
|
>
|
|
>
|
|
<div class="control has-addons">
|
|
<div class="control has-addons">
|
|
<button
|
|
<button
|
|
class="button is-primary"
|
|
class="button is-primary"
|
|
- @click="
|
|
|
|
- showPlaylistDropdown = !showPlaylistDropdown
|
|
|
|
- "
|
|
|
|
>
|
|
>
|
|
<i class="material-icons"
|
|
<i class="material-icons"
|
|
>queue</i
|
|
>queue</i
|
|
@@ -355,9 +349,6 @@
|
|
<button
|
|
<button
|
|
class="button"
|
|
class="button"
|
|
id="dropdown-toggle"
|
|
id="dropdown-toggle"
|
|
- @click="
|
|
|
|
- showPlaylistDropdown = !showPlaylistDropdown
|
|
|
|
- "
|
|
|
|
>
|
|
>
|
|
<i class="material-icons">
|
|
<i class="material-icons">
|
|
{{
|
|
{{
|
|
@@ -690,7 +681,8 @@ export default {
|
|
volumeSliderValue: 0,
|
|
volumeSliderValue: 0,
|
|
showPlaylistDropdown: false,
|
|
showPlaylistDropdown: false,
|
|
theme: "var(--primary-color)",
|
|
theme: "var(--primary-color)",
|
|
- seekerbarPercentage: 0
|
|
|
|
|
|
+ seekerbarPercentage: 0,
|
|
|
|
+ frontendDevMode: "production"
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -719,7 +711,7 @@ export default {
|
|
socket: "websockets/getSocket"
|
|
socket: "websockets/getSocket"
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
|
|
+ async mounted() {
|
|
window.scrollTo(0, 0);
|
|
window.scrollTo(0, 0);
|
|
|
|
|
|
Date.currently = () => {
|
|
Date.currently = () => {
|
|
@@ -733,6 +725,8 @@ export default {
|
|
if (this.socket.readyState === 1) this.join();
|
|
if (this.socket.readyState === 1) this.join();
|
|
ws.onConnect(() => this.join());
|
|
ws.onConnect(() => this.join());
|
|
|
|
|
|
|
|
+ this.frontendDevMode = await lofig.get("mode");
|
|
|
|
+
|
|
this.socket.dispatch(
|
|
this.socket.dispatch(
|
|
"stations.existsByName",
|
|
"stations.existsByName",
|
|
this.stationIdentifier,
|
|
this.stationIdentifier,
|
|
@@ -1006,8 +1000,6 @@ export default {
|
|
localStorage.setItem("volume", volume);
|
|
localStorage.setItem("volume", volume);
|
|
this.volumeSliderValue = volume * 100;
|
|
this.volumeSliderValue = volume * 100;
|
|
}
|
|
}
|
|
-
|
|
|
|
- this.frontendDevMode = lofig.get("mode");
|
|
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
document.body.style.cssText = "";
|
|
document.body.style.cssText = "";
|