From cacb360ec2e788d821d3c46c7b6d189947127e21 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sat, 4 Dec 2021 16:01:58 +0700 Subject: [PATCH] library albums page --- resources/cider-ui-tests/index.html | 19 +++++++++++++++++++ resources/cider-ui-tests/index.js | 11 ++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/resources/cider-ui-tests/index.html b/resources/cider-ui-tests/index.html index 30edf0d2..425a60d3 100644 --- a/resources/cider-ui-tests/index.html +++ b/resources/cider-ui-tests/index.html @@ -245,6 +245,23 @@ + + + +
@@ -278,6 +295,8 @@ + diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index fe23108b..34836e4e 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -108,7 +108,11 @@ const app = new Vue({ songs: { listing: [], meta: {total: 0} - } + }, + albums: { + listing: [], + meta: {total: 0} + }, }, playlists: { listing: [], @@ -167,6 +171,11 @@ const app = new Vue({ this.library.songs.listing = response.data this.library.songs.meta = response.meta }, + async getLibraryAlbums() { + var response = await this.mkapi("albums", true, "", {limit: 100}, {includeResponseMeta: !0}) + this.library.albums.listing = response.data + this.library.albums.meta = response.meta + }, async getListenNow(attempt = 0) { if (attempt > 3) { return