mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
5973359f39
commit
4c2a7ed02d
23 changed files with 228 additions and 129 deletions
24
dashboard-ui/bower_components/emby-webcomponents/layoutmanager.js
vendored
Normal file
24
dashboard-ui/bower_components/emby-webcomponents/layoutmanager.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
define(['browser'], function (browser) {
|
||||
|
||||
function layoutManager() {
|
||||
|
||||
var self = this;
|
||||
|
||||
self.setFormFactor = function (formFactor) {
|
||||
|
||||
self.mobile = false;
|
||||
self.tv = false;
|
||||
|
||||
self[formFactor] = true;
|
||||
};
|
||||
|
||||
// Take a guess at initial layout. The consuming app can override
|
||||
if (browser.mobile) {
|
||||
self.setFormFactor('mobile');
|
||||
} else {
|
||||
self.setFormFactor('desktop');
|
||||
}
|
||||
};
|
||||
|
||||
return new layoutManager();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue