From 7dfbdab4e82d34d813287fc7dc83b25bde72a40c Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Mon, 6 Dec 2021 17:18:34 -0800 Subject: [PATCH] EJS html cleanup --- resources/cider-ui-tests/views/main.ejs | 72 +++++++-------------- resources/cider-ui-tests/views/svg/cast.svg | 4 ++ resources/cider-ui-tests/views/svg/play.svg | 3 + 3 files changed, 29 insertions(+), 50 deletions(-) create mode 100644 resources/cider-ui-tests/views/svg/cast.svg create mode 100644 resources/cider-ui-tests/views/svg/play.svg diff --git a/resources/cider-ui-tests/views/main.ejs b/resources/cider-ui-tests/views/main.ejs index 8b56cf83..3f7792e3 100644 --- a/resources/cider-ui-tests/views/main.ejs +++ b/resources/cider-ui-tests/views/main.ejs @@ -87,12 +87,7 @@
@@ -100,8 +95,7 @@
+ @click="drawertest = !drawertest; lyricon =!lyricon; if(drawertest == true){loadLyrics();}">
@@ -123,8 +117,7 @@ @click="showSearch()" @change="showSearch();searchQuery()" placeholder="Search..." - v-model="search.term" - class="search-input"> + v-model="search.term" class="search-input">
@@ -175,8 +168,7 @@ @@ -503,8 +494,8 @@ @@ -549,8 +540,7 @@ + :type="item.type">
@@ -581,8 +571,7 @@ + :type="item.type">
@@ -609,8 +598,7 @@ + :type="item.type">
{{ item.attributes.name }} @@ -633,8 +621,7 @@ + :type="item.type">
- - - + height: '120px',}]" @click="app.playMediaItem(item)"> + <%- include("svg/play.svg") %>
@@ -669,11 +653,8 @@ height: '40px',} : {margin: '35px', width: '120px', - height: '120px',}]" - @click="app.playMediaItem(item)"> - - - + height: '120px',}]" @click="app.playMediaItem(item)"> + <%- include("svg/play.svg") %>
@@ -703,21 +684,16 @@ height: '40px',} : {margin: '35px', width: '120px', - height: '120px',}]" - @click="app.playMediaItem(item)"> - - - + height: '120px',}]" @click="app.playMediaItem(item)"> + <%- include("svg/play.svg") %>
+ :style="{'color' : (item.attributes.artwork.textColor1 != null) ? ('#'+item.attributes.artwork.textColor1) : `#eee`}" style="font-weight: 600"> {{ item.attributes.name }}
+ :style="{'color' : (item.attributes.artwork.textColor1 != null) ? ('#'+item.attributes.artwork.textColor1) : `#eee`}" style="padding-left: 4px;padding-right: 4px; display: -webkit-box;-webkit-box-orient: vertical; -webkit-line-clamp: 2;white-space: normal;"> {{ (item.attributes.editorialNotes != null) ? item.attributes.editorialNotes.short :(item.attributes.artistName ?? '') }}
@@ -732,11 +708,8 @@ height: '40px',} : {margin: '35px', width: '120px', - height: '120px',}]" - @click="app.playMediaItem(item)"> - - - + height: '120px',}]" @click="app.playMediaItem(item)"> + <%- include("svg/play.svg") %> @@ -756,8 +729,7 @@