@@ -412,7 +409,7 @@
Settings
-
+
diff --git a/public/js/app/components/App.vue b/public/js/app/components/App.vue
index bb44dea..9f039ba 100644
--- a/public/js/app/components/App.vue
+++ b/public/js/app/components/App.vue
@@ -1,17 +1,13 @@
-
+
diff --git a/public/js/app/components/TheSearchTab.vue b/public/js/app/components/TheSearchTab.vue
new file mode 100644
index 0000000..09f74dc
--- /dev/null
+++ b/public/js/app/components/TheSearchTab.vue
@@ -0,0 +1,47 @@
+
+
+
+ All
+ Tracks
+ Album
+ Artist
+ Playlist
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/js/app/components/search-tab/TheMainSearch.vue b/public/js/app/components/search-tab/TheMainSearch.vue
new file mode 100644
index 0000000..099d80e
--- /dev/null
+++ b/public/js/app/components/search-tab/TheMainSearch.vue
@@ -0,0 +1,215 @@
+
+
+
+
+
{{ formatNames(section) }}
+
+
+
+
+ get_app
+
+
+
+
{{ 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 : '' }}
+
{{ 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' : '' }}
+
{{ results.TOP_RESULT[0].__TYPE__.charAt(0).toUpperCase() + results.TOP_RESULT[0].__TYPE__.substring(1)}}
+
+
+
+
+
+
+
+
No results
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/js/app/search.js b/public/js/app/search.js
index 7d37c4f..6283832 100644
--- a/public/js/app/search.js
+++ b/public/js/app/search.js
@@ -192,6 +192,7 @@ function mainSearchHandler(result) {
document.getElementById('search_tab_content').style.display = 'block'
document.getElementById('main_search_tablink').click()
}
+
socket.on('mainSearch', function (result) {
mainSearchHandler(result)
})
\ No newline at end of file