mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove unused strings
This commit is contained in:
parent
5d6107d1cc
commit
08c6ef7935
4 changed files with 37 additions and 83 deletions
|
@ -11,17 +11,25 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
return false;
|
||||
}
|
||||
|
||||
function getProgressHtml(pct) {
|
||||
function getProgressHtml(pct, options) {
|
||||
|
||||
return '<div class="itemProgressBar"><div class="itemProgressBarForeground" style="width:' + pct + '%;"></div></div>';
|
||||
var containerClass = 'itemProgressBar';
|
||||
|
||||
if (options) {
|
||||
if (options.containerClass) {
|
||||
containerClass += ' ' + options.containerClass;
|
||||
}
|
||||
}
|
||||
|
||||
return '<div class="' + containerClass + '"><div class="itemProgressBarForeground" style="width:' + pct + '%;"></div></div>';
|
||||
}
|
||||
|
||||
function getProgressBarHtml(item) {
|
||||
function getProgressBarHtml(item, options) {
|
||||
|
||||
if (enableProgressIndicator(item)) {
|
||||
if (item.Type == "Recording" && item.CompletionPercentage) {
|
||||
|
||||
return getProgressHtml(item.CompletionPercentage);
|
||||
return getProgressHtml(item.CompletionPercentage, options);
|
||||
}
|
||||
|
||||
var userData = item.UserData;
|
||||
|
@ -30,7 +38,7 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
|
||||
if (pct && pct < 100) {
|
||||
|
||||
return getProgressHtml(pct);
|
||||
return getProgressHtml(pct, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,17 +1,13 @@
|
|||
button.listItem {
|
||||
.listItem {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
cursor: pointer;
|
||||
outline: none !important;
|
||||
color: inherit;
|
||||
width: 100%;
|
||||
vertical-align: middle;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.listItem {
|
||||
margin: 0;
|
||||
display: block;
|
||||
align-items: center;
|
||||
|
@ -33,17 +29,20 @@ button.listItem {
|
|||
padding: .5em !important;
|
||||
}
|
||||
|
||||
.listItem > *:not(.listItemBody) {
|
||||
.listItemImage, .listItemIcon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.listItem > * {
|
||||
.listItemBody, .listItemImage, .listItemIcon {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.listItem .paper-icon-button-light {
|
||||
.listItemButton {
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.listViewDragHandle {
|
||||
|
@ -73,10 +72,6 @@ button.listItem {
|
|||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.listItemBody > div:not(.secondary) {
|
||||
font-size: 115%;
|
||||
}
|
||||
|
||||
.listItemBodyText {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -119,7 +114,7 @@ button.listItem {
|
|||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.listItemImage .itemProgressBar {
|
||||
.listItemProgressBar {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
|
@ -148,14 +143,14 @@ button.listItem {
|
|||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.paperList.clear {
|
||||
box-shadow: none !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.paperList-clear {
|
||||
box-shadow: none !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.paperList .listItem {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.paperList .listItem {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.layout-tv .listItemMediaInfo {
|
||||
margin: .5em 0;
|
||||
|
@ -175,7 +170,7 @@ button.listItem {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
.listItem .indicators {
|
||||
.listItemIndicators {
|
||||
right: .5vh;
|
||||
top: .5vh;
|
||||
position: absolute;
|
||||
|
|
|
@ -203,7 +203,7 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
|
|||
html += '<' + outerTagName + ' class="' + cssClass + '" data-index="' + i + '"' + playlistItemId + ' data-action="' + action + '" data-isfolder="' + item.IsFolder + '" data-id="' + item.Id + '" data-serverid="' + item.ServerId + '" data-type="' + item.Type + '"' + mediaTypeData + collectionTypeData + channelIdData + positionTicksData + collectionIdData + playlistIdData + '>';
|
||||
|
||||
if (!clickEntireItem && options.dragHandle) {
|
||||
html += '<button is="paper-icon-button-light" class="listViewDragHandle autoSize"><i class="md-icon"></i></button>';
|
||||
html += '<button is="paper-icon-button-light" class="listViewDragHandle autoSize listItemButton"><i class="md-icon"></i></button>';
|
||||
}
|
||||
|
||||
var imgUrl = getImageUrl(item, downloadWidth);
|
||||
|
@ -220,10 +220,12 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
|
|||
indicatorsHtml += indicators.getPlayedIndicatorHtml(item);
|
||||
|
||||
if (indicatorsHtml) {
|
||||
html += '<div class="indicators">' + indicatorsHtml + '</div>';
|
||||
html += '<div class="indicators listItemIndicators">' + indicatorsHtml + '</div>';
|
||||
}
|
||||
|
||||
var progressHtml = indicators.getProgressBarHtml(item);
|
||||
var progressHtml = indicators.getProgressBarHtml(item, {
|
||||
containerClass: 'listItemProgressBar'
|
||||
});
|
||||
|
||||
if (progressHtml) {
|
||||
html += progressHtml;
|
||||
|
@ -300,11 +302,12 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
|
|||
}
|
||||
|
||||
if (!clickEntireItem) {
|
||||
html += '<button is="paper-icon-button-light" class="itemAction autoSize" data-action="menu"><i class="md-icon">' + moreIcon + '</i></button>';
|
||||
html += '<button is="paper-icon-button-light" class="listItemButton itemAction autoSize" data-action="menu"><i class="md-icon">' + moreIcon + '</i></button>';
|
||||
html += '<span class="listViewUserDataButtons">';
|
||||
html += userdataButtons.getIconsHtml({
|
||||
item: item,
|
||||
includePlayed: false
|
||||
includePlayed: false,
|
||||
cssClass: 'listItemButton'
|
||||
});
|
||||
html += '</span>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue