1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
export default {
relations: (relation, flashAct) => ({
link:
relation('linkThing', 'localized.flashActGallery', flashAct),
titleColorStyle:
(flashAct.titleColor && flashAct.titleColor !== flashAct.color
? relation('generateColorStyleAttribute', flashAct.titleColor)
: null),
}),
data: (flashAct) => ({
name: flashAct.name,
title: flashAct.title,
}),
generate: (data, relations, {html, language}) =>
(data.title
? relations.link.slot('content',
language.$('misc.flashActWithTitle', {
act: data.name,
title:
html.tag('span', {class: 'flash-act-title'},
relations.titleColorStyle,
language.sanitize(data.title)),
}))
: relations.link),
};
|