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-07-28 14:39:41 -04:00
parent 3b16c9d466
commit a6c9cc632b
48 changed files with 232 additions and 60 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.67",
"_release": "1.1.67",
"version": "1.1.68",
"_release": "1.1.68",
"_resolution": {
"type": "version",
"tag": "1.1.67",
"commit": "8ec36ba7ff5e96e562a87df7cdba7dfaa6087521"
"tag": "1.1.68",
"commit": "e70a2bf8680faf2b1f7ae59bf8fd97d7f969fc28"
},
"_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "^1.1.51",

View file

@ -1249,9 +1249,9 @@
return;
}
require(['connectservice', 'cryptojs-md5'], function (connectservice) {
require(['cryptojs-md5'], function () {
var md5 = getConnectPasswordHash(connectservice, password);
var md5 = getConnectPasswordHash(password);
ajax({
type: "POST",
@ -1284,7 +1284,12 @@
});
};
self.signupForConnect = function (email, username, password, passwordConfirm) {
self.signupForConnect = function (options) {
var email = options.email;
var username = options.username;
var password = options.password;
var passwordConfirm = options.passwordConfirm;
return new Promise(function (resolve, reject) {
@ -1309,9 +1314,9 @@
return;
}
require(['connectservice', 'cryptojs-md5'], function (connectservice) {
require(['cryptojs-md5'], function () {
var md5 = getConnectPasswordHash(connectservice, password);
var md5 = getConnectPasswordHash(password);
ajax({
type: "POST",
@ -1348,9 +1353,25 @@
});
};
function getConnectPasswordHash(connectService, password) {
function cleanConnectPassword(password) {
password = connectService.cleanPassword(password);
password = password || '';
password = replaceAll(password, "&", "&");
password = replaceAll(password, "/", "\");
password = replaceAll(password, "!", "!");
password = replaceAll(password, "$", "$");
password = replaceAll(password, "\"", """);
password = replaceAll(password, "<", "&lt;");
password = replaceAll(password, ">", "&gt;");
password = replaceAll(password, "'", "&#39;");
return password;
}
function getConnectPasswordHash(password) {
password = cleanConnectPassword(password);
return CryptoJS.MD5(password).toString();
}

View file

@ -1,26 +0,0 @@
define([], function () {
function replaceAll(str, find, replace) {
return str.split(find).join(replace);
}
return {
cleanPassword: function (password) {
password = password || '';
password = replaceAll(password, "&", "&amp;");
password = replaceAll(password, "/", "&#092;");
password = replaceAll(password, "!", "&#33;");
password = replaceAll(password, "$", "&#036;");
password = replaceAll(password, "\"", "&quot;");
password = replaceAll(password, "<", "&lt;");
password = replaceAll(password, ">", "&gt;");
password = replaceAll(password, "'", "&#39;");
return password;
}
};
});

View file

@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.125",
"_release": "1.4.125",
"version": "1.4.126",
"_release": "1.4.126",
"_resolution": {
"type": "version",
"tag": "1.4.125",
"commit": "e99688474bb825e89e3c569a9a9785fc6b951a60"
"tag": "1.4.126",
"commit": "1b55a0a69665c97be4bb2d60e03940615f73c7fd"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -144,22 +144,22 @@ define(['serverNotifications', 'playbackManager', 'events', 'globalize', 'requir
};
if (status == 'completed') {
notification.title = globalize.translate('LabelPackageInstallCompleted').replace('{0}', installation.Name + ' ' + installation.Version);
notification.title = globalize.translate('sharedcomponents#PackageInstallCompleted').replace('{0}', installation.Name + ' ' + installation.Version);
notification.vibrate = true;
}
else if (status == 'cancelled') {
notification.title = globalize.translate('LabelPackageInstallCancelled').replace('{0}', installation.Name + ' ' + installation.Version);
notification.title = globalize.translate('sharedcomponents#PackageInstallCancelled').replace('{0}', installation.Name + ' ' + installation.Version);
}
else if (status == 'failed') {
notification.title = globalize.translate('LabelPackageInstallFailed').replace('{0}', installation.Name + ' ' + installation.Version);
notification.title = globalize.translate('sharedcomponents#PackageInstallFailed').replace('{0}', installation.Name + ' ' + installation.Version);
notification.vibrate = true;
}
else if (status == 'progress') {
notification.title = globalize.translate('LabelInstallingPackage').replace('{0}', installation.Name + ' ' + installation.Version);
notification.title = globalize.translate('sharedcomponents#InstallingPackage').replace('{0}', installation.Name + ' ' + installation.Version);
//notification.actions =
//[
// { action: 'cancel', title: globalize.translate('ButtonCancel')/*, icon: 'https://example/like.png'*/ }
// { action: 'cancel', title: globalize.translate('sharedcomponents#ButtonCancel')/*, icon: 'https://example/like.png'*/ }
//];
}

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u0414\u043e\u0431\u0430\u0432\u0438",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Afegeix",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "P\u0159idat",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Del",
"Add": "Tilf\u00f8j",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Teilen",
"Add": "Hinzuf\u00fcgen",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u03a0\u03c1\u03cc\u03c3\u03b8\u03b5\u03c3\u03b5",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -223,6 +223,10 @@
"GuestStar": "Guest star",
"Producer": "Producer",
"Writer": "Writer",
"InstallingPackage": "Installing {0}",
"PackageInstallCompleted": "{0} installation completed.",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"MessageItemSaved": "Item saved."
}

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Compartir",
"Add": "Agregar",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Compartir",
"Add": "A\u00f1adir",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Sp\u00e9cial - {0}",
"Share": "Partager",
"Add": "Ajouter",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u05d4\u05d5\u05e1\u05e3",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Dodaj",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Hozz\u00e1ad",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Aggiungi",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "\u0410\u0440\u043d\u0430\u0439\u044b - {0}",
"Share": "\u041e\u0440\u0442\u0430\u049b\u0442\u0430\u0441\u0443",
"Add": "\u04ae\u0441\u0442\u0435\u0443",
@ -129,7 +133,7 @@
"HeaderConfirmRecordingCancellation": "\u0416\u0430\u0437\u0431\u0430 \u0431\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443\u0434\u044b \u0440\u0430\u0441\u0442\u0430\u0443",
"MessageConfirmRecordingCancellation": "\u0428\u044b\u043d\u044b\u043c\u0435\u043d \u043e\u0441\u044b \u0436\u0430\u0437\u0431\u0430\u043d\u044b \u0431\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443 \u049b\u0430\u0436\u0435\u0442 \u043f\u0435?",
"Error": "\u049a\u0430\u0442\u0435",
"VoiceInput": "Voice Input",
"VoiceInput": "\u0414\u0430\u0443\u044b\u0441\u0442\u044b\u049b \u0435\u043d\u0433\u0456\u0437\u0443",
"LabelContentType": "\u041c\u0430\u0437\u043c\u04b1\u043d \u0442\u04af\u0440\u0456:",
"LabelPath": "\u0416\u043e\u043b\u044b:",
"LabelTitle": "\u0410\u0442\u0430\u0443\u044b:",
@ -209,14 +213,14 @@
"Images": "\u0421\u0443\u0440\u0435\u0442\u0442\u0435\u0440",
"Keywords": "\u041a\u0456\u043b\u0442 \u0441\u04e9\u0437\u0434\u0435\u0440",
"Runtime": "\u04b0\u0437\u0430\u049b\u0442\u044b\u0493\u044b",
"ProductionLocations": "Production locations",
"BirthLocation": "Birth location",
"ProductionLocations": "\u04e8\u043d\u0434\u0456\u0440\u0443 \u043e\u0440\u044b\u043d\u0434\u0430\u0440\u044b",
"BirthLocation": "\u0422\u0443\u0493\u0430\u043d \u043e\u0440\u043d\u044b",
"ParentalRating": "\u0416\u0430\u0441\u0442\u0430\u0441 \u0441\u0430\u043d\u0430\u0442\u044b",
"Name": "\u0410\u0442\u044b",
"Overview": "\u0416\u0430\u043b\u043f\u044b \u0448\u043e\u043b\u0443",
"LabelType": "\u0422\u04af\u0440\u0456:",
"LabelPersonRole": "\u0420\u04e9\u043b\u0456:",
"LabelPersonRoleHelp": "Example: Ice cream truck driver",
"LabelPersonRoleHelp": "\u041c\u044b\u0441\u0430\u043b: \u0411\u0430\u043b\u043c\u04b1\u0437\u0434\u0430\u049b \u0444\u0443\u0440\u0433\u043e\u043d\u044b\u043d\u044b\u04a3 \u0436\u04af\u0440\u0433\u0456\u0437\u0443\u0448\u0456\u0441\u0456",
"Actor": "\u0410\u043a\u0442\u0435\u0440",
"Composer": "\u041a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440",
"Director": "\u0420\u0435\u0436\u0438\u0441\u0441\u0435\u0440",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\ucd94\uac00",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Spesial - {0}",
"Share": "Del",
"Add": "Legg til",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installatie voltooid.",
"InstallingPackage": "Installeren van {0}",
"PackageInstallFailed": "{0} installatie is mislukt.",
"PackageInstallCancelled": "{0} installatie geannuleerd.",
"ValueSpecialEpisodeName": "Speciaal - {0}",
"Share": "Delen",
"Add": "Toevoegen",
@ -121,7 +125,7 @@
"Trailer": "Trailer",
"MarkPlayed": "Markeren als Afgespeeld",
"MarkUnplayed": "Markeren als Niet Afgespeeld",
"GroupVersions": "Groepeer Versies",
"GroupVersions": "Versies groeperen",
"PleaseSelectTwoItems": "Selecteer ten minste twee items.",
"TheSelectedItemsWillBeGrouped": "De geselecteerde videos worden in 1 item gegroepeerd. Emby apps zullen automatisch de juiste versie selecteren op basis van het apparaat en netwerk prestaties. Weet u zeker dat u door wilt gaan?",
"TryMultiSelect": "Probeer multi-select",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Dodaj",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "Instala\u00e7\u00e3o completa de {0}",
"InstallingPackage": "Instalando {0}",
"PackageInstallFailed": "Falha na instala\u00e7\u00e3o de {0}.",
"PackageInstallCancelled": "Instala\u00e7\u00e3o cancelada de {0}.",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Compartilhar",
"Add": "Adicionar",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Partilhar",
"Add": "Adicionar",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "\u0421\u043f\u0435\u0446\u044d\u043f\u0438\u0437\u043e\u0434 - {0}",
"Share": "\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",
"Add": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c",
@ -129,7 +133,7 @@
"HeaderConfirmRecordingCancellation": "\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u043c\u0435\u043d\u044b \u0437\u0430\u043f\u0438\u0441\u0438",
"MessageConfirmRecordingCancellation": "\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c?",
"Error": "\u041e\u0448\u0438\u0431\u043a\u0430",
"VoiceInput": "Voice Input",
"VoiceInput": "\u0413\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0432\u0432\u043e\u0434",
"LabelContentType": "\u0422\u0438\u043f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:",
"LabelPath": "\u041f\u0443\u0442\u044c:",
"LabelTitle": "\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435:",
@ -209,14 +213,14 @@
"Images": "\u0420\u0438\u0441\u0443\u043d\u043a\u0438",
"Keywords": "\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430",
"Runtime": "\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c",
"ProductionLocations": "Production locations",
"BirthLocation": "Birth location",
"ProductionLocations": "\u041c\u0435\u0441\u0442\u0430 \u0441\u044a\u0451\u043c\u043e\u043a",
"BirthLocation": "\u041c\u0435\u0441\u0442\u043e \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f",
"ParentalRating": "\u0412\u043e\u0437\u0440. \u043a\u0430\u0442.",
"Name": "\u0418\u043c\u044f",
"Overview": "\u041e\u0431\u0437\u043e\u0440",
"LabelType": "\u0422\u0438\u043f:",
"LabelPersonRole": "\u0420\u043e\u043b\u044c:",
"LabelPersonRoleHelp": "Example: Ice cream truck driver",
"LabelPersonRoleHelp": "\u041f\u0440\u0438\u043c\u0435\u0440: \u0412\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u0444\u0443\u0440\u0433\u043e\u043d\u0430 \u043c\u043e\u0440\u043e\u0436\u0435\u043d\u0449\u0438\u043a\u0430",
"Actor": "\u0410\u043a\u0442\u0451\u0440",
"Composer": "\u041a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440",
"Director": "\u0420\u0435\u0436\u0438\u0441\u0441\u0451\u0440",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Specialavsnitt - {0}",
"Share": "Dela",
"Add": "L\u00e4gg till",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Ekle",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Th\u00eam",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u6dfb\u52a0",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u65b0\u589e",

View file

@ -1,4 +1,8 @@
{
"PackageInstallCompleted": "{0} installation completed.",
"InstallingPackage": "Installing {0}",
"PackageInstallFailed": "{0} installation failed.",
"PackageInstallCancelled": "{0} installation cancelled.",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "\u5206\u4eab",
"Add": "\u6dfb\u52a0",

View file

@ -96,7 +96,7 @@
<input is="emby-input" type="password" id="txtSignupPasswordConfirm" required="required" label="${LabelPasswordConfirm}" autocomplete="off" />
</div>
<div class="g-recaptcha" id="recaptchaWidget" data-sitekey="6Le2LAgTAAAAAK06Wvttt_yUnbISTy6q3Azqp9po" data-theme="dark"></div>
<div class="recaptchaContainer"></div>
<br />
<button is="emby-button" type="submit" class="raised accent block">

View file

@ -139,10 +139,10 @@
}
function supportInAppSignup() {
return AppInfo.isNativeApp;
return AppInfo.isNativeApp || window.location.href.toLowerCase().indexOf('https') == 0;
}
var greWidgetId;
function initSignup(page) {
if (!supportInAppSignup()) {
@ -153,8 +153,16 @@
return;
}
require(['https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit'], function () {
require(['https://www.google.com/recaptcha/api.js?render=explicit'], function () {
setTimeout(function () {
var recaptchaContainer = page.querySelector('.recaptchaContainer');
greWidgetId = grecaptcha.render(recaptchaContainer, {
'sitekey': '6Le2LAgTAAAAAK06Wvttt_yUnbISTy6q3Azqp9po',
'theme': 'dark'
});
}, 100);
});
}
@ -214,7 +222,17 @@
var page = view;
ConnectionManager.signupForConnect(page.querySelector('#txtSignupEmail', page).value, page.querySelector('#txtSignupUsername', page).value, page.querySelector('#txtSignupPassword', page).value, page.querySelector('#txtSignupPasswordConfirm', page).value).then(function () {
var greResponse = greWidgetId ? grecaptcha.getResponse(greWidgetId) : null;
ConnectionManager.signupForConnect({
email: page.querySelector('#txtSignupEmail', page).value,
username: page.querySelector('#txtSignupUsername', page).value,
password: page.querySelector('#txtSignupPassword', page).value,
passwordConfirm: page.querySelector('#txtSignupPasswordConfirm', page).value,
grecaptcha: greResponse
}).then(function () {
Dashboard.alert({
message: Globalize.translate('MessageThankYouForConnectSignUp'),

View file

@ -1347,7 +1347,6 @@ var AppInfo = {};
browser: embyWebComponentsBowerPath + "/browser",
inputManager: embyWebComponentsBowerPath + "/inputmanager",
qualityoptions: embyWebComponentsBowerPath + "/qualityoptions",
connectservice: apiClientBowerPath + '/connectservice',
hammer: bowerPath + "/hammerjs/hammer.min",
pageJs: embyWebComponentsBowerPath + '/page.js/page',
focusManager: embyWebComponentsBowerPath + "/focusmanager",