diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index cf95f186..6d2a39c0 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -153,6 +153,10 @@ const app = new Vue({ drawerState: "queue", topChromeVisible: true }, + collectionList: { + response: {}, + title: "" + }, page: "artist-page", pageHistory: [], songstest: false @@ -276,6 +280,16 @@ const app = new Vue({ }) document.body.removeAttribute("loading") }, + async showCollection (response, title) { + let self = this + this.collectionList.response = response + this.collectionList.title = title + this.page = "collection-list" + }, + async showArtistView (artist, title, view) { + let response = await this.mk.api.artistView(artist, view, {}, {view: view, includeResponseMeta: !0}) + await this.showCollection(response, title) + }, async getPlaylistFromID(id) { const params = {include: "tracks", platform: "web", @@ -306,6 +320,7 @@ const app = new Vue({ "limit[artists:top-songs]": 20, "art[url]": "f" }, {includeResponseMeta: !0}) + console.log(artistData) this.artistPage.data = artistData.data[0] this.page = "artist-page" }, diff --git a/resources/cider-ui-tests/style.less b/resources/cider-ui-tests/style.less index 680ee1a8..488fda9c 100644 --- a/resources/cider-ui-tests/style.less +++ b/resources/cider-ui-tests/style.less @@ -1611,6 +1611,12 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb { } } +// Collection Page +.collection-page { + .header-text { + margin-bottom: 32px; + } +} /* Artist Page */ diff --git a/resources/cider-ui-tests/views/main.ejs b/resources/cider-ui-tests/views/main.ejs index 11d28b92..cd6690a5 100644 --- a/resources/cider-ui-tests/views/main.ejs +++ b/resources/cider-ui-tests/views/main.ejs @@ -239,6 +239,12 @@ <%- include('pages/webview') %> + + + +