diff --git a/dashboard-ui/components/collectioneditor/collectioneditor.js b/dashboard-ui/components/collectioneditor/collectioneditor.js index e28bc0640a..f23f24b6c5 100644 --- a/dashboard-ui/components/collectioneditor/collectioneditor.js +++ b/dashboard-ui/components/collectioneditor/collectioneditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-input'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-icon-button-light'], function (dialogHelper, $) { function onSubmit() { Dashboard.showLoadingMsg(); @@ -202,7 +202,7 @@ var title = items.length ? Globalize.translate('HeaderAddToCollection') : Globalize.translate('HeaderNewCollection'); html += '
'; - html += ''; + html += ''; html += '
'; html += title; html += '
'; diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index d5e4400343..8b03808ce9 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-button-light'], function (dialogHelper, $) { var systemInfo; function getSystemInfo() { @@ -137,7 +137,7 @@ html += '
'; html += ''; - html += ''; + html += ''; html += '
'; html += '
'; diff --git a/dashboard-ui/components/fileorganizer/fileorganizer.js b/dashboard-ui/components/fileorganizer/fileorganizer.js index d2ca45d812..3b2cb6a551 100644 --- a/dashboard-ui/components/fileorganizer/fileorganizer.js +++ b/dashboard-ui/components/fileorganizer/fileorganizer.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button'], function (dialogHelper) { +define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button', 'paper-icon-button-light'], function (dialogHelper) { var extractedName; var extractedYear; diff --git a/dashboard-ui/components/fileorganizer/fileorganizer.template.html b/dashboard-ui/components/fileorganizer/fileorganizer.template.html index 4939b54ad9..371b474738 100644 --- a/dashboard-ui/components/fileorganizer/fileorganizer.template.html +++ b/dashboard-ui/components/fileorganizer/fileorganizer.template.html @@ -1,5 +1,5 @@ 
- +
@@ -13,7 +13,7 @@
- +
diff --git a/dashboard-ui/components/guestinviter/guestinviter.js b/dashboard-ui/components/guestinviter/guestinviter.js index bdddbfd336..5e2f37d701 100644 --- a/dashboard-ui/components/guestinviter/guestinviter.js +++ b/dashboard-ui/components/guestinviter/guestinviter.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, $) { function renderLibrarySharingList(context, result) { diff --git a/dashboard-ui/components/guestinviter/guestinviter.template.html b/dashboard-ui/components/guestinviter/guestinviter.template.html index 761802f019..70b29085f5 100644 --- a/dashboard-ui/components/guestinviter/guestinviter.template.html +++ b/dashboard-ui/components/guestinviter/guestinviter.template.html @@ -1,5 +1,5 @@ 
- +
${HeaderInviteUser}
diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index 52844dd74e..704b7e3bcc 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-fab'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, $) { var currentItemId; var currentItemType; @@ -107,8 +107,8 @@ if (showControls) { html += '
'; - html += ''; - html += '= totalRecordCount ? 'disabled' : '') + '>'; + html += ''; + html += ''; html += '
'; } @@ -223,7 +223,7 @@ html += '
'; } - html += ''; + html += ''; html += '
'; html += '
'; diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index 38a852f61e..4ec7a1904a 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, $) { var currentItem; var currentDeferred; @@ -81,24 +81,24 @@ if (image.ImageType == "Backdrop" || image.ImageType == "Screenshot") { if (i > 0) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } if (i < length - 1) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } } else { if (imageProviders.length) { - html += ''; + html += ''; } } - html += ''; + html += ''; html += ''; diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.js b/dashboard-ui/components/itemidentifier/itemidentifier.js index 2d7d4729ad..d330bc59c2 100644 --- a/dashboard-ui/components/itemidentifier/itemidentifier.js +++ b/dashboard-ui/components/itemidentifier/itemidentifier.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'loading', 'jQuery', 'paper-fab', 'paper-input', 'paper-checkbox'], function (dialogHelper, loading, $) { +define(['dialogHelper', 'loading', 'jQuery', 'paper-fab', 'paper-input', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, loading, $) { var currentItem; var currentItemType; diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.template.html b/dashboard-ui/components/itemidentifier/itemidentifier.template.html index a7248734d9..8db9f92cb0 100644 --- a/dashboard-ui/components/itemidentifier/itemidentifier.template.html +++ b/dashboard-ui/components/itemidentifier/itemidentifier.template.html @@ -1,5 +1,5 @@ 
- +
diff --git a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js index 422a76d664..0eb86f42a5 100644 --- a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js +++ b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, $) { var currentDeferred; var hasChanges; @@ -124,7 +124,7 @@ html += path; html += ''; - html += ''; + html += ''; html += ''; diff --git a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.template.html b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.template.html index 911551e211..60818bbc69 100644 --- a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.template.html +++ b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.template.html @@ -1,5 +1,5 @@ 
- +
${ButtonAddMediaLibrary}
diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index 9a1a5735b0..d0413f1a94 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, $) { var currentDeferred; var hasChanges; @@ -65,7 +65,7 @@ html += path; html += ''; - html += ''; + html += ''; html += ''; diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 673db258d9..7d3e424907 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'datetime', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (dialogHelper, datetime, $) { +define(['dialogHelper', 'datetime', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, datetime, $) { var currentContext; var metadataEditorInfo; @@ -512,7 +512,7 @@ html += ''; if (formatString) { - html += ''; + html += ''; } html += '
'; @@ -996,7 +996,7 @@ html += ''; - html += ''; + html += ''; html += ''; } @@ -1033,7 +1033,7 @@ html += ''; html += ''; - html += ''; + html += ''; html += ''; } diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.template.html b/dashboard-ui/components/metadataeditor/metadataeditor.template.html index 0ac705787e..dc87f3bb8c 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.template.html +++ b/dashboard-ui/components/metadataeditor/metadataeditor.template.html @@ -1,5 +1,5 @@ 
- +
${ButtonEdit}
@@ -8,7 +8,7 @@ ${ButtonSave} - +
diff --git a/dashboard-ui/components/metadataeditor/personeditor.js b/dashboard-ui/components/metadataeditor/personeditor.js index 99e748e9fb..83875b3772 100644 --- a/dashboard-ui/components/metadataeditor/personeditor.js +++ b/dashboard-ui/components/metadataeditor/personeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-icon-button-light'], function (dialogHelper, $) { return { show: function (person) { diff --git a/dashboard-ui/components/metadataeditor/personeditor.template.html b/dashboard-ui/components/metadataeditor/personeditor.template.html index fa4be5936b..b94328b6f6 100644 --- a/dashboard-ui/components/metadataeditor/personeditor.template.html +++ b/dashboard-ui/components/metadataeditor/personeditor.template.html @@ -1,5 +1,5 @@ 
- +
${ButtonEdit}
diff --git a/dashboard-ui/components/playlisteditor/playlisteditor.js b/dashboard-ui/components/playlisteditor/playlisteditor.js index 2781ffe485..a01b7397d9 100644 --- a/dashboard-ui/components/playlisteditor/playlisteditor.js +++ b/dashboard-ui/components/playlisteditor/playlisteditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-input'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-input', 'paper-icon-button-light'], function (dialogHelper, $) { var lastPlaylistId = ''; @@ -208,7 +208,7 @@ var title = Globalize.translate('HeaderAddToPlaylist'); html += '
'; - html += ''; + html += ''; html += '
'; html += title; html += '
'; diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.js b/dashboard-ui/components/recordingcreator/recordingcreator.js index 9c6e73a62e..e8d28ad9df 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.js +++ b/dashboard-ui/components/recordingcreator/recordingcreator.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button', 'paper-icon-button-light'], function (dialogHelper, $) { var currentProgramId; var currentDialog; diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.template.html b/dashboard-ui/components/recordingcreator/recordingcreator.template.html index f81b74b559..f82d255d75 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.template.html +++ b/dashboard-ui/components/recordingcreator/recordingcreator.template.html @@ -1,5 +1,5 @@ 
- +
${HeaderNewRecording}
diff --git a/dashboard-ui/components/servertestermessage.js b/dashboard-ui/components/servertestermessage.js deleted file mode 100644 index b719b1a7b8..0000000000 --- a/dashboard-ui/components/servertestermessage.js +++ /dev/null @@ -1,159 +0,0 @@ -define(['appSettings', 'paper-button'], function (appSettings) { - - function getReleases() { - - return fetch('https://api.github.com/repos/MediaBrowser/Emby/releases', { - method: 'GET' - - }).then(function (response) { - - return response.json(); - - }, function () { - - return []; - - }).then(function (releases) { - - var result = {}; - for (var i = 0, length = releases.length; i < length; i++) { - - var release = releases[i]; - if (release.prerelease) { - if (!result.beta && release.target_commitish == 'beta') { - result.beta = release; - } - if (!result.dev && release.target_commitish == 'dev') { - result.dev = release; - } - } else { - if (!result.stable && release.target_commitish == 'master') { - result.stable = release; - } - } - - if (result.beta && result.dev && result.stable) { - break; - } - } - - return result; - - }); - } - - function replaceAll(str, find, replace) { - - return str.split(find).join(replace); - } - - function showInternal(releases) { - - require(['dialogHelper'], function (dialogHelper) { - var dlg = dialogHelper.createDialog({ - size: 'small', - removeOnClose: true, - autoFocus: false - }); - - dlg.classList.add('ui-body-b'); - dlg.classList.add('background-theme-b'); - - var html = ''; - - html += '
'; - html += ''; - html += '
'; - html += 'Emby'; - html += '
'; - html += '
'; - - html += '

Welcome Emby Tester!

'; - - html += '

If you\'re seeing this message, it\s because you\'re running a pre-release version of Emby Server. Thank you for being a part of the Emby pre-release testing process.

'; - - html += '

Please take a moment to leave your testing feedback about this version in the Emby Community.

'; - - html += 'Visit Emby Community'; - - if (releases.beta) { - html += '

Beta Release Notes

'; - - html += '
'; - html += replaceAll((releases.beta.body || ''), '*', '
'); - html += '
'; - } - - if (releases.dev) { - html += '

Dev Release Notes

'; - - html += '
'; - html += replaceAll((releases.dev.body || ''), '*', '
'); - html += '
'; - } - - dlg.innerHTML = html; - document.body.appendChild(dlg); - - dialogHelper.open(dlg); - - dlg.querySelector('.btnCancel', dlg).addEventListener('click', function () { - - dialogHelper.close(dlg); - }); - }); - } - - function compareVersions(a, b) { - - // -1 a is smaller - // 1 a is larger - // 0 equal - a = a.split('.'); - b = b.split('.'); - - for (var i = 0, length = Math.max(a.length, b.length) ; i < length; i++) { - var aVal = parseInt(a[i] || '0'); - var bVal = parseInt(b[i] || '0'); - - if (aVal < bVal) { - return -1; - } - - if (aVal > bVal) { - return 1; - } - } - - return 0; - } - - function show(apiClient) { - - var key = 'servertestermessagetime'; - var lastShown = parseInt(appSettings.get(key) || '0'); - - if ((new Date().getTime() - lastShown) < 345600000) { - return; - } - - appSettings.set(key, new Date().getTime()); - - if (!lastShown) { - // don't show the first time - return; - } - - getReleases().then(function (releases) { - apiClient.getPublicSystemInfo().then(function (info) { - if (releases.stable && compareVersions(info.Version, releases.stable.tag_name) == 1) { - showInternal(releases); - } - }); - }); - } - - return { - show: show - }; -}); \ No newline at end of file diff --git a/dashboard-ui/components/subtitleeditor/subtitleeditor.js b/dashboard-ui/components/subtitleeditor/subtitleeditor.js index 44ee4d38c7..3a495edd11 100644 --- a/dashboard-ui/components/subtitleeditor/subtitleeditor.js +++ b/dashboard-ui/components/subtitleeditor/subtitleeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'appStorage', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, appStorage, $) { +define(['dialogHelper', 'appStorage', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, appStorage, $) { var currentItem; @@ -145,7 +145,7 @@ itemHtml += ''; if (s.Path) { - itemHtml += ''; + itemHtml += ''; } itemHtml += ''; @@ -363,7 +363,7 @@ var html = ''; html += '
'; - html += ''; + html += ''; html += '
'; html += item.Name; html += '
'; diff --git a/dashboard-ui/components/subtitleeditor/subtitleeditor.template.html b/dashboard-ui/components/subtitleeditor/subtitleeditor.template.html index 8b1ed3ca38..4adf7009ed 100644 --- a/dashboard-ui/components/subtitleeditor/subtitleeditor.template.html +++ b/dashboard-ui/components/subtitleeditor/subtitleeditor.template.html @@ -12,9 +12,7 @@
- +
diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 2fa52898f3..2536640dd3 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -1115,7 +1115,6 @@ Events.on(ConnectionManager, 'localusersignedin', function (e, user) { setDrawerClass(); - var apiClient = ConnectionManager.getApiClient(user.ServerId); ConnectionManager.user(ConnectionManager.getApiClient(user.ServerId)).then(function (user) { refreshLibraryDrawer(user); @@ -1125,12 +1124,6 @@ userRequiresUpdateAfterHeader = user; } }); - - if (!AppInfo.isNativeApp) { - require(['components/servertestermessage'], function (message) { - message.show(apiClient); - }); - } }); Events.on(ConnectionManager, 'localusersignedout', updateUserInHeader);