1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-10-18 01:06:48 -04:00
parent 138611efb5
commit 11615f4399
72 changed files with 829 additions and 623 deletions

View file

@ -1,4 +1,5 @@
define(['playbackManager'], function (playbackManager) {
'use strict';
function setActiveDevice(name) {
return function () {
@ -12,5 +13,5 @@
return setActiveDevice(result.properties.devicename);
}
return;
}
};
});

View file

@ -1,4 +1,5 @@
define(['inputManager'], function (inputManager) {
'use strict';
function disableDisplayMirror() {
return function () {
@ -11,10 +12,9 @@
switch (result.item.deviceid) {
case 'displaymirroring':
return disableDisplayMirror();
break;
default:
return;
}
}
};
});

View file

@ -1,4 +1,5 @@
define(['inputManager'], function (inputManager) {
'use strict';
function enableDisplayMirror() {
return function () {
@ -11,10 +12,9 @@
switch (result.item.deviceid) {
case 'displaymirroring':
return enableDisplayMirror();
break;
default:
return;
}
}
};
});

View file

@ -1,4 +1,5 @@
define(['connectionManager', 'playbackManager', 'globalize'], function (connectionManager, playbackManager, globalize) {
'use strict';
/// <summary> Play items. </summary>
/// <param name="items"> The items. </param>
@ -54,7 +55,6 @@
return function () {
var query = {
Limit: result.item.limit || 100,
UserId: result.userId,
ExcludeLocationTypes: "Virtual"
@ -98,5 +98,5 @@
playItems(queryResult.Items, result.item.shuffle);
});
};
}
};
});

View file

@ -1,10 +1,11 @@
define(['inputManager'], function (inputManager) {
'use strict';
return function (result) {
return function (result) {
switch (result.item.deviceid) {
default:
return;
}
}
};
});

View file

@ -1,4 +1,5 @@
define(['inputManager', 'connectionManager', 'embyRouter'], function (inputManager, connectionManager, embyRouter) {
'use strict';
function getMusicCommand(result) {
return function () {
@ -46,17 +47,17 @@
return function () {
var act = result.item.menuid;
if (act) {
if (act.indexOf('livetv') != -1) {
if (act.indexOf('livetv') !== -1) {
inputManager.trigger('livetv');
} else if (act.indexOf('guide') != -1) {
} else if (act.indexOf('guide') !== -1) {
inputManager.trigger('guide');
} else if (act.indexOf('channels') != -1) {
} else if (act.indexOf('channels') !== -1) {
inputManager.trigger('livetv');
} else if (act.indexOf('recordings') != -1) {
} else if (act.indexOf('recordings') !== -1) {
inputManager.trigger('recordedtv');
} else if (act.indexOf('scheduled') != -1) {
} else if (act.indexOf('scheduled') !== -1) {
inputManager.trigger('recordedtv');
} else if (act.indexOf('series') != -1) {
} else if (act.indexOf('series') !== -1) {
inputManager.trigger('recordedtv');
} else {
inputManager.trigger('livetv');
@ -83,18 +84,18 @@
return function () {
var act = result.item.menuid;
if (act) {
if (act.indexOf('home') != -1) {
if (act.indexOf('home') !== -1) {
inputManager.trigger('home');
}
else if (act.indexOf('nextup') != -1) {
else if (act.indexOf('nextup') !== -1) {
inputManager.trigger('nextup');
}
else if (act.indexOf('favorites') != -1) {
else if (act.indexOf('favorites') !== -1) {
inputManager.trigger('favorites');
} else if (act.indexOf('upcoming') != -1) {
} else if (act.indexOf('upcoming') !== -1) {
inputManager.trigger('upcomingtv');
}
else if (act.indexOf('nowplaying') != -1) {
else if (act.indexOf('nowplaying') !== -1) {
inputManager.trigger('nowplaying');
}
else {
@ -129,5 +130,5 @@
return;
}
}
};
});

View file

@ -1,4 +1,5 @@
define(['inputManager'], function (inputManager) {
'use strict';
function toggleDisplayMirror() {
return function () {
@ -11,10 +12,9 @@
switch (result.item.deviceid) {
case 'displaymirroring':
return toggleDisplayMirror();
break;
default:
return;
}
}
};
});