From 46626c7165f755f8a68531f1fea280aebfdc1897 Mon Sep 17 00:00:00 2001 From: Dominik Wagner Date: Thu, 6 Sep 2018 08:43:04 +0200 Subject: [PATCH] style(chapters): change link_title name to linkTitle and fix whitespace --- src/components/tabs/chapters/ChapterEntry.vue | 6 +++--- src/effects/chapters.js | 2 +- src/effects/chapters.test.js | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/tabs/chapters/ChapterEntry.vue b/src/components/tabs/chapters/ChapterEntry.vue index 55f8c85b4..60db85107 100644 --- a/src/components/tabs/chapters/ChapterEntry.vue +++ b/src/components/tabs/chapters/ChapterEntry.vue @@ -19,7 +19,7 @@ @click.alt="onChapterClick" aria-hidden="true"> - {{chapter.link_title}} + {{chapter.linkTitle}} @@ -221,8 +221,8 @@ } .info-link { - font-weight: 700; - text-align:right; + font-weight: bolder; + text-align: right; } .link { diff --git a/src/effects/chapters.js b/src/effects/chapters.js index 9000b85ad..8a0cb1a43 100644 --- a/src/effects/chapters.js +++ b/src/effects/chapters.js @@ -33,7 +33,7 @@ const parseChapters = duration => (result, chapter, index, chapters) => { title: get(chapter, 'title'), image: get(chapter, 'image'), href: get(chapter, 'href') ? get(chapter, 'href') : null, - link_title: get(chapter, 'href') ? new URL(get(chapter, 'href')).hostname.replace(/^(www\.)/, '') : null + linkTitle: get(chapter, 'href') ? new URL(get(chapter, 'href')).hostname.replace(/^(www\.)/, '') : null } ] } diff --git a/src/effects/chapters.test.js b/src/effects/chapters.test.js index a6080f00e..ad68de63b 100644 --- a/src/effects/chapters.test.js +++ b/src/effects/chapters.test.js @@ -97,7 +97,7 @@ test.cb( index: 1, image: 'dummy', href: null, - link_title: null + linkTitle: null }, { active: true, @@ -107,7 +107,7 @@ test.cb( index: 2, image: undefined, href: null, - link_title: null + linkTitle: null }, { active: false, @@ -117,7 +117,7 @@ test.cb( index: 3, image: 'dummy', href: 'https://github.com/podlove/podlove-web-player/blob/development/CONTRIBUTING.md#-git-commit-guidelines', - link_title: 'github.com' + linkTitle: 'github.com' } ]) t.end() @@ -165,7 +165,7 @@ test.cb( index: 1, image: 'dummy', href: null, - link_title: null + linkTitle: null }, { active: true, @@ -175,7 +175,7 @@ test.cb( index: 2, image: undefined, href: null, - link_title: null + linkTitle: null }, { active: false, @@ -185,7 +185,7 @@ test.cb( index: 3, image: 'dummy', href: null, - link_title: null + linkTitle: null } ]) t.end() @@ -235,7 +235,7 @@ test.cb( index: 1, image: 'dummy', href: null, - link_title: null + linkTitle: null }, { active: true, @@ -245,7 +245,7 @@ test.cb( index: 2, image: undefined, href: null, - link_title: null + linkTitle: null }, { active: false, @@ -255,7 +255,7 @@ test.cb( index: 3, image: 'dummy', href: null, - link_title: null + linkTitle: null } ]) t.end()