From 810b62bf627b2f9f9473bd57e676732c2561c62c Mon Sep 17 00:00:00 2001 From: Maurice Oegerli Date: Mon, 14 Sep 2020 23:17:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20search=20api=20progress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/assets/styles/global/variables.scss | 2 +- client/components/SectionTitle.vue | 20 +++-- client/components/channel/Overview.vue | 30 ++----- client/components/list/ChannelEntry.vue | 4 +- client/components/list/CollapsibleSection.vue | 33 +++----- client/components/list/PlaylistEntry.vue | 20 +---- client/components/list/VideoEntry.vue | 2 +- client/components/search/CompactShelf.vue | 6 +- client/components/search/VerticalShelf.vue | 6 +- client/components/watch/RecommendedVideos.vue | 33 +++----- client/pages/channel/_id.vue | 82 +++++++------------ client/pages/index.vue | 7 ++ client/pages/results.vue | 70 ++++++++++++---- client/pages/subscriptions/index.vue | 15 ++-- client/pages/watch.vue | 4 +- server/core/search/search.mapper.ts | 25 ++++-- 16 files changed, 180 insertions(+), 179 deletions(-) diff --git a/client/assets/styles/global/variables.scss b/client/assets/styles/global/variables.scss index c59074068..e3e90c6aa 100644 --- a/client/assets/styles/global/variables.scss +++ b/client/assets/styles/global/variables.scss @@ -52,5 +52,5 @@ $title-color-fake-gradient: linear-gradient(to right, var(--title-color), var(-- display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); // grid-auto-rows: minmax(300px, auto); - grid-gap: 1em 2em; + gap: 1em 2em; } diff --git a/client/components/SectionTitle.vue b/client/components/SectionTitle.vue index 778d7d5ce..a9226a01b 100644 --- a/client/components/SectionTitle.vue +++ b/client/components/SectionTitle.vue @@ -4,6 +4,7 @@ {{ title }} + @@ -33,19 +34,18 @@ export default { z-index: 9; display: block; width: 100%; + display: flex; + flex-direction: row; .title { - position: absolute; + position: relative; top: 0; - left: 50%; - transform: translateX(-50%); - width: 100%; max-width: $main-width; - margin: 0 auto; + margin: 0; line-height: 80px; font-size: 1.7rem; text-align: start; - padding: 0 0 0 20px; + padding: 0; color: var(--title-color); box-sizing: border-box; z-index: 9; @@ -73,5 +73,13 @@ export default { } } } + .line { + height: 2px; + flex-grow: 1; + background: linear-gradient(to right, transparent 5%, var(--theme-color-translucent) 15%); + position: relative; + top: 50%; + display: block; + } } diff --git a/client/components/channel/Overview.vue b/client/components/channel/Overview.vue index 107388d24..388473f20 100644 --- a/client/components/channel/Overview.vue +++ b/client/components/channel/Overview.vue @@ -2,11 +2,8 @@
-
- Author Image +
+ Author Image
@@ -15,34 +12,23 @@

- {{ - channel.subCount.toLocaleString('en-US') - }} + {{ channel.subCount.toLocaleString('en-US') }} subscribers

- {{ - channel.totalViews.toLocaleString('en-US') - }} + {{ channel.totalViews.toLocaleString('en-US') }} total views

joined - {{ - getFormattedDate( - new Date(channel.joined * 1000) - ) - }} + {{ getFormattedDate(new Date(channel.joined * 1000)) }}

-
+

family friendly

@@ -76,9 +62,7 @@ export default { methods: { getFormattedDate(rawDate) { const date = new Date(rawDate); - return `${date.getDate()}.${ - date.getMonth() + 1 - }.${date.getFullYear()}`; + return `${date.getDate()}.${date.getMonth() + 1}.${date.getFullYear()}`; } } }; diff --git a/client/components/list/ChannelEntry.vue b/client/components/list/ChannelEntry.vue index fa345b670..642f0751f 100644 --- a/client/components/list/ChannelEntry.vue +++ b/client/components/list/ChannelEntry.vue @@ -67,7 +67,6 @@ export default { .channel-entry-background { position: absolute; - height: 175px; top: 10px; width: 175px; left: 50%; @@ -85,7 +84,7 @@ export default { height: 175px; overflow: hidden; position: relative; - box-shadow: $max-shadow; + box-shadow: $medium-shadow; margin: 0 auto; z-index: 11; @@ -112,6 +111,7 @@ export default { .channel-entry-thmb-image { width: 100%; + display: block; } } } diff --git a/client/components/list/CollapsibleSection.vue b/client/components/list/CollapsibleSection.vue index 2d199c513..7ef03c49c 100644 --- a/client/components/list/CollapsibleSection.vue +++ b/client/components/list/CollapsibleSection.vue @@ -1,18 +1,11 @@