mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update home screen
This commit is contained in:
parent
2973f706b3
commit
35990c3ee1
8 changed files with 32 additions and 35 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -11,11 +11,11 @@
|
|||
|
||||
<div class="dashboardSections">
|
||||
|
||||
<div class="dashboardSection dashboardSection-2-60 dashboardSection-3-73">
|
||||
<div class="dashboardSectionContent">
|
||||
<div class="dashboardColumn dashboardColumn-2-60 dashboardColumn-3-46">
|
||||
<div class="dashboardSection" style="padding-left: 0;">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<h2 class="serverNameHeader" style="margin:0;"></h2>
|
||||
<button is="paper-icon-button-light" type="button" class="btnEditServerName" style="margin-left: .5em;color:#666;">
|
||||
<h2 class="serverNameHeader" style="margin: 0;"></h2>
|
||||
<button is="paper-icon-button-light" type="button" class="btnEditServerName" style="margin-left: .5em; color: #666;">
|
||||
<i class="md-icon">mode_edit</i>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -60,18 +60,18 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p class="supporterIconContainer flex align-items-center" style="padding-left: .25em;margin: 1em 0 .5em;">
|
||||
<p class="supporterIconContainer flex align-items-center" style="padding-left: .25em; margin: 1em 0 .5em;">
|
||||
</p>
|
||||
|
||||
<div style="margin-top:1em;" class="runningTasksContainer hide">
|
||||
<div style="margin-top: 1em;" class="runningTasksContainer hide">
|
||||
<h2>${HeaderRunningTasks}</h2>
|
||||
<div id="divRunningTasks" class="paperList" style="padding:1em;">
|
||||
<div id="divRunningTasks" class="paperList" style="padding: 1em;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="margin-top:1em;" class="hide" id="collapsiblePendingInstallations">
|
||||
<div style="margin-top: 1em;" class="hide" id="collapsiblePendingInstallations">
|
||||
<h2>${HeaderPendingInstallations}</h2>
|
||||
<div class="paperList" style="padding:1em;">
|
||||
<div class="paperList" style="padding: 1em;">
|
||||
<p>${LabelComponentsUpdated}</p>
|
||||
<div id="pendingInstallations">
|
||||
</div>
|
||||
|
@ -79,37 +79,32 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="dashboardSection dashboardSection-2-40 dashboardSection-3-27">
|
||||
<div class="dashboardSectionContent">
|
||||
<h2>${HeaderLatestNews}</h2>
|
||||
<div class="paperList latestNewsItems">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboardSection dashboardSection-2-60 dashboardSection-3-46">
|
||||
<div class="dashboardSectionContent">
|
||||
<div class="dashboardSection" style="padding-left: 0;">
|
||||
<h2>${HeaderActiveDevices}</h2>
|
||||
<div class="activeDevices itemsContainer vertical-wrap">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboardSection dashboardSection-2-40 dashboardSection-3-27">
|
||||
<div class="dashboardSectionContent">
|
||||
<div class="dashboardColumn dashboardColumn-2-40 dashboardColumn-3-27">
|
||||
<div class="dashboardSection">
|
||||
<h2>${HeaderRecentActivity}</h2>
|
||||
<div class="paperList activityItems">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dashboardColumn dashboardColumn-3-27">
|
||||
<div class="dashboardSection">
|
||||
<h2>${HeaderLatestNews}</h2>
|
||||
<div class="paperList latestNewsItems">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboardSection dashboardSection-3-27">
|
||||
<div class="dashboardSectionContent">
|
||||
<div class="dashboardSection">
|
||||
<h2>${HeaderPaths}</h2>
|
||||
<div class="paperList" style="padding:1em;">
|
||||
<div class="listItem">
|
||||
|
@ -141,9 +136,11 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="dashboardFooter">
|
||||
|
|
|
@ -1 +1 @@
|
|||
define(["datetime","loading","listViewStyle"],function(datetime,loading){"use strict";return function(view,params){view.querySelector("#chkDebugLog").addEventListener("change",function(){ApiClient.getServerConfiguration().then(function(config){config.EnableDebugLevelLogging=view.querySelector("#chkDebugLog").checked,ApiClient.updateServerConfiguration(config)})}),view.addEventListener("viewbeforeshow",function(){loading.show();var apiClient=ApiClient;apiClient.getJSON(apiClient.getUrl("System/Logs")).then(function(logs){var html="";html+='<div class="paperList">',html+=logs.map(function(log){var logUrl=apiClient.getUrl("System/Logs/Log",{name:log.Name});logUrl+="&api_key="+apiClient.accessToken();var logHtml="";logHtml+='<div class="listItem">',logHtml+='<a item-icon class="clearLink" href="'+logUrl+'" target="_blank">',logHtml+='<i class="md-icon listItemIcon">schedule</i>',logHtml+="</a>",logHtml+='<div class="listItemBody two-line">',logHtml+='<a class="clearLink" href="'+logUrl+'" target="_blank">',logHtml+="<h3 class='listItemBodyText'>"+log.Name+"</h3>";var date=datetime.parseISO8601Date(log.DateModified,!0),text=datetime.toLocaleDateString(date);return text+=" "+datetime.getDisplayTime(date),logHtml+='<div class="listItemBodyText secondary">'+text+"</div>",logHtml+="</a>",logHtml+="</div>",logHtml+="</div>"}).join(""),html+="</div>",view.querySelector(".serverLogs").innerHTML=html,loading.hide()}),apiClient.getServerConfiguration().then(function(config){view.querySelector("#chkDebugLog").checked=config.EnableDebugLevelLogging})})}});
|
||||
define(["datetime","loading","apphost","listViewStyle","emby-linkbutton"],function(datetime,loading,appHost){"use strict";return function(view,params){view.querySelector("#chkDebugLog").addEventListener("change",function(){ApiClient.getServerConfiguration().then(function(config){config.EnableDebugLevelLogging=view.querySelector("#chkDebugLog").checked,ApiClient.updateServerConfiguration(config)})}),view.addEventListener("viewbeforeshow",function(){loading.show();var apiClient=ApiClient;apiClient.getJSON(apiClient.getUrl("System/Logs")).then(function(logs){var html="";html+='<div class="paperList">',html+=logs.map(function(log){var logUrl=apiClient.getUrl("System/Logs/Log",{name:log.Name});logUrl+="&api_key="+apiClient.accessToken();var logHtml="";logHtml+='<a is="emby-linkbutton" href="'+logUrl+'" target="_blank" class="listItem" style="color:inherit;">',logHtml+='<i class="md-icon listItemIcon">schedule</i>',logHtml+='<div class="listItemBody two-line">',logHtml+="<h3 class='listItemBodyText'>"+log.Name+"</h3>";var date=datetime.parseISO8601Date(log.DateModified,!0),text=datetime.toLocaleDateString(date);return text+=" "+datetime.getDisplayTime(date),logHtml+='<div class="listItemBodyText secondary">'+text+"</div>",logHtml+="</div>",logHtml+="</a>"}).join(""),html+="</div>",view.querySelector(".serverLogs").innerHTML=html,loading.hide()}),apiClient.getServerConfiguration().then(function(config){view.querySelector("#chkDebugLog").checked=config.EnableDebugLevelLogging})})}});
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue