diff --git a/src/bower_components/emby-webcomponents/alert/alert.js b/src/bower_components/emby-webcomponents/alert/alert.js deleted file mode 100644 index ce434bac8a..0000000000 --- a/src/bower_components/emby-webcomponents/alert/alert.js +++ /dev/null @@ -1,34 +0,0 @@ -define(['dialog', 'globalize'], function (dialog, globalize) { - 'use strict'; - - return function (text, title) { - - var options; - if (typeof text === 'string') { - options = { - title: title, - text: text - }; - } else { - options = text; - } - - var items = []; - - items.push({ - name: globalize.translate('ButtonGotIt'), - id: 'ok', - type: 'submit' - }); - - options.buttons = items; - - return dialog(options).then(function (result) { - if (result === 'ok') { - return Promise.resolve(); - } - - return Promise.reject(); - }); - }; -}); \ No newline at end of file diff --git a/src/bower_components/emby-webcomponents/alert/nativealert.js b/src/bower_components/emby-webcomponents/alert/nativealert.js deleted file mode 100644 index f565e802c7..0000000000 --- a/src/bower_components/emby-webcomponents/alert/nativealert.js +++ /dev/null @@ -1,23 +0,0 @@ -define([], function () { - 'use strict'; - - function replaceAll(str, find, replace) { - - return str.split(find).join(replace); - } - - return function (options) { - - if (typeof options === 'string') { - options = { - text: options - }; - } - - var text = replaceAll(options.text || '', '
', '\n'); - - alert(text); - - return Promise.resolve(); - }; -}); \ No newline at end of file diff --git a/src/bower_components/emby-webcomponents/actionsheet/actionsheet.css b/src/components/actionsheet/actionsheet.css similarity index 100% rename from src/bower_components/emby-webcomponents/actionsheet/actionsheet.css rename to src/components/actionsheet/actionsheet.css diff --git a/src/bower_components/emby-webcomponents/actionsheet/actionsheet.js b/src/components/actionsheet/actionsheet.js similarity index 100% rename from src/bower_components/emby-webcomponents/actionsheet/actionsheet.js rename to src/components/actionsheet/actionsheet.js diff --git a/src/components/actionsheet/package.json b/src/components/actionsheet/package.json new file mode 100644 index 0000000000..622f1e075d --- /dev/null +++ b/src/components/actionsheet/package.json @@ -0,0 +1,3 @@ +{ + "main": "actionsheet.js" +} \ No newline at end of file diff --git a/src/components/alert.js b/src/components/alert.js new file mode 100644 index 0000000000..0e8c16501f --- /dev/null +++ b/src/components/alert.js @@ -0,0 +1,40 @@ +define(['browser', 'dialog', 'globalize'], function (browser, dialog, globalize) { + 'use strict'; + + return function (text, title) { + + var options; + if (typeof text === 'string') { + options = { + title: title, + text: text + }; + } else { + options = text; + } + + if (browser.tv && window.alert) { + alert(replaceAll(options.text || '', '
', '\n')); + } else { + var items = []; + + items.push({ + name: globalize.translate('ButtonGotIt'), + id: 'ok', + type: 'submit' + }); + + options.buttons = items; + + return dialog(options).then(function (result) { + if (result === 'ok') { + return Promise.resolve(); + } + + return Promise.reject(); + }); + } + + return Promise.resolve(); + }; +}); \ No newline at end of file diff --git a/src/bower_components/emby-webcomponents/alphanumericshortcuts/alphanumericshortcuts.js b/src/components/alphanumericshortcuts/alphanumericshortcuts.js similarity index 100% rename from src/bower_components/emby-webcomponents/alphanumericshortcuts/alphanumericshortcuts.js rename to src/components/alphanumericshortcuts/alphanumericshortcuts.js diff --git a/src/bower_components/emby-webcomponents/alphapicker/alphapicker.js b/src/components/alphapicker/alphapicker.js similarity index 100% rename from src/bower_components/emby-webcomponents/alphapicker/alphapicker.js rename to src/components/alphapicker/alphapicker.js diff --git a/src/bower_components/emby-webcomponents/alphapicker/style.css b/src/components/alphapicker/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/alphapicker/style.css rename to src/components/alphapicker/style.css diff --git a/src/bower_components/emby-webcomponents/input/api.js b/src/components/apiInput/apiInput.js similarity index 92% rename from src/bower_components/emby-webcomponents/input/api.js rename to src/components/apiInput/apiInput.js index c3be61e2e2..c12f933553 100644 --- a/src/bower_components/emby-webcomponents/input/api.js +++ b/src/components/apiInput/apiInput.js @@ -234,6 +234,19 @@ define(['connectionManager', 'playbackManager', 'events', 'inputManager', 'focus events.on(apiClient, "message", onMessageReceived); } + function enableNativeGamepadKeyMapping() { + if (window.navigator && "string" == typeof window.navigator.gamepadInputEmulation) { + window.navigator.gamepadInputEmulation = "keyboard"; + return true; + } + + return false; + } + + function isGamepadSupported() { + return "ongamepadconnected" in window || navigator.getGamepads || navigator.webkitGetGamepads; + } + connectionManager.getApiClients().forEach(bindEvents); events.on(connectionManager, 'apiclientcreated', function (e, newApiClient) { @@ -241,5 +254,11 @@ define(['connectionManager', 'playbackManager', 'events', 'inputManager', 'focus bindEvents(newApiClient); }); + if (!enableNativeGamepadKeyMapping() && isGamepadSupported()) { + require(["components/apiInput/gamepadtokey"]); + } + + require(["components/apiInput/mouseManager"]); + return serverNotifications; }); diff --git a/src/bower_components/emby-webcomponents/input/gamepadtokey.js b/src/components/apiInput/gamepadtokey.js similarity index 100% rename from src/bower_components/emby-webcomponents/input/gamepadtokey.js rename to src/components/apiInput/gamepadtokey.js diff --git a/src/bower_components/emby-webcomponents/input/mouse.js b/src/components/apiInput/mouseManager.js similarity index 100% rename from src/bower_components/emby-webcomponents/input/mouse.js rename to src/components/apiInput/mouseManager.js diff --git a/src/components/apiInput/package.json b/src/components/apiInput/package.json new file mode 100644 index 0000000000..6c542951b2 --- /dev/null +++ b/src/components/apiInput/package.json @@ -0,0 +1,3 @@ +{ + "main": "apiInput.js" +} \ No newline at end of file diff --git a/src/bower_components/emby-webcomponents/appfooter/appfooter.css b/src/components/appfooter/appfooter.css similarity index 100% rename from src/bower_components/emby-webcomponents/appfooter/appfooter.css rename to src/components/appfooter/appfooter.css diff --git a/src/bower_components/emby-webcomponents/appfooter/appfooter.js b/src/components/appfooter/appfooter.js similarity index 100% rename from src/bower_components/emby-webcomponents/appfooter/appfooter.js rename to src/components/appfooter/appfooter.js diff --git a/src/bower_components/emby-webcomponents/appsettings.js b/src/components/appsettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/appsettings.js rename to src/components/appsettings.js diff --git a/src/bower_components/emby-webcomponents/backdrop/backdrop.js b/src/components/backdrop/backdrop.js similarity index 100% rename from src/bower_components/emby-webcomponents/backdrop/backdrop.js rename to src/components/backdrop/backdrop.js diff --git a/src/bower_components/emby-webcomponents/backdrop/style.css b/src/components/backdrop/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/backdrop/style.css rename to src/components/backdrop/style.css diff --git a/src/bower_components/emby-webcomponents/browser.js b/src/components/browser.js similarity index 100% rename from src/bower_components/emby-webcomponents/browser.js rename to src/components/browser.js diff --git a/src/bower_components/emby-webcomponents/browserdeviceprofile.js b/src/components/browserdeviceprofile.js similarity index 100% rename from src/bower_components/emby-webcomponents/browserdeviceprofile.js rename to src/components/browserdeviceprofile.js diff --git a/src/bower_components/emby-webcomponents/cardbuilder/card.css b/src/components/cardbuilder/card.css similarity index 100% rename from src/bower_components/emby-webcomponents/cardbuilder/card.css rename to src/components/cardbuilder/card.css diff --git a/src/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js b/src/components/cardbuilder/cardbuilder.js similarity index 100% rename from src/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js rename to src/components/cardbuilder/cardbuilder.js diff --git a/src/bower_components/emby-webcomponents/cardbuilder/chaptercardbuilder.js b/src/components/cardbuilder/chaptercardbuilder.js similarity index 100% rename from src/bower_components/emby-webcomponents/cardbuilder/chaptercardbuilder.js rename to src/components/cardbuilder/chaptercardbuilder.js diff --git a/src/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js b/src/components/cardbuilder/peoplecardbuilder.js similarity index 100% rename from src/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js rename to src/components/cardbuilder/peoplecardbuilder.js diff --git a/src/bower_components/emby-webcomponents/cardbuilder/roundcard.css b/src/components/cardbuilder/roundcard.css similarity index 100% rename from src/bower_components/emby-webcomponents/cardbuilder/roundcard.css rename to src/components/cardbuilder/roundcard.css diff --git a/src/bower_components/emby-webcomponents/chromecast/chromecasthelpers.js b/src/components/chromecast/chromecasthelpers.js similarity index 100% rename from src/bower_components/emby-webcomponents/chromecast/chromecasthelpers.js rename to src/components/chromecast/chromecasthelpers.js diff --git a/src/bower_components/emby-webcomponents/chromecast/chromecastplayer.js b/src/components/chromecast/chromecastplayer.js similarity index 100% rename from src/bower_components/emby-webcomponents/chromecast/chromecastplayer.js rename to src/components/chromecast/chromecastplayer.js diff --git a/src/bower_components/emby-webcomponents/clearbutton.css b/src/components/clearbutton.css similarity index 100% rename from src/bower_components/emby-webcomponents/clearbutton.css rename to src/components/clearbutton.css diff --git a/src/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js b/src/components/collectioneditor/collectioneditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js rename to src/components/collectioneditor/collectioneditor.js diff --git a/src/bower_components/emby-webcomponents/confirm/confirm.js b/src/components/confirm/confirm.js similarity index 100% rename from src/bower_components/emby-webcomponents/confirm/confirm.js rename to src/components/confirm/confirm.js diff --git a/src/bower_components/emby-webcomponents/confirm/nativeconfirm.js b/src/components/confirm/nativeconfirm.js similarity index 100% rename from src/bower_components/emby-webcomponents/confirm/nativeconfirm.js rename to src/components/confirm/nativeconfirm.js diff --git a/src/bower_components/emby-webcomponents/datetime.js b/src/components/datetime.js similarity index 100% rename from src/bower_components/emby-webcomponents/datetime.js rename to src/components/datetime.js diff --git a/src/bower_components/emby-webcomponents/deletehelper.js b/src/components/deletehelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/deletehelper.js rename to src/components/deletehelper.js diff --git a/src/bower_components/emby-webcomponents/dialog/dialog.js b/src/components/dialog/dialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/dialog/dialog.js rename to src/components/dialog/dialog.js diff --git a/src/bower_components/emby-webcomponents/dialog/dialog.template.html b/src/components/dialog/dialog.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/dialog/dialog.template.html rename to src/components/dialog/dialog.template.html diff --git a/src/bower_components/emby-webcomponents/dialoghelper/dialoghelper.css b/src/components/dialoghelper/dialoghelper.css similarity index 100% rename from src/bower_components/emby-webcomponents/dialoghelper/dialoghelper.css rename to src/components/dialoghelper/dialoghelper.css diff --git a/src/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js b/src/components/dialoghelper/dialoghelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js rename to src/components/dialoghelper/dialoghelper.js diff --git a/src/bower_components/emby-webcomponents/displaysettings/displaysettings.js b/src/components/displaysettings/displaysettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/displaysettings/displaysettings.js rename to src/components/displaysettings/displaysettings.js diff --git a/src/bower_components/emby-webcomponents/displaysettings/displaysettings.template.html b/src/components/displaysettings/displaysettings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/displaysettings/displaysettings.template.html rename to src/components/displaysettings/displaysettings.template.html diff --git a/src/bower_components/emby-webcomponents/dom.js b/src/components/dom.js similarity index 100% rename from src/bower_components/emby-webcomponents/dom.js rename to src/components/dom.js diff --git a/src/bower_components/emby-webcomponents/emby-button/emby-button.css b/src/components/emby-button/emby-button.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-button/emby-button.css rename to src/components/emby-button/emby-button.css diff --git a/src/bower_components/emby-webcomponents/emby-button/emby-button.js b/src/components/emby-button/emby-button.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-button/emby-button.js rename to src/components/emby-button/emby-button.js diff --git a/src/bower_components/emby-webcomponents/emby-button/paper-icon-button-light.js b/src/components/emby-button/paper-icon-button-light.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-button/paper-icon-button-light.js rename to src/components/emby-button/paper-icon-button-light.js diff --git a/src/bower_components/emby-webcomponents/emby-checkbox/emby-checkbox.css b/src/components/emby-checkbox/emby-checkbox.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-checkbox/emby-checkbox.css rename to src/components/emby-checkbox/emby-checkbox.css diff --git a/src/bower_components/emby-webcomponents/emby-checkbox/emby-checkbox.js b/src/components/emby-checkbox/emby-checkbox.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-checkbox/emby-checkbox.js rename to src/components/emby-checkbox/emby-checkbox.js diff --git a/src/bower_components/emby-webcomponents/emby-collapse/emby-collapse.css b/src/components/emby-collapse/emby-collapse.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-collapse/emby-collapse.css rename to src/components/emby-collapse/emby-collapse.css diff --git a/src/bower_components/emby-webcomponents/emby-collapse/emby-collapse.js b/src/components/emby-collapse/emby-collapse.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-collapse/emby-collapse.js rename to src/components/emby-collapse/emby-collapse.js diff --git a/src/bower_components/emby-webcomponents/emby-input/emby-input.css b/src/components/emby-input/emby-input.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-input/emby-input.css rename to src/components/emby-input/emby-input.css diff --git a/src/bower_components/emby-webcomponents/emby-input/emby-input.js b/src/components/emby-input/emby-input.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-input/emby-input.js rename to src/components/emby-input/emby-input.js diff --git a/src/bower_components/emby-webcomponents/emby-itemrefreshindicator/emby-itemrefreshindicator.js b/src/components/emby-itemrefreshindicator/emby-itemrefreshindicator.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-itemrefreshindicator/emby-itemrefreshindicator.js rename to src/components/emby-itemrefreshindicator/emby-itemrefreshindicator.js diff --git a/src/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js b/src/components/emby-itemscontainer/emby-itemscontainer.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js rename to src/components/emby-itemscontainer/emby-itemscontainer.js diff --git a/src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.css b/src/components/emby-progressring/emby-progressring.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.css rename to src/components/emby-progressring/emby-progressring.css diff --git a/src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.js b/src/components/emby-progressring/emby-progressring.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.js rename to src/components/emby-progressring/emby-progressring.js diff --git a/src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.template.html b/src/components/emby-progressring/emby-progressring.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/emby-progressring/emby-progressring.template.html rename to src/components/emby-progressring/emby-progressring.template.html diff --git a/src/bower_components/emby-webcomponents/emby-radio/emby-radio.css b/src/components/emby-radio/emby-radio.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-radio/emby-radio.css rename to src/components/emby-radio/emby-radio.css diff --git a/src/bower_components/emby-webcomponents/emby-radio/emby-radio.js b/src/components/emby-radio/emby-radio.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-radio/emby-radio.js rename to src/components/emby-radio/emby-radio.js diff --git a/src/bower_components/emby-webcomponents/emby-scrollbuttons/emby-scrollbuttons.css b/src/components/emby-scrollbuttons/emby-scrollbuttons.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-scrollbuttons/emby-scrollbuttons.css rename to src/components/emby-scrollbuttons/emby-scrollbuttons.css diff --git a/src/bower_components/emby-webcomponents/emby-scrollbuttons/emby-scrollbuttons.js b/src/components/emby-scrollbuttons/emby-scrollbuttons.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-scrollbuttons/emby-scrollbuttons.js rename to src/components/emby-scrollbuttons/emby-scrollbuttons.js diff --git a/src/bower_components/emby-webcomponents/emby-scroller/emby-scroller.js b/src/components/emby-scroller/emby-scroller.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-scroller/emby-scroller.js rename to src/components/emby-scroller/emby-scroller.js diff --git a/src/bower_components/emby-webcomponents/emby-select/emby-select.css b/src/components/emby-select/emby-select.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-select/emby-select.css rename to src/components/emby-select/emby-select.css diff --git a/src/bower_components/emby-webcomponents/emby-select/emby-select.js b/src/components/emby-select/emby-select.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-select/emby-select.js rename to src/components/emby-select/emby-select.js diff --git a/src/bower_components/emby-webcomponents/emby-slider/emby-slider.css b/src/components/emby-slider/emby-slider.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-slider/emby-slider.css rename to src/components/emby-slider/emby-slider.css diff --git a/src/bower_components/emby-webcomponents/emby-slider/emby-slider.js b/src/components/emby-slider/emby-slider.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-slider/emby-slider.js rename to src/components/emby-slider/emby-slider.js diff --git a/src/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css b/src/components/emby-tabs/emby-tabs.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css rename to src/components/emby-tabs/emby-tabs.css diff --git a/src/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js b/src/components/emby-tabs/emby-tabs.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js rename to src/components/emby-tabs/emby-tabs.js diff --git a/src/bower_components/emby-webcomponents/emby-textarea/emby-textarea.css b/src/components/emby-textarea/emby-textarea.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-textarea/emby-textarea.css rename to src/components/emby-textarea/emby-textarea.css diff --git a/src/bower_components/emby-webcomponents/emby-textarea/emby-textarea.js b/src/components/emby-textarea/emby-textarea.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-textarea/emby-textarea.js rename to src/components/emby-textarea/emby-textarea.js diff --git a/src/bower_components/emby-webcomponents/emby-toggle/emby-toggle.css b/src/components/emby-toggle/emby-toggle.css similarity index 100% rename from src/bower_components/emby-webcomponents/emby-toggle/emby-toggle.css rename to src/components/emby-toggle/emby-toggle.css diff --git a/src/bower_components/emby-webcomponents/emby-toggle/emby-toggle.js b/src/components/emby-toggle/emby-toggle.js similarity index 100% rename from src/bower_components/emby-webcomponents/emby-toggle/emby-toggle.js rename to src/components/emby-toggle/emby-toggle.js diff --git a/src/bower_components/emby-webcomponents/fetchhelper.js b/src/components/fetchhelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/fetchhelper.js rename to src/components/fetchhelper.js diff --git a/src/bower_components/emby-webcomponents/filedownloader.js b/src/components/filedownloader.js similarity index 100% rename from src/bower_components/emby-webcomponents/filedownloader.js rename to src/components/filedownloader.js diff --git a/src/bower_components/emby-webcomponents/filesystem.js b/src/components/filesystem.js similarity index 100% rename from src/bower_components/emby-webcomponents/filesystem.js rename to src/components/filesystem.js diff --git a/src/bower_components/emby-webcomponents/filtermenu/filtermenu.js b/src/components/filtermenu/filtermenu.js similarity index 100% rename from src/bower_components/emby-webcomponents/filtermenu/filtermenu.js rename to src/components/filtermenu/filtermenu.js diff --git a/src/bower_components/emby-webcomponents/filtermenu/filtermenu.template.html b/src/components/filtermenu/filtermenu.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/filtermenu/filtermenu.template.html rename to src/components/filtermenu/filtermenu.template.html diff --git a/src/bower_components/emby-webcomponents/flexstyles.css b/src/components/flexstyles.css similarity index 100% rename from src/bower_components/emby-webcomponents/flexstyles.css rename to src/components/flexstyles.css diff --git a/src/bower_components/emby-webcomponents/flvjs/flv.min.js b/src/components/flvjs/flv.min.js similarity index 100% rename from src/bower_components/emby-webcomponents/flvjs/flv.min.js rename to src/components/flvjs/flv.min.js diff --git a/src/bower_components/emby-webcomponents/focusmanager.js b/src/components/focusmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/focusmanager.js rename to src/components/focusmanager.js diff --git a/src/bower_components/emby-webcomponents/fonts/fonts.css b/src/components/fonts/fonts.css similarity index 100% rename from src/bower_components/emby-webcomponents/fonts/fonts.css rename to src/components/fonts/fonts.css diff --git a/src/bower_components/emby-webcomponents/fonts/fonts.sized.css b/src/components/fonts/fonts.sized.css similarity index 100% rename from src/bower_components/emby-webcomponents/fonts/fonts.sized.css rename to src/components/fonts/fonts.sized.css diff --git a/src/bower_components/emby-webcomponents/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff b/src/components/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff similarity index 100% rename from src/bower_components/emby-webcomponents/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff rename to src/components/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff diff --git a/src/bower_components/emby-webcomponents/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 b/src/components/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 similarity index 100% rename from src/bower_components/emby-webcomponents/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 rename to src/components/fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 diff --git a/src/bower_components/emby-webcomponents/fonts/material-icons/style.css b/src/components/fonts/material-icons/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/fonts/material-icons/style.css rename to src/components/fonts/material-icons/style.css diff --git a/src/bower_components/emby-webcomponents/formdialog.css b/src/components/formdialog.css similarity index 100% rename from src/bower_components/emby-webcomponents/formdialog.css rename to src/components/formdialog.css diff --git a/src/bower_components/emby-webcomponents/fullscreen/fullscreen-dc.js b/src/components/fullscreen/fullscreen-dc.js similarity index 100% rename from src/bower_components/emby-webcomponents/fullscreen/fullscreen-dc.js rename to src/components/fullscreen/fullscreen-dc.js diff --git a/src/bower_components/emby-webcomponents/fullscreen/fullscreenmanager.js b/src/components/fullscreen/fullscreenmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/fullscreen/fullscreenmanager.js rename to src/components/fullscreen/fullscreenmanager.js diff --git a/src/bower_components/emby-webcomponents/globalize.js b/src/components/globalize.js similarity index 100% rename from src/bower_components/emby-webcomponents/globalize.js rename to src/components/globalize.js diff --git a/src/bower_components/emby-webcomponents/guide/guide-settings.js b/src/components/guide/guide-settings.js similarity index 100% rename from src/bower_components/emby-webcomponents/guide/guide-settings.js rename to src/components/guide/guide-settings.js diff --git a/src/bower_components/emby-webcomponents/guide/guide-settings.template.html b/src/components/guide/guide-settings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/guide/guide-settings.template.html rename to src/components/guide/guide-settings.template.html diff --git a/src/bower_components/emby-webcomponents/guide/guide.css b/src/components/guide/guide.css similarity index 100% rename from src/bower_components/emby-webcomponents/guide/guide.css rename to src/components/guide/guide.css diff --git a/src/bower_components/emby-webcomponents/guide/guide.js b/src/components/guide/guide.js similarity index 100% rename from src/bower_components/emby-webcomponents/guide/guide.js rename to src/components/guide/guide.js diff --git a/src/bower_components/emby-webcomponents/guide/programs.css b/src/components/guide/programs.css similarity index 100% rename from src/bower_components/emby-webcomponents/guide/programs.css rename to src/components/guide/programs.css diff --git a/src/bower_components/emby-webcomponents/guide/tvguide.template.html b/src/components/guide/tvguide.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/guide/tvguide.template.html rename to src/components/guide/tvguide.template.html diff --git a/src/bower_components/emby-webcomponents/headroom/headroom.css b/src/components/headroom/headroom.css similarity index 100% rename from src/bower_components/emby-webcomponents/headroom/headroom.css rename to src/components/headroom/headroom.css diff --git a/src/bower_components/emby-webcomponents/headroom/headroom.js b/src/components/headroom/headroom.js similarity index 100% rename from src/bower_components/emby-webcomponents/headroom/headroom.js rename to src/components/headroom/headroom.js diff --git a/src/bower_components/emby-webcomponents/homescreensettings/homescreensettings.js b/src/components/homescreensettings/homescreensettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/homescreensettings/homescreensettings.js rename to src/components/homescreensettings/homescreensettings.js diff --git a/src/bower_components/emby-webcomponents/homescreensettings/homescreensettings.template.html b/src/components/homescreensettings/homescreensettings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/homescreensettings/homescreensettings.template.html rename to src/components/homescreensettings/homescreensettings.template.html diff --git a/src/bower_components/emby-webcomponents/homescreensettings/homescreensettingsdialog.js b/src/components/homescreensettings/homescreensettingsdialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/homescreensettings/homescreensettingsdialog.js rename to src/components/homescreensettings/homescreensettingsdialog.js diff --git a/src/bower_components/emby-webcomponents/homescreensettings/homescreensettingsdialog.template.html b/src/components/homescreensettings/homescreensettingsdialog.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/homescreensettings/homescreensettingsdialog.template.html rename to src/components/homescreensettings/homescreensettingsdialog.template.html diff --git a/src/bower_components/emby-webcomponents/homesections/homesections.css b/src/components/homesections/homesections.css similarity index 100% rename from src/bower_components/emby-webcomponents/homesections/homesections.css rename to src/components/homesections/homesections.css diff --git a/src/bower_components/emby-webcomponents/homesections/homesections.js b/src/components/homesections/homesections.js similarity index 100% rename from src/bower_components/emby-webcomponents/homesections/homesections.js rename to src/components/homesections/homesections.js diff --git a/src/bower_components/emby-webcomponents/htmlaudioplayer/plugin.js b/src/components/htmlaudioplayer/plugin.js similarity index 100% rename from src/bower_components/emby-webcomponents/htmlaudioplayer/plugin.js rename to src/components/htmlaudioplayer/plugin.js diff --git a/src/bower_components/emby-webcomponents/htmlvideoplayer/htmlmediahelper.js b/src/components/htmlvideoplayer/htmlmediahelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/htmlvideoplayer/htmlmediahelper.js rename to src/components/htmlvideoplayer/htmlmediahelper.js diff --git a/src/bower_components/emby-webcomponents/htmlvideoplayer/plugin.js b/src/components/htmlvideoplayer/plugin.js similarity index 100% rename from src/bower_components/emby-webcomponents/htmlvideoplayer/plugin.js rename to src/components/htmlvideoplayer/plugin.js diff --git a/src/bower_components/emby-webcomponents/htmlvideoplayer/style.css b/src/components/htmlvideoplayer/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/htmlvideoplayer/style.css rename to src/components/htmlvideoplayer/style.css diff --git a/src/bower_components/emby-webcomponents/imagedownloader/imagedownloader.js b/src/components/imagedownloader/imagedownloader.js similarity index 100% rename from src/bower_components/emby-webcomponents/imagedownloader/imagedownloader.js rename to src/components/imagedownloader/imagedownloader.js diff --git a/src/bower_components/emby-webcomponents/imagedownloader/imagedownloader.template.html b/src/components/imagedownloader/imagedownloader.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/imagedownloader/imagedownloader.template.html rename to src/components/imagedownloader/imagedownloader.template.html diff --git a/src/bower_components/emby-webcomponents/imageeditor/imageeditor.css b/src/components/imageeditor/imageeditor.css similarity index 100% rename from src/bower_components/emby-webcomponents/imageeditor/imageeditor.css rename to src/components/imageeditor/imageeditor.css diff --git a/src/bower_components/emby-webcomponents/imageeditor/imageeditor.js b/src/components/imageeditor/imageeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/imageeditor/imageeditor.js rename to src/components/imageeditor/imageeditor.js diff --git a/src/bower_components/emby-webcomponents/imageeditor/imageeditor.template.html b/src/components/imageeditor/imageeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/imageeditor/imageeditor.template.html rename to src/components/imageeditor/imageeditor.template.html diff --git a/src/bower_components/emby-webcomponents/images/basicimagefetcher.js b/src/components/images/basicimagefetcher.js similarity index 100% rename from src/bower_components/emby-webcomponents/images/basicimagefetcher.js rename to src/components/images/basicimagefetcher.js diff --git a/src/bower_components/emby-webcomponents/images/imagehelper.js b/src/components/images/imagehelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/images/imagehelper.js rename to src/components/images/imagehelper.js diff --git a/src/bower_components/emby-webcomponents/images/style.css b/src/components/images/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/images/style.css rename to src/components/images/style.css diff --git a/src/bower_components/emby-webcomponents/imageuploader/imageuploader.js b/src/components/imageuploader/imageuploader.js similarity index 100% rename from src/bower_components/emby-webcomponents/imageuploader/imageuploader.js rename to src/components/imageuploader/imageuploader.js diff --git a/src/bower_components/emby-webcomponents/imageuploader/imageuploader.template.html b/src/components/imageuploader/imageuploader.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/imageuploader/imageuploader.template.html rename to src/components/imageuploader/imageuploader.template.html diff --git a/src/bower_components/emby-webcomponents/imageuploader/style.css b/src/components/imageuploader/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/imageuploader/style.css rename to src/components/imageuploader/style.css diff --git a/src/bower_components/emby-webcomponents/indicators/indicators.css b/src/components/indicators/indicators.css similarity index 100% rename from src/bower_components/emby-webcomponents/indicators/indicators.css rename to src/components/indicators/indicators.css diff --git a/src/bower_components/emby-webcomponents/indicators/indicators.js b/src/components/indicators/indicators.js similarity index 100% rename from src/bower_components/emby-webcomponents/indicators/indicators.js rename to src/components/indicators/indicators.js diff --git a/src/bower_components/emby-webcomponents/inputmanager.js b/src/components/inputmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/inputmanager.js rename to src/components/inputmanager.js diff --git a/src/bower_components/emby-webcomponents/itemcontextmenu.js b/src/components/itemcontextmenu.js similarity index 100% rename from src/bower_components/emby-webcomponents/itemcontextmenu.js rename to src/components/itemcontextmenu.js diff --git a/src/bower_components/emby-webcomponents/itemhelper.js b/src/components/itemhelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/itemhelper.js rename to src/components/itemhelper.js diff --git a/src/bower_components/emby-webcomponents/itemidentifier/itemidentifier.js b/src/components/itemidentifier/itemidentifier.js similarity index 100% rename from src/bower_components/emby-webcomponents/itemidentifier/itemidentifier.js rename to src/components/itemidentifier/itemidentifier.js diff --git a/src/bower_components/emby-webcomponents/itemidentifier/itemidentifier.template.html b/src/components/itemidentifier/itemidentifier.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/itemidentifier/itemidentifier.template.html rename to src/components/itemidentifier/itemidentifier.template.html diff --git a/src/bower_components/emby-webcomponents/itemsrefresher.js b/src/components/itemsrefresher.js similarity index 100% rename from src/bower_components/emby-webcomponents/itemsrefresher.js rename to src/components/itemsrefresher.js diff --git a/src/bower_components/emby-webcomponents/layoutmanager.js b/src/components/layoutmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/layoutmanager.js rename to src/components/layoutmanager.js diff --git a/src/bower_components/emby-webcomponents/lazyloader/lazyedgehack.css b/src/components/lazyloader/lazyedgehack.css similarity index 100% rename from src/bower_components/emby-webcomponents/lazyloader/lazyedgehack.css rename to src/components/lazyloader/lazyedgehack.css diff --git a/src/bower_components/emby-webcomponents/lazyloader/lazyloader-intersectionobserver.js b/src/components/lazyloader/lazyloader-intersectionobserver.js similarity index 100% rename from src/bower_components/emby-webcomponents/lazyloader/lazyloader-intersectionobserver.js rename to src/components/lazyloader/lazyloader-intersectionobserver.js diff --git a/src/bower_components/emby-webcomponents/lazyloader/lazyloader-scroll.js b/src/components/lazyloader/lazyloader-scroll.js similarity index 100% rename from src/bower_components/emby-webcomponents/lazyloader/lazyloader-scroll.js rename to src/components/lazyloader/lazyloader-scroll.js diff --git a/src/bower_components/emby-webcomponents/listview/listview.css b/src/components/listview/listview.css similarity index 100% rename from src/bower_components/emby-webcomponents/listview/listview.css rename to src/components/listview/listview.css diff --git a/src/bower_components/emby-webcomponents/listview/listview.js b/src/components/listview/listview.js similarity index 100% rename from src/bower_components/emby-webcomponents/listview/listview.js rename to src/components/listview/listview.js diff --git a/src/bower_components/emby-webcomponents/loading/loader2.gif b/src/components/loading/loader2.gif similarity index 100% rename from src/bower_components/emby-webcomponents/loading/loader2.gif rename to src/components/loading/loader2.gif diff --git a/src/bower_components/emby-webcomponents/loading/loading-legacy.css b/src/components/loading/loading-legacy.css similarity index 100% rename from src/bower_components/emby-webcomponents/loading/loading-legacy.css rename to src/components/loading/loading-legacy.css diff --git a/src/bower_components/emby-webcomponents/loading/loading-legacy.js b/src/components/loading/loading-legacy.js similarity index 100% rename from src/bower_components/emby-webcomponents/loading/loading-legacy.js rename to src/components/loading/loading-legacy.js diff --git a/src/bower_components/emby-webcomponents/loading/loading-lite.css b/src/components/loading/loading-lite.css similarity index 100% rename from src/bower_components/emby-webcomponents/loading/loading-lite.css rename to src/components/loading/loading-lite.css diff --git a/src/bower_components/emby-webcomponents/loading/loading-lite.js b/src/components/loading/loading-lite.js similarity index 100% rename from src/bower_components/emby-webcomponents/loading/loading-lite.js rename to src/components/loading/loading-lite.js diff --git a/src/bower_components/emby-webcomponents/loadingdialog/loadingdialog.js b/src/components/loadingdialog/loadingdialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/loadingdialog/loadingdialog.js rename to src/components/loadingdialog/loadingdialog.js diff --git a/src/bower_components/emby-webcomponents/maintabsmanager.js b/src/components/maintabsmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/maintabsmanager.js rename to src/components/maintabsmanager.js diff --git a/src/bower_components/emby-webcomponents/mediainfo/fresh.png b/src/components/mediainfo/fresh.png similarity index 100% rename from src/bower_components/emby-webcomponents/mediainfo/fresh.png rename to src/components/mediainfo/fresh.png diff --git a/src/bower_components/emby-webcomponents/mediainfo/mediainfo.css b/src/components/mediainfo/mediainfo.css similarity index 100% rename from src/bower_components/emby-webcomponents/mediainfo/mediainfo.css rename to src/components/mediainfo/mediainfo.css diff --git a/src/bower_components/emby-webcomponents/mediainfo/mediainfo.js b/src/components/mediainfo/mediainfo.js similarity index 100% rename from src/bower_components/emby-webcomponents/mediainfo/mediainfo.js rename to src/components/mediainfo/mediainfo.js diff --git a/src/bower_components/emby-webcomponents/mediainfo/rotten.png b/src/components/mediainfo/rotten.png similarity index 100% rename from src/bower_components/emby-webcomponents/mediainfo/rotten.png rename to src/components/mediainfo/rotten.png diff --git a/src/bower_components/emby-webcomponents/metadataeditor/metadataeditor.js b/src/components/metadataeditor/metadataeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/metadataeditor/metadataeditor.js rename to src/components/metadataeditor/metadataeditor.js diff --git a/src/bower_components/emby-webcomponents/metadataeditor/metadataeditor.template.html b/src/components/metadataeditor/metadataeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/metadataeditor/metadataeditor.template.html rename to src/components/metadataeditor/metadataeditor.template.html diff --git a/src/bower_components/emby-webcomponents/metadataeditor/personeditor.js b/src/components/metadataeditor/personeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/metadataeditor/personeditor.js rename to src/components/metadataeditor/personeditor.js diff --git a/src/bower_components/emby-webcomponents/metadataeditor/personeditor.template.html b/src/components/metadataeditor/personeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/metadataeditor/personeditor.template.html rename to src/components/metadataeditor/personeditor.template.html diff --git a/src/bower_components/emby-webcomponents/multidownload.js b/src/components/multidownload.js similarity index 100% rename from src/bower_components/emby-webcomponents/multidownload.js rename to src/components/multidownload.js diff --git a/src/bower_components/emby-webcomponents/multiselect/multiselect.css b/src/components/multiselect/multiselect.css similarity index 100% rename from src/bower_components/emby-webcomponents/multiselect/multiselect.css rename to src/components/multiselect/multiselect.css diff --git a/src/bower_components/emby-webcomponents/multiselect/multiselect.js b/src/components/multiselect/multiselect.js similarity index 100% rename from src/bower_components/emby-webcomponents/multiselect/multiselect.js rename to src/components/multiselect/multiselect.js diff --git a/src/bower_components/emby-webcomponents/native-promise-only/lib/npo.src.js b/src/components/native-promise-only/lib/npo.src.js similarity index 100% rename from src/bower_components/emby-webcomponents/native-promise-only/lib/npo.src.js rename to src/components/native-promise-only/lib/npo.src.js diff --git a/src/bower_components/emby-webcomponents/native-promise-only/test_adapter.js b/src/components/native-promise-only/test_adapter.js similarity index 100% rename from src/bower_components/emby-webcomponents/native-promise-only/test_adapter.js rename to src/components/native-promise-only/test_adapter.js diff --git a/src/bower_components/emby-webcomponents/notifications/badge.png b/src/components/notifications/badge.png similarity index 100% rename from src/bower_components/emby-webcomponents/notifications/badge.png rename to src/components/notifications/badge.png diff --git a/src/bower_components/emby-webcomponents/notifications/notificationicon.png b/src/components/notifications/notificationicon.png similarity index 100% rename from src/bower_components/emby-webcomponents/notifications/notificationicon.png rename to src/components/notifications/notificationicon.png diff --git a/src/bower_components/emby-webcomponents/notifications/notifications.js b/src/components/notifications/notifications.js similarity index 100% rename from src/bower_components/emby-webcomponents/notifications/notifications.js rename to src/components/notifications/notifications.js diff --git a/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.css b/src/components/nowplayingbar/nowplayingbar.css similarity index 100% rename from src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.css rename to src/components/nowplayingbar/nowplayingbar.css diff --git a/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js b/src/components/nowplayingbar/nowplayingbar.js similarity index 100% rename from src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js rename to src/components/nowplayingbar/nowplayingbar.js diff --git a/src/bower_components/emby-webcomponents/packagemanager.js b/src/components/packagemanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/packagemanager.js rename to src/components/packagemanager.js diff --git a/src/bower_components/emby-webcomponents/pagejs/page.js b/src/components/pagejs/page.js similarity index 100% rename from src/bower_components/emby-webcomponents/pagejs/page.js rename to src/components/pagejs/page.js diff --git a/src/bower_components/emby-webcomponents/photoplayer/plugin.js b/src/components/photoplayer/plugin.js similarity index 100% rename from src/bower_components/emby-webcomponents/photoplayer/plugin.js rename to src/components/photoplayer/plugin.js diff --git a/src/bower_components/emby-webcomponents/playback/autoplaydetect.js b/src/components/playback/autoplaydetect.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/autoplaydetect.js rename to src/components/playback/autoplaydetect.js diff --git a/src/bower_components/emby-webcomponents/playback/brightnessosd.js b/src/components/playback/brightnessosd.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/brightnessosd.js rename to src/components/playback/brightnessosd.js diff --git a/src/bower_components/emby-webcomponents/playback/experimentalwarnings.js b/src/components/playback/experimentalwarnings.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/experimentalwarnings.js rename to src/components/playback/experimentalwarnings.js diff --git a/src/bower_components/emby-webcomponents/playback/iconosd.css b/src/components/playback/iconosd.css similarity index 100% rename from src/bower_components/emby-webcomponents/playback/iconosd.css rename to src/components/playback/iconosd.css diff --git a/src/bower_components/emby-webcomponents/playback/mediasession.js b/src/components/playback/mediasession.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/mediasession.js rename to src/components/playback/mediasession.js diff --git a/src/bower_components/emby-webcomponents/playback/nowplayinghelper.js b/src/components/playback/nowplayinghelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/nowplayinghelper.js rename to src/components/playback/nowplayinghelper.js diff --git a/src/bower_components/emby-webcomponents/playback/playaccessvalidation.js b/src/components/playback/playaccessvalidation.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playaccessvalidation.js rename to src/components/playback/playaccessvalidation.js diff --git a/src/bower_components/emby-webcomponents/playback/playbackmanager.js b/src/components/playback/playbackmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playbackmanager.js rename to src/components/playback/playbackmanager.js diff --git a/src/bower_components/emby-webcomponents/playback/playbackorientation.js b/src/components/playback/playbackorientation.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playbackorientation.js rename to src/components/playback/playbackorientation.js diff --git a/src/bower_components/emby-webcomponents/playback/playbackvalidation.js b/src/components/playback/playbackvalidation.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playbackvalidation.js rename to src/components/playback/playbackvalidation.js diff --git a/src/bower_components/emby-webcomponents/playback/playerselection.js b/src/components/playback/playerselection.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playerselection.js rename to src/components/playback/playerselection.js diff --git a/src/bower_components/emby-webcomponents/playback/playersettingsmenu.js b/src/components/playback/playersettingsmenu.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playersettingsmenu.js rename to src/components/playback/playersettingsmenu.js diff --git a/src/bower_components/emby-webcomponents/playback/playmethodhelper.js b/src/components/playback/playmethodhelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playmethodhelper.js rename to src/components/playback/playmethodhelper.js diff --git a/src/bower_components/emby-webcomponents/playback/playqueuemanager.js b/src/components/playback/playqueuemanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/playqueuemanager.js rename to src/components/playback/playqueuemanager.js diff --git a/src/bower_components/emby-webcomponents/playback/remotecontrolautoplay.js b/src/components/playback/remotecontrolautoplay.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/remotecontrolautoplay.js rename to src/components/playback/remotecontrolautoplay.js diff --git a/src/bower_components/emby-webcomponents/playback/volumeosd.js b/src/components/playback/volumeosd.js similarity index 100% rename from src/bower_components/emby-webcomponents/playback/volumeosd.js rename to src/components/playback/volumeosd.js diff --git a/src/bower_components/emby-webcomponents/playbacksettings/playbacksettings.js b/src/components/playbacksettings/playbacksettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/playbacksettings/playbacksettings.js rename to src/components/playbacksettings/playbacksettings.js diff --git a/src/bower_components/emby-webcomponents/playbacksettings/playbacksettings.template.html b/src/components/playbacksettings/playbacksettings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/playbacksettings/playbacksettings.template.html rename to src/components/playbacksettings/playbacksettings.template.html diff --git a/src/bower_components/emby-webcomponents/playerstats/playerstats.css b/src/components/playerstats/playerstats.css similarity index 100% rename from src/bower_components/emby-webcomponents/playerstats/playerstats.css rename to src/components/playerstats/playerstats.css diff --git a/src/bower_components/emby-webcomponents/playerstats/playerstats.js b/src/components/playerstats/playerstats.js similarity index 100% rename from src/bower_components/emby-webcomponents/playerstats/playerstats.js rename to src/components/playerstats/playerstats.js diff --git a/src/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js b/src/components/playlisteditor/playlisteditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js rename to src/components/playlisteditor/playlisteditor.js diff --git a/src/bower_components/emby-webcomponents/playmenu.js b/src/components/playmenu.js similarity index 100% rename from src/bower_components/emby-webcomponents/playmenu.js rename to src/components/playmenu.js diff --git a/src/bower_components/emby-webcomponents/pluginmanager.js b/src/components/pluginmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/pluginmanager.js rename to src/components/pluginmanager.js diff --git a/src/bower_components/emby-webcomponents/polyfills/array.js b/src/components/polyfills/array.js similarity index 100% rename from src/bower_components/emby-webcomponents/polyfills/array.js rename to src/components/polyfills/array.js diff --git a/src/bower_components/emby-webcomponents/polyfills/bind.js b/src/components/polyfills/bind.js similarity index 100% rename from src/bower_components/emby-webcomponents/polyfills/bind.js rename to src/components/polyfills/bind.js diff --git a/src/bower_components/emby-webcomponents/polyfills/objectassign.js b/src/components/polyfills/objectassign.js similarity index 100% rename from src/bower_components/emby-webcomponents/polyfills/objectassign.js rename to src/components/polyfills/objectassign.js diff --git a/src/bower_components/emby-webcomponents/polyfills/raf.js b/src/components/polyfills/raf.js similarity index 100% rename from src/bower_components/emby-webcomponents/polyfills/raf.js rename to src/components/polyfills/raf.js diff --git a/src/bower_components/emby-webcomponents/prompt/nativeprompt.js b/src/components/prompt/nativeprompt.js similarity index 100% rename from src/bower_components/emby-webcomponents/prompt/nativeprompt.js rename to src/components/prompt/nativeprompt.js diff --git a/src/bower_components/emby-webcomponents/prompt/prompt.js b/src/components/prompt/prompt.js similarity index 100% rename from src/bower_components/emby-webcomponents/prompt/prompt.js rename to src/components/prompt/prompt.js diff --git a/src/bower_components/emby-webcomponents/prompt/prompt.template.html b/src/components/prompt/prompt.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/prompt/prompt.template.html rename to src/components/prompt/prompt.template.html diff --git a/src/bower_components/emby-webcomponents/qualityoptions.js b/src/components/qualityoptions.js similarity index 100% rename from src/bower_components/emby-webcomponents/qualityoptions.js rename to src/components/qualityoptions.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/empty.png b/src/components/recordingcreator/empty.png similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/empty.png rename to src/components/recordingcreator/empty.png diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingbutton.js b/src/components/recordingcreator/recordingbutton.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingbutton.js rename to src/components/recordingcreator/recordingbutton.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css b/src/components/recordingcreator/recordingcreator.css similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css rename to src/components/recordingcreator/recordingcreator.css diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.js b/src/components/recordingcreator/recordingcreator.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.js rename to src/components/recordingcreator/recordingcreator.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html b/src/components/recordingcreator/recordingcreator.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html rename to src/components/recordingcreator/recordingcreator.template.html diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingeditor.js b/src/components/recordingcreator/recordingeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingeditor.js rename to src/components/recordingcreator/recordingeditor.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html b/src/components/recordingcreator/recordingeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html rename to src/components/recordingcreator/recordingeditor.template.html diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingfields.css b/src/components/recordingcreator/recordingfields.css similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingfields.css rename to src/components/recordingcreator/recordingfields.css diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingfields.js b/src/components/recordingcreator/recordingfields.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingfields.js rename to src/components/recordingcreator/recordingfields.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html b/src/components/recordingcreator/recordingfields.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html rename to src/components/recordingcreator/recordingfields.template.html diff --git a/src/bower_components/emby-webcomponents/recordingcreator/recordinghelper.js b/src/components/recordingcreator/recordinghelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/recordinghelper.js rename to src/components/recordingcreator/recordinghelper.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/seriesrecordingeditor.js b/src/components/recordingcreator/seriesrecordingeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/seriesrecordingeditor.js rename to src/components/recordingcreator/seriesrecordingeditor.js diff --git a/src/bower_components/emby-webcomponents/recordingcreator/seriesrecordingeditor.template.html b/src/components/recordingcreator/seriesrecordingeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/recordingcreator/seriesrecordingeditor.template.html rename to src/components/recordingcreator/seriesrecordingeditor.template.html diff --git a/src/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js b/src/components/refreshdialog/refreshdialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js rename to src/components/refreshdialog/refreshdialog.js diff --git a/src/bower_components/emby-webcomponents/registrationservices/registrationservices.js b/src/components/registrationservices/registrationservices.js similarity index 100% rename from src/bower_components/emby-webcomponents/registrationservices/registrationservices.js rename to src/components/registrationservices/registrationservices.js diff --git a/src/bower_components/emby-webcomponents/require/requirecss.js b/src/components/require/requirecss.js similarity index 96% rename from src/bower_components/emby-webcomponents/require/requirecss.js rename to src/components/require/requirecss.js index f65ed1fd04..78e5af2a08 100644 --- a/src/bower_components/emby-webcomponents/require/requirecss.js +++ b/src/components/require/requirecss.js @@ -29,7 +29,7 @@ define(function () { requireCss.load = function (cssId, req, load, config) { // Somehow if the url starts with /css, require will get all screwed up since this extension is also called css - var srch = '/emby-webcomponents/require/requirecss'; + var srch = 'components/require/requirecss'; var index = cssId.indexOf(srch); if (index !== -1) { diff --git a/src/bower_components/emby-webcomponents/require/requiretext.js b/src/components/require/requiretext.js similarity index 100% rename from src/bower_components/emby-webcomponents/require/requiretext.js rename to src/components/require/requiretext.js diff --git a/src/bower_components/emby-webcomponents/resize-observer-polyfill/ResizeObserver.js b/src/components/resize-observer-polyfill/ResizeObserver.js similarity index 100% rename from src/bower_components/emby-webcomponents/resize-observer-polyfill/ResizeObserver.js rename to src/components/resize-observer-polyfill/ResizeObserver.js diff --git a/src/bower_components/emby-webcomponents/router.js b/src/components/router.js similarity index 100% rename from src/bower_components/emby-webcomponents/router.js rename to src/components/router.js diff --git a/src/bower_components/emby-webcomponents/sanitizefilename.js b/src/components/sanitizefilename.js similarity index 100% rename from src/bower_components/emby-webcomponents/sanitizefilename.js rename to src/components/sanitizefilename.js diff --git a/src/bower_components/emby-webcomponents/scroller/smoothscroller.js b/src/components/scroller/smoothscroller.js similarity index 100% rename from src/bower_components/emby-webcomponents/scroller/smoothscroller.js rename to src/components/scroller/smoothscroller.js diff --git a/src/bower_components/emby-webcomponents/scrollhelper.js b/src/components/scrollhelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/scrollhelper.js rename to src/components/scrollhelper.js diff --git a/src/bower_components/emby-webcomponents/scrollstyles.css b/src/components/scrollstyles.css similarity index 100% rename from src/bower_components/emby-webcomponents/scrollstyles.css rename to src/components/scrollstyles.css diff --git a/src/bower_components/emby-webcomponents/search/searchfields.css b/src/components/search/searchfields.css similarity index 100% rename from src/bower_components/emby-webcomponents/search/searchfields.css rename to src/components/search/searchfields.css diff --git a/src/bower_components/emby-webcomponents/search/searchfields.js b/src/components/search/searchfields.js similarity index 100% rename from src/bower_components/emby-webcomponents/search/searchfields.js rename to src/components/search/searchfields.js diff --git a/src/bower_components/emby-webcomponents/search/searchfields.template.html b/src/components/search/searchfields.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/search/searchfields.template.html rename to src/components/search/searchfields.template.html diff --git a/src/bower_components/emby-webcomponents/search/searchresults.js b/src/components/search/searchresults.js similarity index 100% rename from src/bower_components/emby-webcomponents/search/searchresults.js rename to src/components/search/searchresults.js diff --git a/src/bower_components/emby-webcomponents/search/searchresults.template.html b/src/components/search/searchresults.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/search/searchresults.template.html rename to src/components/search/searchresults.template.html diff --git a/src/bower_components/emby-webcomponents/serverrestartdialog/serverrestartdialog.js b/src/components/serverrestartdialog/serverrestartdialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/serverrestartdialog/serverrestartdialog.js rename to src/components/serverrestartdialog/serverrestartdialog.js diff --git a/src/bower_components/emby-webcomponents/serviceworker/notifications.js b/src/components/serviceworker/notifications.js similarity index 100% rename from src/bower_components/emby-webcomponents/serviceworker/notifications.js rename to src/components/serviceworker/notifications.js diff --git a/src/bower_components/emby-webcomponents/serviceworker/sync.js b/src/components/serviceworker/sync.js similarity index 100% rename from src/bower_components/emby-webcomponents/serviceworker/sync.js rename to src/components/serviceworker/sync.js diff --git a/src/bower_components/emby-webcomponents/sessionplayer.js b/src/components/sessionplayer.js similarity index 100% rename from src/bower_components/emby-webcomponents/sessionplayer.js rename to src/components/sessionplayer.js diff --git a/src/bower_components/emby-webcomponents/shell.js b/src/components/shell.js similarity index 100% rename from src/bower_components/emby-webcomponents/shell.js rename to src/components/shell.js diff --git a/src/bower_components/emby-webcomponents/shortcuts.js b/src/components/shortcuts.js similarity index 100% rename from src/bower_components/emby-webcomponents/shortcuts.js rename to src/components/shortcuts.js diff --git a/src/bower_components/emby-webcomponents/skinmanager.js b/src/components/skinmanager.js similarity index 97% rename from src/bower_components/emby-webcomponents/skinmanager.js rename to src/components/skinmanager.js index 48820512cf..5893a845e8 100644 --- a/src/bower_components/emby-webcomponents/skinmanager.js +++ b/src/components/skinmanager.js @@ -219,10 +219,8 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr selectedTheme = defaultTheme; } - var embyWebComponentsBowerPath = 'bower_components/emby-webcomponents'; - return { - stylesheetPath: require.toUrl(embyWebComponentsBowerPath + '/themes/' + selectedTheme.id + '/theme.css'), + stylesheetPath: require.toUrl('components/themes/' + selectedTheme.id + '/theme.css'), themeId: selectedTheme.id }; } diff --git a/src/bower_components/emby-webcomponents/slideshow/slideshow.js b/src/components/slideshow/slideshow.js similarity index 100% rename from src/bower_components/emby-webcomponents/slideshow/slideshow.js rename to src/components/slideshow/slideshow.js diff --git a/src/bower_components/emby-webcomponents/slideshow/style.css b/src/components/slideshow/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/slideshow/style.css rename to src/components/slideshow/style.css diff --git a/src/bower_components/emby-webcomponents/sortmenu/sortmenu.js b/src/components/sortmenu/sortmenu.js similarity index 100% rename from src/bower_components/emby-webcomponents/sortmenu/sortmenu.js rename to src/components/sortmenu/sortmenu.js diff --git a/src/bower_components/emby-webcomponents/sortmenu/sortmenu.template.html b/src/components/sortmenu/sortmenu.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/sortmenu/sortmenu.template.html rename to src/components/sortmenu/sortmenu.template.html diff --git a/src/bower_components/emby-webcomponents/staticbackdrops.js b/src/components/staticbackdrops.js similarity index 100% rename from src/bower_components/emby-webcomponents/staticbackdrops.js rename to src/components/staticbackdrops.js diff --git a/src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.css b/src/components/subtitleeditor/subtitleeditor.css similarity index 100% rename from src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.css rename to src/components/subtitleeditor/subtitleeditor.css diff --git a/src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.js b/src/components/subtitleeditor/subtitleeditor.js similarity index 100% rename from src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.js rename to src/components/subtitleeditor/subtitleeditor.js diff --git a/src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html b/src/components/subtitleeditor/subtitleeditor.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html rename to src/components/subtitleeditor/subtitleeditor.template.html diff --git a/src/bower_components/emby-webcomponents/subtitlesettings/subtitleappearancehelper.js b/src/components/subtitlesettings/subtitleappearancehelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/subtitlesettings/subtitleappearancehelper.js rename to src/components/subtitlesettings/subtitleappearancehelper.js diff --git a/src/bower_components/emby-webcomponents/subtitlesettings/subtitlesettings.js b/src/components/subtitlesettings/subtitlesettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/subtitlesettings/subtitlesettings.js rename to src/components/subtitlesettings/subtitlesettings.js diff --git a/src/bower_components/emby-webcomponents/subtitlesettings/subtitlesettings.template.html b/src/components/subtitlesettings/subtitlesettings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/subtitlesettings/subtitlesettings.template.html rename to src/components/subtitlesettings/subtitlesettings.template.html diff --git a/src/bower_components/emby-webcomponents/sync/emby-downloadbutton.js b/src/components/sync/emby-downloadbutton.js similarity index 100% rename from src/bower_components/emby-webcomponents/sync/emby-downloadbutton.js rename to src/components/sync/emby-downloadbutton.js diff --git a/src/bower_components/emby-webcomponents/sync/sync.js b/src/components/sync/sync.js similarity index 100% rename from src/bower_components/emby-webcomponents/sync/sync.js rename to src/components/sync/sync.js diff --git a/src/bower_components/emby-webcomponents/tabbedview/itemstab.js b/src/components/tabbedview/itemstab.js similarity index 100% rename from src/bower_components/emby-webcomponents/tabbedview/itemstab.js rename to src/components/tabbedview/itemstab.js diff --git a/src/bower_components/emby-webcomponents/tabbedview/tabbedview.js b/src/components/tabbedview/tabbedview.js similarity index 100% rename from src/bower_components/emby-webcomponents/tabbedview/tabbedview.js rename to src/components/tabbedview/tabbedview.js diff --git a/src/bower_components/emby-webcomponents/thememediaplayer.js b/src/components/thememediaplayer.js similarity index 100% rename from src/bower_components/emby-webcomponents/thememediaplayer.js rename to src/components/thememediaplayer.js diff --git a/src/bower_components/emby-webcomponents/themes/appletv/theme.css b/src/components/themes/appletv/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/appletv/theme.css rename to src/components/themes/appletv/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/blueradiance/bg.jpg b/src/components/themes/blueradiance/bg.jpg similarity index 100% rename from src/bower_components/emby-webcomponents/themes/blueradiance/bg.jpg rename to src/components/themes/blueradiance/bg.jpg diff --git a/src/bower_components/emby-webcomponents/themes/blueradiance/theme.css b/src/components/themes/blueradiance/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/blueradiance/theme.css rename to src/components/themes/blueradiance/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/dark-classic/theme.css b/src/components/themes/dark-classic/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/dark-classic/theme.css rename to src/components/themes/dark-classic/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/dark-green/theme.css b/src/components/themes/dark-green/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/dark-green/theme.css rename to src/components/themes/dark-green/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/dark-red/theme.css b/src/components/themes/dark-red/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/dark-red/theme.css rename to src/components/themes/dark-red/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/dark/theme.css b/src/components/themes/dark/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/dark/theme.css rename to src/components/themes/dark/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-blue/theme.css b/src/components/themes/light-blue/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-blue/theme.css rename to src/components/themes/light-blue/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-classic/theme.css b/src/components/themes/light-classic/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-classic/theme.css rename to src/components/themes/light-classic/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-green/theme.css b/src/components/themes/light-green/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-green/theme.css rename to src/components/themes/light-green/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-pink/theme.css b/src/components/themes/light-pink/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-pink/theme.css rename to src/components/themes/light-pink/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-purple/theme.css b/src/components/themes/light-purple/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-purple/theme.css rename to src/components/themes/light-purple/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light-red/theme.css b/src/components/themes/light-red/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light-red/theme.css rename to src/components/themes/light-red/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/light/theme.css b/src/components/themes/light/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/light/theme.css rename to src/components/themes/light/theme.css diff --git a/src/bower_components/emby-webcomponents/themes/logodark.png b/src/components/themes/logodark.png similarity index 100% rename from src/bower_components/emby-webcomponents/themes/logodark.png rename to src/components/themes/logodark.png diff --git a/src/bower_components/emby-webcomponents/themes/logowhite.png b/src/components/themes/logowhite.png similarity index 100% rename from src/bower_components/emby-webcomponents/themes/logowhite.png rename to src/components/themes/logowhite.png diff --git a/src/bower_components/emby-webcomponents/themes/wmc/theme.css b/src/components/themes/wmc/theme.css similarity index 100% rename from src/bower_components/emby-webcomponents/themes/wmc/theme.css rename to src/components/themes/wmc/theme.css diff --git a/src/bower_components/emby-webcomponents/toast/toast.css b/src/components/toast/toast.css similarity index 100% rename from src/bower_components/emby-webcomponents/toast/toast.css rename to src/components/toast/toast.css diff --git a/src/bower_components/emby-webcomponents/toast/toast.js b/src/components/toast/toast.js similarity index 100% rename from src/bower_components/emby-webcomponents/toast/toast.js rename to src/components/toast/toast.js diff --git a/src/bower_components/emby-webcomponents/touchhelper.js b/src/components/touchhelper.js similarity index 100% rename from src/bower_components/emby-webcomponents/touchhelper.js rename to src/components/touchhelper.js diff --git a/src/bower_components/emby-webcomponents/upnextdialog/upnextdialog.css b/src/components/upnextdialog/upnextdialog.css similarity index 100% rename from src/bower_components/emby-webcomponents/upnextdialog/upnextdialog.css rename to src/components/upnextdialog/upnextdialog.css diff --git a/src/bower_components/emby-webcomponents/upnextdialog/upnextdialog.js b/src/components/upnextdialog/upnextdialog.js similarity index 100% rename from src/bower_components/emby-webcomponents/upnextdialog/upnextdialog.js rename to src/components/upnextdialog/upnextdialog.js diff --git a/src/bower_components/emby-webcomponents/userdatabuttons/emby-playstatebutton.js b/src/components/userdatabuttons/emby-playstatebutton.js similarity index 100% rename from src/bower_components/emby-webcomponents/userdatabuttons/emby-playstatebutton.js rename to src/components/userdatabuttons/emby-playstatebutton.js diff --git a/src/bower_components/emby-webcomponents/userdatabuttons/emby-ratingbutton.js b/src/components/userdatabuttons/emby-ratingbutton.js similarity index 100% rename from src/bower_components/emby-webcomponents/userdatabuttons/emby-ratingbutton.js rename to src/components/userdatabuttons/emby-ratingbutton.js diff --git a/src/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css b/src/components/userdatabuttons/userdatabuttons.css similarity index 100% rename from src/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css rename to src/components/userdatabuttons/userdatabuttons.css diff --git a/src/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.js b/src/components/userdatabuttons/userdatabuttons.js similarity index 100% rename from src/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.js rename to src/components/userdatabuttons/userdatabuttons.js diff --git a/src/bower_components/emby-webcomponents/usersettings/usersettings.js b/src/components/usersettings/usersettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/usersettings/usersettings.js rename to src/components/usersettings/usersettings.js diff --git a/src/bower_components/emby-webcomponents/usersettings/usersettingsbuilder.js b/src/components/usersettings/usersettingsbuilder.js similarity index 100% rename from src/bower_components/emby-webcomponents/usersettings/usersettingsbuilder.js rename to src/components/usersettings/usersettingsbuilder.js diff --git a/src/components/viewcontainer-lite.js b/src/components/viewcontainer-lite.js index d1729f1fab..fbcc2754e0 100644 --- a/src/components/viewcontainer-lite.js +++ b/src/components/viewcontainer-lite.js @@ -1,4 +1,4 @@ -define(["browser", "dom", "layoutManager", "css!bower_components/emby-webcomponents/viewmanager/viewcontainer-lite"], function(browser, dom, layoutManager) { +define(["browser", "dom", "layoutManager", "css!components/viewmanager/viewcontainer-lite"], function(browser, dom, layoutManager) { "use strict"; function setControllerClass(view, options) { diff --git a/src/bower_components/emby-webcomponents/viewmanager/viewcontainer-lite.css b/src/components/viewmanager/viewcontainer-lite.css similarity index 100% rename from src/bower_components/emby-webcomponents/viewmanager/viewcontainer-lite.css rename to src/components/viewmanager/viewcontainer-lite.css diff --git a/src/bower_components/emby-webcomponents/viewmanager/viewcontainer-lite.js b/src/components/viewmanager/viewcontainer-lite.js similarity index 100% rename from src/bower_components/emby-webcomponents/viewmanager/viewcontainer-lite.js rename to src/components/viewmanager/viewcontainer-lite.js diff --git a/src/bower_components/emby-webcomponents/viewmanager/viewmanager.js b/src/components/viewmanager/viewmanager.js similarity index 100% rename from src/bower_components/emby-webcomponents/viewmanager/viewmanager.js rename to src/components/viewmanager/viewmanager.js diff --git a/src/bower_components/emby-webcomponents/viewsettings/viewsettings.js b/src/components/viewsettings/viewsettings.js similarity index 100% rename from src/bower_components/emby-webcomponents/viewsettings/viewsettings.js rename to src/components/viewsettings/viewsettings.js diff --git a/src/bower_components/emby-webcomponents/viewsettings/viewsettings.template.html b/src/components/viewsettings/viewsettings.template.html similarity index 100% rename from src/bower_components/emby-webcomponents/viewsettings/viewsettings.template.html rename to src/components/viewsettings/viewsettings.template.html diff --git a/src/bower_components/emby-webcomponents/visibleinviewport.js b/src/components/visibleinviewport.js similarity index 100% rename from src/bower_components/emby-webcomponents/visibleinviewport.js rename to src/components/visibleinviewport.js diff --git a/src/bower_components/emby-webcomponents/youtubeplayer/plugin.js b/src/components/youtubeplayer/plugin.js similarity index 100% rename from src/bower_components/emby-webcomponents/youtubeplayer/plugin.js rename to src/components/youtubeplayer/plugin.js diff --git a/src/bower_components/emby-webcomponents/youtubeplayer/style.css b/src/components/youtubeplayer/style.css similarity index 100% rename from src/bower_components/emby-webcomponents/youtubeplayer/style.css rename to src/components/youtubeplayer/style.css diff --git a/src/scripts/site.js b/src/scripts/site.js index caae156ba5..3d3c986aeb 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -420,31 +420,31 @@ var AppInfo = {}; return self.ResizeObserver; }); } else { - define("ResizeObserver", ["bower_components/emby-webcomponents/resize-observer-polyfill/ResizeObserver"], returnFirstDependency); + define("ResizeObserver", ["components/resize-observer-polyfill/ResizeObserver"], returnFirstDependency); } } function initRequireWithBrowser(browser) { var bowerPath = getBowerPath(); var apiClientBowerPath = bowerPath + "/emby-apiclient"; - var embyWebComponentsBowerPath = bowerPath + "/emby-webcomponents"; + var componentsPath = "components"; if ("android" === self.appMode) { define("filesystem", ["cordova/filesystem"], returnFirstDependency); } else { - define("filesystem", [embyWebComponentsBowerPath + "/filesystem"], returnFirstDependency); + define("filesystem", [componentsPath + "/filesystem"], returnFirstDependency); } if (window.IntersectionObserver && !browser.edge) { - define("lazyLoader", [embyWebComponentsBowerPath + "/lazyloader/lazyloader-intersectionobserver"], returnFirstDependency); + define("lazyLoader", [componentsPath + "/lazyloader/lazyloader-intersectionobserver"], returnFirstDependency); } else { - define("lazyLoader", [embyWebComponentsBowerPath + "/lazyloader/lazyloader-scroll"], returnFirstDependency); + define("lazyLoader", [componentsPath + "/lazyloader/lazyloader-scroll"], returnFirstDependency); } if ("android" === self.appMode) { define("shell", ["cordova/shell"], returnFirstDependency); } else { - define("shell", [embyWebComponentsBowerPath + "/shell"], returnFirstDependency); + define("shell", [componentsPath + "/shell"], returnFirstDependency); } if ("cordova" === self.appMode || "android" === self.appMode) { @@ -454,8 +454,6 @@ var AppInfo = {}; define("apiclient", ["bower_components/emby-apiclient/apiclient"], returnFirstDependency); } - define("actionsheet", ["webActionSheet"], returnFirstDependency); - if ("registerElement" in document) { define("registerElement", []); } else if (browser.msie) { @@ -473,44 +471,40 @@ var AppInfo = {}; if ("cordova" === self.appMode && browser.iOSVersion && browser.iOSVersion < 11) { define("imageFetcher", ["cordova/imagestore"], returnFirstDependency); } else { - define("imageFetcher", [embyWebComponentsBowerPath + "/images/basicimagefetcher"], returnFirstDependency); + define("imageFetcher", [componentsPath + "/images/basicimagefetcher"], returnFirstDependency); } var preferNativeAlerts = browser.tv; - if (preferNativeAlerts && window.alert) { - define("alert", [embyWebComponentsBowerPath + "/alert/nativealert"], returnFirstDependency); - } else { - define("alert", [embyWebComponentsBowerPath + "/alert/alert"], returnFirstDependency); - } + define("alert", [componentsPath + "/alert"], returnFirstDependency); defineResizeObserver(); - define("dialog", [embyWebComponentsBowerPath + "/dialog/dialog"], returnFirstDependency); + define("dialog", [componentsPath + "/dialog/dialog"], returnFirstDependency); if (preferNativeAlerts && window.confirm) { - define("confirm", [embyWebComponentsBowerPath + "/confirm/nativeconfirm"], returnFirstDependency); + define("confirm", [componentsPath + "/confirm/nativeconfirm"], returnFirstDependency); } else { - define("confirm", [embyWebComponentsBowerPath + "/confirm/confirm"], returnFirstDependency); + define("confirm", [componentsPath + "/confirm/confirm"], returnFirstDependency); } if ((preferNativeAlerts || browser.xboxOne) && window.confirm) { - define("prompt", [embyWebComponentsBowerPath + "/prompt/nativeprompt"], returnFirstDependency); + define("prompt", [componentsPath + "/prompt/nativeprompt"], returnFirstDependency); } else { - define("prompt", [embyWebComponentsBowerPath + "/prompt/prompt"], returnFirstDependency); + define("prompt", [componentsPath + "/prompt/prompt"], returnFirstDependency); } if (browser.tizen || browser.operaTv || browser.chromecast || browser.orsay || browser.web0s || browser.ps4) { - define("loading", [embyWebComponentsBowerPath + "/loading/loading-legacy"], returnFirstDependency); + define("loading", [componentsPath + "/loading/loading-legacy"], returnFirstDependency); } else { - define("loading", [embyWebComponentsBowerPath + "/loading/loading-lite"], returnFirstDependency); + define("loading", [componentsPath + "/loading/loading-lite"], returnFirstDependency); } - define("multi-download", [embyWebComponentsBowerPath + "/multidownload"], returnFirstDependency); + define("multi-download", [componentsPath + "/multidownload"], returnFirstDependency); if ("android" === self.appMode) { define("fileDownloader", ["cordova/filedownloader"], returnFirstDependency); } else { - define("fileDownloader", [embyWebComponentsBowerPath + "/filedownloader"], returnFirstDependency); + define("fileDownloader", [componentsPath + "/filedownloader"], returnFirstDependency); } define("localassetmanager", [apiClientBowerPath + "/localassetmanager"], returnFirstDependency); @@ -1137,13 +1131,13 @@ var AppInfo = {}; function loadPlugins(externalPlugins, appHost, browser, shell) { console.log("Loading installed plugins"); var list = [ - "bower_components/emby-webcomponents/playback/playbackvalidation", - "bower_components/emby-webcomponents/playback/playaccessvalidation", - "bower_components/emby-webcomponents/playback/experimentalwarnings", - "bower_components/emby-webcomponents/htmlaudioplayer/plugin", - "bower_components/emby-webcomponents/htmlvideoplayer/plugin", - "bower_components/emby-webcomponents/photoplayer/plugin", - "bower_components/emby-webcomponents/youtubeplayer/plugin" + "components/playback/playbackvalidation", + "components/playback/playaccessvalidation", + "components/playback/experimentalwarnings", + "components/htmlaudioplayer/plugin", + "components/htmlvideoplayer/plugin", + "components/photoplayer/plugin", + "components/youtubeplayer/plugin" ]; if ("cordova" === self.appMode) { @@ -1155,10 +1149,10 @@ var AppInfo = {}; } if (appHost.supports("remotecontrol")) { - list.push("bower_components/emby-webcomponents/sessionplayer"); + list.push("components/sessionplayer"); if (browser.chrome || browser.opera) { - list.push("bower_components/emby-webcomponents/chromecast/chromecastplayer"); + list.push("components/chromecast/chromecastplayer"); } } @@ -1183,19 +1177,6 @@ var AppInfo = {}; }); } - function enableNativeGamepadKeyMapping() { - if (window.navigator && "string" == typeof window.navigator.gamepadInputEmulation) { - window.navigator.gamepadInputEmulation = "keyboard"; - return true; - } - - return false; - } - - function isGamepadSupported() { - return "ongamepadconnected" in window || navigator.getGamepads || navigator.webkitGetGamepads; - } - function onAppReady(browser) { console.log("Begin onAppReady"); @@ -1225,11 +1206,7 @@ var AppInfo = {}; hashbang: true }); - if (!enableNativeGamepadKeyMapping() && isGamepadSupported()) { - require(["bower_components/emby-webcomponents/input/gamepadtokey"]); - } - - require(["bower_components/emby-webcomponents/thememediaplayer", "scripts/autobackdrops"]); + require(["components/thememediaplayer", "scripts/autobackdrops"]); if ("cordova" === self.appMode || "android" === self.appMode) { if (browser.android) { @@ -1240,29 +1217,29 @@ var AppInfo = {}; } if (!browser.tv && !browser.xboxOne && !browser.ps4) { - require(["bower_components/emby-webcomponents/nowplayingbar/nowplayingbar"]); + require(["components/nowplayingbar/nowplayingbar"]); } if (appHost.supports("remotecontrol")) { - require(["playerSelectionMenu", "bower_components/emby-webcomponents/playback/remotecontrolautoplay"]); + require(["playerSelectionMenu", "components/playback/remotecontrolautoplay"]); } - if (!(appHost.supports("physicalvolumecontrol") && !browser.touch || browser.edge)) { - require(["bower_components/emby-webcomponents/playback/volumeosd"]); + if (!appHost.supports("physicalvolumecontrol") || browser.touch) { + require(["components/playback/volumeosd"]); } if (navigator.mediaSession) { require(["mediaSession"]); } - require(["apiInput", "mouseManager"]); + require(["apiInput"]); if (!browser.tv && !browser.xboxOne) { - require(["bower_components/emby-webcomponents/playback/playbackorientation"]); + require(["components/playback/playbackorientation"]); registerServiceWorker(); if (window.Notification) { - require(["bower_components/emby-webcomponents/notifications/notifications"]); + require(["components/notifications/notifications"]); } } @@ -1316,8 +1293,7 @@ var AppInfo = {}; } if (!window.Promise || browser.web0s) { - initialDependencies.push(); - require(["bower_components/emby-webcomponents/native-promise-only/lib/npo.src"], init); + require(["components/native-promise-only/lib/npo.src"], init); } else { init(); } @@ -1329,11 +1305,11 @@ var AppInfo = {}; var urlArgs = "v=" + (window.dashboardVersion || new Date().getDate()); var bowerPath = getBowerPath(); var apiClientBowerPath = bowerPath + "/emby-apiclient"; - var embyWebComponentsBowerPath = bowerPath + "/emby-webcomponents"; + var componentsPath = "components"; var paths = { velocity: bowerPath + "/velocity/velocity.min", vibrant: bowerPath + "/vibrant/dist/vibrant", - staticBackdrops: embyWebComponentsBowerPath + "/staticbackdrops", + staticBackdrops: componentsPath + "/staticbackdrops", ironCardList: "components/ironcardlist/ironcardlist", scrollThreshold: "components/scrollthreshold", playlisteditor: "components/playlisteditor/playlisteditor", @@ -1349,115 +1325,114 @@ var AppInfo = {}; events: apiClientBowerPath + "/events", credentialprovider: apiClientBowerPath + "/credentials", connectionManagerFactory: bowerPath + "/emby-apiclient/connectionmanager", - visibleinviewport: embyWebComponentsBowerPath + "/visibleinviewport", - browserdeviceprofile: embyWebComponentsBowerPath + "/browserdeviceprofile", - browser: embyWebComponentsBowerPath + "/browser", - inputManager: embyWebComponentsBowerPath + "/inputmanager", - qualityoptions: embyWebComponentsBowerPath + "/qualityoptions", + visibleinviewport: componentsPath + "/visibleinviewport", + browserdeviceprofile: componentsPath + "/browserdeviceprofile", + browser: componentsPath + "/browser", + inputManager: componentsPath + "/inputmanager", + qualityoptions: componentsPath + "/qualityoptions", hammer: bowerPath + "/hammerjs/hammer.min", - pageJs: embyWebComponentsBowerPath + "/pagejs/page", - focusManager: embyWebComponentsBowerPath + "/focusmanager", - datetime: embyWebComponentsBowerPath + "/datetime", - globalize: embyWebComponentsBowerPath + "/globalize", - itemHelper: embyWebComponentsBowerPath + "/itemhelper", - itemShortcuts: embyWebComponentsBowerPath + "/shortcuts", - playQueueManager: embyWebComponentsBowerPath + "/playback/playqueuemanager", - autoPlayDetect: embyWebComponentsBowerPath + "/playback/autoplaydetect", - nowPlayingHelper: embyWebComponentsBowerPath + "/playback/nowplayinghelper", - pluginManager: embyWebComponentsBowerPath + "/pluginmanager", - packageManager: embyWebComponentsBowerPath + "/packagemanager" + pageJs: componentsPath + "/pagejs/page", + focusManager: componentsPath + "/focusmanager", + datetime: componentsPath + "/datetime", + globalize: componentsPath + "/globalize", + itemHelper: componentsPath + "/itemhelper", + itemShortcuts: componentsPath + "/shortcuts", + playQueueManager: componentsPath + "/playback/playqueuemanager", + autoPlayDetect: componentsPath + "/playback/autoplaydetect", + nowPlayingHelper: componentsPath + "/playback/nowplayinghelper", + pluginManager: componentsPath + "/pluginmanager", + packageManager: componentsPath + "/packagemanager" }; paths.hlsjs = bowerPath + "/hlsjs/dist/hls.min"; - paths.flvjs = embyWebComponentsBowerPath + "/flvjs/flv.min"; - paths.shaka = embyWebComponentsBowerPath + "/shaka/shaka-player.compiled"; - define("chromecastHelper", [embyWebComponentsBowerPath + "/chromecast/chromecasthelpers"], returnFirstDependency); - define("mediaSession", [embyWebComponentsBowerPath + "/playback/mediasession"], returnFirstDependency); - define("webActionSheet", [embyWebComponentsBowerPath + "/actionsheet/actionsheet"], returnFirstDependency); + paths.flvjs = componentsPath + "/flvjs/flv.min"; + paths.shaka = componentsPath + "/shaka/shaka-player.compiled"; + define("chromecastHelper", [componentsPath + "/chromecast/chromecasthelpers"], returnFirstDependency); + define("mediaSession", [componentsPath + "/playback/mediasession"], returnFirstDependency); + define("actionsheet", [componentsPath + "/actionsheet/actionsheet"], returnFirstDependency); define("libjass", [bowerPath + "/libjass/libjass.min", "css!" + bowerPath + "/libjass/libjass"], returnFirstDependency); define("tunerPicker", ["components/tunerpicker"], returnFirstDependency); - define("mainTabsManager", [embyWebComponentsBowerPath + "/maintabsmanager"], returnFirstDependency); - define("imageLoader", [embyWebComponentsBowerPath + "/images/imagehelper"], returnFirstDependency); - define("appFooter", [embyWebComponentsBowerPath + "/appfooter/appfooter"], returnFirstDependency); + define("mainTabsManager", [componentsPath + "/maintabsmanager"], returnFirstDependency); + define("imageLoader", [componentsPath + "/images/imagehelper"], returnFirstDependency); + define("appFooter", [componentsPath + "/appfooter/appfooter"], returnFirstDependency); define("directorybrowser", ["components/directorybrowser/directorybrowser"], returnFirstDependency); - define("metadataEditor", [embyWebComponentsBowerPath + "/metadataeditor/metadataeditor"], returnFirstDependency); - define("personEditor", [embyWebComponentsBowerPath + "/metadataeditor/personeditor"], returnFirstDependency); - define("playerSelectionMenu", [embyWebComponentsBowerPath + "/playback/playerselection"], returnFirstDependency); - define("playerSettingsMenu", [embyWebComponentsBowerPath + "/playback/playersettingsmenu"], returnFirstDependency); - define("playMethodHelper", [embyWebComponentsBowerPath + "/playback/playmethodhelper"], returnFirstDependency); - define("brightnessOsd", [embyWebComponentsBowerPath + "/playback/brightnessosd"], returnFirstDependency); + define("metadataEditor", [componentsPath + "/metadataeditor/metadataeditor"], returnFirstDependency); + define("personEditor", [componentsPath + "/metadataeditor/personeditor"], returnFirstDependency); + define("playerSelectionMenu", [componentsPath + "/playback/playerselection"], returnFirstDependency); + define("playerSettingsMenu", [componentsPath + "/playback/playersettingsmenu"], returnFirstDependency); + define("playMethodHelper", [componentsPath + "/playback/playmethodhelper"], returnFirstDependency); + define("brightnessOsd", [componentsPath + "/playback/brightnessosd"], returnFirstDependency); define("libraryMenu", ["scripts/librarymenu"], returnFirstDependency); - define("emby-collapse", [embyWebComponentsBowerPath + "/emby-collapse/emby-collapse"], returnFirstDependency); - define("emby-button", [embyWebComponentsBowerPath + "/emby-button/emby-button"], returnFirstDependency); + define("emby-collapse", [componentsPath + "/emby-collapse/emby-collapse"], returnFirstDependency); + define("emby-button", [componentsPath + "/emby-button/emby-button"], returnFirstDependency); define("emby-linkbutton", ["emby-button"], returnFirstDependency); - define("emby-itemscontainer", [embyWebComponentsBowerPath + "/emby-itemscontainer/emby-itemscontainer"], returnFirstDependency); - define("alphaNumericShortcuts", [embyWebComponentsBowerPath + "/alphanumericshortcuts/alphanumericshortcuts"], returnFirstDependency); - define("emby-scroller", [embyWebComponentsBowerPath + "/emby-scroller/emby-scroller"], returnFirstDependency); - define("emby-tabs", [embyWebComponentsBowerPath + "/emby-tabs/emby-tabs"], returnFirstDependency); - define("emby-scrollbuttons", [embyWebComponentsBowerPath + "/emby-scrollbuttons/emby-scrollbuttons"], returnFirstDependency); - define("emby-progressring", [embyWebComponentsBowerPath + "/emby-progressring/emby-progressring"], returnFirstDependency); - define("emby-itemrefreshindicator", [embyWebComponentsBowerPath + "/emby-itemrefreshindicator/emby-itemrefreshindicator"], returnFirstDependency); - define("multiSelect", [embyWebComponentsBowerPath + "/multiselect/multiselect"], returnFirstDependency); - define("alphaPicker", [embyWebComponentsBowerPath + "/alphapicker/alphapicker"], returnFirstDependency); - define("paper-icon-button-light", [embyWebComponentsBowerPath + "/emby-button/paper-icon-button-light"], returnFirstDependency); - define("tabbedView", [embyWebComponentsBowerPath + "/tabbedview/tabbedview"], returnFirstDependency); - define("itemsTab", [embyWebComponentsBowerPath + "/tabbedview/itemstab"], returnFirstDependency); - define("emby-input", [embyWebComponentsBowerPath + "/emby-input/emby-input"], returnFirstDependency); - define("emby-select", [embyWebComponentsBowerPath + "/emby-select/emby-select"], returnFirstDependency); - define("emby-slider", [embyWebComponentsBowerPath + "/emby-slider/emby-slider"], returnFirstDependency); - define("emby-checkbox", [embyWebComponentsBowerPath + "/emby-checkbox/emby-checkbox"], returnFirstDependency); - define("emby-toggle", [embyWebComponentsBowerPath + "/emby-toggle/emby-toggle"], returnFirstDependency); - define("emby-radio", [embyWebComponentsBowerPath + "/emby-radio/emby-radio"], returnFirstDependency); - define("emby-textarea", [embyWebComponentsBowerPath + "/emby-textarea/emby-textarea"], returnFirstDependency); - define("collectionEditor", [embyWebComponentsBowerPath + "/collectioneditor/collectioneditor"], returnFirstDependency); - define("serverRestartDialog", [embyWebComponentsBowerPath + "/serverrestartdialog/serverrestartdialog"], returnFirstDependency); - define("playlistEditor", [embyWebComponentsBowerPath + "/playlisteditor/playlisteditor"], returnFirstDependency); - define("recordingCreator", [embyWebComponentsBowerPath + "/recordingcreator/recordingcreator"], returnFirstDependency); - define("recordingEditor", [embyWebComponentsBowerPath + "/recordingcreator/recordingeditor"], returnFirstDependency); - define("seriesRecordingEditor", [embyWebComponentsBowerPath + "/recordingcreator/seriesrecordingeditor"], returnFirstDependency); - define("recordingFields", [embyWebComponentsBowerPath + "/recordingcreator/recordingfields"], returnFirstDependency); - define("recordingButton", [embyWebComponentsBowerPath + "/recordingcreator/recordingbutton"], returnFirstDependency); - define("recordingHelper", [embyWebComponentsBowerPath + "/recordingcreator/recordinghelper"], returnFirstDependency); - define("subtitleEditor", [embyWebComponentsBowerPath + "/subtitleeditor/subtitleeditor"], returnFirstDependency); - define("itemIdentifier", [embyWebComponentsBowerPath + "/itemidentifier/itemidentifier"], returnFirstDependency); - define("mediaInfo", [embyWebComponentsBowerPath + "/mediainfo/mediainfo"], returnFirstDependency); - define("itemContextMenu", [embyWebComponentsBowerPath + "/itemcontextmenu"], returnFirstDependency); - define("imageEditor", [embyWebComponentsBowerPath + "/imageeditor/imageeditor"], returnFirstDependency); - define("imageDownloader", [embyWebComponentsBowerPath + "/imagedownloader/imagedownloader"], returnFirstDependency); - define("dom", [embyWebComponentsBowerPath + "/dom"], returnFirstDependency); - define("playerStats", [embyWebComponentsBowerPath + "/playerstats/playerstats"], returnFirstDependency); - define("searchFields", [embyWebComponentsBowerPath + "/search/searchfields"], returnFirstDependency); - define("searchResults", [embyWebComponentsBowerPath + "/search/searchresults"], returnFirstDependency); - define("upNextDialog", [embyWebComponentsBowerPath + "/upnextdialog/upnextdialog"], returnFirstDependency); - define("fullscreen-doubleclick", [embyWebComponentsBowerPath + "/fullscreen/fullscreen-dc"], returnFirstDependency); - define("fullscreenManager", [embyWebComponentsBowerPath + "/fullscreen/fullscreenmanager", "events"], returnFirstDependency); - define("headroom", [embyWebComponentsBowerPath + "/headroom/headroom"], returnFirstDependency); - define("subtitleAppearanceHelper", [embyWebComponentsBowerPath + "/subtitlesettings/subtitleappearancehelper"], returnFirstDependency); - define("subtitleSettings", [embyWebComponentsBowerPath + "/subtitlesettings/subtitlesettings"], returnFirstDependency); - define("displaySettings", [embyWebComponentsBowerPath + "/displaysettings/displaysettings"], returnFirstDependency); - define("playbackSettings", [embyWebComponentsBowerPath + "/playbacksettings/playbacksettings"], returnFirstDependency); - define("homescreenSettings", [embyWebComponentsBowerPath + "/homescreensettings/homescreensettings"], returnFirstDependency); - define("homescreenSettingsDialog", [embyWebComponentsBowerPath + "/homescreensettings/homescreensettingsdialog"], returnFirstDependency); - define("playbackManager", [embyWebComponentsBowerPath + "/playback/playbackmanager"], getPlaybackManager); - define("layoutManager", [embyWebComponentsBowerPath + "/layoutmanager", "apphost"], getLayoutManager); - define("homeSections", [embyWebComponentsBowerPath + "/homesections/homesections"], returnFirstDependency); - define("playMenu", [embyWebComponentsBowerPath + "/playmenu"], returnFirstDependency); - define("refreshDialog", [embyWebComponentsBowerPath + "/refreshdialog/refreshdialog"], returnFirstDependency); - define("backdrop", [embyWebComponentsBowerPath + "/backdrop/backdrop"], returnFirstDependency); - define("fetchHelper", [embyWebComponentsBowerPath + "/fetchhelper"], returnFirstDependency); - define("roundCardStyle", ["cardStyle", "css!" + embyWebComponentsBowerPath + "/cardbuilder/roundcard"], returnFirstDependency); - define("cardStyle", ["css!" + embyWebComponentsBowerPath + "/cardbuilder/card"], returnFirstDependency); - define("cardBuilder", [embyWebComponentsBowerPath + "/cardbuilder/cardbuilder"], returnFirstDependency); - define("peoplecardbuilder", [embyWebComponentsBowerPath + "/cardbuilder/peoplecardbuilder"], returnFirstDependency); - define("chaptercardbuilder", [embyWebComponentsBowerPath + "/cardbuilder/chaptercardbuilder"], returnFirstDependency); - define("mouseManager", [embyWebComponentsBowerPath + "/input/mouse"], returnFirstDependency); - define("flexStyles", ["css!" + embyWebComponentsBowerPath + "/flexstyles"], returnFirstDependency); - define("deleteHelper", [embyWebComponentsBowerPath + "/deletehelper"], returnFirstDependency); - define("tvguide", [embyWebComponentsBowerPath + "/guide/guide"], returnFirstDependency); - define("programStyles", ["css!" + embyWebComponentsBowerPath + "/guide/programs"], returnFirstDependency); - define("guide-settings-dialog", [embyWebComponentsBowerPath + "/guide/guide-settings"], returnFirstDependency); - define("loadingDialog", [embyWebComponentsBowerPath + "/loadingdialog/loadingdialog"], returnFirstDependency); - define("syncDialog", [embyWebComponentsBowerPath + "/sync/sync"], returnFirstDependency); - define("viewManager", [embyWebComponentsBowerPath + "/viewmanager/viewmanager"], function (viewManager) { + define("emby-itemscontainer", [componentsPath + "/emby-itemscontainer/emby-itemscontainer"], returnFirstDependency); + define("alphaNumericShortcuts", [componentsPath + "/alphanumericshortcuts/alphanumericshortcuts"], returnFirstDependency); + define("emby-scroller", [componentsPath + "/emby-scroller/emby-scroller"], returnFirstDependency); + define("emby-tabs", [componentsPath + "/emby-tabs/emby-tabs"], returnFirstDependency); + define("emby-scrollbuttons", [componentsPath + "/emby-scrollbuttons/emby-scrollbuttons"], returnFirstDependency); + define("emby-progressring", [componentsPath + "/emby-progressring/emby-progressring"], returnFirstDependency); + define("emby-itemrefreshindicator", [componentsPath + "/emby-itemrefreshindicator/emby-itemrefreshindicator"], returnFirstDependency); + define("multiSelect", [componentsPath + "/multiselect/multiselect"], returnFirstDependency); + define("alphaPicker", [componentsPath + "/alphapicker/alphapicker"], returnFirstDependency); + define("paper-icon-button-light", [componentsPath + "/emby-button/paper-icon-button-light"], returnFirstDependency); + define("tabbedView", [componentsPath + "/tabbedview/tabbedview"], returnFirstDependency); + define("itemsTab", [componentsPath + "/tabbedview/itemstab"], returnFirstDependency); + define("emby-input", [componentsPath + "/emby-input/emby-input"], returnFirstDependency); + define("emby-select", [componentsPath + "/emby-select/emby-select"], returnFirstDependency); + define("emby-slider", [componentsPath + "/emby-slider/emby-slider"], returnFirstDependency); + define("emby-checkbox", [componentsPath + "/emby-checkbox/emby-checkbox"], returnFirstDependency); + define("emby-toggle", [componentsPath + "/emby-toggle/emby-toggle"], returnFirstDependency); + define("emby-radio", [componentsPath + "/emby-radio/emby-radio"], returnFirstDependency); + define("emby-textarea", [componentsPath + "/emby-textarea/emby-textarea"], returnFirstDependency); + define("collectionEditor", [componentsPath + "/collectioneditor/collectioneditor"], returnFirstDependency); + define("serverRestartDialog", [componentsPath + "/serverrestartdialog/serverrestartdialog"], returnFirstDependency); + define("playlistEditor", [componentsPath + "/playlisteditor/playlisteditor"], returnFirstDependency); + define("recordingCreator", [componentsPath + "/recordingcreator/recordingcreator"], returnFirstDependency); + define("recordingEditor", [componentsPath + "/recordingcreator/recordingeditor"], returnFirstDependency); + define("seriesRecordingEditor", [componentsPath + "/recordingcreator/seriesrecordingeditor"], returnFirstDependency); + define("recordingFields", [componentsPath + "/recordingcreator/recordingfields"], returnFirstDependency); + define("recordingButton", [componentsPath + "/recordingcreator/recordingbutton"], returnFirstDependency); + define("recordingHelper", [componentsPath + "/recordingcreator/recordinghelper"], returnFirstDependency); + define("subtitleEditor", [componentsPath + "/subtitleeditor/subtitleeditor"], returnFirstDependency); + define("itemIdentifier", [componentsPath + "/itemidentifier/itemidentifier"], returnFirstDependency); + define("mediaInfo", [componentsPath + "/mediainfo/mediainfo"], returnFirstDependency); + define("itemContextMenu", [componentsPath + "/itemcontextmenu"], returnFirstDependency); + define("imageEditor", [componentsPath + "/imageeditor/imageeditor"], returnFirstDependency); + define("imageDownloader", [componentsPath + "/imagedownloader/imagedownloader"], returnFirstDependency); + define("dom", [componentsPath + "/dom"], returnFirstDependency); + define("playerStats", [componentsPath + "/playerstats/playerstats"], returnFirstDependency); + define("searchFields", [componentsPath + "/search/searchfields"], returnFirstDependency); + define("searchResults", [componentsPath + "/search/searchresults"], returnFirstDependency); + define("upNextDialog", [componentsPath + "/upnextdialog/upnextdialog"], returnFirstDependency); + define("fullscreen-doubleclick", [componentsPath + "/fullscreen/fullscreen-dc"], returnFirstDependency); + define("fullscreenManager", [componentsPath + "/fullscreen/fullscreenmanager", "events"], returnFirstDependency); + define("headroom", [componentsPath + "/headroom/headroom"], returnFirstDependency); + define("subtitleAppearanceHelper", [componentsPath + "/subtitlesettings/subtitleappearancehelper"], returnFirstDependency); + define("subtitleSettings", [componentsPath + "/subtitlesettings/subtitlesettings"], returnFirstDependency); + define("displaySettings", [componentsPath + "/displaysettings/displaysettings"], returnFirstDependency); + define("playbackSettings", [componentsPath + "/playbacksettings/playbacksettings"], returnFirstDependency); + define("homescreenSettings", [componentsPath + "/homescreensettings/homescreensettings"], returnFirstDependency); + define("homescreenSettingsDialog", [componentsPath + "/homescreensettings/homescreensettingsdialog"], returnFirstDependency); + define("playbackManager", [componentsPath + "/playback/playbackmanager"], getPlaybackManager); + define("layoutManager", [componentsPath + "/layoutmanager", "apphost"], getLayoutManager); + define("homeSections", [componentsPath + "/homesections/homesections"], returnFirstDependency); + define("playMenu", [componentsPath + "/playmenu"], returnFirstDependency); + define("refreshDialog", [componentsPath + "/refreshdialog/refreshdialog"], returnFirstDependency); + define("backdrop", [componentsPath + "/backdrop/backdrop"], returnFirstDependency); + define("fetchHelper", [componentsPath + "/fetchhelper"], returnFirstDependency); + define("roundCardStyle", ["cardStyle", "css!" + componentsPath + "/cardbuilder/roundcard"], returnFirstDependency); + define("cardStyle", ["css!" + componentsPath + "/cardbuilder/card"], returnFirstDependency); + define("cardBuilder", [componentsPath + "/cardbuilder/cardbuilder"], returnFirstDependency); + define("peoplecardbuilder", [componentsPath + "/cardbuilder/peoplecardbuilder"], returnFirstDependency); + define("chaptercardbuilder", [componentsPath + "/cardbuilder/chaptercardbuilder"], returnFirstDependency); + define("flexStyles", ["css!" + componentsPath + "/flexstyles"], returnFirstDependency); + define("deleteHelper", [componentsPath + "/deletehelper"], returnFirstDependency); + define("tvguide", [componentsPath + "/guide/guide"], returnFirstDependency); + define("programStyles", ["css!" + componentsPath + "/guide/programs"], returnFirstDependency); + define("guide-settings-dialog", [componentsPath + "/guide/guide-settings"], returnFirstDependency); + define("loadingDialog", [componentsPath + "/loadingdialog/loadingdialog"], returnFirstDependency); + define("syncDialog", [componentsPath + "/sync/sync"], returnFirstDependency); + define("viewManager", [componentsPath + "/viewmanager/viewmanager"], function (viewManager) { window.ViewManager = viewManager; viewManager.dispatchPageEvents(true); return viewManager; @@ -1474,8 +1449,8 @@ var AppInfo = {}; waitSeconds: 0, map: { "*": { - css: bowerPath + "/emby-webcomponents/require/requirecss", - text: bowerPath + "/emby-webcomponents/require/requiretext" + css: "components/require/requirecss", + text: "components/require/requiretext" } }, urlArgs: urlArgs, @@ -1485,25 +1460,25 @@ var AppInfo = {}; requirejs.onError = onRequireJsError; define("jstree", ["thirdparty/jstree/jstree", "css!thirdparty/jstree/themes/default/style.css"], returnFirstDependency); define("dashboardcss", ["css!css/dashboard"], returnFirstDependency); - define("slideshow", [embyWebComponentsBowerPath + "/slideshow/slideshow"], returnFirstDependency); + define("slideshow", [componentsPath + "/slideshow/slideshow"], returnFirstDependency); define("fetch", [bowerPath + "/fetch/fetch"], returnFirstDependency); - define("raf", [embyWebComponentsBowerPath + "/polyfills/raf"], returnFirstDependency); - define("functionbind", [embyWebComponentsBowerPath + "/polyfills/bind"], returnFirstDependency); - define("arraypolyfills", [embyWebComponentsBowerPath + "/polyfills/array"], returnFirstDependency); - define("objectassign", [embyWebComponentsBowerPath + "/polyfills/objectassign"], returnFirstDependency); - define("clearButtonStyle", ["css!" + embyWebComponentsBowerPath + "/clearbutton"], returnFirstDependency); - define("userdataButtons", [embyWebComponentsBowerPath + "/userdatabuttons/userdatabuttons"], returnFirstDependency); - define("emby-playstatebutton", [embyWebComponentsBowerPath + "/userdatabuttons/emby-playstatebutton"], returnFirstDependency); - define("emby-ratingbutton", [embyWebComponentsBowerPath + "/userdatabuttons/emby-ratingbutton"], returnFirstDependency); - define("emby-downloadbutton", [embyWebComponentsBowerPath + "/sync/emby-downloadbutton"], returnFirstDependency); - define("listView", [embyWebComponentsBowerPath + "/listview/listview"], returnFirstDependency); - define("listViewStyle", ["css!" + embyWebComponentsBowerPath + "/listview/listview"], returnFirstDependency); - define("formDialogStyle", ["css!" + embyWebComponentsBowerPath + "/formdialog"], returnFirstDependency); - define("indicators", [embyWebComponentsBowerPath + "/indicators/indicators"], returnFirstDependency); - define("viewSettings", [embyWebComponentsBowerPath + "/viewsettings/viewsettings"], returnFirstDependency); - define("filterMenu", [embyWebComponentsBowerPath + "/filtermenu/filtermenu"], returnFirstDependency); - define("sortMenu", [embyWebComponentsBowerPath + "/sortmenu/sortmenu"], returnFirstDependency); - define("registrationServices", [embyWebComponentsBowerPath + "/registrationservices/registrationservices"], returnFirstDependency); + define("raf", [componentsPath + "/polyfills/raf"], returnFirstDependency); + define("functionbind", [componentsPath + "/polyfills/bind"], returnFirstDependency); + define("arraypolyfills", [componentsPath + "/polyfills/array"], returnFirstDependency); + define("objectassign", [componentsPath + "/polyfills/objectassign"], returnFirstDependency); + define("clearButtonStyle", ["css!" + componentsPath + "/clearbutton"], returnFirstDependency); + define("userdataButtons", [componentsPath + "/userdatabuttons/userdatabuttons"], returnFirstDependency); + define("emby-playstatebutton", [componentsPath + "/userdatabuttons/emby-playstatebutton"], returnFirstDependency); + define("emby-ratingbutton", [componentsPath + "/userdatabuttons/emby-ratingbutton"], returnFirstDependency); + define("emby-downloadbutton", [componentsPath + "/sync/emby-downloadbutton"], returnFirstDependency); + define("listView", [componentsPath + "/listview/listview"], returnFirstDependency); + define("listViewStyle", ["css!" + componentsPath + "/listview/listview"], returnFirstDependency); + define("formDialogStyle", ["css!" + componentsPath + "/formdialog"], returnFirstDependency); + define("indicators", [componentsPath + "/indicators/indicators"], returnFirstDependency); + define("viewSettings", [componentsPath + "/viewsettings/viewsettings"], returnFirstDependency); + define("filterMenu", [componentsPath + "/filtermenu/filtermenu"], returnFirstDependency); + define("sortMenu", [componentsPath + "/sortmenu/sortmenu"], returnFirstDependency); + define("registrationServices", [componentsPath + "/registrationservices/registrationservices"], returnFirstDependency); if ("cordova" === self.appMode || "android" === self.appMode) { define("fileupload", ["cordova/fileupload"], returnFirstDependency); @@ -1515,26 +1490,26 @@ var AppInfo = {}; define("serversync", [apiClientBowerPath + "/sync/serversync"], returnFirstDependency); define("multiserversync", [apiClientBowerPath + "/sync/multiserversync"], returnFirstDependency); define("mediasync", [apiClientBowerPath + "/sync/mediasync"], returnFirstDependency); - define("idb", [embyWebComponentsBowerPath + "/idb"], returnFirstDependency); - define("sanitizefilename", [embyWebComponentsBowerPath + "/sanitizefilename"], returnFirstDependency); + define("idb", [componentsPath + "/idb"], returnFirstDependency); + define("sanitizefilename", [componentsPath + "/sanitizefilename"], returnFirstDependency); define("itemrepository", [apiClientBowerPath + "/sync/itemrepository"], returnFirstDependency); define("useractionrepository", [apiClientBowerPath + "/sync/useractionrepository"], returnFirstDependency); define("swiper", [bowerPath + "/Swiper/dist/js/swiper.min", "css!" + bowerPath + "/Swiper/dist/css/swiper.min"], returnFirstDependency); - define("scroller", [embyWebComponentsBowerPath + "/scroller/smoothscroller"], returnFirstDependency); - define("toast", [embyWebComponentsBowerPath + "/toast/toast"], returnFirstDependency); - define("scrollHelper", [embyWebComponentsBowerPath + "/scrollhelper"], returnFirstDependency); - define("touchHelper", [embyWebComponentsBowerPath + "/touchhelper"], returnFirstDependency); - define("appSettings", [embyWebComponentsBowerPath + "/appsettings"], returnFirstDependency); - define("userSettings", [embyWebComponentsBowerPath + "/usersettings/usersettings"], returnFirstDependency); - define("userSettingsBuilder", [embyWebComponentsBowerPath + "/usersettings/usersettingsbuilder", "layoutManager", "browser"], getSettingsBuilder); - define("material-icons", ["css!" + embyWebComponentsBowerPath + "/fonts/material-icons/style"], returnFirstDependency); - define("systemFontsCss", ["css!" + embyWebComponentsBowerPath + "/fonts/fonts"], returnFirstDependency); - define("systemFontsSizedCss", ["css!" + embyWebComponentsBowerPath + "/fonts/fonts.sized"], returnFirstDependency); - define("scrollStyles", ["css!" + embyWebComponentsBowerPath + "/scrollstyles"], returnFirstDependency); - define("imageUploader", [embyWebComponentsBowerPath + "/imageuploader/imageuploader"], returnFirstDependency); + define("scroller", [componentsPath + "/scroller/smoothscroller"], returnFirstDependency); + define("toast", [componentsPath + "/toast/toast"], returnFirstDependency); + define("scrollHelper", [componentsPath + "/scrollhelper"], returnFirstDependency); + define("touchHelper", [componentsPath + "/touchhelper"], returnFirstDependency); + define("appSettings", [componentsPath + "/appsettings"], returnFirstDependency); + define("userSettings", [componentsPath + "/usersettings/usersettings"], returnFirstDependency); + define("userSettingsBuilder", [componentsPath + "/usersettings/usersettingsbuilder", "layoutManager", "browser"], getSettingsBuilder); + define("material-icons", ["css!" + componentsPath + "/fonts/material-icons/style"], returnFirstDependency); + define("systemFontsCss", ["css!" + componentsPath + "/fonts/fonts"], returnFirstDependency); + define("systemFontsSizedCss", ["css!" + componentsPath + "/fonts/fonts.sized"], returnFirstDependency); + define("scrollStyles", ["css!" + componentsPath + "/scrollstyles"], returnFirstDependency); + define("imageUploader", [componentsPath + "/imageuploader/imageuploader"], returnFirstDependency); define("navdrawer", ["components/navdrawer/navdrawer"], returnFirstDependency); - define("htmlMediaHelper", [embyWebComponentsBowerPath + "/htmlvideoplayer/htmlmediahelper"], returnFirstDependency); - define("viewcontainer", ["components/viewcontainer-lite", "css!" + embyWebComponentsBowerPath + "/viewmanager/viewcontainer-lite"], returnFirstDependency); + define("htmlMediaHelper", [componentsPath + "/htmlvideoplayer/htmlmediahelper"], returnFirstDependency); + define("viewcontainer", ["components/viewcontainer-lite", "css!" + componentsPath + "/viewmanager/viewcontainer-lite"], returnFirstDependency); define("queryString", [bowerPath + "/query-string/index"], function () { return queryString; }); @@ -1546,13 +1521,12 @@ var AppInfo = {}; return jQuery; }); define("fnchecked", ["legacy/fnchecked"], returnFirstDependency); - define("dialogHelper", [embyWebComponentsBowerPath + "/dialoghelper/dialoghelper"], returnFirstDependency); + define("dialogHelper", [componentsPath + "/dialoghelper/dialoghelper"], returnFirstDependency); define("inputmanager", ["inputManager"], returnFirstDependency); - define("apiInput", [embyWebComponentsBowerPath + "/input/api"], returnFirstDependency); - define("serverNotifications", ["apiInput"], returnFirstDependency); + define("serverNotifications", [componentsPath + "/apiInput/apiInput"], returnFirstDependency); define("headroom-window", ["headroom"], createWindowHeadroom); define("appFooter-shared", ["appFooter"], createSharedAppFooter); - define("skinManager", [embyWebComponentsBowerPath + "/skinmanager"], function (skinManager) { + define("skinManager", [componentsPath + "/skinmanager"], function (skinManager) { skinManager.loadUserSkin = function (options) { require(["appRouter"], function (appRouter) { options = options || {}; @@ -1617,7 +1591,7 @@ var AppInfo = {}; return window.ApiClient; }; }); - define("appRouter", [embyWebComponentsBowerPath + "/router", "itemHelper"], function (appRouter, itemHelper) { + define("appRouter", [componentsPath + "/router", "itemHelper"], function (appRouter, itemHelper) { function showItem(item, serverId, options) { if ("string" == typeof item) { require(["connectionManager"], function (connectionManager) { diff --git a/src/serviceworker.js b/src/serviceworker.js index fba101b81f..01cf8d63ef 100644 --- a/src/serviceworker.js +++ b/src/serviceworker.js @@ -1 +1 @@ -importScripts("bower_components/emby-webcomponents/serviceworker/notifications.js", "bower_components/emby-webcomponents/serviceworker/sync.js"); \ No newline at end of file +importScripts("components/serviceworker/notifications.js", "components/serviceworker/sync.js"); \ No newline at end of file