mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
commit
9a193ece2b
8 changed files with 43 additions and 35 deletions
|
@ -15,12 +15,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.4.77",
|
"version": "1.4.78",
|
||||||
"_release": "1.4.77",
|
"_release": "1.4.78",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.4.77",
|
"tag": "1.4.78",
|
||||||
"commit": "22897eca3cd924d46ea6b612b8959b6bc8912f7c"
|
"commit": "33c9381ec8872ebd87e46def5a2b86dcbf952f0d"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.0",
|
"_target": "^1.2.0",
|
||||||
|
|
|
@ -998,7 +998,9 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa
|
||||||
dragSourceElement.addEventListener(eventName, dragInitSlidee);
|
dragSourceElement.addEventListener(eventName, dragInitSlidee);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('resize', onResize, true);
|
if (!o.scrollWidth) {
|
||||||
|
window.addEventListener('resize', onResize, true);
|
||||||
|
}
|
||||||
|
|
||||||
if (!o.horizontal) {
|
if (!o.horizontal) {
|
||||||
addEventListenerWithOptions(frameElement, 'scroll', resetScroll, {
|
addEventListenerWithOptions(frameElement, 'scroll', resetScroll, {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"NoItemsFound": "No items found.",
|
"NoItemsFound": "No se encontraron \u00edtems.",
|
||||||
"HeaderSaySomethingLike": "Say Something Like...",
|
"HeaderSaySomethingLike": "Decir Algo Como...",
|
||||||
"HeaderYouSaid": "You Said...",
|
"HeaderYouSaid": "Ha Dicho...",
|
||||||
"MessageIfYouBlockedVoice": "If you denied voice access to the app you'll need to reconfigure before trying again.",
|
"MessageIfYouBlockedVoice": "Si ha negado el acceso por voz a la aplicaci\u00f3n necesitara reconfigurar antes de intentarlo de nuevo.",
|
||||||
"ButtonTryAgain": "Try Again",
|
"ButtonTryAgain": "Intentar de Nuevo",
|
||||||
"MessageWeDidntRecognizeCommand": "We're sorry, we didn't recognize that command.",
|
"MessageWeDidntRecognizeCommand": "Lo sentimos, no reconocimos ese comando.",
|
||||||
"ValueSpecialEpisodeName": "Especial - {0}",
|
"ValueSpecialEpisodeName": "Especial - {0}",
|
||||||
"Share": "Compartir",
|
"Share": "Compartir",
|
||||||
"ServerUpdateNeeded": "Este Servidor Emby necesita ser actualizado. Para descargar la ultima versi\u00f3n, por favor visite {0}",
|
"ServerUpdateNeeded": "Este Servidor Emby necesita ser actualizado. Para descargar la ultima versi\u00f3n, por favor visite {0}",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"NoItemsFound": "No items found.",
|
"NoItemsFound": "Geen items gevonden.",
|
||||||
"HeaderSaySomethingLike": "Say Something Like...",
|
"HeaderSaySomethingLike": "Zeg iets zoals...",
|
||||||
"HeaderYouSaid": "You Said...",
|
"HeaderYouSaid": "U zei...",
|
||||||
"MessageIfYouBlockedVoice": "If you denied voice access to the app you'll need to reconfigure before trying again.",
|
"MessageIfYouBlockedVoice": "Als u spraak toegang uitgeschakeld heeft moet u dit opnieuw configureren voordat u verder gaat.",
|
||||||
"ButtonTryAgain": "Try Again",
|
"ButtonTryAgain": "Probeer opnieuw",
|
||||||
"MessageWeDidntRecognizeCommand": "We're sorry, we didn't recognize that command.",
|
"MessageWeDidntRecognizeCommand": "Sorry, dat commando herkennen we niet.",
|
||||||
"ValueSpecialEpisodeName": "Speciaal - {0}",
|
"ValueSpecialEpisodeName": "Speciaal - {0}",
|
||||||
"Share": "Delen",
|
"Share": "Delen",
|
||||||
"ServerUpdateNeeded": "Deze Emby Server moet worden bijgewerkt. Om de laatste versie te downloaden, gaat u naar {0}",
|
"ServerUpdateNeeded": "Deze Emby Server moet worden bijgewerkt. Om de laatste versie te downloaden, gaat u naar {0}",
|
||||||
|
|
|
@ -4,16 +4,16 @@ define(['appSettings', 'apiClientResolver', 'events'], function (appsettings, ap
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
function getUserId() {
|
function getUserId(apiClient) {
|
||||||
|
|
||||||
if (configuredUserId) {
|
if (configuredUserId) {
|
||||||
return configuredUserId;
|
return configuredUserId;
|
||||||
}
|
}
|
||||||
|
|
||||||
var apiClient = apiClientResolver();
|
var apiClientInstance = apiClient || apiClientResolver();
|
||||||
|
|
||||||
if (apiClient) {
|
if (apiClientInstance) {
|
||||||
return apiClient.getCurrentUserId();
|
return apiClientInstance.getCurrentUserId();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -86,13 +86,15 @@ define(['appSettings', 'apiClientResolver', 'events'], function (appsettings, ap
|
||||||
|
|
||||||
self.serverConfig = function (config) {
|
self.serverConfig = function (config) {
|
||||||
|
|
||||||
|
var apiClient = apiClientResolver();
|
||||||
|
|
||||||
if (config) {
|
if (config) {
|
||||||
|
|
||||||
return apiClientResolver().updateUserConfiguration(getUserId(), config);
|
return apiClient.updateUserConfiguration(getUserId(apiClient), config);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return apiClientResolver().getUser(getUserId()).then(function (user) {
|
return apiClient.getUser(getUserId(apiClient)).then(function (user) {
|
||||||
|
|
||||||
return user.Configuration;
|
return user.Configuration;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.voiceHelpContent {
|
.voiceHelpContent {
|
||||||
max-width: 700px;
|
max-width: 600px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,13 +108,13 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
|
||||||
removeOnClose: true
|
removeOnClose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
dlg.classList.add('ui-body-b');
|
dlg.classList.add('formDialog');
|
||||||
dlg.classList.add('background-theme-b');
|
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
html += '<div class="dialogHeader" style="margin:0 0 1em;">';
|
html += '<div class="dialogHeader" style="margin:0 0 2em;">';
|
||||||
html += '<button is="paper-icon-button-light" class="btnCancel autoSize btnCancelVoiceInput" tabindex="-1"><i class="md-icon"></i></button>';
|
html += '<button is="paper-icon-button-light" class="btnCancelVoiceInput autoSize" tabindex="-1"><i class="md-icon"></i></button>';
|
||||||
html += '<div class="dialogHeaderTitle" id="voiceDialogGroupName">';
|
html += '<div class="dialogHeaderTitle">';
|
||||||
|
//html += title;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
|
||||||
|
|
||||||
html += '<div class="defaultVoiceHelp">';
|
html += '<div class="defaultVoiceHelp">';
|
||||||
|
|
||||||
html += '<h1 style="margin-bottom:1.25em;">' + globalize.translate('sharedcomponents#HeaderSaySomethingLike') + '</h1>';
|
html += '<h1 style="margin-bottom:1.25em;margin-top:0;">' + globalize.translate('sharedcomponents#HeaderSaySomethingLike') + '</h1>';
|
||||||
|
|
||||||
html += '<div class="exampleCommands">';
|
html += '<div class="exampleCommands">';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
@ -135,7 +135,7 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html += '<div class="unrecognizedCommand hide">';
|
html += '<div class="unrecognizedCommand hide">';
|
||||||
html += '<h1>' + globalize.translate('sharedcomponents#HeaderYouSaid') + '</h1>';
|
html += '<h1 style="margin-top:0;">' + globalize.translate('sharedcomponents#HeaderYouSaid') + '</h1>';
|
||||||
html +=
|
html +=
|
||||||
'<p class="exampleCommand voiceInputContainer"><i class="fa fa-quote-left"></i><span class="voiceInputText exampleCommandText"></span><i class="fa fa-quote-right"></i></p>';
|
'<p class="exampleCommand voiceInputContainer"><i class="fa fa-quote-left"></i><span class="voiceInputText exampleCommandText"></span><i class="fa fa-quote-right"></i></p>';
|
||||||
html += '<p>' + globalize.translate('sharedcomponents#MessageWeDidntRecognizeCommand') + '</p>';
|
html += '<p>' + globalize.translate('sharedcomponents#MessageWeDidntRecognizeCommand') + '</p>';
|
||||||
|
@ -150,9 +150,6 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html +=
|
|
||||||
'<button is="emby-button" type="button" class="raised block btnCancelVoiceInput cancel"><i class="md-icon">close</i><span>' + globalize.translate('sharedcomponents#ButtonCancel') + '</span></button>';
|
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -112,6 +112,13 @@
|
||||||
|
|
||||||
html = libraryBrowser.getPosterViewHtml(posterOptions);
|
html = libraryBrowser.getPosterViewHtml(posterOptions);
|
||||||
}
|
}
|
||||||
|
else if (viewStyle == "List") {
|
||||||
|
|
||||||
|
html = libraryBrowser.getListViewHtml({
|
||||||
|
items: result.Items,
|
||||||
|
sortBy: query.SortBy
|
||||||
|
});
|
||||||
|
}
|
||||||
else if (viewStyle == "Thumb") {
|
else if (viewStyle == "Thumb") {
|
||||||
|
|
||||||
posterOptions.preferThumb = true;
|
posterOptions.preferThumb = true;
|
||||||
|
@ -259,7 +266,7 @@
|
||||||
var btnSelectView = view.querySelector('.btnSelectView');
|
var btnSelectView = view.querySelector('.btnSelectView');
|
||||||
btnSelectView.addEventListener('click', function (e) {
|
btnSelectView.addEventListener('click', function (e) {
|
||||||
|
|
||||||
libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'Poster,PosterCard,Thumb'.split(','));
|
libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'List,Poster,PosterCard,Thumb'.split(','));
|
||||||
});
|
});
|
||||||
|
|
||||||
btnSelectView.addEventListener('layoutchange', function (e) {
|
btnSelectView.addEventListener('layoutchange', function (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue