Update build no

This commit is contained in:
tidusjar 2016-07-29 13:49:39 +01:00
commit 2105ee9073
7 changed files with 165 additions and 165 deletions

View file

@ -1,20 +1,20 @@
@using PlexRequests.UI.Helpers @using PlexRequests.UI.Helpers
<div class="col-lg-3 col-md-3 col-sm-4"> <div class="col-lg-3 col-md-3 col-sm-4">
<div class="list-group table-of-contents"> <div class="list-group table-of-contents">
@Html.GetSidebarUrl(Context, "/admin", "Plex Request") @Html.GetSidebarUrl(Context, "/admin", "Plex Request")
@Html.GetSidebarUrl(Context, "/admin/landingpage", "Landing Page") @Html.GetSidebarUrl(Context, "/admin/landingpage", "Landing Page")
@Html.GetSidebarUrl(Context, "/admin/authentication", "Authentication") @Html.GetSidebarUrl(Context, "/admin/authentication", "Authentication")
@Html.GetSidebarUrl(Context, "/admin/plex", "Plex") @Html.GetSidebarUrl(Context, "/admin/plex", "Plex")
@Html.GetSidebarUrl(Context, "/admin/couchpotato", "CouchPotato") @Html.GetSidebarUrl(Context, "/admin/couchpotato", "CouchPotato")
@Html.GetSidebarUrl(Context, "/admin/sonarr", "Sonarr") @Html.GetSidebarUrl(Context, "/admin/sonarr", "Sonarr")
@Html.GetSidebarUrl(Context, "/admin/sickrage", "SickRage") @Html.GetSidebarUrl(Context, "/admin/sickrage", "SickRage")
@Html.GetSidebarUrl(Context, "/admin/headphones", "Headphones (Beta)") @Html.GetSidebarUrl(Context, "/admin/headphones", "Headphones (Beta)")
@Html.GetSidebarUrl(Context, "/admin/emailnotification", "Email Notifications") @Html.GetSidebarUrl(Context, "/admin/emailnotification", "Email Notifications")
@Html.GetSidebarUrl(Context, "/admin/pushbulletnotification", "Pushbullet Notifications") @Html.GetSidebarUrl(Context, "/admin/pushbulletnotification", "Pushbullet Notifications")
@Html.GetSidebarUrl(Context, "/admin/pushovernotification", "Pushover Notifications") @Html.GetSidebarUrl(Context, "/admin/pushovernotification", "Pushover Notifications")
@Html.GetSidebarUrl(Context, "/admin/slacknotification", "Slack Notifications") @Html.GetSidebarUrl(Context, "/admin/slacknotification", "Slack Notifications")
@Html.GetSidebarUrl(Context, "/admin/logs", "Logs") @Html.GetSidebarUrl(Context, "/admin/logs", "Logs")
@Html.GetSidebarUrl(Context, "/admin/status", "Status") @Html.GetSidebarUrl(Context, "/admin/status", "Status")
@Html.GetSidebarUrl(Context, "/admin/scheduledjobs", "Scheduled Jobs") @Html.GetSidebarUrl(Context, "/admin/scheduledjobs", "Scheduled Jobs")
</div> </div>
</div> </div>

View file

@ -1,37 +1,37 @@
<form method="POST" id="mainForm"> <form method="POST" id="mainForm">
<br /> <br />
Old Password <input class="form-control form-control-custom" name="OldPassword" type="password" /><br /> Old Password <input class="form-control form-control-custom" name="OldPassword" type="password" /><br />
New Password <input class="form-control form-control-custom" name="NewPassword" type="password" /><br /> New Password <input class="form-control form-control-custom" name="NewPassword" type="password" /><br />
New Password again <input class="form-control form-control-custom" name="NewPasswordAgain" type="password" /> New Password again <input class="form-control form-control-custom" name="NewPasswordAgain" type="password" />
<br /> <br />
<br /> <br />
<input class="btn btn-success-outline" id="save" type="submit" value="Change Password" /> <input class="btn btn-success-outline" id="save" type="submit" value="Change Password" />
</form> </form>
<script> <script>
$(function () { $(function () {
$('#save').click(function (e) { $('#save').click(function (e) {
e.preventDefault(); e.preventDefault();
var $form = $("#mainForm"); var $form = $("#mainForm");
$.ajax({ $.ajax({
type: $form.prop("method"), type: $form.prop("method"),
data: $form.serialize(), data: $form.serialize(),
url: $form.prop("action"), url: $form.prop("action"),
dataType: "json", dataType: "json",
success: function (response) { success: function (response) {
if (response.result === true) { if (response.result === true) {
generateNotify(response.message, "success"); generateNotify(response.message, "success");
} else { } else {
generateNotify(response.message, "warning"); generateNotify(response.message, "warning");
} }
}, },
error: function (e) { error: function (e) {
console.log(e); console.log(e);
generateNotify("Something went wrong!", "danger"); generateNotify("Something went wrong!", "danger");
} }
}); });
}); });
}); });
</script> </script>

View file

@ -1,39 +1,39 @@
@using PlexRequests.UI.Helpers @using PlexRequests.UI.Helpers
@{ @{
var baseUrl = Html.GetBaseUrl().ToHtmlString(); var baseUrl = Html.GetBaseUrl().ToHtmlString();
var url = string.Empty; var url = string.Empty;
if (!string.IsNullOrEmpty(baseUrl)) if (!string.IsNullOrEmpty(baseUrl))
{ {
url = "/" + baseUrl; url = "/" + baseUrl;
} }
} }
<form method="POST"> <form method="POST">
Username <input class="form-control form-control-custom" type="text" name="Username" /> Username <input class="form-control form-control-custom" type="text" name="Username" />
<br /> <br />
Password <input class="form-control form-control-custom" name="Password" type="password" /> Password <input class="form-control form-control-custom" name="Password" type="password" />
<div class="checkbox"> <div class="checkbox">
<input name="RememberMe" id="RememberMe" type="checkbox" checked="checked" /> <input name="RememberMe" id="RememberMe" type="checkbox" checked="checked" />
<label for="RememberMe">Remember Me</label> <label for="RememberMe">Remember Me</label>
</div> </div>
<input class="btn btn-success-outline" type="submit" value="Login" /> <input class="btn btn-success-outline" type="submit" value="Login" />
<input type="hidden" id="DateTimeOffset" name="DateTimeOffset" /> <input type="hidden" id="DateTimeOffset" name="DateTimeOffset" />
<input type="hidden" id="redirect" name="redirect" value="@Model.Redirect" /> <input type="hidden" id="redirect" name="redirect" value="@Model.Redirect" />
</form> </form>
@if (!Model.AdminExists) @if (!Model.AdminExists)
{ {
<div>If you have not yet created an Admin account you can do here: <a href="@url/register">Register</a></div> <div>If you have not yet created an Admin account you can do here: <a href="@url/register">Register</a></div>
} }
@if (Model.Errored) @if (Model.Errored)
{ {
<div class="alert alert-dismissible alert-danger"> <div class="alert alert-dismissible alert-danger">
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button> <button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
Invalid Username or Password! Invalid Username or Password!
</div> </div>
} }
<script> <script>
$(function () { $(function () {
var dtOffset = new Date().getTimezoneOffset(); var dtOffset = new Date().getTimezoneOffset();
$('#DateTimeOffset').val(dtOffset); $('#DateTimeOffset').val(dtOffset);
}); });
</script> </script>

View file

@ -1,15 +1,15 @@
<form method="POST"> <form method="POST">
Username <input class="form-control form-control-custom" type="text" name="Username" /> Username <input class="form-control form-control-custom" type="text" name="Username" />
<br /> <br />
Password <input class="form-control form-control-custom" name="Password" type="password" /> Password <input class="form-control form-control-custom" name="Password" type="password" />
<br /> <br />
<br /> <br />
<input class="btn btn-success-outline" type="submit" value="Create User" /> <input class="btn btn-success-outline" type="submit" value="Create User" />
</form> </form>
@if (Model.Errored) @if (Model.Errored)
{ {
<div class="alert alert-dismissible alert-danger"> <div class="alert alert-dismissible alert-danger">
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button> <button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
An admin account already exists! An admin account already exists!
</div> </div>
} }

View file

@ -1,3 +1,3 @@
@{ @{
Layout = "Shared/_Layout.cshtml"; Layout = "Shared/_Layout.cshtml";
} }

View file

@ -1,52 +1,52 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
For more information on how to configure your ASP.NET application, please visit For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433 http://go.microsoft.com/fwlink/?LinkId=169433
--> -->
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<system.web> <system.web>
<compilation debug="true" targetFramework="4.5.2"> <compilation debug="true" targetFramework="4.5.2">
<buildProviders> <buildProviders>
<add extension=".cshtml" <add extension=".cshtml"
type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" /> type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
<add extension=".vbhtml" <add extension=".vbhtml"
type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" /> type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
</buildProviders> </buildProviders>
</compilation> </compilation>
<httpHandlers> <httpHandlers>
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> <add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
</httpHandlers> </httpHandlers>
</system.web> </system.web>
<connectionStrings> <connectionStrings>
<add name="Sqlite" connectionString="Data Source=RequestPlex.sqlite" providerName="Mono.Data.Sqlite"/> <add name="Sqlite" connectionString="Data Source=RequestPlex.sqlite" providerName="Mono.Data.Sqlite"/>
</connectionStrings> </connectionStrings>
<appSettings> <appSettings>
<add key="webPages:Enabled" value="false" /> <add key="webPages:Enabled" value="false" />
</appSettings> </appSettings>
<system.web.webPages.razor> <system.web.webPages.razor>
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase"> <pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
<namespaces> <namespaces>
<add namespace="Nancy.ViewEngines.Razor" /> <add namespace="Nancy.ViewEngines.Razor" />
</namespaces> </namespaces>
</pages> </pages>
</system.web.webPages.razor> </system.web.webPages.razor>
<system.webServer> <system.webServer>
<validation validateIntegratedModeConfiguration="false" /> <validation validateIntegratedModeConfiguration="false" />
<httpErrors existingResponse="PassThrough"/> <httpErrors existingResponse="PassThrough"/>
<handlers> <handlers>
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> <add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
</handlers> </handlers>
<staticContent> <staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" /> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" />
</staticContent> </staticContent>
</system.webServer> </system.webServer>
</configuration> </configuration>

View file

@ -1,11 +1,11 @@
version: 1.8.{build} version: 1.9.{build}
configuration: Release configuration: Release
assembly_info: assembly_info:
patch: true patch: true
file: '**\AssemblyInfo.*' file: '**\AssemblyInfo.*'
assembly_version: '1.8.5' assembly_version: '1.9.0'
assembly_file_version: '{version}' assembly_file_version: '{version}'
assembly_informational_version: '1.8.5' assembly_informational_version: '1.9.0'
before_build: before_build:
- cmd: appveyor-retry nuget restore - cmd: appveyor-retry nuget restore
build: build: