mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-21 07:02:05 +00:00
lint
This commit is contained in:
@ -166,23 +166,18 @@ const toast = (content, isPaused) => `\
|
|||||||
${getButtons(isPaused)}
|
${getButtons(isPaused)}
|
||||||
</toast>`;
|
</toast>`;
|
||||||
|
|
||||||
const xml_logo = ({title, artist, isPaused}, imgSrc) => toast(`\
|
const xml_image = ({ title, artist, isPaused }, imgSrc, placement) => toast(`\
|
||||||
<image id="1" src="${imgSrc}" name="Image" placement="appLogoOverride"/>
|
<image id="1" src="${imgSrc}" name="Image" ${placement}/>
|
||||||
<text id="1">${title}</text>
|
<text id="1">${title}</text>
|
||||||
<text id="2">${artist}</text>\
|
<text id="2">${artist}</text>\
|
||||||
`, isPaused);
|
`, isPaused);
|
||||||
|
|
||||||
const xml_hero = ({title, artist, isPaused}, imgSrc) => toast(`\
|
|
||||||
<image id="1" src="${imgSrc}" name="Image" placement="hero"/>
|
|
||||||
<text id="1">${title}</text>
|
|
||||||
<text id="2">${artist}</text>\
|
|
||||||
`, isPaused);
|
|
||||||
|
|
||||||
const xml_banner_bottom = ({title, artist, isPaused}, imgSrc) => toast(`\
|
const xml_logo = (songInfo, imgSrc) => xml_image(songInfo, imgSrc, 'placement="appLogoOverride"');
|
||||||
<image id="1" src="${imgSrc}" name="Image" />
|
|
||||||
<text id="1">${title}</text>
|
const xml_hero = (songInfo, imgSrc) => xml_image(songInfo, imgSrc, 'placement="hero"');
|
||||||
<text id="2">${artist}</text>\
|
|
||||||
`, isPaused);
|
const xml_banner_bottom = (songInfo, imgSrc) => xml_image(songInfo, imgSrc, '');
|
||||||
|
|
||||||
const xml_banner_top_custom = (songInfo, imgSrc) => toast(`\
|
const xml_banner_top_custom = (songInfo, imgSrc) => toast(`\
|
||||||
<image id="1" src="${imgSrc}" name="Image" />
|
<image id="1" src="${imgSrc}" name="Image" />
|
||||||
|
|||||||
Reference in New Issue
Block a user