From 154f6b5fd8cb6b5f6848a3618d4d1a92ce45d895 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 16 Mar 2016 01:33:31 -0400 Subject: [PATCH] enable unified routing --- dashboard-ui/about.html | 100 +- dashboard-ui/addplugin.html | 206 ++- dashboard-ui/advanced.html | 176 +-- dashboard-ui/appservices.html | 72 +- dashboard-ui/autoorganizelog.html | 89 +- dashboard-ui/autoorganizesmart.html | 32 +- dashboard-ui/autoorganizetv.html | 338 ++-- .../emby-webcomponents/.bower.json | 8 +- .../emby-webcomponents/router.js | 19 +- .../emby-webcomponents/viewmanager.js | 4 +- .../bower_components/iron-icon/.bower.json | 6 +- .../iron-selector/.bower.json | 4 +- dashboard-ui/channelitems.html | 20 +- dashboard-ui/channels.html | 66 +- dashboard-ui/channelsettings.html | 74 +- dashboard-ui/cinemamodeconfiguration.html | 166 +- dashboard-ui/collections.html | 32 +- dashboard-ui/components/viewcontainer-lite.js | 28 +- dashboard-ui/connectlogin.html | 182 ++- dashboard-ui/dashboard.html | 220 ++- dashboard-ui/dashboardgeneral.html | 120 +- dashboard-ui/dashboardhosting.html | 122 +- dashboard-ui/device.html | 70 +- dashboard-ui/devices.html | 28 +- dashboard-ui/devicesupload.html | 86 +- dashboard-ui/dlnaprofile.html | 1384 ++++++++--------- dashboard-ui/dlnaprofiles.html | 68 +- dashboard-ui/dlnaserversettings.html | 94 +- dashboard-ui/dlnasettings.html | 76 +- dashboard-ui/edititemmetadata.html | 26 +- dashboard-ui/encodingsettings.html | 144 +- dashboard-ui/favorites.html | 16 +- dashboard-ui/forgotpassword.html | 50 +- dashboard-ui/forgotpasswordpin.html | 48 +- dashboard-ui/gamegenres.html | 40 +- dashboard-ui/games.html | 46 +- dashboard-ui/gamesrecommended.html | 42 +- dashboard-ui/gamestudios.html | 38 +- dashboard-ui/gamesystems.html | 32 +- dashboard-ui/home.html | 16 +- dashboard-ui/index.html | 78 +- dashboard-ui/itemdetails.html | 390 +++-- dashboard-ui/itemlist.html | 30 +- dashboard-ui/library.html | 36 +- dashboard-ui/librarypathmapping.html | 88 +- dashboard-ui/librarysettings.html | 124 +- dashboard-ui/livetv.html | 232 ++- dashboard-ui/livetvguideprovider.html | 28 +- dashboard-ui/livetvitems.html | 22 +- dashboard-ui/livetvrecordinglist.html | 26 +- dashboard-ui/livetvseriestimer.html | 124 +- dashboard-ui/livetvsettings.html | 168 +- dashboard-ui/livetvstatus.html | 88 +- dashboard-ui/livetvtimer.html | 102 +- .../livetvtunerprovider-hdhomerun.html | 74 +- dashboard-ui/livetvtunerprovider-m3u.html | 56 +- dashboard-ui/livetvtunerprovider-satip.html | 138 +- dashboard-ui/log.html | 32 +- dashboard-ui/login.html | 88 +- dashboard-ui/metadata.html | 84 +- dashboard-ui/metadataadvanced.html | 264 ++-- dashboard-ui/metadataimages.html | 158 +- dashboard-ui/metadatanfo.html | 120 +- dashboard-ui/metadatasubtitles.html | 122 +- dashboard-ui/movies.html | 236 ++- dashboard-ui/music.html | 252 ++- dashboard-ui/mypreferencesdisplay.html | 216 ++- dashboard-ui/mypreferenceshome.html | 269 ++-- dashboard-ui/mypreferenceslanguages.html | 175 +-- dashboard-ui/mypreferencesmenu.html | 163 +- dashboard-ui/myprofile.html | 204 ++- dashboard-ui/mysync.html | 50 +- dashboard-ui/mysyncjob.html | 26 +- dashboard-ui/mysyncsettings.html | 73 +- dashboard-ui/notificationlist.html | 22 +- dashboard-ui/notificationsetting.html | 140 +- dashboard-ui/notificationsettings.html | 36 +- dashboard-ui/nowplaying.html | 248 ++- dashboard-ui/photos.html | 80 +- dashboard-ui/playbackconfiguration.html | 88 +- dashboard-ui/playlists.html | 28 +- dashboard-ui/plugincatalog.html | 86 +- dashboard-ui/plugins.html | 28 +- dashboard-ui/reports.html | 510 +++--- dashboard-ui/scheduledtask.html | 182 ++- dashboard-ui/scheduledtasks.html | 22 +- dashboard-ui/scripts/aboutpage.js | 17 +- dashboard-ui/scripts/connectlogin.js | 2 +- dashboard-ui/scripts/edititemmetadata.js | 10 +- dashboard-ui/scripts/editorsidebar.js | 12 +- dashboard-ui/scripts/indexpage.js | 10 +- dashboard-ui/scripts/itemdetailpage.js | 4 +- dashboard-ui/scripts/librarybrowser.js | 22 +- dashboard-ui/scripts/librarylist.js | 57 +- dashboard-ui/scripts/librarymenu.js | 33 +- dashboard-ui/scripts/loginpage.js | 2 +- dashboard-ui/scripts/remotecontrol.js | 4 +- dashboard-ui/scripts/search.js | 23 +- dashboard-ui/scripts/searchmenu.js | 26 +- dashboard-ui/scripts/sections.js | 23 +- dashboard-ui/scripts/selectserver.js | 2 +- dashboard-ui/scripts/site.js | 989 ++++++++++-- dashboard-ui/search.html | 20 +- dashboard-ui/secondaryitems.html | 22 +- dashboard-ui/selectserver.html | 70 +- dashboard-ui/serversecurity.html | 72 +- dashboard-ui/shared.html | 226 ++- dashboard-ui/streamingsettings.html | 54 +- dashboard-ui/support.html | 48 +- dashboard-ui/supporterkey.html | 184 ++- dashboard-ui/syncactivity.html | 62 +- dashboard-ui/syncjob.html | 36 +- dashboard-ui/syncsettings.html | 100 +- .../jquerymobile-1.4.5/jqm.checkbox.js | 8 +- .../jquerymobile-1.4.5/jqm.popup.js | 2 +- .../jquerymobile-1.4.5/jqm.widget.js | 98 +- .../jquery.mobile.custom.theme.css | 6 +- dashboard-ui/tv.html | 234 ++- dashboard-ui/useredit.html | 248 ++- dashboard-ui/userlibraryaccess.html | 140 +- dashboard-ui/usernew.html | 100 +- dashboard-ui/userparentalcontrol.html | 186 ++- dashboard-ui/userpassword.html | 142 +- dashboard-ui/userprofiles.html | 68 +- dashboard-ui/wizardagreement.html | 48 +- dashboard-ui/wizardfinish.html | 84 +- dashboard-ui/wizardlibrary.html | 44 +- dashboard-ui/wizardlivetvguide.html | 66 +- dashboard-ui/wizardlivetvtuner.html | 74 +- dashboard-ui/wizardservice.html | 36 +- dashboard-ui/wizardsettings.html | 70 +- dashboard-ui/wizardstart.html | 56 +- dashboard-ui/wizarduser.html | 66 +- 133 files changed, 6988 insertions(+), 7112 deletions(-) diff --git a/dashboard-ui/about.html b/dashboard-ui/about.html index ca60e5616b..b9d3a22b43 100644 --- a/dashboard-ui/about.html +++ b/dashboard-ui/about.html @@ -1,59 +1,51 @@ - - - - ${TitleSupport} - - -
- -
-
-
- -

- EMBY -

-
-
-
${VersionNumber}
-
-
${HeaderCredits}
-
-

- ${PismoMessage} -

-

- ${TangibleSoftwareMessage} -

- -
-

${PleaseSupportOtherProduces}

- -

- FanArt.tv -

-

- MusicBrainz -

-

- TheMovieDb.org -

-

- The Open Movie Database -

-

- TheTVDB.com -

-
+
+
+
+
+ +

+ EMBY +

+
+
+
${VersionNumber}
+
+
${HeaderCredits}
+
+

+ ${PismoMessage} +

+

+ ${TangibleSoftwareMessage} +

+ +
+

${PleaseSupportOtherProduces}

+ +

+ FanArt.tv +

+

+ MusicBrainz +

+

+ TheMovieDb.org +

+

+ The Open Movie Database +

+

+ TheTVDB.com +

+
+
- - +
\ No newline at end of file diff --git a/dashboard-ui/addplugin.html b/dashboard-ui/addplugin.html index ed997782fd..5236fdb0e3 100644 --- a/dashboard-ui/addplugin.html +++ b/dashboard-ui/addplugin.html @@ -1,130 +1,122 @@ - - - - ${TitlePlugins} - - -
+
-
-
- - - +
+
+ + + - + -
+
-

-

-

+

+

+

-

+

-
-

${HeaderInstall}

+
+

${HeaderInstall}

-
-
-

-

- - -

+
+ +

+

+ + +

-

- -

-

- +

+ +

+

+ -
+
-
-
-

${HeaderReviews}

-
-
-
-
-
+
+
+

${HeaderReviews}

+
+
+
+
+
-
-

${HeaderDeveloperInfo}

-

- -
+
+

${HeaderDeveloperInfo}

+

+ +
-
-

${HeaderRevisionHistory}

-
-
+
+

${HeaderRevisionHistory}

+
- - +
\ No newline at end of file diff --git a/dashboard-ui/advanced.html b/dashboard-ui/advanced.html index 7db93174a7..50033283c5 100644 --- a/dashboard-ui/advanced.html +++ b/dashboard-ui/advanced.html @@ -1,105 +1,97 @@ - - - - ${TitleAdvanced} - - -
+
-
-
+
+
- -
+ + -
    - -
  • - ${LabelEnableDebugLogging} -
  • -
  • - ${OptionEnableAnonymousUsageReporting} -
    - ${OptionEnableAnonymousUsageReportingHelp} - -
    -
  • -
- - -
-
    -
  • -
    - - -
    -
  • -
  • - - - -
  • - -
-
- - -
-
- ${OptionEnableWebClientResponseCache} -
-
-
- ${OptionEnableWebClientResourceMinification} +
    + +
  • + ${LabelEnableDebugLogging} +
  • +
  • + ${OptionEnableAnonymousUsageReporting}
    - ${OptionDisableForDevelopmentHelp} + ${OptionEnableAnonymousUsageReportingHelp} +
    -

    -
      -
    • - - -
      ${LabelDashboardSourcePathHelp}
      -
    • -
    - +
  • +
+
    -
  • - +
  • +
    + + +
    +
  • +
  • + + + +
  • + -
- -
+
+ + +
+
+ ${OptionEnableWebClientResponseCache} +
+
+
+ ${OptionEnableWebClientResourceMinification} +
+
+ ${OptionDisableForDevelopmentHelp} +
+

+
    +
  • + + +
    ${LabelDashboardSourcePathHelp}
    +
  • +
+
+ +
+
    +
  • + +
  • + +
+
- - +
\ No newline at end of file diff --git a/dashboard-ui/appservices.html b/dashboard-ui/appservices.html index 855076d233..72c2f63630 100644 --- a/dashboard-ui/appservices.html +++ b/dashboard-ui/appservices.html @@ -1,46 +1,38 @@ - - - - Emby - - -
+
-
-
+
+
-
- - +
\ No newline at end of file diff --git a/dashboard-ui/autoorganizelog.html b/dashboard-ui/autoorganizelog.html index 3639141499..638b775582 100644 --- a/dashboard-ui/autoorganizelog.html +++ b/dashboard-ui/autoorganizelog.html @@ -1,57 +1,48 @@ - - - - - ${TitleAutoOrganize} - - -
-
-
+
+
+
-
- ${TabActivityLog} - ${TabTV} - ${TabSmartMatches} + + +
+
-
-
-
- - -
- -
+ - - - - - - - - - - -
${HeaderDate}${HeaderSource}${HeaderDestination}

-
-
- ${LabelCompleted} -
- ${LabelFailed} -
- ${LabelSkipped} -
-
-
+ +
+
+ + + + + + + + + + +
${HeaderDate}${HeaderSource}${HeaderDestination}
+
+
+
+ ${LabelCompleted} +
+ ${LabelFailed} +
+ ${LabelSkipped} +
+
- - +
\ No newline at end of file diff --git a/dashboard-ui/autoorganizesmart.html b/dashboard-ui/autoorganizesmart.html index 31d524feac..badac891c6 100644 --- a/dashboard-ui/autoorganizesmart.html +++ b/dashboard-ui/autoorganizesmart.html @@ -1,26 +1,18 @@ - - - - ${TitleAutoOrganize} - - -
+
-
-
+
+
- + -
-

${TabSmartMatchInfo}

-
-
+
+

${TabSmartMatchInfo}

+
- - +
\ No newline at end of file diff --git a/dashboard-ui/autoorganizetv.html b/dashboard-ui/autoorganizetv.html index 19f87ccc3d..150d8626d4 100644 --- a/dashboard-ui/autoorganizetv.html +++ b/dashboard-ui/autoorganizetv.html @@ -1,177 +1,169 @@ - - - - ${TitleAutoOrganize} - - -
- -
-
- - -
- -

${AutoOrganizeHelp}

- -

${AutoOrganizeTvHelp}

-
    -
  • -
    - ${OptionEnableEpisodeOrganization} -
  • -
  • - - -
    -
    ${LabelWatchFolderHelp}
    -
    -
  • -
  • - -
    ${LabelMinFileSizeForOrganizeHelp}
    -
  • -
  • - -
    -
  • -
  • - -
  • -

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

${HeaderSupportedPatterns}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${HeaderTerm}${HeaderPattern}${HeaderResult}
${LabelSeriesNamePlain}%sn${LabelSeriesNamePlain}
${LabelSeriesNamePlain}%s.n${ValueSeriesNamePeriod}
${LabelSeriesNamePlain}%s_n${ValueSeriesNameUnderscore}
${LabelSeasonNumberPlain}%s1
${LabelSeasonNumberPlain}%0s01
${LabelEpisodeNumberPlain}%e4
${LabelEpisodeNumberPlain}%0e04
${LabelEndingEpisodeNumberPlain}%ed5
${LabelEndingEpisodeNumberPlain}%0ed05
${LabelEpisodeNamePlain}%en${LabelEpisodeNamePlain}
${LabelEpisodeNamePlain}%e.n${ValueEpisodeNamePeriod}
${LabelEpisodeNamePlain}%e_n${ValueEpisodeNameUnderscore}
${FileExtension}%extmkv
-
-

-
    -
  • - - -
    ${LabelTransferMethodHelp}
    -
  • -
  • -
    - ${OptionOverwriteExistingEpisodes} -
  • -
  • - -
    ${LabelDeleteLeftOverFilesHelp}
    -
  • -
  • - ${LabelDeleteEmptyFolders} -
    ${LabelDeleteEmptyFoldersHelp}
    -
  • -
- -
    -
  • - -
  • - -
-
+
+
+
+ + +
+ +

${AutoOrganizeHelp}

+ +

${AutoOrganizeTvHelp}

+
    +
  • +
    + ${OptionEnableEpisodeOrganization} +
  • +
  • + + +
    +
    ${LabelWatchFolderHelp}
    +
    +
  • +
  • + +
    ${LabelMinFileSizeForOrganizeHelp}
    +
  • +
  • + +
    +
  • +
  • + +
  • +

+ + +
+
+ +
+
+
+
+ +
+
+ +
+

${HeaderSupportedPatterns}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${HeaderTerm}${HeaderPattern}${HeaderResult}
${LabelSeriesNamePlain}%sn${LabelSeriesNamePlain}
${LabelSeriesNamePlain}%s.n${ValueSeriesNamePeriod}
${LabelSeriesNamePlain}%s_n${ValueSeriesNameUnderscore}
${LabelSeasonNumberPlain}%s1
${LabelSeasonNumberPlain}%0s01
${LabelEpisodeNumberPlain}%e4
${LabelEpisodeNumberPlain}%0e04
${LabelEndingEpisodeNumberPlain}%ed5
${LabelEndingEpisodeNumberPlain}%0ed05
${LabelEpisodeNamePlain}%en${LabelEpisodeNamePlain}
${LabelEpisodeNamePlain}%e.n${ValueEpisodeNamePeriod}
${LabelEpisodeNamePlain}%e_n${ValueEpisodeNameUnderscore}
${FileExtension}%extmkv
+
+

+
    +
  • + + +
    ${LabelTransferMethodHelp}
    +
  • +
  • +
    + ${OptionOverwriteExistingEpisodes} +
  • +
  • + +
    ${LabelDeleteLeftOverFilesHelp}
    +
  • +
  • + ${LabelDeleteEmptyFolders} +
    ${LabelDeleteEmptyFoldersHelp}
    +
  • +
+ +
    +
  • + +
  • + +
+
+
- - \ No newline at end of file +
\ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index d38e858a46..1c68493aff 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -16,12 +16,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.1.64", - "_release": "1.1.64", + "version": "1.1.65", + "_release": "1.1.65", "_resolution": { "type": "version", - "tag": "1.1.64", - "commit": "09ad84b364cc201acfa1c7700142e2043bf23db9" + "tag": "1.1.65", + "commit": "0d838fa5972c686099cf85e830e9c7470972fb2f" }, "_source": "git://github.com/MediaBrowser/emby-webcomponents.git", "_target": "~1.1.5", diff --git a/dashboard-ui/bower_components/emby-webcomponents/router.js b/dashboard-ui/bower_components/emby-webcomponents/router.js index edfec6d717..5d538bd7b0 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/router.js +++ b/dashboard-ui/bower_components/emby-webcomponents/router.js @@ -77,6 +77,7 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b } } + var htmlCache = {}; var cacheParam = new Date().getTime(); function loadContentUrl(ctx, next, route, request) { @@ -93,13 +94,29 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b url = baseUrl() + url; } + if (ctx.querystring && route.enableContentQueryString) { + url += '?' + ctx.querystring; + } + + if (route.enableCache !== false) { + var cachedHtml = htmlCache[url]; + if (cachedHtml) { + loadContent(ctx, route, cachedHtml, request); + return; + } + } + url += url.indexOf('?') == -1 ? '?' : '&'; url += 'v=' + cacheParam; var xhr = new XMLHttpRequest(); xhr.onload = xhr.onerror = function () { if (this.status < 400) { - loadContent(ctx, route, this.response, request); + var html = this.response; + if (route.enableCache !== false) { + htmlCache[url.split('?')[0]] = html; + } + loadContent(ctx, route, html, request); } else { next(); } diff --git a/dashboard-ui/bower_components/emby-webcomponents/viewmanager.js b/dashboard-ui/bower_components/emby-webcomponents/viewmanager.js index ada7b1b571..87011d528c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/viewmanager.js +++ b/dashboard-ui/bower_components/emby-webcomponents/viewmanager.js @@ -19,7 +19,9 @@ define(['viewcontainer', 'focusManager', 'queryString', 'connectionManager', 'ev // Use controller method var controller = new options.controllerFactory(newView, eventDetail.detail.params); - } else if (dispatchPageEvents) { + } + + if (!options.controllerFactory || dispatchPageEvents) { dispatchViewEvent(newView, 'viewinit'); } } diff --git a/dashboard-ui/bower_components/iron-icon/.bower.json b/dashboard-ui/bower_components/iron-icon/.bower.json index f0167baf13..9784e3a3b7 100644 --- a/dashboard-ui/bower_components/iron-icon/.bower.json +++ b/dashboard-ui/bower_components/iron-icon/.bower.json @@ -32,14 +32,14 @@ "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "homepage": "https://github.com/polymerelements/iron-icon", + "homepage": "https://github.com/PolymerElements/iron-icon", "_release": "1.0.8", "_resolution": { "type": "version", "tag": "v1.0.8", "commit": "f36b38928849ef3853db727faa8c9ef104d611eb" }, - "_source": "git://github.com/polymerelements/iron-icon.git", + "_source": "git://github.com/PolymerElements/iron-icon.git", "_target": "^1.0.0", - "_originalSource": "polymerelements/iron-icon" + "_originalSource": "PolymerElements/iron-icon" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/iron-selector/.bower.json b/dashboard-ui/bower_components/iron-selector/.bower.json index 66d7d54b0f..c6b481c2cb 100644 --- a/dashboard-ui/bower_components/iron-selector/.bower.json +++ b/dashboard-ui/bower_components/iron-selector/.bower.json @@ -36,7 +36,7 @@ "tag": "v1.3.0", "commit": "1662093611cda3fd29125cdab94a61d3d88093da" }, - "_source": "git://github.com/PolymerElements/iron-selector.git", + "_source": "git://github.com/polymerelements/iron-selector.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-selector" + "_originalSource": "polymerelements/iron-selector" } \ No newline at end of file diff --git a/dashboard-ui/channelitems.html b/dashboard-ui/channelitems.html index caabf3a975..83c12d7967 100644 --- a/dashboard-ui/channelitems.html +++ b/dashboard-ui/channelitems.html @@ -1,19 +1,11 @@ - - - - Emby - - -
+
-
-
+
+
-
-
+
-
+
- - +
\ No newline at end of file diff --git a/dashboard-ui/channels.html b/dashboard-ui/channels.html index 98831c3a3a..cedf619082 100644 --- a/dashboard-ui/channels.html +++ b/dashboard-ui/channels.html @@ -1,40 +1,32 @@ - - - - Emby - - -
+
-
- - ${TabLatest} - ${TabChannels} - - -
-
- - -
-
-
-
- -
-
-
-
-
-
-
-
- -
+
+ + ${TabLatest} + ${TabChannels} + +
- - +
+ + +
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/dashboard-ui/channelsettings.html b/dashboard-ui/channelsettings.html index ec5cceb706..c874e84399 100644 --- a/dashboard-ui/channelsettings.html +++ b/dashboard-ui/channelsettings.html @@ -1,45 +1,37 @@ - - - - ${TitlePlugins} - - -
- -
-
- - -
- -
-
    -
  • - - -
    ${LabelChannelStreamQualityHelp}
    -
  • -
-
    -
  • - -
  • -
-
+
+
+
+ + +
+ +
+
    +
  • + + +
    ${LabelChannelStreamQualityHelp}
    +
  • +
+
    +
  • + +
  • +
+
+
- - +
\ No newline at end of file diff --git a/dashboard-ui/cinemamodeconfiguration.html b/dashboard-ui/cinemamodeconfiguration.html index e88fe7c513..a1d212e563 100644 --- a/dashboard-ui/cinemamodeconfiguration.html +++ b/dashboard-ui/cinemamodeconfiguration.html @@ -1,92 +1,84 @@ - - - - ${TitlePlayback} - - -
+
-
-
+
+
- - -
- -

${CinemaModeConfigurationHelp}

-
-

${LabelEnableCinemaModeFor}

-
- ${OptionMovies} - ${OptionEpisodes} -
-
-
-
-

${LabelSelectInternetTrailersForCinemaMode}

-
- ${OptionUpcomingMoviesInTheaters} - ${OptionUpcomingDvdMovies} - ${OptionUpcomingStreamingMovies} - ${OptionOtherTrailers} -
-
${LabelTheseFeaturesRequireSubscriptionHelpAndTrailers}
- -
-
-
- ${OptionTrailersFromMyMovies} -
${OptionTrailersFromMyMoviesHelp}
- -
-
-
- -
-
-
- ${LabelEnableIntroParentalControl} -
${LabelEnableIntroParentalControlHelp}
-
-
-
- ${LabelLimitIntrosToUnwatchedContent} -
-
-
-
- - -
-
${LabelCustomIntrosPathHelp}
-
-
-
-
- - -
-
-
${LabelCodecIntrosPathHelp}
- -
-
-
-
- -

${CinemaModeConfigurationHelp2}

-
+ + +
+ +

${CinemaModeConfigurationHelp}

+
+

${LabelEnableCinemaModeFor}

+
+ ${OptionMovies} + ${OptionEpisodes} +
+
+
+
+

${LabelSelectInternetTrailersForCinemaMode}

+
+ ${OptionUpcomingMoviesInTheaters} + ${OptionUpcomingDvdMovies} + ${OptionUpcomingStreamingMovies} + ${OptionOtherTrailers} +
+
${LabelTheseFeaturesRequireSubscriptionHelpAndTrailers}
+ +
+
+
+ ${OptionTrailersFromMyMovies} +
${OptionTrailersFromMyMoviesHelp}
+ +
+
+
+ +
+
+
+ ${LabelEnableIntroParentalControl} +
${LabelEnableIntroParentalControlHelp}
+
+
+
+ ${LabelLimitIntrosToUnwatchedContent} +
+
+
+
+ + +
+
${LabelCustomIntrosPathHelp}
+
+
+
+
+ + +
+
+
${LabelCodecIntrosPathHelp}
+ +
+
+
+
+ +

${CinemaModeConfigurationHelp2}

+
- - \ No newline at end of file +
\ No newline at end of file diff --git a/dashboard-ui/collections.html b/dashboard-ui/collections.html index ce215efa33..e4d899dce5 100644 --- a/dashboard-ui/collections.html +++ b/dashboard-ui/collections.html @@ -1,25 +1,17 @@ - - - - Emby - - -
+
-
-
+
+
-
-   -
+
+  
-
- - -
+
+ + +
- - +
\ No newline at end of file diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index bb6350c90b..7e4506f40d 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -20,7 +20,8 @@ define([], function () { pageIndex = 0; } - var newView = normalizeNewView(options); + var newViewInfo = normalizeNewView(options); + var newView = newViewInfo.elem; var dependencies = typeof (newView) == 'string' ? null : newView.getAttribute('data-require'); dependencies = dependencies ? dependencies.split(',') : []; @@ -62,7 +63,12 @@ define([], function () { animatable.innerHTML = newView; } else { animatable.innerHTML = ''; - animatable.appendChild(newView); + if (newViewInfo.hasScript) { + // TODO: figure this out without jQuery + $(newView).appendTo(animatable); + } else { + animatable.appendChild(newView); + } enhanceNewView(dependencies, newView); } @@ -96,6 +102,13 @@ define([], function () { } } + function parseHtml(html) { + + var wrapper = document.createElement('div'); + wrapper.innerHTML = html; + return wrapper.querySelector('div[data-role="page"]'); + } + function normalizeNewView(options) { if (options.view.indexOf('data-role="page"') == -1) { @@ -105,15 +118,14 @@ define([], function () { return html; } - // TODO: This won't be able to support executing embedded script tags - var wrapper = document.createElement('div'); - wrapper.innerHTML = options.view; - - var elem = wrapper.querySelector('div[data-role="page"]'); + var elem = parseHtml(options.view); elem.classList.add('page-view'); elem.setAttribute('data-type', options.type || ''); elem.setAttribute('data-url', options.url); - return elem; + return { + elem: elem, + hasScript: options.view.indexOf(' - - - ${TitleSignIn} - - -
+
-
+
- +
+

${HeaderNewUsers}

+ + ${ButtonSignUp} + +
+
+


Try the new Emby Theater at tv.emby.media, a remote-friendly app designed for your TV or large screen monitor.
+ - + + ${ButtonCancel} + - + + ${ButtonCancel} + - - - +
\ No newline at end of file diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index 3294997f99..9a4e421ca4 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -1,136 +1,128 @@ - - - - Emby - - -
+
-
-
+
+
-
- ${TabDashboard} - ${TabSettings} + +
+ -
-