2020-06-29 18:23:56 +00:00
|
|
|
<template>
|
2020-11-02 11:25:08 +00:00
|
|
|
<div id="app">
|
2020-09-15 20:44:29 +00:00
|
|
|
<div class="app-container">
|
2020-10-16 21:02:34 +00:00
|
|
|
<TheSidebar />
|
2020-10-16 21:56:53 +00:00
|
|
|
|
2020-09-15 20:44:29 +00:00
|
|
|
<div class="content-container">
|
|
|
|
<TheSearchBar />
|
2020-09-25 17:01:08 +00:00
|
|
|
<TheContent />
|
2020-09-15 20:44:29 +00:00
|
|
|
</div>
|
2020-10-16 21:56:53 +00:00
|
|
|
|
2020-09-26 19:48:55 +00:00
|
|
|
<TheDownloadBar />
|
2020-09-15 20:44:29 +00:00
|
|
|
</div>
|
|
|
|
|
2020-10-28 21:21:41 +00:00
|
|
|
<BaseLoadingPlaceholder
|
2020-12-30 14:18:16 +00:00
|
|
|
text="Connecting to local server..."
|
2020-11-02 11:25:08 +00:00
|
|
|
:hidden="isSocketConnected"
|
2020-10-28 21:21:41 +00:00
|
|
|
additionalClasses="absolute top-0 left-0 w-screen h-screen bg-black bg-opacity-50 z-50"
|
|
|
|
/>
|
2020-06-29 18:23:56 +00:00
|
|
|
|
|
|
|
<TheTrackPreview />
|
2020-07-06 16:34:43 +00:00
|
|
|
<TheQualityModal />
|
2020-10-07 20:59:10 +00:00
|
|
|
<!-- <ConfirmModal /> -->
|
2020-08-03 17:26:16 +00:00
|
|
|
|
|
|
|
<TheContextMenu />
|
2020-06-29 18:23:56 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-10-16 21:02:34 +00:00
|
|
|
<style>
|
2020-09-15 20:44:29 +00:00
|
|
|
.app-container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-container {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2020-06-29 18:23:56 +00:00
|
|
|
<script>
|
2020-10-28 21:21:41 +00:00
|
|
|
import { socket } from '@/utils/socket'
|
2020-09-26 19:10:40 +00:00
|
|
|
|
|
|
|
import BaseLoadingPlaceholder from '@components/globals/BaseLoadingPlaceholder.vue'
|
|
|
|
import TheContextMenu from '@components/globals/TheContextMenu.vue'
|
|
|
|
import TheTrackPreview from '@components/globals/TheTrackPreview.vue'
|
|
|
|
import TheQualityModal from '@components/globals/TheQualityModal.vue'
|
2020-11-02 11:25:08 +00:00
|
|
|
// import ConfirmModal from '@components/globals/ConfirmModal.vue'
|
2020-09-26 19:10:40 +00:00
|
|
|
|
2020-06-29 18:23:56 +00:00
|
|
|
import TheSidebar from '@components/TheSidebar.vue'
|
2020-09-15 20:44:29 +00:00
|
|
|
import TheSearchBar from '@components/TheSearchBar.vue'
|
2020-09-25 17:01:08 +00:00
|
|
|
import TheContent from '@components/TheContent.vue'
|
2020-10-28 21:21:41 +00:00
|
|
|
import TheDownloadBar from '@components/downloads/TheDownloadBar.vue'
|
2020-06-29 18:23:56 +00:00
|
|
|
|
|
|
|
export default {
|
2020-10-28 21:21:41 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isSocketConnected: false
|
|
|
|
}
|
|
|
|
},
|
2020-06-29 18:23:56 +00:00
|
|
|
components: {
|
|
|
|
TheSidebar,
|
2020-09-15 20:44:29 +00:00
|
|
|
TheSearchBar,
|
2020-09-26 19:10:40 +00:00
|
|
|
TheDownloadBar,
|
2020-07-06 16:34:43 +00:00
|
|
|
TheTrackPreview,
|
|
|
|
TheQualityModal,
|
2020-08-03 17:26:16 +00:00
|
|
|
BaseLoadingPlaceholder,
|
2020-09-25 17:01:08 +00:00
|
|
|
TheContextMenu,
|
2020-11-02 11:25:08 +00:00
|
|
|
TheContent
|
|
|
|
// ConfirmModal
|
2020-10-28 21:21:41 +00:00
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
socket.on('connect', () => {
|
|
|
|
this.isSocketConnected = true
|
|
|
|
})
|
2020-06-29 18:23:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|