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-05-29 14:42:03 -04:00
parent 4d0cb27c9b
commit 21fbbc894a
16 changed files with 175 additions and 88 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.3.96",
"_release": "1.3.96",
"version": "1.3.97",
"_release": "1.3.97",
"_resolution": {
"type": "version",
"tag": "1.3.96",
"commit": "d3c620a7ba6ca5e56c528d687bc6b5306095fbd5"
"tag": "1.3.97",
"commit": "a16d3b396652af4fe1ae414244ec2df71382b50f"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -29,10 +29,16 @@
}
.inputLabel {
display: block;
display: inline-block;
transition: all .25s ease-out;
}
.inputLabelFocused {
.inputLabel.blank {
transform-origin: left top;
transform: scale(1.4,1.4) translateY(80%);
}
.inputLabelFocused:not(.blank) {
color: #52B54B;
}

View file

@ -2,60 +2,57 @@
var EmbyInputPrototype = Object.create(HTMLInputElement.prototype);
function getLabel(input) {
var elem = input.previousSibling;
while (elem && elem.tagName != 'LABEL') {
elem = elem.previousSibling;
}
return elem;
}
function onFocus(e) {
var label = getLabel(this);
if (label) {
label.classList.add('inputLabelFocused');
label.classList.remove('inputLabelUnfocused');
}
}
function onBlur(e) {
var label = getLabel(this);
if (label) {
label.classList.add('inputLabelUnfocused');
label.classList.remove('inputLabelFocused');
}
}
EmbyInputPrototype.createdCallback = function () {
if (!this.id) {
this.id = 'input' + new Date().getTime();
}
this.removeEventListener('focus', onFocus);
this.removeEventListener('blur', onBlur);
this.addEventListener('focus', onFocus);
this.addEventListener('blur', onBlur);
};
EmbyInputPrototype.attachedCallback = function () {
if (this.getAttribute('data-embyinput') != 'true') {
this.setAttribute('data-embyinput', 'true');
var parentNode = this.parentNode;
var label = this.ownerDocument.createElement('label');
label.innerHTML = this.getAttribute('label') || '';
label.classList.add('inputLabel');
label.classList.add('inputLabelUnfocused');
label.htmlFor = this.id;
parentNode.insertBefore(label, this);
var div = document.createElement('div');
div.classList.add('emby-input-selectionbar');
parentNode.insertBefore(div, this.nextSibling);
if (this.getAttribute('data-embyinput') == 'true') {
return;
}
this.setAttribute('data-embyinput', 'true');
var parentNode = this.parentNode;
var label = this.ownerDocument.createElement('label');
label.innerHTML = this.getAttribute('label') || '';
label.classList.add('inputLabel');
label.classList.add('inputLabelUnfocused');
label.htmlFor = this.id;
parentNode.insertBefore(label, this);
var div = document.createElement('div');
div.classList.add('emby-input-selectionbar');
parentNode.insertBefore(div, this.nextSibling);
function onChange() {
if (this.value) {
label.classList.remove('blank');
} else {
label.classList.add('blank');
}
}
this.addEventListener('focus', function () {
onChange.call(this);
label.classList.add('inputLabelFocused');
label.classList.remove('inputLabelUnfocused');
});
this.addEventListener('blur', function () {
label.classList.add('inputLabelUnfocused');
label.classList.remove('inputLabelFocused');
});
this.addEventListener('change', onChange);
this.addEventListener('keypress', onChange);
this.addEventListener('keyup', onChange);
onChange.call(this);
};
document.registerElement('emby-input', {

View file

@ -23,7 +23,9 @@
"ButtonOk": "Ok",
"ButtonCancel": "Annuller",
"ButtonGotIt": "Forst\u00e5et",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "Optagelse planlagt.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "Ny optagelse",
"Sunday": "S\u00f8ndag",
"Monday": "Mandag",

View file

@ -0,0 +1,72 @@
{
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Teilen",
"ServerUpdateNeeded": "Dieser Emby Server sollte aktualisiert werden. Um die neueste Version zu laden, besuche bitte {0}",
"LiveTvGuideRequiresUnlock": "The Live TV Guide is currently limited to {0} channels. Click the unlock button to learn how to enjoy the full experience.",
"AttributeNew": "Neu",
"AttributePremiere": "Premiere",
"AttributeLive": "Live",
"TrackCount": "{0} tracks",
"ItemCount": "{0} items",
"ValueSeriesYearToPresent": "{0}-Present",
"ReleaseYearValue": "Erscheinungsjahr: {0}",
"OriginalAirDateValue": "Original air date: {0}",
"EndsAtValue": "Ends at {0}",
"OptionSundayShort": "Sun",
"OptionMondayShort": "Mon",
"OptionTuesdayShort": "Tue",
"OptionWednesdayShort": "Wed",
"OptionThursdayShort": "Thu",
"OptionFridayShort": "Fri",
"OptionSaturdayShort": "Sat",
"HeaderSelectDate": "Select Date",
"ButtonOk": "Ok",
"ButtonCancel": "Cancel",
"ButtonGotIt": "Got It",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "Recording scheduled.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "New Recording",
"Sunday": "Sonntag",
"Monday": "Montag",
"Tuesday": "Dienstag",
"Wednesday": "Mittwoch",
"Thursday": "Donnerstag",
"Friday": "Freitag",
"Saturday": "Samstag",
"Days": "Tage",
"RecordSeries": "Record series",
"LabelPrePaddingMinutes": "Pre-padding minutes:",
"LabelPostPaddingMinutes": "Post-padding minutes:",
"RecordOnAllChannels": "Record on all channels",
"RecordAnytime": "Record at any time",
"RecordOnlyNewEpisodes": "Record only new episodes",
"HeaderBecomeProjectSupporter": "Get Emby Premiere",
"HeaderEnjoyDayTrial": "Enjoy a 14 Day Free Trial",
"MessageActiveSubscriptionRequiredSeriesRecordings": "An active Emby Premiere subscription is required in order to create automated series recordings.",
"OptionConvertRecordingsToStreamingFormat": "Automatically convert recordings to a streaming friendly format",
"OptionConvertRecordingsToStreamingFormatHelp": "Recordings will be converted on the fly to MP4 for easy playback on your devices.",
"FeatureRequiresEmbyPremiere": "This feature requires an active Emby Premiere subscription.",
"Record": "Record",
"Save": "Speichern",
"Edit": "Bearbeiten",
"Download": "Download",
"Advanced": "Erweitert",
"Delete": "L\u00f6schen",
"HeaderDeleteItem": "Delete Item",
"ConfirmDeleteItem": "Deleting this item will delete it from both the file system and your media library. Are you sure you wish to continue?",
"Refresh": "Neu laden",
"RefreshQueued": "Refresh queued.",
"AddToCollection": "Add to Collection",
"NewCollection": "New Collection",
"LabelCollection": "Sammlung:",
"Help": "Hilfe",
"NewCollectionHelp": "Collections allow you to create personalized groupings of movies and other library content.",
"SearchForCollectionInternetMetadata": "Search the internet for artwork and metadata",
"LabelName": "Name:",
"NewCollectionNameExample": "Beispiel: Star Wars Collection",
"MessageItemsAdded": "Eintr\u00e4ge hinzugef\u00fcgt",
"OptionNew": "Neu...",
"LabelPlaylist": "Wiedergabeliste",
"AddToPlaylist": "Zur Wiedergabeliste hinzuf\u00fcgen"
}

View file

@ -23,7 +23,9 @@
"ButtonOk": "Ok",
"ButtonCancel": "Cancelar",
"ButtonGotIt": "Hecho",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "Grabaci\u00f3n programada.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "Nueva Grabaci\u00f3n",
"Sunday": "Domingo",
"Monday": "Lunes",
@ -50,21 +52,21 @@
"Edit": "Editar",
"Download": "Descargar",
"Advanced": "Avanzado",
"Delete": "Delete",
"HeaderDeleteItem": "Delete Item",
"ConfirmDeleteItem": "Deleting this item will delete it from both the file system and your media library. Are you sure you wish to continue?",
"Delete": "Eliminar",
"HeaderDeleteItem": "Eliminar \u00cdtem",
"ConfirmDeleteItem": "Al eliminar este \u00edtem se eliminar\u00e1 tanto del sistema de archivos como de su biblioteca de medios. \u00bfEsta seguro de querer continuar?",
"Refresh": "Actualizar",
"RefreshQueued": "Actualizaci\u00f3n programada",
"AddToCollection": "Add to Collection",
"NewCollection": "New Collection",
"LabelCollection": "Collection:",
"Help": "Help",
"NewCollectionHelp": "Collections allow you to create personalized groupings of movies and other library content.",
"SearchForCollectionInternetMetadata": "Search the internet for artwork and metadata",
"LabelName": "Name:",
"NewCollectionNameExample": "Example: Star Wars Collection",
"MessageItemsAdded": "Items added.",
"OptionNew": "New...",
"LabelPlaylist": "Playlist:",
"AddToPlaylist": "Add to Playlist"
"AddToCollection": "Agregar a Colecci\u00f3n.",
"NewCollection": "Nueva Colecci\u00f3n",
"LabelCollection": "Colecci\u00f3n:",
"Help": "Ayuda",
"NewCollectionHelp": "Las colecciones le permiten disfrutar de agrupaciones personalizadas de pel\u00edculas y otros contenidos de la biblioteca.",
"SearchForCollectionInternetMetadata": "Buscar en internet ilustraciones y metadatos",
"LabelName": "Nombre:",
"NewCollectionNameExample": "Ejemplo: Colecci\u00f3n Guerra de las Galaxias",
"MessageItemsAdded": "\u00cdtems agregados.",
"OptionNew": "Nuevo...",
"LabelPlaylist": "Lista de Reproducci\u00f3n:",
"AddToPlaylist": "Agregar a lista de reproducci\u00f3n"
}

View file

@ -23,7 +23,9 @@
"ButtonOk": "\u0416\u0430\u0440\u0430\u0439\u0434\u044b",
"ButtonCancel": "\u0411\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443",
"ButtonGotIt": "\u0422\u04af\u0441\u0456\u043d\u0456\u043a\u0442\u0456",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "\u0416\u0430\u0437\u0443 \u0436\u043e\u0441\u043f\u0430\u0440\u043b\u0430\u0493\u0430\u043d.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "\u0416\u0430\u04a3\u0430 \u0436\u0430\u0437\u0443",
"Sunday": "\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456",
"Monday": "\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456",

View file

@ -23,7 +23,9 @@
"ButtonOk": "Ok",
"ButtonCancel": "Avbryt",
"ButtonGotIt": "Skj\u00f8nner",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "Planlagte opptak.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "Tar opp n\u00e5",
"Sunday": "S\u00f8ndag",
"Monday": "Mandag",
@ -55,16 +57,16 @@
"ConfirmDeleteItem": "Ved \u00e5 slette dette element vil du b\u00e5de slette det fra statement og mediebiblioteket. Er du sikker p\u00e5 at du vil forsette?",
"Refresh": "Oppdater",
"RefreshQueued": "Oppdatering k\u00f8",
"AddToCollection": "Add to Collection",
"NewCollection": "New Collection",
"LabelCollection": "Collection:",
"Help": "Help",
"NewCollectionHelp": "Collections allow you to create personalized groupings of movies and other library content.",
"SearchForCollectionInternetMetadata": "Search the internet for artwork and metadata",
"LabelName": "Name:",
"NewCollectionNameExample": "Example: Star Wars Collection",
"MessageItemsAdded": "Items added.",
"OptionNew": "New...",
"LabelPlaylist": "Playlist:",
"AddToPlaylist": "Add to Playlist"
"AddToCollection": "Legg til i Samling",
"NewCollection": "Ny Samling",
"LabelCollection": "Samling:",
"Help": "Hjelp",
"NewCollectionHelp": "Samling lar deg lage personlige grupper av filmer eller andre biblioteker.",
"SearchForCollectionInternetMetadata": "S\u00f8k p\u00e5 internet etter kunstverk og metadata",
"LabelName": "Navn:",
"NewCollectionNameExample": "Eksempel: Star Wars Samling",
"MessageItemsAdded": "Elementer lagt til.",
"OptionNew": "Ny",
"LabelPlaylist": "Spilleliste:",
"AddToPlaylist": "Legg til i Spilleliste"
}

View file

@ -23,7 +23,9 @@
"ButtonOk": "Ok",
"ButtonCancel": "Annuleren",
"ButtonGotIt": "Begrepen",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "Opname schema",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "Nieuwe opname",
"Sunday": "Zondag",
"Monday": "Maandag",

View file

@ -1,7 +1,7 @@
{
"ValueSpecialEpisodeName": "\u0421\u043f\u0435\u0446\u044d\u043f\u0438\u0437\u043e\u0434 - {0}",
"Share": "\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",
"ServerUpdateNeeded": "\u0414\u0430\u043d\u043d\u044b\u0439 Emby \u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438. \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 {0}",
"ServerUpdateNeeded": "\u0414\u0430\u043d\u043d\u044b\u0439 Emby Server \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c. \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 {0}",
"LiveTvGuideRequiresUnlock": "\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u043b\u0435\u0433\u0438\u0434 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d {0} \u043a\u0430\u043d\u0430\u043b(\u043e\u043c\/\u0430\u043c\u0438). \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u0420\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442.",
"AttributeNew": "\u041d\u043e\u0432\u043e\u0435",
"AttributePremiere": "\u041f\u0440\u0435\u043c\u044c\u0435\u0440\u0430",
@ -11,7 +11,7 @@
"ValueSeriesYearToPresent": "{0} - \u041d.\u0412.",
"ReleaseYearValue": "\u0413\u043e\u0434 \u0432\u044b\u043f\u0443\u0441\u043a\u0430: {0}",
"OriginalAirDateValue": "\u0414\u0430\u0442\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u044d\u0444\u0438\u0440\u0430: {0}",
"EndsAtValue": "\u041a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u0432 {0}",
"EndsAtValue": "\u041a\u043e\u043d\u0435\u0446 \u0432 {0}",
"OptionSundayShort": "\u0432\u0441\u043a",
"OptionMondayShort": "\u043f\u043d\u0434",
"OptionTuesdayShort": "\u0432\u0442\u0440",
@ -23,7 +23,9 @@
"ButtonOk": "\u041e\u043a",
"ButtonCancel": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",
"ButtonGotIt": "\u041f\u043e\u043d\u044f\u0442\u043d\u043e",
"RecordingCancelled": "Recording cancelled.",
"RecordingScheduled": "\u0417\u0430\u043f\u0438\u0441\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430.",
"SeriesRecordingScheduled": "Series recording scheduled.",
"HeaderNewRecording": "\u041d\u043e\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c",
"Sunday": "\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435",
"Monday": "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a",

View file

@ -30,14 +30,14 @@
"web-component-tester": "polymer/web-component-tester#^3.4.0"
},
"ignore": [],
"homepage": "https://github.com/polymerelements/iron-a11y-announcer",
"homepage": "https://github.com/PolymerElements/iron-a11y-announcer",
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.4",
"commit": "5ce3eb8c4282bb53cd72e348858dc6be6b4c50b9"
},
"_source": "git://github.com/polymerelements/iron-a11y-announcer.git",
"_source": "git://github.com/PolymerElements/iron-a11y-announcer.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-a11y-announcer"
"_originalSource": "PolymerElements/iron-a11y-announcer"
}

View file

@ -36,7 +36,7 @@
"tag": "v1.5.2",
"commit": "18e8e12dcd9a4560de480562f65935feed334b86"
},
"_source": "git://github.com/polymerelements/iron-selector.git",
"_source": "git://github.com/PolymerElements/iron-selector.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-selector"
"_originalSource": "PolymerElements/iron-selector"
}

View file

@ -34,6 +34,6 @@
"commit": "11c987b2eb3c73b388a79fc8aaea8ca01624f514"
},
"_source": "git://github.com/Polymer/polymer.git",
"_target": "^1.0.0",
"_target": "^1.1.0",
"_originalSource": "Polymer/polymer"
}

View file

@ -316,7 +316,7 @@
html += '</a>';
html += '</paper-item-body>';
html += '<button type="button" is="paper-icon-button-light" class="btnDeleteDevice" data-id="' + provider.Id + '" title="' + Globalize.translate('ButtonDelete') + '"><iron-icon icon="delete"></iron-icon></button>';
html += '<button type="button" is="paper-icon-button-light" class="btnDelete" data-id="' + provider.Id + '" title="' + Globalize.translate('ButtonDelete') + '"><iron-icon icon="delete"></iron-icon></button>';
html += '</paper-icon-item>';
}

View file

@ -2254,7 +2254,7 @@ var AppInfo = {};
var baseUrl = 'bower_components/emby-webcomponents/strings/';
var languages = ['da', 'en-US', 'es-MX', 'kk', 'nb', 'nl', 'ru'];
var languages = ['da', 'de', 'en-US', 'es-MX', 'kk', 'nb', 'nl', 'ru'];
var translations = languages.map(function (i) {
return {

View file

@ -436,7 +436,7 @@ paper-input label, paper-textarea label {
color: #ccc;
}
.ui-body-b .selectLabelUnfocused {
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabelUnfocused {
color: #ccc;
}