| 
														
															@@ -1,6 +1,10 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <template> 
														 | 
														
														 | 
														
															 <template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	<div id="nav-dropdown"> 
														 | 
														
														 | 
														
															 	<div id="nav-dropdown"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		<div class="nav-dropdown-items" v-if="playlists.length > 0"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<div 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			class="nav-dropdown-items" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			v-if="playlists.length > 0" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			v-click-outside="() => (this.$parent.showPlaylistDropdown = false)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<!-- <a class="nav-item" id="nightmode-toggle"> 
														 | 
														
														 | 
														
															 			<!-- <a class="nav-item" id="nightmode-toggle"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<span>Nightmode</span> 
														 | 
														
														 | 
														
															 				<span>Nightmode</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<label class="switch"> 
														 | 
														
														 | 
														
															 				<label class="switch"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -37,22 +41,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <script> 
														 | 
														
														 | 
														
															 <script> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { mapState } from "vuex"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Toast from "toasters"; 
														 | 
														
														 | 
														
															 import Toast from "toasters"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import io from "../../../io"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import io from "../../io"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	props: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		song: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			type: Object, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			default: () => {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	data() { 
														 | 
														
														 | 
														
															 	data() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		return { 
														 | 
														
														 | 
														
															 		return { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			playlists: [] 
														 | 
														
														 | 
														
															 			playlists: [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}; 
														 | 
														
														 | 
														
															 		}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	computed: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		...mapState("station", { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			currentSong: state => state.currentSong 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		}) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	}, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	mounted() { 
														 | 
														
														 | 
														
															 	mounted() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		io.getSocket(socket => { 
														 | 
														
														 | 
														
															 		io.getSocket(socket => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.socket = socket; 
														 | 
														
														 | 
														
															 			this.socket = socket; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -95,13 +98,13 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.socket.emit( 
														 | 
														
														 | 
														
															 				this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					"playlists.addSongToPlaylist", 
														 | 
														
														 | 
														
															 					"playlists.addSongToPlaylist", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					false, 
														 | 
														
														 | 
														
															 					false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					this.currentSong.songId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.song.songId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					playlistId, 
														 | 
														
														 | 
														
															 					playlistId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					res => { 
														 | 
														
														 | 
														
															 					res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 4000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 4000 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						if (res.status === "success") { 
														 | 
														
														 | 
														
															 						if (res.status === "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-							this.playlists[index].songs.push(this.currentSong); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							this.playlists[index].songs.push(this.song); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							this.playlists[index].hasSong = true; 
														 | 
														
														 | 
														
															 							this.playlists[index].hasSong = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						} 
														 | 
														
														 | 
														
															 						} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -109,7 +112,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} else { 
														 | 
														
														 | 
														
															 			} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.socket.emit( 
														 | 
														
														 | 
														
															 				this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					"playlists.removeSongFromPlaylist", 
														 | 
														
														 | 
														
															 					"playlists.removeSongFromPlaylist", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					this.currentSong.songId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.song.songId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					playlistId, 
														 | 
														
														 | 
														
															 					playlistId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					res => { 
														 | 
														
														 | 
														
															 					res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 4000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 4000 }); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -117,7 +120,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						if (res.status === "success") { 
														 | 
														
														 | 
														
															 						if (res.status === "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							this.playlists[index].songs.forEach( 
														 | 
														
														 | 
														
															 							this.playlists[index].songs.forEach( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 								(song, index) => { 
														 | 
														
														 | 
														
															 								(song, index) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-									if (song.songId === this.currentSong.songId) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+									if (song.songId === this.song.songId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 										this.playlists[index].songs.splice( 
														 | 
														
														 | 
														
															 										this.playlists[index].songs.splice( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 											index, 
														 | 
														
														 | 
														
															 											index, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 											1 
														 | 
														
														 | 
														
															 											1 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -136,7 +139,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				let hasSong = false; 
														 | 
														
														 | 
														
															 				let hasSong = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				for (let song = 0; song < playlist.songs.length; song += 1) { 
														 | 
														
														 | 
														
															 				for (let song = 0; song < playlist.songs.length; song += 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if (playlist.songs[song].songId === this.currentSong.songId) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (playlist.songs[song].songId === this.song.songId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						hasSong = true; 
														 | 
														
														 | 
														
															 						hasSong = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -172,10 +175,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #nav-dropdown { 
														 | 
														
														 | 
														
															 #nav-dropdown { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	position: absolute; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	margin-left: 4px; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	z-index: 1; 
														 | 
														
														 | 
														
															 	z-index: 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	margin-bottom: 36px; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #nav-dropdown-triangle { 
														 | 
														
														 | 
														
															 #nav-dropdown-triangle { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -190,8 +190,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	background-color: var(--white); 
														 | 
														
														 | 
														
															 	background-color: var(--white); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	padding: 5px; 
														 | 
														
														 | 
														
															 	padding: 5px; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	border-radius: 5px; 
														 | 
														
														 | 
														
															 	border-radius: 5px; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	position: relative; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	right: calc(100% - 110px); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	z-index: 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	.nav-item { 
														 | 
														
														 | 
														
															 	.nav-item { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		width: 100%; 
														 | 
														
														 | 
														
															 		width: 100%; 
														 |