mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
peoplecardbuilder
This commit is contained in:
parent
b58af64350
commit
f11d3c54a8
2 changed files with 14 additions and 7 deletions
|
@ -92,6 +92,7 @@
|
||||||
"src/components/actionSheet/actionSheet.js",
|
"src/components/actionSheet/actionSheet.js",
|
||||||
"src/components/autoFocuser.js",
|
"src/components/autoFocuser.js",
|
||||||
"src/components/cardbuilder/cardBuilder.js",
|
"src/components/cardbuilder/cardBuilder.js",
|
||||||
|
"src/components/cardbuilder/peoplecardbuilder.js",
|
||||||
"src/components/images/imageLoader.js",
|
"src/components/images/imageLoader.js",
|
||||||
"src/components/indicators/indicators.js",
|
"src/components/indicators/indicators.js",
|
||||||
"src/components/lazyLoader/lazyLoaderIntersectionObserver.js",
|
"src/components/lazyLoader/lazyLoaderIntersectionObserver.js",
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
define(['cardBuilder'], function (cardBuilder) {
|
/* eslint-disable indent */
|
||||||
'use strict';
|
|
||||||
|
|
||||||
function buildPeopleCards(items, options) {
|
/**
|
||||||
|
* Module for building cards from item data.
|
||||||
|
* @module components/cardBuilder/peoplecardbuilder
|
||||||
|
*/
|
||||||
|
|
||||||
|
import cardBuilder from 'cardBuilder';
|
||||||
|
|
||||||
|
export function buildPeopleCards(items, options) {
|
||||||
|
|
||||||
options = Object.assign(options || {}, {
|
options = Object.assign(options || {}, {
|
||||||
cardLayout: false,
|
cardLayout: false,
|
||||||
|
@ -15,8 +21,8 @@ define(['cardBuilder'], function (cardBuilder) {
|
||||||
cardBuilder.buildCards(items, options);
|
cardBuilder.buildCards(items, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
/* eslint-enable indent */
|
||||||
buildPeopleCards: buildPeopleCards
|
|
||||||
};
|
|
||||||
|
|
||||||
});
|
export default {
|
||||||
|
buildPeopleCards: buildPeopleCards
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue