Merge pull request 'futonbeta' (#1) from futonbeta into main
Reviewed-on: http://gitea.genosjr.moe/l4kr/dashboard-ui/pulls/1
BIN
favicon.ico
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 257 KiB |
680
item/item.css
@ -353,4 +353,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
4654
item/item.js
@ -1 +1 @@
|
|||||||
define(["exports","./usersettingsbuilder.js"],function(_exports,_usersettingsbuilder){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;_usersettingsbuilder=new _usersettingsbuilder.default;_exports.default=_usersettingsbuilder});
|
define(["exports","./usersettingsbuilder.js"],function(_exports,_usersettingsbuilder){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;_usersettingsbuilder=new _usersettingsbuilder.default;_exports.default=_usersettingsbuilder});
|
||||||
|
|||||||
@ -1 +1,110 @@
|
|||||||
define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_exports.default=function(){function MediaInfo(){babelHelpers.classCallCheck(this,MediaInfo),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return babelHelpers.createClass(MediaInfo,[{key:"isComplete",value:function(){var audioInfoComplete=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,videoInfoComplete=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&audioInfoComplete&&videoInfoComplete}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(milliseconds){var table;return null==this.keyframesIndex?null:(table=this.keyframesIndex,{index:milliseconds=this._search(table.times,milliseconds),milliseconds:table.times[milliseconds],fileposition:table.filepositions[milliseconds]})}},{key:"_search",value:function(list,value){var mid,idx=0,last=list.length-1,lbound=0,ubound=last;for(value<list[0]&&(idx=0,lbound=ubound+1);lbound<=ubound;){if((mid=lbound+Math.floor((ubound-lbound)/2))===last||value>=list[mid]&&value<list[mid+1]){idx=mid;break}list[mid]<value?lbound=mid+1:ubound=mid-1}return idx}}]),MediaInfo}()});
|
define(["exports"], function (_exports) {
|
||||||
|
Object.defineProperty(_exports, "__esModule", { value: !0 }),
|
||||||
|
(_exports.default = void 0),
|
||||||
|
(_exports.default = (function () {
|
||||||
|
function MediaInfo() {
|
||||||
|
babelHelpers.classCallCheck(this, MediaInfo),
|
||||||
|
(this.mimeType = null),
|
||||||
|
(this.duration = null),
|
||||||
|
(this.hasAudio = null),
|
||||||
|
(this.hasVideo = null),
|
||||||
|
(this.audioCodec = null),
|
||||||
|
(this.videoCodec = null),
|
||||||
|
(this.audioDataRate = null),
|
||||||
|
(this.videoDataRate = null),
|
||||||
|
(this.audioSampleRate = null),
|
||||||
|
(this.audioChannelCount = null),
|
||||||
|
(this.width = null),
|
||||||
|
(this.height = null),
|
||||||
|
(this.fps = null),
|
||||||
|
(this.profile = null),
|
||||||
|
(this.refFrames = null),
|
||||||
|
(this.chromaFormat = null),
|
||||||
|
(this.sarNum = null),
|
||||||
|
(this.sarDen = null),
|
||||||
|
(this.metadata = null),
|
||||||
|
(this.segments = null),
|
||||||
|
(this.segmentCount = null),
|
||||||
|
(this.hasKeyframesIndex = null),
|
||||||
|
(this.keyframesIndex = null);
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
babelHelpers.createClass(MediaInfo, [
|
||||||
|
{
|
||||||
|
key: "isComplete",
|
||||||
|
value: function () {
|
||||||
|
var audioInfoComplete =
|
||||||
|
!1 === this.hasAudio ||
|
||||||
|
(!0 === this.hasAudio &&
|
||||||
|
null != this.audioCodec &&
|
||||||
|
null != this.audioSampleRate &&
|
||||||
|
null != this.audioChannelCount),
|
||||||
|
videoInfoComplete =
|
||||||
|
!1 === this.hasVideo ||
|
||||||
|
(!0 === this.hasVideo &&
|
||||||
|
null != this.videoCodec &&
|
||||||
|
null != this.width &&
|
||||||
|
null != this.height);
|
||||||
|
return (
|
||||||
|
null != this.mimeType &&
|
||||||
|
null != this.duration &&
|
||||||
|
null != this.metadata &&
|
||||||
|
null != this.hasKeyframesIndex &&
|
||||||
|
audioInfoComplete &&
|
||||||
|
videoInfoComplete
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "isSeekable",
|
||||||
|
value: function () {
|
||||||
|
return !0 === this.hasKeyframesIndex;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "getNearestKeyframe",
|
||||||
|
value: function (milliseconds) {
|
||||||
|
var table;
|
||||||
|
return null == this.keyframesIndex
|
||||||
|
? null
|
||||||
|
: ((table = this.keyframesIndex),
|
||||||
|
{
|
||||||
|
index: (milliseconds = this._search(
|
||||||
|
table.times,
|
||||||
|
milliseconds,
|
||||||
|
)),
|
||||||
|
milliseconds: table.times[milliseconds],
|
||||||
|
fileposition: table.filepositions[milliseconds],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "_search",
|
||||||
|
value: function (list, value) {
|
||||||
|
var mid,
|
||||||
|
idx = 0,
|
||||||
|
last = list.length - 1,
|
||||||
|
lbound = 0,
|
||||||
|
ubound = last;
|
||||||
|
for (
|
||||||
|
value < list[0] && ((idx = 0), (lbound = ubound + 1));
|
||||||
|
lbound <= ubound;
|
||||||
|
|
||||||
|
) {
|
||||||
|
if (
|
||||||
|
(mid = lbound + Math.floor((ubound - lbound) / 2)) === last ||
|
||||||
|
(value >= list[mid] && value < list[mid + 1])
|
||||||
|
) {
|
||||||
|
idx = mid;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
list[mid] < value ? (lbound = mid + 1) : (ubound = mid - 1);
|
||||||
|
}
|
||||||
|
return idx;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
MediaInfo
|
||||||
|
);
|
||||||
|
})());
|
||||||
|
});
|
||||||
|
|||||||
@ -1 +1,81 @@
|
|||||||
@media (hover:hover) and (pointer:fine){::-webkit-scrollbar{width:1em;height:1em}.scrollX-mini::-webkit-scrollbar{height:.6em}.scrollY-mini::-webkit-scrollbar{width:.6em}.scrollX-mini{scrollbar-width:thin}.scrollY-mini{scrollbar-width:thin}}::-webkit-scrollbar-thumb{border-radius:.42em}.scrollY::-webkit-scrollbar-thumb{min-height:3em}.scrollX::-webkit-scrollbar-thumb{min-width:3em}.scrollX{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;white-space:nowrap}.smoothScrollX{scroll-behavior:smooth}.hiddenScrollX,.layout-tv .scrollX{-ms-overflow-style:none;scrollbar-width:none}.hiddenScrollX::-webkit-scrollbar,.layout-tv .scrollX::-webkit-scrollbar{height:0!important;display:none}.scrollY{overflow-y:auto;-webkit-overflow-scrolling:touch;overflow-x:hidden}.smoothScrollY{scroll-behavior:smooth}.overflowYScroll{overflow-y:scroll}.hiddenScrollY,.layout-tv .scrollY{-ms-overflow-style:none;scrollbar-width:none}.hiddenScrollY::-webkit-scrollbar,.layout-tv .scrollY::-webkit-scrollbar{width:0!important;display:none}@media (hover:hover){.hiddenScrollY-hover:not(:hover){-ms-overflow-style:none;scrollbar-width:none}.hiddenScrollY-hover:not(:hover)::-webkit-scrollbar{width:0!important;display:none}}.scrollSliderY{width:100%;box-sizing:border-box}
|
@media (hover: hover) and (pointer: fine) {
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
}
|
||||||
|
.scrollX-mini::-webkit-scrollbar {
|
||||||
|
height: 0.6em;
|
||||||
|
}
|
||||||
|
.scrollY-mini::-webkit-scrollbar {
|
||||||
|
width: 0.6em;
|
||||||
|
}
|
||||||
|
.scrollX-mini {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
.scrollY-mini {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 0.42em;
|
||||||
|
}
|
||||||
|
.scrollY::-webkit-scrollbar-thumb {
|
||||||
|
min-height: 3em;
|
||||||
|
}
|
||||||
|
.scrollX::-webkit-scrollbar-thumb {
|
||||||
|
min-width: 3em;
|
||||||
|
}
|
||||||
|
.scrollX {
|
||||||
|
overflow-x: hidden;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overflow-y: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.smoothScrollX {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
.hiddenScrollX,
|
||||||
|
.layout-tv .scrollX {
|
||||||
|
-ms-overflow-style: auto;
|
||||||
|
scrollbar-width: auto;
|
||||||
|
}
|
||||||
|
.hiddenScrollX::-webkit-scrollbar,
|
||||||
|
.layout-tv .scrollX::-webkit-scrollbar {
|
||||||
|
height: 0 !important;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.scrollY {
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
.smoothScrollY {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
.overflowYScroll {
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
.hiddenScrollY,
|
||||||
|
.layout-tv .scrollY {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
.hiddenScrollY::-webkit-scrollbar,
|
||||||
|
.layout-tv .scrollY::-webkit-scrollbar {
|
||||||
|
width: 0 !important;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media (hover: hover) {
|
||||||
|
.hiddenScrollY-hover:not(:hover) {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
.hiddenScrollY-hover:not(:hover)::-webkit-scrollbar {
|
||||||
|
width: 0 !important;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.scrollSliderY {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|||||||
@ -1 +1,207 @@
|
|||||||
.verticalSection{contain:style}.verticalSection-cards{contain:layout style}.emby-scroller{contain:style}.emby-scroller.dataGrid-mainscroller-scrollX{contain:style}.verticalSection-extrabottompadding{margin-bottom:2.6em}.sectionTitleContainer{margin:.85em 0 .75em;position:relative;contain:layout style}.sectionTitleContainer-withseeall{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.sectionTitleContainer-withseeall:not(.padded-right){-webkit-padding-end:.25em;padding-inline-end:.25em}.sectionSeeAllButton{position:absolute!important;right:0;inset-inline-start:initial;inset-inline-end:0%;-webkit-padding-end:inherit!important;padding-inline-end:inherit!important}.sectionTitleContainer-cards{margin-bottom:0}.sectionTitle{margin-bottom:1em;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.sectionTitle-cards{-webkit-margin-start:.25em;margin-inline-start:.25em;-webkit-margin-end:.25em;margin-inline-end:.25em;margin-bottom:0;margin-top:.6em;margin-top:.85rem}@media all and (min-width:50em){.sectionTitle-cards{-webkit-margin-start:.425em;margin-inline-start:.425em;-webkit-margin-end:.425em;margin-inline-end:.425em}}.sectionTitleContainer>.sectionTitle{margin-top:0;margin-bottom:0;display:inline-block;vertical-align:middle;white-space:nowrap}.sectionTitleButton{-webkit-margin-start:1em!important;margin-inline-start:1em!important;-webkit-margin-end:0!important;margin-inline-end:0!important;-webkit-flex-shrink:0;flex-shrink:0}.sectionTitleButton+.sectionTitleButton{-webkit-margin-start:.5em!important;margin-inline-start:.5em!important}.sectionTitleIconButton{-webkit-margin-start:1em!important;margin-inline-start:1em!important;-webkit-margin-end:0!important;margin-inline-end:0!important;-webkit-flex-shrink:0;flex-shrink:0;display:inline-block;vertical-align:middle;padding:.5em!important}.horizontalItemsContainer{display:-webkit-flex;display:flex}.sectionTitleTextButton{margin:0!important;display:-webkit-inline-flex!important;display:inline-flex!important}.sectionTitleTextButton:not(.padded-left){padding:0!important}.sectionTitleTextButton.padded-left{padding-bottom:0!important;-webkit-padding-end:0!important;padding-inline-end:0!important;padding-top:0!important}.sectionTitleTextButton>.sectionTitle{margin-bottom:0;margin-top:0}.padded-left{-webkit-padding-start:3.4%;padding-inline-start:3.4%}.padded-left-page{-webkit-padding-start:calc(3.4% + env(safe-area-inset-left,0));padding-inline-start:calc(3.4% + env(safe-area-inset-left,0))}.padded-right{-webkit-padding-end:3.4%;padding-inline-end:3.4%}.padded-left-withalphapicker{-webkit-padding-start:4%;padding-inline-start:4%}.padded-left-withalphapicker.padded-left-page{-webkit-padding-start:calc(4% + env(safe-area-inset-left,0));padding-inline-start:calc(4% + env(safe-area-inset-left,0))}.padded-right-withalphapicker{-webkit-padding-end:4%;padding-inline-end:4%}.padded-right-withlist.padded-right-withalphapicker{-webkit-padding-end:clamp(4%,2.25em,5%);padding-inline-end:clamp(4%,2.25em,5%)}.padded-left-withlist-tv{-webkit-padding-start:6%;padding-inline-start:6%}.padded-left-withlist-tv.padded-left-page{-webkit-padding-start:calc(6% + env(safe-area-inset-left,0));padding-inline-start:calc(6% + env(safe-area-inset-left,0))}.padded-right-withlist-tv{-webkit-padding-end:6%;padding-inline-end:6%}.padded-top{padding-top:1em}.padded-bottom{padding-bottom:1em}.padded-bottom-page{padding-bottom:9em;padding-bottom:calc(9em + env(safe-area-inset-bottom,0))}.layout-tv .padded-top-focusscale{padding-top:1.5em;margin-top:-1.5em}.layout-tv .padded-bottom-focusscale{padding-bottom:1.5em;margin-bottom:-1.5em}@media all and (min-width:60em){.skinBody-withDockedDrawer .page .padded-left{-webkit-padding-start:2.7rem;padding-inline-start:2.7rem}.skinBody-withDockedDrawer .page .padded-right{-webkit-padding-end:2.7rem;padding-inline-end:2.7rem}}@media all and (min-width:90em){.skinBody-withDockedDrawer .page .padded-left{-webkit-padding-start:3rem;padding-inline-start:3rem}.skinBody-withDockedDrawer .page .padded-right{-webkit-padding-end:3rem;padding-inline-end:3rem}}@media all and (min-width:60em){.skinBody-withDockedDrawer .page .padded-right-withalphapicker{-webkit-padding-end:3rem;padding-inline-end:3rem}.skinBody-withDockedDrawer .page .padded-right-withlist.padded-right-withalphapicker{-webkit-padding-end:3rem;padding-inline-end:3rem}}
|
.verticalSection {
|
||||||
|
contain: style;
|
||||||
|
}
|
||||||
|
.verticalSection-cards {
|
||||||
|
contain: layout style;
|
||||||
|
}
|
||||||
|
.emby-scroller {
|
||||||
|
contain: style;
|
||||||
|
}
|
||||||
|
.emby-scroller.dataGrid-mainscroller-scrollX {
|
||||||
|
contain: style;
|
||||||
|
}
|
||||||
|
.verticalSection-extrabottompadding {
|
||||||
|
margin-bottom: 2.6em;
|
||||||
|
}
|
||||||
|
.sectionTitleContainer {
|
||||||
|
margin: 0.85em 0 0.75em;
|
||||||
|
position: relative;
|
||||||
|
contain: layout style;
|
||||||
|
}
|
||||||
|
.sectionTitleContainer-withseeall {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.sectionTitleContainer-withseeall:not(.padded-right) {
|
||||||
|
-webkit-padding-end: 0.25em;
|
||||||
|
padding-inline-end: 0.25em;
|
||||||
|
}
|
||||||
|
.sectionSeeAllButton {
|
||||||
|
position: absolute !important;
|
||||||
|
right: 0;
|
||||||
|
inset-inline-start: initial;
|
||||||
|
inset-inline-end: 0%;
|
||||||
|
-webkit-padding-end: inherit !important;
|
||||||
|
padding-inline-end: inherit !important;
|
||||||
|
}
|
||||||
|
.sectionTitleContainer-cards {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.sectionTitle {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.sectionTitle-cards {
|
||||||
|
-webkit-margin-start: 0.25em;
|
||||||
|
margin-inline-start: 0.25em;
|
||||||
|
-webkit-margin-end: 0.25em;
|
||||||
|
margin-inline-end: 0.25em;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 0.6em;
|
||||||
|
margin-top: 0.85rem;
|
||||||
|
}
|
||||||
|
@media all and (min-width: 50em) {
|
||||||
|
.sectionTitle-cards {
|
||||||
|
-webkit-margin-start: 0.425em;
|
||||||
|
margin-inline-start: 0.425em;
|
||||||
|
-webkit-margin-end: 0.425em;
|
||||||
|
margin-inline-end: 0.425em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.sectionTitleContainer > .sectionTitle {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.sectionTitleButton {
|
||||||
|
-webkit-margin-start: 1em !important;
|
||||||
|
margin-inline-start: 1em !important;
|
||||||
|
-webkit-margin-end: 0 !important;
|
||||||
|
margin-inline-end: 0 !important;
|
||||||
|
-webkit-flex-shrink: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.sectionTitleButton + .sectionTitleButton {
|
||||||
|
-webkit-margin-start: 0.5em !important;
|
||||||
|
margin-inline-start: 0.5em !important;
|
||||||
|
}
|
||||||
|
.sectionTitleIconButton {
|
||||||
|
-webkit-margin-start: 1em !important;
|
||||||
|
margin-inline-start: 1em !important;
|
||||||
|
-webkit-margin-end: 0 !important;
|
||||||
|
margin-inline-end: 0 !important;
|
||||||
|
-webkit-flex-shrink: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
padding: 0.5em !important;
|
||||||
|
}
|
||||||
|
.horizontalItemsContainer {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.sectionTitleTextButton {
|
||||||
|
margin: 0 !important;
|
||||||
|
display: -webkit-inline-flex !important;
|
||||||
|
display: inline-flex !important;
|
||||||
|
}
|
||||||
|
.sectionTitleTextButton:not(.padded-left) {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
.sectionTitleTextButton.padded-left {
|
||||||
|
padding-bottom: 0 !important;
|
||||||
|
-webkit-padding-end: 0 !important;
|
||||||
|
padding-inline-end: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
.sectionTitleTextButton > .sectionTitle {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.padded-left {
|
||||||
|
-webkit-padding-start: 3.4%;
|
||||||
|
padding-inline-start: 3.4%;
|
||||||
|
}
|
||||||
|
.padded-left-page {
|
||||||
|
-webkit-padding-start: calc(3.4% + env(safe-area-inset-left, 0));
|
||||||
|
padding-inline-start: calc(3.4% + env(safe-area-inset-left, 0));
|
||||||
|
}
|
||||||
|
.padded-right {
|
||||||
|
-webkit-padding-end: 3.4%;
|
||||||
|
padding-inline-end: 3.4%;
|
||||||
|
}
|
||||||
|
.padded-left-withalphapicker {
|
||||||
|
-webkit-padding-start: 4%;
|
||||||
|
padding-inline-start: 4%;
|
||||||
|
}
|
||||||
|
.padded-left-withalphapicker.padded-left-page {
|
||||||
|
-webkit-padding-start: calc(4% + env(safe-area-inset-left, 0));
|
||||||
|
padding-inline-start: calc(4% + env(safe-area-inset-left, 0));
|
||||||
|
}
|
||||||
|
.padded-right-withalphapicker {
|
||||||
|
-webkit-padding-end: 4%;
|
||||||
|
padding-inline-end: 4%;
|
||||||
|
}
|
||||||
|
.padded-right-withlist.padded-right-withalphapicker {
|
||||||
|
-webkit-padding-end: clamp(4%, 2.25em, 5%);
|
||||||
|
padding-inline-end: clamp(4%, 2.25em, 5%);
|
||||||
|
}
|
||||||
|
.padded-left-withlist-tv {
|
||||||
|
-webkit-padding-start: 6%;
|
||||||
|
padding-inline-start: 6%;
|
||||||
|
}
|
||||||
|
.padded-left-withlist-tv.padded-left-page {
|
||||||
|
-webkit-padding-start: calc(6% + env(safe-area-inset-left, 0));
|
||||||
|
padding-inline-start: calc(6% + env(safe-area-inset-left, 0));
|
||||||
|
}
|
||||||
|
.padded-right-withlist-tv {
|
||||||
|
-webkit-padding-end: 6%;
|
||||||
|
padding-inline-end: 6%;
|
||||||
|
}
|
||||||
|
.padded-top {
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
||||||
|
.padded-bottom {
|
||||||
|
padding-bottom: 1em;
|
||||||
|
}
|
||||||
|
.padded-bottom-page {
|
||||||
|
padding-bottom: 9em;
|
||||||
|
padding-bottom: calc(9em + env(safe-area-inset-bottom, 0));
|
||||||
|
}
|
||||||
|
.layout-tv .padded-top-focusscale {
|
||||||
|
padding-top: 1.5em;
|
||||||
|
margin-top: -1.5em;
|
||||||
|
}
|
||||||
|
.layout-tv .padded-bottom-focusscale {
|
||||||
|
padding-bottom: 1.5em;
|
||||||
|
margin-bottom: -1.5em;
|
||||||
|
}
|
||||||
|
@media all and (min-width: 60em) {
|
||||||
|
.skinBody-withDockedDrawer .page .padded-left {
|
||||||
|
-webkit-padding-start: 2.7rem;
|
||||||
|
padding-inline-start: 2.7rem;
|
||||||
|
}
|
||||||
|
.skinBody-withDockedDrawer .page .padded-right {
|
||||||
|
-webkit-padding-end: 2.7rem;
|
||||||
|
padding-inline-end: 2.7rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media all and (min-width: 90em) {
|
||||||
|
.skinBody-withDockedDrawer .page .padded-left {
|
||||||
|
-webkit-padding-start: 5rem;
|
||||||
|
padding-inline-start: 5rem;
|
||||||
|
}
|
||||||
|
.skinBody-withDockedDrawer .page .padded-right {
|
||||||
|
-webkit-padding-end: 5rem;
|
||||||
|
padding-inline-end: 5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media all and (min-width: 60em) {
|
||||||
|
.skinBody-withDockedDrawer .page .padded-right-withalphapicker {
|
||||||
|
-webkit-padding-end: 3rem;
|
||||||
|
padding-inline-end: 3rem;
|
||||||
|
}
|
||||||
|
.skinBody-withDockedDrawer
|
||||||
|
.page
|
||||||
|
.padded-right-withlist.padded-right-withalphapicker {
|
||||||
|
-webkit-padding-end: 3rem;
|
||||||
|
padding-inline-end: 3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1020 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 199 KiB |
102
tv/tv.js
@ -1 +1,101 @@
|
|||||||
define(["exports","./../modules/tabbedview/tabbedview.js","./../modules/common/globalize.js","./../modules/emby-elements/emby-itemscontainer/emby-itemscontainer.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-scroller/emby-scroller.js"],function(_exports,_tabbedview,_globalize,_embyItemscontainer,_embyButton,_embyScroller){function TVView(view,params){_tabbedview.default.call(this,view,params)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(TVView.prototype,_tabbedview.default.prototype),TVView.prototype.getTabs=function(){var subviews=this.item.Subviews||["series","suggestions","upcoming","favorites","genres","studios","episodes","folders"];return[{name:_globalize.default.translate("Shows"),id:"series",enabled:subviews.includes("series")},{name:_globalize.default.translate("Suggestions"),id:"suggestions"},{name:_globalize.default.translate("Upcoming"),id:"upcoming"},{name:_globalize.default.translate("Favorites"),id:"favorites"},{name:_globalize.default.translate("Collections"),id:"collections",enabled:subviews.includes("collections")},{name:_globalize.default.translate("Genres"),id:"genres",enabled:subviews.includes("genres")},{name:_globalize.default.translate("Tags"),id:"tags",enabled:subviews.includes("tags")},{name:_globalize.default.translate("Networks"),id:"studios",enabled:subviews.includes("studios")},{name:_globalize.default.translate("Episodes"),id:"episodes",enabled:subviews.includes("episodes")},{name:_globalize.default.translate("Folders"),id:"folders"}]},TVView.prototype.loadTabController=function(id){switch(id){case"series":return Emby.importModule("./modules/tabbedview/seriestab.js");case"suggestions":return Emby.importModule("./tv/suggestions.js");case"upcoming":return Emby.importModule("./tv/upcoming.js");case"favorites":return Emby.importModule("./tv/favorites.js");case"collections":return Emby.importModule("./modules/tabbedview/collectionstab.js");case"genres":return Emby.importModule("./modules/tabbedview/genrestab.js");case"studios":return Emby.importModule("./tv/studios.js");case"tags":return Emby.importModule("./modules/tabbedview/tagstab.js");case"episodes":return Emby.importModule("./modules/tabbedview/videostab.js");case"folders":return Emby.importModule("./modules/tabbedview/folderstab.js");default:throw new Error("tab not found: "+id)}},TVView.prototype.getTabControllerOptions=function(id){var options=_tabbedview.default.prototype.getTabControllerOptions.apply(this,arguments);return"genres"===id?options.queryIncludeItemTypes=["Series"]:"episodes"===id&&(options.itemType="Episode",options.enableAlphaPicker=!1),options},_exports.default=TVView});
|
define([
|
||||||
|
"exports",
|
||||||
|
"./../modules/tabbedview/tabbedview.js",
|
||||||
|
"./../modules/common/globalize.js",
|
||||||
|
"./../modules/emby-elements/emby-itemscontainer/emby-itemscontainer.js",
|
||||||
|
"./../modules/emby-elements/emby-button/emby-button.js",
|
||||||
|
"./../modules/emby-elements/emby-scroller/emby-scroller.js",
|
||||||
|
], function (
|
||||||
|
_exports,
|
||||||
|
_tabbedview,
|
||||||
|
_globalize,
|
||||||
|
_embyItemscontainer,
|
||||||
|
_embyButton,
|
||||||
|
_embyScroller,
|
||||||
|
) {
|
||||||
|
function TVView(view, params) {
|
||||||
|
_tabbedview.default.call(this, view, params);
|
||||||
|
}
|
||||||
|
Object.defineProperty(_exports, "__esModule", { value: !0 }),
|
||||||
|
(_exports.default = void 0),
|
||||||
|
Object.assign(TVView.prototype, _tabbedview.default.prototype),
|
||||||
|
(TVView.prototype.getTabs = function () {
|
||||||
|
var subviews = this.item.Subviews || [
|
||||||
|
"series",
|
||||||
|
"suggestions",
|
||||||
|
"upcoming",
|
||||||
|
"favorites",
|
||||||
|
"genres",
|
||||||
|
"studios",
|
||||||
|
];
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Shows"),
|
||||||
|
id: "series",
|
||||||
|
enabled: subviews.includes("series"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Suggestions"),
|
||||||
|
id: "suggestions",
|
||||||
|
},
|
||||||
|
{ name: _globalize.default.translate("Upcoming"), id: "upcoming" },
|
||||||
|
{ name: _globalize.default.translate("Favorites"), id: "favorites" },
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Collections"),
|
||||||
|
id: "collections",
|
||||||
|
enabled: subviews.includes("collections"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Genres"),
|
||||||
|
id: "genres",
|
||||||
|
enabled: subviews.includes("genres"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Tags"),
|
||||||
|
id: "tags",
|
||||||
|
enabled: subviews.includes("tags"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: _globalize.default.translate("Networks"),
|
||||||
|
id: "studios",
|
||||||
|
enabled: subviews.includes("studios"),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}),
|
||||||
|
(TVView.prototype.loadTabController = function (id) {
|
||||||
|
switch (id) {
|
||||||
|
case "series":
|
||||||
|
return Emby.importModule("./modules/tabbedview/seriestab.js");
|
||||||
|
case "suggestions":
|
||||||
|
return Emby.importModule("./tv/suggestions.js");
|
||||||
|
case "upcoming":
|
||||||
|
return Emby.importModule("./tv/upcoming.js");
|
||||||
|
case "favorites":
|
||||||
|
return Emby.importModule("./tv/favorites.js");
|
||||||
|
case "collections":
|
||||||
|
return Emby.importModule("./modules/tabbedview/collectionstab.js");
|
||||||
|
case "genres":
|
||||||
|
return Emby.importModule("./modules/tabbedview/genrestab.js");
|
||||||
|
case "studios":
|
||||||
|
return Emby.importModule("./tv/studios.js");
|
||||||
|
case "tags":
|
||||||
|
return Emby.importModule("./modules/tabbedview/tagstab.js");
|
||||||
|
default:
|
||||||
|
throw new Error("tab not found: " + id);
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
(TVView.prototype.getTabControllerOptions = function (id) {
|
||||||
|
var options = _tabbedview.default.prototype.getTabControllerOptions.apply(
|
||||||
|
this,
|
||||||
|
arguments,
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
"genres" === id
|
||||||
|
? (options.queryIncludeItemTypes = ["Series"])
|
||||||
|
: "episodes" === id &&
|
||||||
|
((options.itemType = "Episode"), (options.enableAlphaPicker = !1)),
|
||||||
|
options
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
(_exports.default = TVView);
|
||||||
|
});
|
||||||
|
|||||||
254
users/usernew.js
@ -1 +1,81 @@
|
|||||||
define(["exports","./../list/list.js","./../modules/common/globalize.js","./../modules/approuter.js","./../modules/emby-elements/emby-button/emby-button.js","./../modules/emby-elements/emby-button/paper-icon-button-light.js","./../modules/emby-elements/emby-scroller/emby-scroller.js"],function(_exports,_list,_globalize,_approuter,_embyButton,_paperIconButtonLight,_embyScroller){function showNewUserDialog(e){_approuter.default.show("users/new")}function setUserProperies(user){user.ServerId=ApiClient.serverId()}function UsersPage(view,params){params.serverId=ApiClient.serverId(),_list.default.call(this,view,params),function(view){view.querySelector(".listTotalRecordCount").insertAdjacentHTML("afterend",'<button is="emby-button" type="button" class="raised raised-mini btnAddUser submit" title="'+_globalize.default.translate("HeaderNewUser")+'" aria-label="'+_globalize.default.translate("HeaderNewUser")+'"><i class="md-icon button-icon button-icon-left"></i><span>'+_globalize.default.translate("HeaderNewUser")+"</span></button>")}(view),view.querySelector(".btnAddUser").addEventListener("click",showNewUserDialog),this.itemsContainer.setAttribute("data-monitor","Users")}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["flexStyles"]),Object.assign(UsersPage.prototype,_list.default.prototype),UsersPage.prototype.getItemTypes=function(){return["User"]},UsersPage.prototype.supportsAlphaPicker=function(){return!0},UsersPage.prototype.getItems=function(query){return ApiClient.getUsersQueryResult(query).then(function(result){return result.Items.forEach(setUserProperies),result})},UsersPage.prototype.getPrefixesApiClientMethodName=function(){return"getUserPrefixes"},UsersPage.prototype.getItemCountText=function(numItems){return 1===numItems?_globalize.default.translate("OneUser"):_globalize.default.translate("UserCountValue",numItems)},UsersPage.prototype.getSettingsKey=function(){return"users"},UsersPage.prototype.setTitle=function(){},UsersPage.prototype.getBaseListRendererOptions=function(){var options=_list.default.prototype.getBaseListRendererOptions.apply(this,arguments);return options.draggable=!1,options},_exports.default=UsersPage});
|
define([
|
||||||
|
"exports",
|
||||||
|
"./../list/list.js",
|
||||||
|
"./../modules/common/globalize.js",
|
||||||
|
"./../modules/approuter.js",
|
||||||
|
"./../modules/emby-elements/emby-button/emby-button.js",
|
||||||
|
"./../modules/emby-elements/emby-button/paper-icon-button-light.js",
|
||||||
|
"./../modules/emby-elements/emby-scroller/emby-scroller.js",
|
||||||
|
], function (
|
||||||
|
_exports,
|
||||||
|
_list,
|
||||||
|
_globalize,
|
||||||
|
_approuter,
|
||||||
|
_embyButton,
|
||||||
|
_paperIconButtonLight,
|
||||||
|
_embyScroller,
|
||||||
|
) {
|
||||||
|
function showNewUserDialog(e) {
|
||||||
|
_approuter.default.show("users/new");
|
||||||
|
}
|
||||||
|
function setUserProperies(user) {
|
||||||
|
user.ServerId = ApiClient.serverId();
|
||||||
|
}
|
||||||
|
function UsersPage(view, params) {
|
||||||
|
(params.serverId = ApiClient.serverId()),
|
||||||
|
_list.default.call(this, view, params),
|
||||||
|
(function (view) {
|
||||||
|
view
|
||||||
|
.querySelector(".listTotalRecordCount")
|
||||||
|
.insertAdjacentHTML(
|
||||||
|
"afterend",
|
||||||
|
'<button is="emby-button" type="button" class="raised raised-mini btnAddUser submit" title="' +
|
||||||
|
_globalize.default.translate("HeaderNewUser") +
|
||||||
|
'" aria-label="' +
|
||||||
|
_globalize.default.translate("HeaderNewUser") +
|
||||||
|
'"><i class="md-icon button-icon button-icon-left"></i><span>' +
|
||||||
|
_globalize.default.translate("HeaderNewUser") +
|
||||||
|
"</span></button>",
|
||||||
|
);
|
||||||
|
})(view),
|
||||||
|
view
|
||||||
|
.querySelector(".btnAddUser")
|
||||||
|
.addEventListener("click", showNewUserDialog),
|
||||||
|
this.itemsContainer.setAttribute("data-monitor", "Users");
|
||||||
|
}
|
||||||
|
Object.defineProperty(_exports, "__esModule", { value: !0 }),
|
||||||
|
(_exports.default = void 0),
|
||||||
|
require(["flexStyles"]),
|
||||||
|
Object.assign(UsersPage.prototype, _list.default.prototype),
|
||||||
|
(UsersPage.prototype.getItemTypes = function () {
|
||||||
|
return ["User"];
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.supportsAlphaPicker = function () {
|
||||||
|
return !0;
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.getItems = function (query) {
|
||||||
|
return ApiClient.getUsersQueryResult(query).then(function (result) {
|
||||||
|
return result.Items.forEach(setUserProperies), result;
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.getPrefixesApiClientMethodName = function () {
|
||||||
|
return "getUserPrefixes";
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.getItemCountText = function (numItems) {
|
||||||
|
return 1 === numItems
|
||||||
|
? _globalize.default.translate("OneUser")
|
||||||
|
: _globalize.default.translate("UserCountValue", numItems);
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.getSettingsKey = function () {
|
||||||
|
return "users";
|
||||||
|
}),
|
||||||
|
(UsersPage.prototype.setTitle = function () {}),
|
||||||
|
(UsersPage.prototype.getBaseListRendererOptions = function () {
|
||||||
|
var options = _list.default.prototype.getBaseListRendererOptions.apply(
|
||||||
|
this,
|
||||||
|
arguments,
|
||||||
|
);
|
||||||
|
return (options.draggable = !1), options;
|
||||||
|
}),
|
||||||
|
(_exports.default = UsersPage);
|
||||||
|
});
|
||||||
|
|||||||