mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add sports and kids recording categories
This commit is contained in:
parent
5ec5a0d9fa
commit
1efcc067f0
14 changed files with 122 additions and 103 deletions
|
@ -940,6 +940,13 @@
|
|||
return self.getJSON(url);
|
||||
};
|
||||
|
||||
self.getLiveTvRecordingSeries = function (options) {
|
||||
|
||||
var url = self.getUrl("LiveTv/Recordings/Series", options || {});
|
||||
|
||||
return self.getJSON(url);
|
||||
};
|
||||
|
||||
self.getLiveTvRecordingGroups = function (options) {
|
||||
|
||||
var url = self.getUrl("LiveTv/Recordings/Groups", options || {});
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.4.218",
|
||||
"_release": "1.4.218",
|
||||
"version": "1.4.219",
|
||||
"_release": "1.4.219",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.4.218",
|
||||
"commit": "4374b68415ef644f1b9ef55c91744ad788d829a1"
|
||||
"tag": "1.4.219",
|
||||
"commit": "01b409b14bf53cb71f5af887266d0dec0645f7fe"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.1",
|
||||
|
|
|
@ -970,8 +970,8 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
|||
if (item.MovieCount) {
|
||||
|
||||
childText = item.MovieCount == 1 ?
|
||||
globalize.translate('ValueOneMovie') :
|
||||
globalize.translate('ValueMovieCount', item.MovieCount);
|
||||
globalize.translate('sharedcomponents#ValueOneMovie') :
|
||||
globalize.translate('sharedcomponents#ValueMovieCount', item.MovieCount);
|
||||
|
||||
counts.push(childText);
|
||||
}
|
||||
|
@ -979,24 +979,24 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
|||
if (item.SeriesCount) {
|
||||
|
||||
childText = item.SeriesCount == 1 ?
|
||||
globalize.translate('ValueOneSeries') :
|
||||
globalize.translate('ValueSeriesCount', item.SeriesCount);
|
||||
globalize.translate('sharedcomponents#ValueOneSeries') :
|
||||
globalize.translate('sharedcomponents#ValueSeriesCount', item.SeriesCount);
|
||||
|
||||
counts.push(childText);
|
||||
}
|
||||
if (item.EpisodeCount) {
|
||||
|
||||
childText = item.EpisodeCount == 1 ?
|
||||
globalize.translate('ValueOneEpisode') :
|
||||
globalize.translate('ValueEpisodeCount', item.EpisodeCount);
|
||||
globalize.translate('sharedcomponents#ValueOneEpisode') :
|
||||
globalize.translate('sharedcomponents#ValueEpisodeCount', item.EpisodeCount);
|
||||
|
||||
counts.push(childText);
|
||||
}
|
||||
if (item.GameCount) {
|
||||
|
||||
childText = item.GameCount == 1 ?
|
||||
globalize.translate('ValueOneGame') :
|
||||
globalize.translate('ValueGameCount', item.GameCount);
|
||||
globalize.translate('sharedcomponents#ValueOneGame') :
|
||||
globalize.translate('sharedcomponents#ValueGameCount', item.GameCount);
|
||||
|
||||
counts.push(childText);
|
||||
}
|
||||
|
@ -1037,6 +1037,14 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
|||
|
||||
counts.push(childText);
|
||||
}
|
||||
|
||||
} else if (item.Type == 'Series') {
|
||||
|
||||
childText = item.RecursiveItemCount == 1 ?
|
||||
globalize.translate('sharedcomponents#ValueOneEpisode') :
|
||||
globalize.translate('sharedcomponents#ValueEpisodeCount', item.RecursiveItemCount);
|
||||
|
||||
counts.push(childText);
|
||||
}
|
||||
|
||||
return counts.join(', ');
|
||||
|
|
|
@ -807,7 +807,7 @@
|
|||
// find guide cells by timer id, remove timer icon
|
||||
var cells = options.element.querySelectorAll('.programCell[data-timerid="' + id + '"]');
|
||||
for (var i = 0, length = cells.length; i < length; i++) {
|
||||
var cells = cells[i];
|
||||
var cell = cells[i];
|
||||
var icon = cell.querySelector('.timerIcon');
|
||||
if (icon) {
|
||||
icon.parentNode.removeChild(icon);
|
||||
|
@ -821,7 +821,7 @@
|
|||
// find guide cells by timer id, remove timer icon
|
||||
var cells = options.element.querySelectorAll('.programCell[data-seriestimerid="' + id + '"]');
|
||||
for (var i = 0, length = cells.length; i < length; i++) {
|
||||
var cells = cells[i];
|
||||
var cell = cells[i];
|
||||
var icon = cell.querySelector('.seriesTimerIcon');
|
||||
if (icon) {
|
||||
icon.parentNode.removeChild(icon);
|
||||
|
@ -834,6 +834,13 @@
|
|||
var context = options.element;
|
||||
context.innerHTML = globalize.translateDocument(template, 'sharedcomponents');
|
||||
|
||||
if (layoutManager.desktop) {
|
||||
var visibleGuideScrollers = context.querySelectorAll('.guideScroller');
|
||||
for (var i = 0, length = visibleGuideScrollers.length; i < length; i++) {
|
||||
visibleGuideScrollers[i].classList.add('visibleGuideScroller');
|
||||
}
|
||||
}
|
||||
|
||||
var programGrid = context.querySelector('.programGrid');
|
||||
var timeslotHeaders = context.querySelector('.timeslotHeaders');
|
||||
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
<div class="tvGuideHeader">
|
||||
<div class="channelTimeslotHeader">
|
||||
</div>
|
||||
<div class="timeslotHeaders smoothScrollX visibleGuideScroller" style="scroll-behavior: auto;"></div>
|
||||
<div class="timeslotHeaders smoothScrollX guideScroller" style="scroll-behavior: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div class="smoothScrollY guideVerticalScroller programContainer visibleGuideScroller" style="flex-grow: 1;">
|
||||
<div class="smoothScrollY guideVerticalScroller programContainer guideScroller" style="flex-grow: 1;">
|
||||
<div class="channelList"></div>
|
||||
|
||||
<div class="programGridContainer programGrid smoothScrollX visibleGuideScroller" style="white-space: nowrap;">
|
||||
<div class="programGridContainer programGrid smoothScrollX guideScroller" style="white-space: nowrap;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
||||
"_release": "1.0.10",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.10",
|
||||
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-icon"
|
||||
"_originalSource": "polymerelements/iron-icon"
|
||||
}
|
|
@ -40,6 +40,6 @@
|
|||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/polymer.git",
|
||||
"_target": "^1.1.0",
|
||||
"_target": "^1.2.0",
|
||||
"_originalSource": "Polymer/polymer"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue