Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
player
Commits
208f453d
Commit
208f453d
authored
May 03, 2022
by
David Trattnig
Browse files
Provide various ways of displaying title and sub
parent
2256361b
Pipeline
#1876
passed with stages
in 7 minutes and 38 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Programme.svelte
View file @
208f453d
...
...
@@ -18,6 +18,7 @@
export let view = 'card' // 'card' or 'paper'
/* Nested Component Props */
export let renderhtml = false // Attention: to avoid XSS attack vectors use with trusted API sources only
export let displayCatTitle = undefined
export let displayCatIcons = false
export let displayLangIcons = false
export let urlEpisodeDetail = undefined
...
...
@@ -112,6 +113,7 @@
{urlEpisodeDetail}
{urlShowDetail}
{urlShowList}
{displayCatTitle}
{displayCatIcons}
{displayLangIcons}
{renderhtml} />
...
...
src/cards/ShowCardBig.svelte
View file @
208f453d
...
...
@@ -20,6 +20,7 @@
export let labelEpisodes = undefined
export let labelShowMore = 'Show all'
export let hasMoreEpisodes = undefined
export let displayCatTitle = true
export let displayCatIcons = false
export let displayLangIcons = false
...
...
@@ -126,6 +127,7 @@
category={show.category}
languages={show.language}
{urlShowList}
{displayCatTitle}
{displayCatIcons}
{displayLangIcons} />
</div>
...
...
src/cards/TimeslotCard.svelte
View file @
208f453d
...
...
@@ -16,6 +16,7 @@
export let urlEpisodeDetail = undefined
export let urlShowDetail = undefined
export let urlShowList = undefined
export let displayCatTitle = false
export let displayCatIcons = false
export let displayLangIcons = false
export let renderhtml = false // Attention: to avoid XSS attack vectors use with trusted API sources only
...
...
src/elements/ShowChips.svelte
View file @
208f453d
...
...
@@ -5,6 +5,7 @@
export let category = undefined
export let languages = undefined
export let urlShowList = undefined
export let displayCatTitle = undefined
export let displayCatIcons = false
export let displayLangIcons = false
...
...
@@ -15,13 +16,19 @@
if (category) {
let catChip = []
catChip.id = category.id
catChip.name = category.name.trim()
if (displayCatTitle)
catChip.name = category.name.trim()
else
catChip.name = ""
if (category.end)
catChip.active = new Date(category.end) > new Date()
else
catChip.active = true
if (category.subtitle && category.subtitle.trim())
catChip.name += " | " + category.subtitle
if (category.subtitle && category.subtitle.trim()) {
if (catChip.name.length > 0)
catChip.name += " | "
catChip.name += category.subtitle
}
catChip.type = 'category'
chips.push(catChip)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment