diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js
index 0633c1f4..567ec759 100644
--- a/resources/cider-ui-tests/index.js
+++ b/resources/cider-ui-tests/index.js
@@ -30,11 +30,6 @@ Vue.component('cider-listen-now', {
props: ["data"]
})
-Vue.component('cider-playlist', {
- template: "#cider-playlist",
- props: ["data"]
-})
-
const MusicKitTools = {
getHeader() {
return new Headers({
@@ -57,6 +52,18 @@ function msToMinSec(ms) {
return minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
}
+class NavigationEvent {
+ constructor(page, onnavigate, scrollPosition) {
+ this.page = page;
+ this.onnavigate = onnavigate;
+ this.scrollPosition = scrollPosition;
+ }
+ navigate() {
+ this.onnavigate();
+ document.querySelector("#app-content").scrollTop = this.scrollPosition;
+ }
+}
+
const app = new Vue({
el: "#app",
data: {
@@ -116,7 +123,8 @@ const app = new Vue({
drawerOpened: false,
drawerState: "queue"
},
- page: "artist-page"
+ page: "artist-page",
+ pageHistory: [],
},
methods: {
async init() {
@@ -242,6 +250,11 @@ const app = new Vue({
app.getTypeFromID((kind),(id), (isLibrary));} else {
app.playMediaItemById((id),(kind), (isLibrary), item.attributes.url ?? '')
}
+ document.querySelector("#app-content").scrollTop = 0
+ },
+ pushNavigationEvent(item){
+ let self = this
+
},
getArtistInfo(id, isLibrary){
var query = {"omit[resource]": "autos",
diff --git a/resources/cider-ui-tests/style.css b/resources/cider-ui-tests/style.css
index 08198878..a314713f 100644
--- a/resources/cider-ui-tests/style.css
+++ b/resources/cider-ui-tests/style.css
@@ -1845,7 +1845,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
}
.playlist-display .playlist-info .playlist-desc {
box-sizing: border-box;
- font-size: 1.1rem;
+ font-size: 1em;
flex-shrink: unset;
margin-right: 5px;
}
diff --git a/resources/cider-ui-tests/views/main.ejs b/resources/cider-ui-tests/views/main.ejs
index 053acc89..87ac4839 100644
--- a/resources/cider-ui-tests/views/main.ejs
+++ b/resources/cider-ui-tests/views/main.ejs
@@ -365,33 +365,8 @@
-
-
+
+<%- include('pages/cider-playlist') %>
+
\ No newline at end of file