deemixer/public/index.html
2020-04-17 21:16:59 +02:00

347 lines
15 KiB
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>deemix</title>
<link rel="stylesheet" type="text/css" href="/public/css/progressbar.css">
<link rel="stylesheet" type="text/css" href="/public/css/vendor/animate.css">
<link rel="stylesheet" type="text/css" href="/public/css/vendor/toastify.css">
<link rel="stylesheet" type="text/css" href="/public/css/vendor/material-icons.css"/>
<link rel="stylesheet" type="text/css" href="/public/css/vendor/OpenSans.css"/>
<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/> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
<!-- imho not needed -->
<!-- <script type='text/javascript'>
if (eval(localStorage.darkMode)){
document.getElementsByName("darkMode")[0].removeAttribute("disabled");
}
</script> -->
</head>
<body>
<aside role="navigation" id="sidebar">
<i class="material-icons side_icon">menu</i>
<i onclick="changeTab(event, 'main', 'search_tab')" id="main_search_tablink" class="main_tablinks"></i>
<i role="link" aria-label="home" onclick="changeTab(event, 'main', 'home_tab')" id="main_home_tablink" class="material-icons side_icon main_tablinks">home</i>
<i role="link" aria-label="charts" onclick="changeTab(event, 'main', 'charts_tab')" id="main_charts_tablink" class="material-icons side_icon main_tablinks">bubble_chart</i>
<i role="link" aria-label="favorites" onclick="changeTab(event, 'main', 'favorites_tab')" id="main_favorites_tablink" class="material-icons side_icon main_tablinks">album</i>
<i role="link" aria-label="link analyzer" onclick="changeTab(event, 'main', 'analyzer_tab')" id="main_analyzer_tablink" class="material-icons side_icon main_tablinks">link</i>
<i role="link" aria-label="settings" onclick="changeTab(event, 'main', 'settings_tab')" id="main_settings_tablink" class="material-icons side_icon main_tablinks">settings</i>
<i role="link" aria-label="about" onclick="changeTab(event, 'main', 'about_tab')" id="main_about_tablink" class="material-icons side_icon main_tablinks">info</i>
</aside>
<main id="main_content">
<div id="middle_section">
<header id="search"><input id="searchbar" type="text" name="searchbar" value="" placeholder="Search..."></header>
<section id="content"><div id="container">
<!-- Search Tab -->
<div id="v-app"><app/></div>
<div id="home_tab" class="main_tabcontent">
<h1>Home</h1>
</div>
<div id="charts_tab" class="main_tabcontent"><h1>Charts</h1></div>
<div id="favorites_tab" class="main_tabcontent"><h1>Favorites</h1></div>
<div id="analyzer_tab" class="main_tabcontent"><h1>Link Analyzer</h1></div>
<div id="settings_tab" class="main_tabcontent fixed_footer">
<h1>Settings</h1>
<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>
<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>
<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>
<input type="text" v-model="settings.playlistTracknameTemplate">
</div>
<div class="input_group">
<p>Create folder for playlist</p>
<input type="checkbox" v-model="settings.createPlaylistFolder">
</div>
<div class="input_group" v-if="settings.createPlaylistFolder">
<p>Playlist folder template</p>
<input type="text" v-model="settings.playlistNameTemplate">
</div>
<div class="input_group">
<p>Create folder for artist</p>
<input type="checkbox" v-model="settings.createArtistFolder">
</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">
<p>Create folder for album</p>
<input type="checkbox" v-model="settings.createAlbumFolder">
</div>
<div class="input_group" v-if="settings.createAlbumFolder">
<p>Album folder template</p>
<input type="text" v-model="settings.albumNameTemplate">
</div>
<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">
</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>
<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">
<p>Save images as png</p>
<input type="checkbox" v-model="settings.PNGcovers">
</div>
<div class="input_group">
<p>JPEG image quality</p>
<input type="number" min="1" max="100" v-model.number="settings.jpegImageQuality">
</div>
<div class="input_group">
<p>Save playlists as compilation</p>
<input type="checkbox" v-model="settings.tags.savePlaylistAsCompilation">
</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>
</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>
<footer>
<button onclick="saveSettings()">Save</button>
</footer>
</div>
<div id="about_tab" class="main_tabcontent"><h1>About</h1></div>
<div id="artist_tab" class="main_tabcontent fixed_footer">
<header>
<h1>{{ title }}</h1>
<div class="fab"><i class="material-icons">get_app</i></div>
</header>
<div>
<ul id="artist-tabs">
<template v-for="(item, name, index) in body">
<li class="tab"><a v-bind:class="index==0 ? 'active' : ''" v-bind:href="'#artist_' + name" v-on:click="changeTab(name)">{{ name }}</a></li>
</template>
</ul>
</div>
<table>
<thead>
<tr>
<td 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 }">
{{data.title}}
</td>
</tr>
</thead>
<tbody>
<template v-for="release in showTable">
<tr>
<td>
<img v-bind:src="release.cover_small"/>
<i v-if="release.explicit_lyrics" class="material-icons" data-tooltip="Explicit">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>
</template>
</tbody>
</table>
<footer>
<button onclick="backTab()">Back</button>
</footer>
</div>
<div id="tracklist_tab" class="main_tabcontent fixed_footer">
<header>
<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>
<footer>
<button onclick="backTab()">Back</button>
</footer>
</div>
</div></section>
</div>
<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>
<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>
<div id="download_list" class=""></div>
</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>
</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>
<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>
<script type="text/javascript" src="/public/js/app/app.js"></script>
<script type="text/javascript" src="/public/js/app/tabs.js"></script>
<script type="text/javascript" src="/public/js/app/stackedTabs.js"></script>
<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>
</html>