mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update some old string references
This commit is contained in:
parent
4df59cc345
commit
ed812281bc
5 changed files with 20 additions and 40 deletions
|
@ -94,7 +94,7 @@ define(['loading', 'events', 'dialogHelper', 'dom', 'layoutManager', 'scrollHelp
|
||||||
// dialogHelper.close(dlg);
|
// dialogHelper.close(dlg);
|
||||||
//});
|
//});
|
||||||
|
|
||||||
dlg.querySelector('.formDialogHeaderTitle').innerHTML = globalize.translate('HeaderRestartingEmbyServer');
|
dlg.querySelector('.formDialogHeaderTitle').innerHTML = globalize.translate('RestartingServer');
|
||||||
|
|
||||||
dlg.querySelector('.text').innerHTML = globalize.translate('RestartPleaseWaitMessage');
|
dlg.querySelector('.text').innerHTML = globalize.translate('RestartPleaseWaitMessage');
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globalize", "loading", "connectionManager", "playMethodHelper", "cardBuilder", "imageLoader", "components/activitylog", "humanedate", "listViewStyle", "emby-linkbutton", "flexStyles", "emby-button", "emby-itemscontainer"], function (datetime, events, itemHelper, serverNotifications, dom, globalize, loading, connectionManager, playMethodHelper, cardBuilder, imageLoader, ActivityLog) {
|
define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globalize", "loading", "connectionManager", "playMethodHelper", "cardBuilder", "imageLoader", "components/activitylog", "humanedate", "listViewStyle", "emby-linkbutton", "flexStyles", "emby-button", "emby-itemscontainer"], function (datetime, events, itemHelper, serverNotifications, dom, globalize, loading, connectionManager, playMethodHelper, cardBuilder, imageLoader, ActivityLog) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function onConnectionHelpClick(evt) {
|
|
||||||
evt.preventDefault();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function buttonEnabled(elem, enabled) {
|
function buttonEnabled(elem, enabled) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
elem.setAttribute("disabled", "");
|
elem.setAttribute("disabled", "");
|
||||||
|
@ -847,7 +842,6 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
|
||||||
}
|
}
|
||||||
|
|
||||||
var serverId = ApiClient.serverId();
|
var serverId = ApiClient.serverId();
|
||||||
view.querySelector(".btnConnectionHelp").addEventListener("click", onConnectionHelpClick);
|
|
||||||
view.querySelector(".btnEditServerName").addEventListener("click", onEditServerNameClick);
|
view.querySelector(".btnEditServerName").addEventListener("click", onEditServerNameClick);
|
||||||
view.querySelector(".activeDevices").addEventListener("click", onActiveDevicesClick);
|
view.querySelector(".activeDevices").addEventListener("click", onActiveDevicesClick);
|
||||||
view.addEventListener("viewshow", function () {
|
view.addEventListener("viewshow", function () {
|
||||||
|
|
|
@ -2,22 +2,17 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return ApiClient
|
return ApiClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextWizardPage() {
|
function nextWizardPage() {
|
||||||
Dashboard.navigate("wizardlibrary.html")
|
Dashboard.navigate("wizardlibrary.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUpdateUserComplete(result) {
|
function onUpdateUserComplete(result) {
|
||||||
if (loading.hide(), result.UserLinkResult) {
|
console.log(result);
|
||||||
var msgKey = result.UserLinkResult.IsPending ? "MessagePendingEmbyAccountAdded" : "MessageEmbyAccountAdded";
|
loading.hide();
|
||||||
Dashboard.alert({
|
nextWizardPage();
|
||||||
message: globalize.translate(msgKey),
|
|
||||||
title: globalize.translate("HeaderEmbyAccountAdded"),
|
|
||||||
callback: nextWizardPage
|
|
||||||
})
|
|
||||||
} else nextWizardPage()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function submit(form) {
|
function submit(form) {
|
||||||
|
@ -30,9 +25,7 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
|
||||||
Password: form.querySelector("#txtManualPassword").value
|
Password: form.querySelector("#txtManualPassword").value
|
||||||
},
|
},
|
||||||
url: apiClient.getUrl("Startup/User")
|
url: apiClient.getUrl("Startup/User")
|
||||||
}).then(onUpdateUserComplete, function(response) {
|
}).then(onUpdateUserComplete);
|
||||||
console.log(response);
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
|
@ -50,8 +43,8 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
|
||||||
|
|
||||||
function onViewShow() {
|
function onViewShow() {
|
||||||
loading.show();
|
loading.show();
|
||||||
var page = this,
|
var page = this;
|
||||||
apiClient = getApiClient();
|
var apiClient = getApiClient();
|
||||||
apiClient.getJSON(apiClient.getUrl("Startup/User")).then(function(user) {
|
apiClient.getJSON(apiClient.getUrl("Startup/User")).then(function(user) {
|
||||||
page.querySelector("#txtUsername").value = user.Name || "";
|
page.querySelector("#txtUsername").value = user.Name || "";
|
||||||
page.querySelector("#txtManualPassword").value = user.Password || "";
|
page.querySelector("#txtManualPassword").value = user.Password || "";
|
||||||
|
@ -59,10 +52,13 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return function(view, params) {
|
return function(view, params) {
|
||||||
view.querySelector(".wizardUserForm").addEventListener("submit", onSubmit), view.addEventListener("viewshow", function() {
|
view.querySelector(".wizardUserForm").addEventListener("submit", onSubmit);
|
||||||
|
view.addEventListener("viewshow", function() {
|
||||||
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
|
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
|
||||||
}), view.addEventListener("viewhide", function() {
|
});
|
||||||
|
view.addEventListener("viewhide", function() {
|
||||||
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
|
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
|
||||||
}), view.addEventListener("viewshow", onViewShow)
|
});
|
||||||
|
view.addEventListener("viewshow", onViewShow);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,30 +1,20 @@
|
||||||
<div id="dashboardPage" data-role="page" class="page type-interior dashboardHomePage fullWidthContent">
|
<div id="dashboardPage" data-role="page" class="page type-interior dashboardHomePage fullWidthContent">
|
||||||
|
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
||||||
<div class="dashboardSections" style="padding-top:.5em;">
|
<div class="dashboardSections" style="padding-top:.5em;">
|
||||||
|
|
||||||
<div class="dashboardColumn dashboardColumn-2-60 dashboardColumn-3-46">
|
<div class="dashboardColumn dashboardColumn-2-60 dashboardColumn-3-46">
|
||||||
<div class="dashboardSection" style="padding-left: 0;">
|
<div class="dashboardSection" style="padding-left: 0;">
|
||||||
<div class="flex align-items-center">
|
<div class="flex align-items-center">
|
||||||
|
|
||||||
<h3 class="serverNameHeader" style="margin: 0;"></h3>
|
<h3 class="serverNameHeader" style="margin: 0;"></h3>
|
||||||
<button is="paper-icon-button-light" type="button" class="btnEditServerName" style="margin-left: .5em;">
|
<button is="paper-icon-button-light" type="button" class="btnEditServerName" style="margin-left: .5em;">
|
||||||
<i class="md-icon">mode_edit</i>
|
<i class="md-icon">mode_edit</i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="paperList" style="padding: 1em;">
|
<div class="paperList" style="padding: 1em;">
|
||||||
<p id="appVersionNumber">
|
<p id="appVersionNumber"></p>
|
||||||
</p>
|
|
||||||
<p id="ports"></p>
|
<p id="ports"></p>
|
||||||
|
|
||||||
<p class="localUrl"></p>
|
<p class="localUrl"></p>
|
||||||
|
|
||||||
<p class="externalUrl"></p>
|
<p class="externalUrl"></p>
|
||||||
<p class="hide">
|
|
||||||
<a class="btnConnectionHelp" href="#" is="emby-linkbutton">${HowToConnectFromEmbyApps}</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top:1em;">
|
<div style="margin-top:1em;">
|
||||||
|
@ -36,13 +26,11 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div style="margin-top: 2em;" class="runningTasksContainer hide">
|
<div style="margin-top: 2em;" class="runningTasksContainer hide">
|
||||||
<h3>${HeaderRunningTasks}</h3>
|
<h3>${HeaderRunningTasks}</h3>
|
||||||
<div id="divRunningTasks" class="paperList" style="padding: 1em;">
|
<div id="divRunningTasks" class="paperList" style="padding: 1em;">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dashboardSection" style="padding-left: 0;">
|
<div class="dashboardSection" style="padding-left: 0;">
|
||||||
|
|
|
@ -442,6 +442,7 @@
|
||||||
"HeaderResponseProfile": "Response Profile",
|
"HeaderResponseProfile": "Response Profile",
|
||||||
"HeaderResponseProfileHelp": "Response profiles provide a way to customize information sent to the device when playing certain kinds of media.",
|
"HeaderResponseProfileHelp": "Response profiles provide a way to customize information sent to the device when playing certain kinds of media.",
|
||||||
"HeaderRestart": "Restart",
|
"HeaderRestart": "Restart",
|
||||||
|
"HeaderRestartingServer": "Restarting Server",
|
||||||
"HeaderRevisionHistory": "Revision History",
|
"HeaderRevisionHistory": "Revision History",
|
||||||
"HeaderRunningTasks": "Running Tasks",
|
"HeaderRunningTasks": "Running Tasks",
|
||||||
"HeaderScenes": "Scenes",
|
"HeaderScenes": "Scenes",
|
||||||
|
@ -955,6 +956,7 @@
|
||||||
"MessageItemsAdded": "Items added.",
|
"MessageItemsAdded": "Items added.",
|
||||||
"MessageLeaveEmptyToInherit": "Leave empty to inherit settings from a parent item, or the global default value.",
|
"MessageLeaveEmptyToInherit": "Leave empty to inherit settings from a parent item, or the global default value.",
|
||||||
"MessageNoAvailablePlugins": "No available plugins.",
|
"MessageNoAvailablePlugins": "No available plugins.",
|
||||||
|
"MessageNoCollectionsAvailable": "Collections allow you to enjoy personalized groupings of Movies, Series, and albums Albums. Click the + button to start creating collections.",
|
||||||
"MessageNoMovieSuggestionsAvailable": "No movie suggestions are currently available. Start watching and rating your movies, and then come back to view your recommendations.",
|
"MessageNoMovieSuggestionsAvailable": "No movie suggestions are currently available. Start watching and rating your movies, and then come back to view your recommendations.",
|
||||||
"MessageNoPluginsInstalled": "You have no plugins installed.",
|
"MessageNoPluginsInstalled": "You have no plugins installed.",
|
||||||
"MessageNoServersAvailableToConnect": "No servers are available to connect to. If you've been invited to share a server, make sure to accept it below or by clicking the link in the email.",
|
"MessageNoServersAvailableToConnect": "No servers are available to connect to. If you've been invited to share a server, make sure to accept it below or by clicking the link in the email.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue