diff --git a/Html/addPlugin.html b/Html/addPlugin.html new file mode 100644 index 0000000000..820319091e --- /dev/null +++ b/Html/addPlugin.html @@ -0,0 +1,80 @@ + + +
++ Plugin Catalog +
+ + + + ++ Version +
+ + ++
+ ++
+I'm the collapsible content. By default I'm closed, but you can click the header to open me.
+I'm the collapsible content. By default I'm closed, but you can click the header to open me.
+I'm the collapsible content. By default I'm closed, but you can click the header to open me.
+Below are your media collections. Expand a collection to add or remove media locations assigned to it.
++ +
+ ++ +
+Below are Media Browser's scheduled tasks. Click into a task to adjust it's schedule.
+There are no users currently connected.
'; + $('#divConnections', page).html(html).trigger('create'); + return; + } + + html += ''; + html += DashboardPage.getClientType(connection); + html += ' | '; + + html += ''; + html += user.Name; + html += ' | '; + + html += ''; + html += connection.DeviceName; + html += ' | '; + + html += ''; + html += DashboardPage.getNowPlayingImage(connection.NowPlayingItem); + html += ' | '; + + html += ''; + html += DashboardPage.getNowPlayingText(connection, connection.NowPlayingItem); + html += ' | '; + + html += '
No tasks are currently running.
'; + } + + for (var i = 0, length = dashboardInfo.RunningTasks.length; i < length; i++) { + + + var task = dashboardInfo.RunningTasks[i]; + + html += ''; + + html += task.Name; + + if (task.State == "Running") { + var progress = task.CurrentProgress || { PercentComplete: 0 }; + html += ' - ' + Math.round(progress.PercentComplete) + '%'; + + html += ''; + } + else if (task.State == "Cancelling") { + html += ' - Stopping'; + } + + html += '
'; + } + + + $('#divRunningTasks', page).html(html).trigger('create'); + }, + + renderSystemInfo: function (dashboardInfo) { + + Dashboard.updateSystemInfo(dashboardInfo.SystemInfo); + + var page = $.mobile.activePage; + + $('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version); + + if (dashboardInfo.RunningTasks.filter(function (task) { + + return task.Id == dashboardInfo.ApplicationUpdateTaskId; + + }).length) { + + $('#btnUpdateApplication', page).button('disable'); + } else { + $('#btnUpdateApplication', page).button('enable'); + } + + DashboardPage.renderApplicationUpdateInfo(dashboardInfo); + DashboardPage.renderPluginUpdateInfo(dashboardInfo); + }, + + renderApplicationUpdateInfo: function (dashboardInfo) { + + var page = $.mobile.activePage; + + if (dashboardInfo.SystemInfo.IsNetworkDeployed && !dashboardInfo.SystemInfo.HasPendingRestart) { + + // Only check once every 10 mins + if (DashboardPage.lastAppUpdateCheck && (new Date().getTime() - DashboardPage.lastAppUpdateCheck) < 600000) { + return; + } + + DashboardPage.lastAppUpdateCheck = new Date().getTime(); + + ApiClient.getAvailableApplicationUpdate().done(function (packageInfo) { + + var version = packageInfo.versions[0]; + + if (!version) { + $('#pUpToDate', page).show(); + $('#pUpdateNow', page).hide(); + } else { + $('#pUpToDate', page).hide(); + + $('#pUpdateNow', page).show(); + + $('#newVersionNumber', page).html("Version " + version.versionStr + " is now available for download."); + } + + }).fail(function () { + + Dashboard.showFooterNotification({ html: 'A new version of ' + update.name + ' is available!
'; + + html += ''; + } + + $('#pPluginUpdates', page).html(html).trigger('create'); + + }).fail(function () { + + Dashboard.showFooterNotification({ html: '' + user.Name + '
'; + html += '' + LoginPage.getLastSeenText(user.LastActivityDate) + '
'; + html += ''; + html += ''; + html += ''; + html += '
'; + + html += '" + plugin.Version + "
"; + + html += ""; + + if (!plugin.IsCorePlugin) { + html += "Delete"; + } + + html += "" + text + "
"; + } + + html += "Start"; + } + else if (task.State == "Running") { + + var progress = task.CurrentProgress || { PercentComplete: 0 }; + progress = Math.round(progress.PercentComplete); + + html += ''; + + html += "" + progress + "%"; + html += '
'; + + html += "Stop"; + + } else { + + html += "Stopping
"; + html += " "; + } + + html += ""; + + html += "';
+
+ var imageUrl = user.PrimaryImageTag ? ApiClient.getUserImageUrl(user.Id, {
+
+ height: 400,
+ tag: user.PrimaryImageTag,
+ type: "Primary"
+
+ }) : "css/images/userFlyoutDefault.png";
+
+ html += '';
+ html += '
+ Media Browser has a thriving community of users and a vast knowledge base of information to help you get the most + out of your media collection. +
++ The Community Tracker is a place where you can ask questions, post feature requests and report bugs and get timely + and friendly help from a thriving community of users and developers. +
+ Visit the Community Tracker ++ Also, within the tracker, there is a large Knowledge Base of information compiled from users and developers to help you get the + most out of Media Browser. +
+ Search the Knowledge Base ++ Finally, you can visit the Media Browser Web site to see what's happening with MB now and keep up with the developer blog. +
+ Visit the Media Browser Web Site ++ By becoming a Media Browser Supporter, you ensure the continued development and support of this product and open up a whole new world of premium plug-ins. +
++ A portion of all MB3 Supporter donations is also contributed to some of our metadata providers (The Movie Db, + The TVdb, and FanArt.tv) +
++ Premium plug-ins can be installed and used for their trial periods (14 days on any particular machine) but, to register them for use + beyond that period, you also have to be a Media Browser Supporter. + +
+ + + ++ Glyphs courtesy of FontAwesome +
+ +© 2013 - Andy Matthews
+© 2013 - Andy Matthews
++ +
+ +That's all we need for now. Media Browser has begun collecting information about your media library. You do not need to wait for this process to complete before using a client application or changing other settings within the Dashboard.
+ + +Below are your media collections. Expand a collection to add or remove media locations assigned to it.
++ +
+ +This wizard will help guide you through the setup process.
+ +