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

move list page to the usual location

This commit is contained in:
dkanada 2019-03-29 15:09:51 -07:00
parent 3eec1cf2f7
commit 3f4b750288
7 changed files with 24 additions and 28 deletions

View file

@ -210,7 +210,7 @@ define(["connectionManager", "listView", "cardBuilder", "imageLoader", "libraryB
}
function getMoreItemsHref(item, type) {
return "Genre" == item.Type ? "list/list.html?type=" + type + "&genreId=" + item.Id + "&serverId=" + item.ServerId : "MusicGenre" == item.Type ? "list/list.html?type=" + type + "&musicGenreId=" + item.Id + "&serverId=" + item.ServerId : "Studio" == item.Type ? "list/list.html?type=" + type + "&studioId=" + item.Id + "&serverId=" + item.ServerId : "MusicArtist" == item.Type ? "list/list.html?type=" + type + "&artistId=" + item.Id + "&serverId=" + item.ServerId : "Person" == item.Type ? "list/list.html?type=" + type + "&personId=" + item.Id + "&serverId=" + item.ServerId : "list/list.html?type=" + type + "&parentId=" + item.Id + "&serverId=" + item.ServerId
return "Genre" == item.Type ? "list.html?type=" + type + "&genreId=" + item.Id + "&serverId=" + item.ServerId : "MusicGenre" == item.Type ? "list.html?type=" + type + "&musicGenreId=" + item.Id + "&serverId=" + item.ServerId : "Studio" == item.Type ? "list.html?type=" + type + "&studioId=" + item.Id + "&serverId=" + item.ServerId : "MusicArtist" == item.Type ? "list.html?type=" + type + "&artistId=" + item.Id + "&serverId=" + item.ServerId : "Person" == item.Type ? "list.html?type=" + type + "&personId=" + item.Id + "&serverId=" + item.ServerId : "list.html?type=" + type + "&parentId=" + item.Id + "&serverId=" + item.ServerId
}
function addCurrentItemToQuery(query, item) {

View file

@ -45,7 +45,7 @@ define(["layoutManager", "loading", "cardBuilder", "apphost", "imageLoader", "sc
serverId = ApiClient.serverId();
switch (type) {
case "latest":
Dashboard.navigate("list/list.html?type=Recordings&serverId=" + serverId)
Dashboard.navigate("list.html?type=Recordings&serverId=" + serverId)
}
}
return function(view, params, tabContent) {

View file

@ -119,7 +119,7 @@ define([
type: "home"
});
defineRoute({
path: "/list/list.html",
path: "/list.html",
autoFocus: false,
controller: "list",
transition: "fade"

View file

@ -992,11 +992,11 @@ var AppInfo = {};
}
if ("nextup" === item) {
return "list/list.html?type=nextup&serverId=" + options.serverId;
return "list.html?type=nextup&serverId=" + options.serverId;
}
if ("list" === item) {
var url = "list/list.html?serverId=" + options.serverId + "&type=" + options.itemTypes;
var url = "list.html?serverId=" + options.serverId + "&type=" + options.itemTypes;
if (options.isFavorite) {
url += "&IsFavorite=true";
@ -1011,27 +1011,27 @@ var AppInfo = {};
}
if ("movies" === options.section) {
return "list/list.html?type=Programs&IsMovie=true&serverId=" + options.serverId;
return "list.html?type=Programs&IsMovie=true&serverId=" + options.serverId;
}
if ("shows" === options.section) {
return "list/list.html?type=Programs&IsSeries=true&IsMovie=false&IsNews=false&serverId=" + options.serverId;
return "list.html?type=Programs&IsSeries=true&IsMovie=false&IsNews=false&serverId=" + options.serverId;
}
if ("sports" === options.section) {
return "list/list.html?type=Programs&IsSports=true&serverId=" + options.serverId;
return "list.html?type=Programs&IsSports=true&serverId=" + options.serverId;
}
if ("kids" === options.section) {
return "list/list.html?type=Programs&IsKids=true&serverId=" + options.serverId;
return "list.html?type=Programs&IsKids=true&serverId=" + options.serverId;
}
if ("news" === options.section) {
return "list/list.html?type=Programs&IsNews=true&serverId=" + options.serverId;
return "list.html?type=Programs&IsNews=true&serverId=" + options.serverId;
}
if ("onnow" === options.section) {
return "list/list.html?type=Programs&IsAiring=true&serverId=" + options.serverId;
return "list.html?type=Programs&IsAiring=true&serverId=" + options.serverId;
}
if ("dvrschedule" === options.section) {
@ -1050,7 +1050,7 @@ var AppInfo = {};
}
if ("Genre" === item.Type) {
url = "list/list.html?genreId=" + item.Id + "&serverId=" + serverId;
url = "list.html?genreId=" + item.Id + "&serverId=" + serverId;
if ("livetv" === context) {
url += "&type=Programs";
@ -1064,7 +1064,7 @@ var AppInfo = {};
}
if ("MusicGenre" === item.Type) {
url = "list/list.html?musicGenreId=" + item.Id + "&serverId=" + serverId;
url = "list.html?musicGenreId=" + item.Id + "&serverId=" + serverId;
if (options.parentId) {
url += "&parentId=" + options.parentId;
@ -1074,7 +1074,7 @@ var AppInfo = {};
}
if ("Studio" === item.Type) {
url = "list/list.html?studioId=" + item.Id + "&serverId=" + serverId;
url = "list.html?studioId=" + item.Id + "&serverId=" + serverId;
if (options.parentId) {
url += "&parentId=" + options.parentId;
@ -1123,7 +1123,7 @@ var AppInfo = {};
if (item.IsFolder) {
if (id) {
return "list/list.html?parentId=" + id + "&serverId=" + serverId;
return "list.html?parentId=" + id + "&serverId=" + serverId;
}
return "#";