diff --git a/MovieOrganizer/Html/fileorganizer.js b/MovieOrganizer/Html/fileorganizer.js index 0e60d367..90613819 100644 --- a/MovieOrganizer/Html/fileorganizer.js +++ b/MovieOrganizer/Html/fileorganizer.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button', 'paper-icon-button-light', 'paper-tabs'], function (dialogHelper) { +define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button', 'paper-icon-button-light', 'paper-icon-item', 'html!bower_components/paper-tabs/paper-tabs.html'], function (dialogHelper) { var extractedName; var extractedYear; diff --git a/MovieOrganizer/Html/fileorganizer.template.html b/MovieOrganizer/Html/fileorganizer.template.html index 03ad55d4..82bf2c5b 100644 --- a/MovieOrganizer/Html/fileorganizer.template.html +++ b/MovieOrganizer/Html/fileorganizer.template.html @@ -4,6 +4,27 @@ + +
Series Episode
diff --git a/MovieOrganizer/Html/metadataviewer.js b/MovieOrganizer/Html/metadataviewer.js deleted file mode 100644 index 6d22a745..00000000 --- a/MovieOrganizer/Html/metadataviewer.js +++ /dev/null @@ -1,138 +0,0 @@ -define(['dialogHelper', 'paper-fab', 'paper-input', 'paper-checkbox', 'detailtablecss'], function (paperDialogHelper) { - - var currentItem; - var currentItemType; - var currentDeferred; - var currentSearchResult; - - function showMetadataTable(page, item) { - - Dashboard.showLoadingMsg(); - - var lang = page.querySelector('#selectLanguage').value; - - ApiClient.getJSON(ApiClient.getUrl('Items/' + item.Id + '/MetadataRaw', { language: lang })).then(function (table) { - - var htmlLookup = ''; - - for (var i = 0; i < table.LookupData.length; i++) { - - var row = table.LookupData[i]; - if (row.Key == 'MetadataLanguage') { - - page.querySelector('#selectLanguage').value = row.Value || ''; - } - else { - - htmlLookup += ''; - htmlLookup += ''; - } - } - - htmlLookup += '
' + row.Key + '' + row.Value + '
'; - page.querySelector('#searchCriteria').innerHTML = htmlLookup; - - var html = ''; - html += ''; - } - - html += ''; - html += ''; - - for (var i = 0; i < table.Rows.length; i++) { - - var row = table.Rows[i]; - html += ''; - - for (var n = 0; n < row.Values.length; n++) { - html += ''; - } - - html += ''; - } - - html += '
'; - - for (var i = 0; i < table.Headers.length; i++) { - html += '' + table.Headers[i] + '
' + row.Caption + '' + (row.Values[n] == null ? '' : row.Values[n]) + '
'; - - page.querySelector('.metadataRawTable').innerHTML = html; - - Dashboard.hideLoadingMsg(); - }); - } - - function onDialogClosed() { - - Dashboard.hideLoadingMsg(); - currentDeferred.resolveWith(null, [hasChanges]); - } - - function showEditor(itemId) { - - var xhr = new XMLHttpRequest(); - xhr.open('GET', 'components/metadataviewer/metadataviewer.template.html', true); - - xhr.onload = function (e) { - - var template = this.response; - - ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) { - - var dlg = paperDialogHelper.createDialog({ - size: 'large' - }); - - dlg.classList.add('ui-body-b'); - dlg.classList.add('background-theme-b'); - dlg.classList.add('popupEditor'); - - var html = ''; - - html += '

'; - html += ''; - html += '
' + item.Name + '
'; - html += '

'; - - html += '
'; - html += Globalize.translateDocument(template); - html += '
'; - - dlg.innerHTML = html; - document.body.appendChild(dlg); - - paperDialogHelper.open(dlg); - - dlg.querySelector('.btnCloseDialog').addEventListener('click', function (e) { - - paperDialogHelper.close(dlg); - }); - - dlg.querySelector('#selectLanguage').addEventListener('change', function (e) { - - showMetadataTable(dlg, item); - }); - - dlg.addEventListener('iron-overlay-closed', function () { - - Dashboard.hideLoadingMsg(); - }); - - dlg.classList.add('metadataViewer'); - - showMetadataTable(dlg, item); - }); - } - - xhr.send(); - } - - return { - show: function (itemId) { - return new Promise(function (resolve, reject) { - - showEditor(itemId); - }); - } - }; -}); \ No newline at end of file diff --git a/MovieOrganizer/Html/metadataviewer.template.html b/MovieOrganizer/Html/metadataviewer.template.html deleted file mode 100644 index 80052c08..00000000 --- a/MovieOrganizer/Html/metadataviewer.template.html +++ /dev/null @@ -1,211 +0,0 @@ -
-

Lookup Criteria:

-
-
-
- - - - - -
- - - -
-
-
- -

-

Results:

-
-

-

-

diff --git a/MovieOrganizer/MovieOrganizer.csproj b/MovieOrganizer/MovieOrganizer.csproj index 3b64e899..38fd1732 100644 --- a/MovieOrganizer/MovieOrganizer.csproj +++ b/MovieOrganizer/MovieOrganizer.csproj @@ -92,10 +92,6 @@ - - - - xcopy "$(TargetPath)" "$(SolutionDir)\..\MediaBrowser.Dev\ProgramData-Server\Plugins\" /y