mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #1310 from Artiume/patch-4
Add Genres to Home Screen
This commit is contained in:
commit
0641f60b78
1 changed files with 8 additions and 12 deletions
|
@ -37,18 +37,19 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
|
||||||
var list = [];
|
var list = [];
|
||||||
|
|
||||||
if (type === 'movies') {
|
if (type === 'movies') {
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Movies'),
|
name: globalize.translate('Movies'),
|
||||||
value: 'movies',
|
value: 'movies',
|
||||||
isDefault: true
|
isDefault: true
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Suggestions'),
|
name: globalize.translate('Suggestions'),
|
||||||
value: 'suggestions'
|
value: 'suggestions'
|
||||||
});
|
});
|
||||||
|
list.push({
|
||||||
|
name: globalize.translate('Genres'),
|
||||||
|
value: 'genres'
|
||||||
|
});
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Favorites'),
|
name: globalize.translate('Favorites'),
|
||||||
value: 'favorites'
|
value: 'favorites'
|
||||||
|
@ -58,7 +59,6 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
|
||||||
value: 'collections'
|
value: 'collections'
|
||||||
});
|
});
|
||||||
} else if (type === 'tvshows') {
|
} else if (type === 'tvshows') {
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Shows'),
|
name: globalize.translate('Shows'),
|
||||||
value: 'shows',
|
value: 'shows',
|
||||||
|
@ -68,49 +68,45 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
|
||||||
name: globalize.translate('Suggestions'),
|
name: globalize.translate('Suggestions'),
|
||||||
value: 'suggestions'
|
value: 'suggestions'
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Latest'),
|
name: globalize.translate('Latest'),
|
||||||
value: 'latest'
|
value: 'latest'
|
||||||
});
|
});
|
||||||
|
list.push({
|
||||||
|
name: globalize.translate('Genres'),
|
||||||
|
value: 'genres'
|
||||||
|
});
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Favorites'),
|
name: globalize.translate('Favorites'),
|
||||||
value: 'favorites'
|
value: 'favorites'
|
||||||
});
|
});
|
||||||
} else if (type === 'music') {
|
} else if (type === 'music') {
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Suggestions'),
|
name: globalize.translate('Suggestions'),
|
||||||
value: 'suggestions',
|
value: 'suggestions',
|
||||||
isDefault: true
|
isDefault: true
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Albums'),
|
name: globalize.translate('Albums'),
|
||||||
value: 'albums'
|
value: 'albums'
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('HeaderAlbumArtists'),
|
name: globalize.translate('HeaderAlbumArtists'),
|
||||||
value: 'albumartists'
|
value: 'albumartists'
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Artists'),
|
name: globalize.translate('Artists'),
|
||||||
value: 'artists'
|
value: 'artists'
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Playlists'),
|
name: globalize.translate('Playlists'),
|
||||||
value: 'playlists'
|
value: 'playlists'
|
||||||
});
|
});
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Genres'),
|
name: globalize.translate('Genres'),
|
||||||
value: 'genres'
|
value: 'genres'
|
||||||
});
|
});
|
||||||
} else if (type === 'livetv') {
|
} else if (type === 'livetv') {
|
||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
name: globalize.translate('Suggestions'),
|
name: globalize.translate('Suggestions'),
|
||||||
value: 'suggestions',
|
value: 'suggestions',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue