Update: Plugin Framework Install & UI
This commit is contained in:
@@ -1,169 +1,141 @@
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Disco.Web.Areas.Config.Views.Expressions
|
||||
{
|
||||
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.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Expressions/Editor.cshtml")]
|
||||
public class Editor : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.Expressions.EditorModel>
|
||||
{
|
||||
public Editor()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 2 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Expressions");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-ExpressionEditor");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditor\"");
|
||||
|
||||
WriteLiteral(">\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorExceptionContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n <h3>\r\n Parse Error:</h3>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorException\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n </div>\r\n <button");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorValidateButton\"");
|
||||
|
||||
WriteLiteral(">\r\n Validate</button>\r\n");
|
||||
|
||||
|
||||
#line 17 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 17 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
if (false)
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <script");
|
||||
|
||||
WriteLiteral(" src=\"/ClientSource/Scripts/Core/jquery-1.7.1.js\"");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral("></script>");
|
||||
|
||||
|
||||
#line 18 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n var initExpression = \'");
|
||||
|
||||
|
||||
#line 21 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Model.Expression);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\';\r\n var hostSrcUrl = \'");
|
||||
|
||||
|
||||
#line 22 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Links.ClientSource.Style.ExpressionEditor_htm);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"';
|
||||
var host = $('<iframe>').attr('src', hostSrcUrl).css({ width: '100%', height: 100, border: 'none' });
|
||||
$('#expressionEditorContainer').append(host);
|
||||
|
||||
var $expressionEditorExceptionContainer = $('#expressionEditorExceptionContainer');
|
||||
var $expressionEditorException = $('#expressionEditorException');
|
||||
|
||||
var editor = new DiscoExpressionEditor(host, '");
|
||||
|
||||
|
||||
#line 29 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Url.Action(MVC.API.Expressions.ValidateExpression()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"', initExpression);
|
||||
|
||||
editor.expressionExceptionChanged = function (e) {
|
||||
if (e && !e.ExpressionValid) {
|
||||
$expressionEditorException.text(e.Message);
|
||||
$expressionEditorExceptionContainer.slideDown();
|
||||
} else {
|
||||
$expressionEditorExceptionContainer.slideUp();
|
||||
}
|
||||
};
|
||||
editor.expressionValidated = function (result, e) {
|
||||
if (result)
|
||||
alert('Validation Passed');
|
||||
};
|
||||
|
||||
$('#expressionEditorValidateButton').click(function () {
|
||||
editor.validateExpression();
|
||||
});
|
||||
|
||||
|
||||
editor.hostInit();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Disco.Web.Areas.Config.Views.Expressions
|
||||
{
|
||||
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.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Expressions/Editor.cshtml")]
|
||||
public class Editor : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.Expressions.EditorModel>
|
||||
{
|
||||
public Editor()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 2 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Expressions");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Disco-ExpressionEditor");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditor\"");
|
||||
|
||||
WriteLiteral(">\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorExceptionContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n <h3>\r\n Parse Error:</h3>\r\n <div");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorException\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n </div>\r\n <button");
|
||||
|
||||
WriteLiteral(" id=\"expressionEditorValidateButton\"");
|
||||
|
||||
WriteLiteral(">\r\n Validate</button>\r\n");
|
||||
|
||||
WriteLiteral("\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n var initExpression = \'");
|
||||
|
||||
|
||||
#line 21 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Model.Expression);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\';\r\n var hostSrcUrl = \'");
|
||||
|
||||
|
||||
#line 22 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Links.ClientSource.Style.ExpressionEditor_htm);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"';
|
||||
var host = $('<iframe>').attr('src', hostSrcUrl).css({ width: '100%', height: 100, border: 'none' });
|
||||
$('#expressionEditorContainer').append(host);
|
||||
|
||||
var $expressionEditorExceptionContainer = $('#expressionEditorExceptionContainer');
|
||||
var $expressionEditorException = $('#expressionEditorException');
|
||||
|
||||
var editor = new DiscoExpressionEditor(host, '");
|
||||
|
||||
|
||||
#line 29 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
|
||||
Write(Url.Action(MVC.API.Expressions.ValidateExpression()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(@"', initExpression);
|
||||
|
||||
editor.expressionExceptionChanged = function (e) {
|
||||
if (e && !e.ExpressionValid) {
|
||||
$expressionEditorException.text(e.Message);
|
||||
$expressionEditorExceptionContainer.slideDown();
|
||||
} else {
|
||||
$expressionEditorExceptionContainer.slideUp();
|
||||
}
|
||||
};
|
||||
editor.expressionValidated = function (result, e) {
|
||||
if (result)
|
||||
alert('Validation Passed');
|
||||
};
|
||||
|
||||
$('#expressionEditorValidateButton').click(function () {
|
||||
editor.validateExpression();
|
||||
});
|
||||
|
||||
|
||||
editor.hostInit();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
||||
|
||||
Reference in New Issue
Block a user