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-10 21:04:05 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/progressbar.css">
|
2020-04-07 22:19:27 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/animate.css">
|
2020-04-11 10:51:22 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/toastify.css">
|
2020-04-07 22:19:27 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/material-icons.css"/>
|
2020-04-12 20:05:07 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/OpenSans.css"/>
|
2020-04-11 10:51:22 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="/public/css/darkMode.css" name="darkMode" disabled/>
|
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">
|
2020-04-10 14:12:21 +00:00
|
|
|
<script type='text/javascript'>
|
|
|
|
if (eval(localStorage.darkMode)){
|
|
|
|
document.getElementsByName("darkMode")[0].removeAttribute("disabled");
|
|
|
|
}
|
|
|
|
</script>
|
2020-04-07 22:19:27 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<aside id="sidebar">
|
|
|
|
<i class="material-icons side_icon">menu</i>
|
2020-04-13 10:06:17 +00:00
|
|
|
<i onclick="changeTab(event, 'main', 'search_tab')" id="main_search_tablink" class="main_tablinks"></i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'home_tab')" id="main_home_tablink" class="material-icons side_icon main_tablinks">home</i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'charts_tab')" id="main_charts_tablink" class="material-icons side_icon main_tablinks">bubble_chart</i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'favorites_tab')" id="main_favorites_tablink" class="material-icons side_icon main_tablinks">album</i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'analyzer_tab')" id="main_analyzer_tablink" class="material-icons side_icon main_tablinks">link</i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'settings_tab')" id="main_settings_tablink" class="material-icons side_icon main_tablinks">settings</i>
|
|
|
|
<i onclick="changeTab(event, 'main', 'about_tab')" 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-08 16:43:35 +00:00
|
|
|
<header id="search"><input id="searchbar" type="text" name="searchbar" value="" placeholder="Search..."></header>
|
|
|
|
<section id="content"><div id="container">
|
|
|
|
|
2020-04-09 10:50:05 +00:00
|
|
|
<div id="search_tab" class="main_tabcontent">
|
2020-04-09 10:24:49 +00:00
|
|
|
<div class="tab">
|
2020-04-13 10:06:17 +00:00
|
|
|
<button class="search_tablinks" id="search_all_tab" onclick="changeTab(event, 'search', 'main_search')">All</button>
|
2020-04-09 12:44:51 +00:00
|
|
|
<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>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<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">
|
2020-04-09 12:44:51 +00:00
|
|
|
<h1 v-on:click="changeSearchTab(section)">{{ names[section] }}</h1>
|
2020-04-09 10:50:05 +00:00
|
|
|
<!-- Top result -->
|
|
|
|
<div v-if="section == 'TOP_RESULT'" class="top_result">
|
2020-04-09 12:27:06 +00:00
|
|
|
<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'"
|
2020-04-09 10:50:05 +00:00
|
|
|
v-bind:class="(results.TOP_RESULT[0].__TYPE__ == 'artist' ? 'circle' : 'rounded') + ' coverart'"></img>
|
|
|
|
<div class="info_box">
|
2020-04-10 16:00:42 +00:00
|
|
|
<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>
|
2020-04-09 10:50:05 +00:00
|
|
|
<span class="tag">{{ results.TOP_RESULT[0].__TYPE__.charAt(0).toUpperCase() + results.TOP_RESULT[0].__TYPE__.substring(1)}}</span>
|
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<div v-if="section == 'TRACK'">
|
|
|
|
<table class="tracks_table">
|
|
|
|
<tr v-for="track in results.TRACK.data.slice(0, 6)" class="track_row">
|
2020-04-13 10:06:17 +00:00
|
|
|
<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>
|
2020-04-09 10:50:05 +00:00
|
|
|
<td>{{convertDuration(track.DURATION)}}</td>
|
2020-04-13 10:06:17 +00:00
|
|
|
<td v-on:click="addToQueue('https://www.deezer.com/track/'+track.SNG_ID)" style="width: 56px; text-align: center;" class="clickable"><i class="material-icons">get_app</i></td>
|
2020-04-09 10:50:05 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-04-09 12:07:24 +00:00
|
|
|
<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">
|
2020-04-09 10:50:05 +00:00
|
|
|
<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'">
|
2020-04-10 16:00:42 +00:00
|
|
|
<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>
|
2020-04-09 10:50:05 +00:00
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-08 16:43:35 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
</template>
|
|
|
|
<div v-if="results.ORDER.every(section => section == 'TOP_RESULT' ? results[section].length == 0 : results[section].data.length == 0)">
|
|
|
|
<h1>No results</h1>
|
2020-04-08 16:43:35 +00:00
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<!-- ### Track Search Tab ### -->
|
|
|
|
<div id="track_search" class="search_tabcontent">
|
|
|
|
<div v-if="results.data.length == 0">
|
|
|
|
<h1>No Tracks found</h1>
|
2020-04-08 21:52:08 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<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">
|
2020-04-13 10:06:17 +00:00
|
|
|
<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>
|
2020-04-09 10:50:05 +00:00
|
|
|
<td>{{convertDuration(track.DURATION)}}</td>
|
2020-04-13 10:06:17 +00:00
|
|
|
<td v-on:click="addToQueue('https://www.deezer.com/track/'+track.SNG_ID)" style="width: 56px; text-align: center;" class="clickable"><i class="material-icons">get_app</i></td>
|
2020-04-09 10:50:05 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<!-- ### 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">
|
|
|
|
<img class="rounded coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/cover/' + release.ALB_PICTURE + '/156x156-000000-80-0-0.jpg'">
|
2020-04-10 16:00:42 +00:00
|
|
|
<p class="primary-text">{{ release.ALB_TITLE }}</p>
|
|
|
|
<p class="secondary-text">{{ 'by '+release.ART_NAME }}</p>
|
2020-04-09 10:50:05 +00:00
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<!-- ### 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">
|
|
|
|
<img class="circle coverart" v-bind:src="'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE + '/156x156-000000-80-0-0.jpg'">
|
2020-04-10 16:00:42 +00:00
|
|
|
<p class="primary-text">{{ release.ART_NAME }}</p>
|
|
|
|
<p class="secondary-text">{{ numberWithDots(release.NB_FAN) + ' fans' }}</p>
|
2020-04-09 10:50:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-09 10:50:05 +00:00
|
|
|
<!-- ### 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">
|
|
|
|
<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'">
|
2020-04-10 16:00:42 +00:00
|
|
|
<p class="primary-text">{{ release.TITLE }}</p>
|
|
|
|
<p class="secondary-text">{{ release.NB_SONG+' tracks' }}</p>
|
2020-04-09 10:50:05 +00:00
|
|
|
</div>
|
2020-04-08 16:43:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-09 10:24:49 +00:00
|
|
|
</div>
|
2020-04-07 22:19:27 +00:00
|
|
|
</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-11 19:55:12 +00:00
|
|
|
<div id="settings_tab" class="main_tabcontent">
|
|
|
|
<h1>Settings</h1>
|
2020-04-12 22:14:34 +00:00
|
|
|
<div id="logged_in_info">
|
|
|
|
<img id="settings_picture" src="" alt="Profile Picture" class="circle" style="width: 125px;height:125px; margin-right: 12px;"/>
|
|
|
|
<p>You are logged in as <b id="settings_username"></b></p>
|
|
|
|
<button onclick="logout()" id="settings_btn_logout">Logout</button>
|
|
|
|
</div>
|
|
|
|
<button id="open_login_prompt" type="button" name="button" onclick="openLoginPrompt()" disabled>Login with e-mail</button>
|
|
|
|
<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>Playlsit track template</p>
|
|
|
|
<input type="text" v-model="settings.playlistTracknameTemplate">
|
|
|
|
</div>
|
|
|
|
<div class="input_group" v-if="settings.createPlaylistFolder">
|
|
|
|
<p>Playlsit folder template</p>
|
|
|
|
<input type="text" v-model="settings.playlistNameTemplate">
|
|
|
|
</div>
|
|
|
|
<div class="input_group" v-if="settings.createArtistFolder">
|
|
|
|
<p>Artist folder template</p>
|
|
|
|
<input type="text" v-model="settings.artistNameTemplate">
|
|
|
|
</div>
|
|
|
|
<div class="input_group" v-if="settings.createAlbumFolder">
|
|
|
|
<p>Album folder template</p>
|
|
|
|
<input type="text" v-model="settings.albumNameTemplate">
|
|
|
|
</div>
|
|
|
|
</div>
|
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-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-13 18:20:58 +00:00
|
|
|
<div id="download_list" class=""></div>
|
2020-04-07 22:19:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-13 18:20:58 +00:00
|
|
|
|
2020-04-07 22:19:27 +00:00
|
|
|
</main>
|
|
|
|
</body>
|
2020-04-10 14:12:21 +00:00
|
|
|
<script type="text/javascript" src="/public/js/socket.io.js"></script>
|
2020-04-07 22:19:27 +00:00
|
|
|
<script type="text/javascript" src="/public/js/jquery-3.3.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/public/js/vue.min.js"></script>
|
2020-04-11 10:51:22 +00:00
|
|
|
<script type="text/javascript" src="/public/js/toastify.js"></script>
|
2020-04-10 14:12:21 +00:00
|
|
|
<script type="text/javascript" src="/public/js/init.js"></script>
|
2020-04-08 17:01:50 +00:00
|
|
|
<script type="text/javascript" src="/public/js/utils.js"></script>
|
2020-04-10 14:12:21 +00:00
|
|
|
<script type="text/javascript" src="/public/js/app.js"></script>
|
|
|
|
<script type="text/javascript" src="/public/js/downloadList.js"></script>
|
2020-04-07 22:19:27 +00:00
|
|
|
</html>
|