ad5aea6df2
Uses CSS animation instead of GIF; GIF animation stops when browser navigation begins, CSS continues.
734 lines
22 KiB
C#
734 lines
22 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.0
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Views.InitialConfig
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco;
|
|
using Disco.BI.Extensions;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services;
|
|
using Disco.Services.Authorization;
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/InitialConfig/Complete.cshtml")]
|
|
public partial class Complete : Disco.Services.Web.WebViewPage<Disco.Web.Models.InitialConfig.CompleteModel>
|
|
{
|
|
public Complete()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
ViewBag.Title = null;
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n<h1>");
|
|
|
|
|
|
#line 5 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(CommonHelpers.Breadcrumbs(Html.ToBreadcrumb("Initial Configuration", MVC.InitialConfig.Index(), "Complete")));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</h1>\r\n<div");
|
|
|
|
WriteLiteral(" id=\"initialConfig_Complete\"");
|
|
|
|
WriteLiteral(">\r\n <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 650px\"");
|
|
|
|
WriteLiteral(">\r\n <h2>Verification Results</h2>\r\n <table>\r\n <tr>\r\n " +
|
|
" <td>\r\n <h3><i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 409), Tuple.Create("\"", 519)
|
|
, Tuple.Create(Tuple.Create("", 417), Tuple.Create("fa", 417), true)
|
|
|
|
#line 12 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 419), Tuple.Create<System.Object, System.Int32>(Model.RegistryDatabaseResult == null ? "fa-check-square success" : "fa-exclamation-circle error"
|
|
|
|
#line default
|
|
#line hidden
|
|
, 420), false)
|
|
);
|
|
|
|
WriteLiteral("></i> Database</h3>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"testResult\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 14 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 14 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
if (Model.RegistryDatabaseResult == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("The database connection string was correctly configured and saved.");
|
|
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 18 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("There was an error saving the database connection string configuration.");
|
|
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" <br />\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"exception\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 24 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 24 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
var ex = Model.RegistryDatabaseResult;
|
|
do
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>\r\n " +
|
|
" <h4>[");
|
|
|
|
|
|
#line 28 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.GetType().Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("]</h4>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 30 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n " +
|
|
" </div> \r\n");
|
|
|
|
|
|
#line 33 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
if (ex.InnerException == null) { break; }
|
|
else { ex = ex.InnerException; }
|
|
} while (true);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 38 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
|
|
" <tr>\r\n <td>\r\n <h3><i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 2073), Tuple.Create("\"", 2185)
|
|
, Tuple.Create(Tuple.Create("", 2081), Tuple.Create("fa", 2081), true)
|
|
|
|
#line 45 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 2083), Tuple.Create<System.Object, System.Int32>(Model.DiscoDnsTestResult.Item2 == null ? "fa-check-square success" : "fa-exclamation-circle error"
|
|
|
|
#line default
|
|
#line hidden
|
|
, 2084), false)
|
|
);
|
|
|
|
WriteLiteral("></i> Disco DNS Entry</h3>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"testResult\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 47 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 47 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
if (Model.DiscoDnsTestResult.Item1 != null)
|
|
{
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>The following \'disco\' DNS entry was found:</div>" +
|
|
"\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n <strong>");
|
|
|
|
|
|
#line 53 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(Model.DiscoDnsTestResult.Item1.HostName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</strong>\r\n");
|
|
|
|
|
|
#line 54 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 54 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
if (Model.DiscoDnsTestResult.Item1.Aliases.Length > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>\r\n " +
|
|
" Aliases:\r\n <ul>\r\n");
|
|
|
|
|
|
#line 60 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 60 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
foreach (var a in Model.DiscoDnsTestResult.Item1.Aliases)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 62 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(a);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 63 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </div>\r\n");
|
|
|
|
|
|
#line 66 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
if (Model.DiscoDnsTestResult.Item1.AddressList.Length > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>\r\n " +
|
|
" IP Addresses:\r\n <ul>\r\n");
|
|
|
|
|
|
#line 72 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 72 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
foreach (var a in Model.DiscoDnsTestResult.Item1.AddressList)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <li>");
|
|
|
|
|
|
#line 74 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(a.ToString());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</li>\r\n");
|
|
|
|
|
|
#line 75 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </ul>\r\n </div>\r\n");
|
|
|
|
|
|
#line 78 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 81 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("There was an error determining a DNS entry for Disco.");
|
|
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" <br />\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"exception\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 87 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 87 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
var ex = Model.DiscoDnsTestResult.Item2;
|
|
do
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>\r\n " +
|
|
" <h4>[");
|
|
|
|
|
|
#line 91 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.GetType().Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("]</h4>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 93 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n " +
|
|
" </div> \r\n");
|
|
|
|
|
|
#line 96 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
if (ex.InnerException == null) { break; }
|
|
else { ex = ex.InnerException; }
|
|
} while (true);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 101 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
|
|
" <tr>\r\n <td>\r\n <h3><i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 5012), Tuple.Create("\"", 5122)
|
|
, Tuple.Create(Tuple.Create("", 5020), Tuple.Create("fa", 5020), true)
|
|
|
|
#line 108 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
, Tuple.Create(Tuple.Create(" ", 5022), Tuple.Create<System.Object, System.Int32>(Model.DiscoIctComAuWebResult == null ? "fa-check-square success" : "fa-exclamation-circle error"
|
|
|
|
#line default
|
|
#line hidden
|
|
, 5023), false)
|
|
);
|
|
|
|
WriteLiteral("></i> Connectivity to <a");
|
|
|
|
WriteLiteral(" href=\"https://discoict.com.au\"");
|
|
|
|
WriteLiteral(" target=\"_blank\"");
|
|
|
|
WriteLiteral(">https://discoict.com.au</a></h3>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"testResult\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 110 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 110 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
if (Model.DiscoIctComAuWebResult == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("A connection was successfully established to <a");
|
|
|
|
WriteLiteral(" href=\"https://discoict.com.au\"");
|
|
|
|
WriteLiteral(" target=\"_blank\"");
|
|
|
|
WriteLiteral(">https://discoict.com.au</a>.");
|
|
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 114 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
WriteLiteral("There was an error establishing a connection to <a");
|
|
|
|
WriteLiteral(" href=\"https://discoict.com.au\"");
|
|
|
|
WriteLiteral(" target=\"_blank\"");
|
|
|
|
WriteLiteral(">https://discoict.com.au</a>. This may be caused by missing proxy settings - afte" +
|
|
"r starting Disco check these settings in the \'System\' configuration area.");
|
|
|
|
WriteLiteral("\r\n");
|
|
|
|
WriteLiteral(" <br />\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"exception\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 120 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 120 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
var ex = Model.DiscoIctComAuWebResult;
|
|
do
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>\r\n " +
|
|
" <h4>[");
|
|
|
|
|
|
#line 124 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.GetType().Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("]</h4>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 126 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
Write(ex.Message);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n " +
|
|
" </div> \r\n");
|
|
|
|
|
|
#line 129 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
if (ex.InnerException == null) { break; }
|
|
else { ex = ex.InnerException; }
|
|
} while (true);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 134 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
|
|
" <tr>\r\n <td>\r\n <h3><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle information\"");
|
|
|
|
WriteLiteral("></i> Unblock ICMP (Ping) for the Disco server</h3>\r\n <di" +
|
|
"v");
|
|
|
|
WriteLiteral(" class=\"testResult\"");
|
|
|
|
WriteLiteral(@">
|
|
The Disco Client Bootstrapper requires the Disco server to respond to ICMP Echo requests (Ping) to function correctly. Please ensure any firewall rules are updated accordingly.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<h3><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-info-circle information\"");
|
|
|
|
WriteLiteral("></i> Configure a regularly scheduled Backup</h3>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"testResult\"");
|
|
|
|
WriteLiteral(">\r\n Please ensure both the SQL Database and File Store are" +
|
|
" backed up regularly.\r\n </div>\r\n </td>\r\n " +
|
|
" </tr>\r\n </table>\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"actionBar\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 158 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 158 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
|
|
if (Model.LaunchAllowed)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 7927), Tuple.Create("\"", 7982)
|
|
|
|
#line 161 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 7934), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.InitialConfig.RestartWebApp())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 7934), false)
|
|
);
|
|
|
|
WriteLiteral(" class=\"button\"");
|
|
|
|
WriteLiteral(">Start Disco</a>\r\n");
|
|
|
|
|
|
#line 162 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <a");
|
|
|
|
WriteLiteral(" id=\"tryAgain\"");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 8092), Tuple.Create("\"", 8142)
|
|
|
|
#line 165 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 8099), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.InitialConfig.Complete())
|
|
|
|
#line default
|
|
#line hidden
|
|
, 8099), false)
|
|
);
|
|
|
|
WriteLiteral(" class=\"button\"");
|
|
|
|
WriteLiteral(">Try Again</a>\r\n");
|
|
|
|
|
|
#line 166 "..\..\Views\InitialConfig\Complete.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n</div>\r\n<div");
|
|
|
|
WriteLiteral(" id=\"dialogWait\"");
|
|
|
|
WriteLiteral(" title=\"Please Wait\"");
|
|
|
|
WriteLiteral(">\r\n <h2>\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-lg fa-cog fa-spin\"");
|
|
|
|
WriteLiteral(@"></i>
|
|
Re-running Verification Tests
|
|
</h2>
|
|
<div>Please wait while the verification tests are performed.</div>
|
|
</div>
|
|
<script>
|
|
(function () {
|
|
$(function () {
|
|
$('#initialConfig_Complete').find('div.exception').each(function () {
|
|
var $this = $(this);
|
|
$('<a>').text('[Show Error Details]').attr('href', '#').insertBefore($this).click(function () {
|
|
$(this).hide();
|
|
$this.slideDown();
|
|
return false;
|
|
});
|
|
$this.hide();
|
|
});
|
|
$('#tryAgain').click(function () {
|
|
$('#dialogWait').dialog('open');
|
|
});
|
|
$('#dialogWait').dialog({
|
|
autoOpen: false,
|
|
draggable: false,
|
|
modal: true,
|
|
resizable: false,
|
|
width: 400,
|
|
height: 150,
|
|
closeOnEscape: false
|
|
}).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
|
|
});
|
|
})();
|
|
</script>
|
|
");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|