deemixer/public/index.html

488 lines
27 KiB
HTML
Raw Normal View History

2020-04-07 22:19:27 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>deemix</title>
2020-04-11 10:51:22 +00:00
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
2020-04-07 22:19:27 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
</head>
<body>
<aside role="navigation" id="sidebar">
2020-04-07 22:19:27 +00:00
<i class="material-icons side_icon">menu</i>
<i id="main_search_tablink" class="main_tablinks"></i>
<i role="link" aria-label="home" id="main_home_tablink" class="material-icons side_icon main_tablinks">home</i>
<i role="link" aria-label="charts" id="main_charts_tablink" class="material-icons side_icon main_tablinks">bubble_chart</i>
<i role="link" aria-label="favorites" id="main_favorites_tablink" class="material-icons side_icon main_tablinks">album</i>
<i role="link" aria-label="link analyzer" id="main_analyzer_tablink" class="material-icons side_icon main_tablinks">link</i>
<i role="link" aria-label="settings" id="main_settings_tablink" class="material-icons side_icon main_tablinks">settings</i>
<i role="link" aria-label="about" id="main_about_tablink" class="material-icons side_icon main_tablinks">info</i>
2020-04-07 22:19:27 +00:00
</aside>
<main id="main_content">
<div id="middle_section">
2020-04-18 08:16:58 +00:00
<header id="search"><input id="searchbar" autocomplete="off" type="text" name="searchbar" value="" placeholder="Search..." autofocus></header>
2020-04-08 16:43:35 +00:00
<section id="content"><div id="container">
<!-- <div id="v-app" style="height: 300px;"><app/></div> -->
<div id="search_tab" class="main_tabcontent">
<div class="tab">
<button class="search_tablinks" id="search_all_tab" onclick="changeTab(event, 'search', 'main_search')">All</button>
<button class="search_tablinks" id="search_track_tab" onclick="changeTab(event, 'search', 'track_search')">Tracks</button>
<button class="search_tablinks" id="search_album_tab" onclick="changeTab(event, 'search', 'album_search')">Album</button>
<button class="search_tablinks" id="search_artist_tab" onclick="changeTab(event, 'search', 'artist_search')">Artist</button>
<button class="search_tablinks" id="search_playlist_tab" onclick="changeTab(event, 'search', 'playlist_search')">Playlist</button>
</div>
<div id="search_tab_content">
<!-- ### Main Search Tab ### -->
<div id="main_search" class="search_tabcontent">
<template v-for="section in results.ORDER">
<div v-if="(section != 'TOP_RESULT' && results[section].data.length > 0) || (results[section].length > 0)" class="search_section">
<h1 v-on:click="changeSearchTab(section)">{{ names[section] }}</h1>
<!-- Top result -->
2020-04-18 08:08:34 +00:00
<div v-if="section == 'TOP_RESULT'" class="top_result" v-on:click="window[results.TOP_RESULT[0].__TYPE__.toLowerCase()+'View'](event)" v-bind:data-id="results.TOP_RESULT[0].__TYPE__ == 'artist' ? results.TOP_RESULT[0].ART_ID : results.TOP_RESULT[0].__TYPE__ == 'album' ? results.TOP_RESULT[0].ALB_ID : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? results.TOP_RESULT[0].PLAYLIST_ID : ''">
<div class="cover_container">
<img v-bind:src="(results.TOP_RESULT[0].__TYPE__ == 'artist' ? 'https://e-cdns-images.dzcdn.net/images/artist/' + results.TOP_RESULT[0].ART_PICTURE : results.TOP_RESULT[0].__TYPE__ == 'album' ? 'https://e-cdns-images.dzcdn.net/images/cover/' + results.TOP_RESULT[0].ALB_PICTURE : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? 'https://e-cdns-images.dzcdn.net/images/'+ results.TOP_RESULT[0].PICTURE_TYPE +'/' + results.TOP_RESULT[0].PLAYLIST_PICTURE :'https://e-cdns-images.dzcdn.net/images/cover/') + '/156x156-000000-80-0-0.jpg'"
v-bind:class="(results.TOP_RESULT[0].__TYPE__ == 'artist' ? 'circle' : 'rounded') + ' coverart'"></img>
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://deezer.com/'+results.TOP_RESULT[0].__TYPE__+'/'+(results.TOP_RESULT[0].__TYPE__ == 'artist' ? results.TOP_RESULT[0].ART_ID : results.TOP_RESULT[0].__TYPE__ == 'album' ? results.TOP_RESULT[0].ALB_ID : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? results.TOP_RESULT[0].PLAYLIST_ID : '')" class="download_overlay"><i class="material-icons">get_app</i></div>
</div>
<div class="info_box">
<p class="primary-text">{{ results.TOP_RESULT[0].__TYPE__ == 'artist' ? results.TOP_RESULT[0].ART_NAME : results.TOP_RESULT[0].__TYPE__ == 'album' ? results.TOP_RESULT[0].ALB_TITLE : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? results.TOP_RESULT[0].TITLE : '' }}</p>
<p class="secondary-text">{{ results.TOP_RESULT[0].__TYPE__ == 'artist' ? numberWithDots(results.TOP_RESULT[0].NB_FAN) + ' fans' : results.TOP_RESULT[0].__TYPE__ == 'album' ? 'by '+results.TOP_RESULT[0].ART_NAME+' - '+results.TOP_RESULT[0].NUMBER_TRACK+' tracks' : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? 'by '+results.TOP_RESULT[0].PARENT_USERNAME+' - '+results.TOP_RESULT[0].NB_SONG+' tracks' : '' }}</p>
<span class="tag">{{ results.TOP_RESULT[0].__TYPE__.charAt(0).toUpperCase() + results.TOP_RESULT[0].__TYPE__.substring(1)}}</span>
</div>
</div>
<div v-if="section == 'TRACK'">
<table class="tracks_table">
<tr v-for="track in results.TRACK.data.slice(0, 6)" class="track_row">
<td style="width: 48px; text-align: center;"><img class="rounded coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/cover/'+track.ALB_PICTURE+'/32x32-000000-80-0-0.jpg'"></td>
<td class="breakline">{{track.SNG_TITLE + (track.VERSION ? ' '+track.VERSION : '')}}</td>
<td class="breakline"><span v-for="artist in track.ARTISTS">{{artist.ART_NAME}} </span></td>
<td class="breakline">{{track.ALB_TITLE}}</td>
<td>{{convertDuration(track.DURATION)}}</td>
<td role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://www.deezer.com/track/'+track.SNG_ID" style="width: 56px; text-align: center;" class="clickable"><i class="material-icons">get_app</i></td>
</tr>
</table>
</div>
<div v-if="section != 'TRACK' && section != 'TOP_RESULT'" class="release_grid firstrow_only">
<div v-for="release in results[section].data.slice(0, 10)" class="release" v-on:click="window[section.toLowerCase()+'View'](event)" v-bind:data-id="section == 'ARTIST' ? release.ART_ID : section == 'ALBUM' ? release.ALB_ID : section == 'PLAYLIST' ? release.PLAYLIST_ID : ''">
<div class="cover_container">
<img v-bind:class="(section == 'ARTIST' ? 'circle' : 'rounded') + ' coverart'" v-bind:src="(section == 'ARTIST' ? 'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE : section == 'ALBUM' ? 'https://e-cdns-images.dzcdn.net/images/cover/' + release.ALB_PICTURE : section == 'PLAYLIST' ? 'https://e-cdns-images.dzcdn.net/images/'+ release.PICTURE_TYPE +'/' + release.PLAYLIST_PICTURE : 'https://e-cdns-images.dzcdn.net/images/cover/' ) + '/156x156-000000-80-0-0.jpg'">
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://deezer.com/'+(section == 'ARTIST' ? 'artist/'+release.ART_ID : section == 'ALBUM' ? 'album/'+release.ALB_ID : section == 'PLAYLIST' ? 'playlist/'+release.PLAYLIST_ID : '')" class="download_overlay"><i class="material-icons">get_app</i></div>
</div>
<p class="primary-text">{{ section == 'ARTIST' ? release.ART_NAME : section == 'ALBUM' ? release.ALB_TITLE : section == 'PLAYLIST' ? release.TITLE : '' }}</p>
<p class="secondary-text">{{ section == 'ARTIST' ? numberWithDots(release.NB_FAN) + ' fans' : section == 'ALBUM' ? release.ART_NAME+' - '+release.NUMBER_TRACK+' tracks' : section == 'PLAYLIST' ? release.NB_SONG+' tracks' : '' }}</p>
</div>
</div>
</div>
</template>
<div v-if="results.ORDER.every(section => section == 'TOP_RESULT' ? results[section].length == 0 : results[section].data.length == 0)">
<h1>No results</h1>
</div>
</div>
<!-- ### Track Search Tab ### -->
<div id="track_search" class="search_tabcontent">
<div v-if="results.data.length == 0">
<h1>No Tracks found</h1>
</div>
<table class="tracks_table" v-if="results.data.length > 0">
<tr>
<th style="width: 48px;"></th>
<th>Title</th>
<th>Artists</th>
<th>Album</th>
<th><i class="material-icons">timer</i></th>
<th style="width: 56px;"></th>
</tr>
<tr v-for="track in results.data" class="track_row">
<td style="width: 48px; text-align: center;"><img class="rounded coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/cover/'+track.ALB_PICTURE+'/32x32-000000-80-0-0.jpg'"></td>
<td class="breakline">{{track.SNG_TITLE + (track.VERSION ? ' '+track.VERSION : '')}}</td>
<td class="breakline"><span v-for="artist in track.ARTISTS">{{artist.ART_NAME}} </span></td>
<td class="breakline">{{track.ALB_TITLE}}</td>
<td>{{convertDuration(track.DURATION)}}</td>
<td role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://www.deezer.com/track/'+track.SNG_ID" style="width: 56px; text-align: center;" class="clickable"><i class="material-icons">get_app</i></td>
</tr>
</table>
</div>
<!-- ### Album Search Tab ### -->
<div id="album_search" class="search_tabcontent">
<div v-if="results.data.length == 0">
<h1>No Albums found</h1>
</div>
<div class="release_grid" v-if="results.data.length > 0">
<div v-for="release in results.data" class="release">
<div class="cover_container">
<img class="rounded coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/cover/' + release.ALB_PICTURE + '/156x156-000000-80-0-0.jpg'">
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://www.deezer.com/album/'+release.ALB_ID" class="download_overlay"><i class="material-icons">get_app</i></div>
</div>
<p class="primary-text">{{ release.ALB_TITLE }}</p>
<p class="secondary-text">{{ 'by '+release.ART_NAME }}</p>
</div>
</div>
</div>
<!-- ### Artist Search Tab ### -->
<div id="artist_search" class="search_tabcontent">
<div v-if="results.data.length == 0">
<h1>No Artists found</h1>
</div>
<div class="release_grid" v-if="results.data.length > 0">
<div v-for="release in results.data" class="release">
<div class="cover_container">
<img class="circle coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE + '/156x156-000000-80-0-0.jpg'">
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://www.deezer.com/artist/'+release.ART_ID" class="download_overlay"><i class="material-icons">get_app</i></div>
</div>
<p class="primary-text">{{ release.ART_NAME }}</p>
<p class="secondary-text">{{ numberWithDots(release.NB_FAN) + ' fans' }}</p>
</div>
</div>
</div>
<!-- ### Playlist Search Tab ### -->
<div id="playlist_search" class="search_tabcontent">
<div v-if="results.data.length == 0">
<h1>No Playlists found</h1>
</div>
<div class="release_grid" v-if="results.data.length > 0">
<div v-for="release in results.data" class="release">
<div class="cover_container">
<img class="rounded coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/'+ release.PICTURE_TYPE +'/' + release.PLAYLIST_PICTURE + '/156x156-000000-80-0-0.jpg'">
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="'https://www.deezer.com/playlist/'+release.PLAYLIST_ID" class="download_overlay"><i class="material-icons">get_app</i></div>
</div>
<p class="primary-text">{{ release.TITLE }}</p>
<p class="secondary-text">{{ release.NB_SONG+' tracks' }}</p>
</div>
</div>
</div>
</div>
</div>
2020-04-13 18:20:58 +00:00
2020-04-11 10:51:22 +00:00
<div id="home_tab" class="main_tabcontent">
<h1>Home</h1>
</div>
2020-04-13 18:20:58 +00:00
2020-04-09 10:50:05 +00:00
<div id="charts_tab" class="main_tabcontent"><h1>Charts</h1></div>
2020-04-13 18:20:58 +00:00
2020-04-09 10:50:05 +00:00
<div id="favorites_tab" class="main_tabcontent"><h1>Favorites</h1></div>
2020-04-13 18:20:58 +00:00
2020-04-09 10:50:05 +00:00
<div id="analyzer_tab" class="main_tabcontent"><h1>Link Analyzer</h1></div>
2020-04-13 18:20:58 +00:00
2020-04-14 17:58:54 +00:00
<div id="settings_tab" class="main_tabcontent fixed_footer">
2020-04-11 19:55:12 +00:00
<h1>Settings</h1>
2020-04-18 08:08:34 +00:00
<div id="logged_in_info" class="inline-flex">
2020-04-12 22:14:34 +00:00
<img id="settings_picture" src="" alt="Profile Picture" class="circle" style="width: 125px;height:125px; margin-right: 12px;"/>
2020-04-18 08:08:34 +00:00
<div>
<p>You are logged in as <b id="settings_username"></b></p>
<button onclick="logout()" id="settings_btn_logout">Logout</button>
</div>
2020-04-12 22:14:34 +00:00
</div>
<div class="inline-flex">
<input autocomplete="off" type="password" id="login_input_arl" placeholder="ARL"/>
<button onclick="copyARLtoClipboard()" id="settings_btn_copyArl"><i class="material-icons">assignment</i></button>
</div>
<p><a href="https://notabug.org/RemixDevs/DeezloaderRemix/wiki/Login+via+userToken" target="_blank">How do I get my own ARL?</a></p>
<p><button onclick="loginButton()" style="width:100%;" id="settings_btn_updateArl">Update ARL</button></p>
2020-04-13 18:20:58 +00:00
<div id="settings_generic_tab">
<div class="input_group">
<p>Download Path</p>
<input type="text" v-model="settings.downloadLocation">
</div>
<div class="input_group">
<p>Trackname template</p>
<input type="text" v-model="settings.tracknameTemplate">
</div>
<div class="input_group">
<p>Album track template</p>
<input type="text" v-model="settings.albumTracknameTemplate">
</div>
<div class="input_group">
<p>Playlist track template</p>
2020-04-13 18:20:58 +00:00
<input type="text" v-model="settings.playlistTracknameTemplate">
</div>
2020-04-13 19:17:50 +00:00
<div class="input_group">
<p>Create folder for playlist</p>
<input type="checkbox" v-model="settings.createPlaylistFolder">
</div>
2020-04-13 18:20:58 +00:00
<div class="input_group" v-if="settings.createPlaylistFolder">
<p>Playlist folder template</p>
2020-04-13 18:20:58 +00:00
<input type="text" v-model="settings.playlistNameTemplate">
</div>
2020-04-13 19:17:50 +00:00
<div class="input_group">
<p>Create folder for artist</p>
<input type="checkbox" v-model="settings.createArtistFolder">
</div>
2020-04-13 18:20:58 +00:00
<div class="input_group" v-if="settings.createArtistFolder">
<p>Artist folder template</p>
<input type="text" v-model="settings.artistNameTemplate">
</div>
2020-04-13 19:17:50 +00:00
<div class="input_group">
<p>Create folder for album</p>
<input type="checkbox" v-model="settings.createAlbumFolder">
</div>
2020-04-13 18:20:58 +00:00
<div class="input_group" v-if="settings.createAlbumFolder">
<p>Album folder template</p>
<input type="text" v-model="settings.albumNameTemplate">
</div>
2020-04-13 19:17:50 +00:00
<div class="input_group">
<p>Create folder for CDs</p>
<input type="checkbox" v-model="settings.createCDFolder">
</div>
<div class="input_group">
<p>Create folder structure for playlists</p>
<input type="checkbox" v-model="settings.createStructurePlaylist">
</div>
<div class="input_group">
<p>Create folder structure for singles</p>
<input type="checkbox" v-model="settings.createSingleFolder">
</div>
<div class="input_group">
<p>Pad tracks</p>
<input type="checkbox" v-model="settings.padTracks">
</div>
<div class="input_group">
<p>Overwrite padding size</p>
<input type="number" v-model="settings.paddingSize">
</div>
<div class="input_group">
<p>Illegal Character replacer</p>
<input type="text" v-model="settings.illegalCharacterReplacer">
</div>
<div class="input_group">
<p>Concurrent Downloads</p>
<input type="number" v-model.number="settings.queueConcurrency">
2020-04-13 19:17:50 +00:00
</div>
<div class="input_group">
<p>Preferred Bitrate</p>
<select v-model="settings.maxBitrate">
<option value="9">FLAC 1411kbps</option>
<option value="3">MP3 320kbps</option>
<option value="1">MP3 128kbps</option>
</select>
</div>
<div class="input_group">
<p>Bitrate fallback</p>
<input type="checkbox" v-model="settings.fallbackBitrate">
</div>
<div class="input_group">
<p>Search fallback</p>
<input type="checkbox" v-model="settings.fallbackSearch">
</div>
<div class="input_group">
<p>Create log file for errors</p>
<input type="checkbox" v-model="settings.logErrors">
</div>
<div class="input_group">
<p>Create log file for searched tracks</p>
<input type="checkbox" v-model="settings.logSearched">
</div>
<div class="input_group">
<p>Create playlist file</p>
<input type="checkbox" v-model="settings.createM3U8File">
</div>
<div class="input_group">
<p>Create .lyr files (Sync Lyrics)</p>
<input type="checkbox" v-model="settings.syncedLyrics">
</div>
<div class="input_group">
<p>Save covers</p>
<input type="checkbox" v-model="settings.saveArtwork">
</div>
<div class="input_group">
<p>Cover name template</p>
<input type="text" v-model="settings.coverImageTemplate">
</div>
<div class="input_group">
<p>Save artist image</p>
<input type="checkbox" v-model="settings.saveArtworkArtist">
</div>
<div class="input_group">
<p>Artist image name template</p>
2020-04-13 19:17:50 +00:00
<input type="text" v-model="settings.artistImageTemplate">
</div>
<div class="input_group">
<p>Local artwork size</p>
<input type="number" min="100" max="1800" step="100" v-model.number="settings.localArtworkSize">
</div>
<div class="input_group">
<p>Embedded artwork size</p>
<input type="number" min="100" max="1800" step="100" v-model.number="settings.embeddedArtworkSize">
</div>
<div class="input_group">
2020-04-13 19:17:50 +00:00
<p>Save images as png</p>
<input type="checkbox" v-model="settings.PNGcovers">
</div>
2020-04-16 09:49:56 +00:00
<div class="input_group">
<p>JPEG image quality</p>
<input type="number" min="1" max="100" v-model.number="settings.jpegImageQuality">
</div>
2020-04-13 19:17:50 +00:00
<div class="input_group">
<p>Save playlists as compilation</p>
<input type="checkbox" v-model="settings.tags.savePlaylistAsCompilation">
2020-04-13 19:17:50 +00:00
</div>
<div class="input_group">
<p>Remove album version from track title</p>
<input type="checkbox" v-model="settings.removeAlbumVersion">
</div>
<div class="input_group">
<p>What should I do with featured artists</p>
<select v-model="settings.featuredToTitle">
<option value="0">Nothing</option>
<option value="1">Remove it from the title</option>
<option value="2">Move it to the title</option>
</select>
</div>
<div class="input_group">
<p>Title casing</p>
<select v-model="settings.titleCasing">
<option value="nothing">Keep unchanged</option>
<option value="lower">lowercase</option>
<option value="upper">UPPERCASE</option>
<option value="start">Start Of Each Word</option>
<option value="sentence">Like a sentence</option>
</select>
</div>
<div class="input_group">
<p>Artist casing</p>
<select v-model="settings.artistCasing">
<option value="nothing">Keep unchanged</option>
<option value="lower">lowercase</option>
<option value="upper">UPPERCASE</option>
<option value="start">Start Of Each Word</option>
<option value="sentence">Like a sentence</option>
</select>
</div>
2020-04-13 18:20:58 +00:00
</div>
<div id="settings_spotify_tab">
<div class="input_group">
<p>Spotify clientID</p>
<input type="text" v-model="spotifyFeatures.clientId">
</div>
<div class="input_group">
<p>Spotify Client Secret</p>
<input type="password" v-model="spotifyFeatures.clientSecret">
</div>
</div>
2020-04-14 17:58:54 +00:00
<footer>
<button onclick="saveSettings()">Save</button>
</footer>
2020-04-11 19:55:12 +00:00
</div>
2020-04-13 18:20:58 +00:00
2020-04-09 10:50:05 +00:00
<div id="about_tab" class="main_tabcontent"><h1>About</h1></div>
2020-04-13 18:20:58 +00:00
2020-04-18 09:17:39 +00:00
<div id="artist_tab" class="main_tabcontent fixed_footer image_header">
2020-04-18 08:08:34 +00:00
<header class="inline-flex" v-bind:style="{ 'background-image': 'linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(\''+image+'\')' }">
2020-04-17 17:39:51 +00:00
<h1>{{ title }}</h1>
<div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="link" class="fab right"><i class="material-icons">get_app</i></div>
2020-04-17 17:39:51 +00:00
</header>
2020-04-18 08:08:34 +00:00
<div class="tab">
2020-04-17 19:04:51 +00:00
<template v-for="(item, name, index) in body">
<button v-bind:class="'selective' + (name==currentTab ? 'active' : '')" v-bind:href="'#artist_' + name" v-on:click="changeTab(name)">{{ name }}</button>
</template>
2020-04-17 17:39:51 +00:00
</div>
<table>
<thead>
<tr>
2020-04-18 08:08:34 +00:00
<th v-for="data in head" v-on:click="data.sortKey ? sortBy(data.sortKey) : null" v-bind:class="{ 'sort-asc': data.sortKey == sortKey && sortOrder == 'asc', 'sort-desc': data.sortKey == sortKey && sortOrder == 'desc', 'sortable': data.sortKey, 'clickable': data.sortKey }">
2020-04-17 17:39:51 +00:00
{{data.title}}
2020-04-18 08:08:34 +00:00
</th>
2020-04-17 17:39:51 +00:00
</tr>
</thead>
<tbody>
2020-04-18 09:17:39 +00:00
<tr v-for="release in showTable">
<td class="inline-flex clickable" v-on:click="albumView(event)" v-bind:data-id="release.id">
<img class="rounded" v-bind:src="release.cover_small" style="margin-right: 16px;"/>
<i v-if="release.explicit_lyrics" class="material-icons" data-tooltip="Explicit" style="color:#FF3B30;">explicit</i>
{{release.title}}
<i v-if="checkNewRelease(release.release_date)" class="material-icons" style="color:#FF7300;">fiber_new</i>
</td>
<td>{{release.release_date}}</td>
<td><i v-on:click="addToQueue(event)" v-on:contextmenu="openQualityModal(event)" v-bind:data-link="release.link" class="material-icons">file_download</i></td>
</tr>
2020-04-17 17:39:51 +00:00
</tbody>
</table>
<footer>
<button onclick="backTab()">Back</button>
</footer>
</div>
2020-04-18 09:17:39 +00:00
<div id="tracklist_tab" class="main_tabcontent fixed_footer image_header">
<header v-bind:style="{ 'background-image': 'linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(\''+image+'\')' }">
2020-04-17 17:39:51 +00:00
<h1>{{ title }} <i v-if="explicit" class="material-icons">explicit</i></h1>
<h2><span v-if="metadata">{{ metadata }}</span><span v-if="release_date">{{ release_date }}</span></h2>
</header>
2020-04-18 09:17:39 +00:00
<table>
<thead>
<tr>
<th v-for="data in head" v-html="data.title"></th>
</tr>
</thead>
<tbody>
<template v-for="track in body">
<tr v-if="track.type == 'track'">
<td><i class="material-icons">play_arrow</i></td>
<td>{{ track.track_position }}</td>
<td><i v-if="track.explicit_lyrics" class="material-icons">explicit</i>{{ track.title }} <span v-if="track.title_version">{{track.title_version}}</span></td>
<td>{{ track.artist.name }}</td>
2020-04-18 10:08:43 +00:00
<td v-if="type == 'Playlist'">{{ track.album.title }}</td>
<td>{{ convertDuration(track.duration) }}</td>
<td><input class="trackCheckbox" type="checkbox" v-model="track.selected"></td>
</tr>
2020-04-18 10:08:43 +00:00
<tr v-else-if="track.type == 'disc_separator'">
<td colspan="6" style="opacity: 0.54;"><i class="material-icons">album</i>{{ track.number }}</td>
</tr>
</template>
2020-04-18 09:17:39 +00:00
</tbody>
</table>
<span v-if="label" style="opacity: 0.40;margin-top: 8px;display: inline-block;font-size: 13px;">{{ label }}</span>
2020-04-17 17:39:51 +00:00
<footer>
<button v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="link">Download {{ type }}</button>
2020-04-18 09:17:39 +00:00
<button>Download selection<i class="material-icons right">file_download</i></button>
2020-04-17 17:39:51 +00:00
<button onclick="backTab()">Back</button>
</footer>
</div>
2020-04-08 16:43:35 +00:00
</div></section>
2020-04-07 22:19:27 +00:00
</div>
2020-04-13 18:20:58 +00:00
2020-04-07 22:19:27 +00:00
<div id="download_tab_container">
<div id="download_tab_bar">
<i id="show_download_tab" class="material-icons download_bar_icon">chevron_left</i>
<label>downloads</label>
</div>
<div id="download_tab">
<i id="hide_download_tab" class="material-icons download_bar_icon">chevron_right</i>
2020-04-14 14:48:13 +00:00
<div class="inline-flex right">
<i id="clean_queue" class="material-icons download_bar_icon">clear_all</i>
<i id="cancel_queue" class="material-icons download_bar_icon">delete_sweep</i>
</div>
2020-04-13 18:20:58 +00:00
<div id="download_list" class=""></div>
2020-04-07 22:19:27 +00:00
</div>
</div>
</main>
<div id="modal_quality" class="smallmodal">
<!-- Modal content -->
<div class="smallmodal-content">
<button onclick="modalQualityButton(9)">Download FLAC</button><br>
<button onclick="modalQualityButton(3)">Download MP3 320kbps</button><br>
<button onclick="modalQualityButton(1)">Download MP3 128kbps</button><br>
<button onclick="modalQualityButton(15)">Download 360 Reality Audio [HQ]</button><br>
<button onclick="modalQualityButton(14)">Download 360 Reality Audio [MQ]</button><br>
<button onclick="modalQualityButton(13)">Download 360 Reality Audio [LQ]</button><br>
</div>
</div>
2020-04-07 22:19:27 +00:00
</body>
<script type="text/javascript" src="/public/js/vendor/httpVueLoader.js"></script>
<script type="text/javascript" src="/public/js/vendor/socket.io.js"></script>
<script type="text/javascript" src="/public/js/vendor/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/public/js/vendor/vue.min.js"></script>
2020-04-17 17:39:51 +00:00
<script type="text/javascript" src="/public/js/vendor/lodash.min.js"></script>
<script type="text/javascript" src="/public/js/vendor/toastify.js"></script>
<!-- <script type="text/javascript" src="/public/js/app/v-app.js"></script> -->
2020-04-14 17:58:54 +00:00
<script type="text/javascript" src="/public/js/app/app.js"></script>
2020-04-17 17:39:51 +00:00
<script type="text/javascript" src="/public/js/app/tabs.js"></script>
<script type="text/javascript" src="/public/js/app/stackedTabs.js"></script>
2020-04-14 17:58:54 +00:00
<script type="text/javascript" src="/public/js/app/utils.js"></script>
<script type="text/javascript" src="/public/js/app/search.js"></script>
<script type="text/javascript" src="/public/js/app/downloadList.js"></script>
2020-04-07 22:19:27 +00:00
</html>