@@ -1,76 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../../masterpages/umbracoPage.Master" Title="Install boost" CodeBehind="Boost.aspx.cs" Inherits="umbraco.presentation.developer.packages.Boost" %>
|
||||
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
|
||||
<%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %>
|
||||
|
||||
|
||||
<asp:Content ContentPlaceHolderID="head" runat="server">
|
||||
|
||||
<umb:JsInclude ID="JsInclude1" runat="server" FilePath="ui/jqueryui.js" PathNameAlias="UmbracoClient" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function showProgress(button, elementId) {
|
||||
var img = document.getElementById(elementId);
|
||||
img.style.visibility = "visible";
|
||||
button.style.display = "none";
|
||||
|
||||
}
|
||||
|
||||
function openDemoModal(id, title) {
|
||||
UmbClientMgr.openModalWindow("http://packages.umbraco.org/viewPackageData.aspx?id=" + id, title, true, 750, 550)
|
||||
}
|
||||
|
||||
function InstallPackages(button, elementId) {
|
||||
showProgress(button, elementId);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
#list1a a.accordianOpener{cursor: pointer; font-size: 14px; font-weight: bold; display: block; padding: 5px; text-decoration: none;}
|
||||
#list1a a.accordianOpener small{display: block;}
|
||||
#list1a div.accordianContainer{border-bottom: 1px solid #D9D7D7; display : none;}
|
||||
#list1a .nitroCB{display: block; padding: 2px; margin: 0px 0px 5px 20px;}
|
||||
|
||||
#list1a input{float: left; margin: 0px 10px 20px 0px;}
|
||||
#list1a div.nitro{float: left; padding: 0px 10px 0px 0px; width: 90%;}
|
||||
#list1a div.nitro h3{padding: 0px; margin: 0px; line-height: 14px; font-size: 14px;}
|
||||
#list1a .installed h3, #list1a .installed h3 *{color: #666;}
|
||||
#list1a .installed h3 span{font-size: 11px; padding-left: 25px;}
|
||||
|
||||
#list1a{padding-bottom: 25px;}
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="body" runat="server">
|
||||
<cc1:UmbracoPanel id="Panel1" Text="Runway" runat="server" Width="612px" Height="600px" hasMenu="false">
|
||||
<cc1:Feedback ID="fb" runat="server" />
|
||||
|
||||
<cc1:Pane id="boostInstalled" runat="server">
|
||||
|
||||
<asp:Panel ID="nitroPanel" runat="server"></asp:Panel>
|
||||
|
||||
<span id="loadingBar" style="visibility: hidden;">
|
||||
<cc1:ProgressBar ID="progbar" runat="server" Title="Please wait..." />
|
||||
</span>
|
||||
</cc1:Pane>
|
||||
|
||||
|
||||
|
||||
<cc1:Pane id="boostNotInstalled" Text="Install runway" runat="server">
|
||||
<h3><%= umbraco.ui.Text("installer", "runwayWhatIsRunway") %>?</h3>
|
||||
|
||||
<%= umbraco.ui.Text("installer", "runwaySimpleSiteText") %>
|
||||
|
||||
<p>
|
||||
<button onclick="if (confirm('Are you sure you wish to install:\n\Runway\n\n')); window.location.href = 'installer.aspx?guid=ae41aad0-1c30-11dd-bd0b-0800200c9a66&repoGuid=65194810-1f85-11dd-bd0b-0800200c9a66'; return false;"><%= umbraco.ui.Text("install") %> Runway</button>
|
||||
</p>
|
||||
|
||||
</cc1:Pane>
|
||||
</cc1:UmbracoPanel>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery().ready(function() {
|
||||
jQuery('#list1a').accordion({ header: '.accordianOpener', autoheight: true });
|
||||
});
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
@@ -1,92 +0,0 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using umbraco.cms.helpers;
|
||||
using umbraco.IO;
|
||||
|
||||
namespace umbraco.presentation.developer.packages {
|
||||
public partial class Boost : BasePages.UmbracoEnsuredPage {
|
||||
|
||||
protected override void OnInit(EventArgs e) {
|
||||
base.OnInit(e);
|
||||
|
||||
fb.Style.Add("margin-top", "7px");
|
||||
|
||||
if (!Page.IsPostBack) {
|
||||
Exception ex = new Exception();
|
||||
if (!cms.businesslogic.packager.Settings.HasFileAccess(ref ex)) {
|
||||
|
||||
fb.type = global::umbraco.uicontrols.Feedback.feedbacktype.error;
|
||||
fb.Text = "<strong>" + ui.Text("errors", "filePermissionsError") + ":</strong><br/>" + ex.Message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e) {
|
||||
/*
|
||||
if (!Page.IsPostBack) {
|
||||
Exception ex = new Exception();
|
||||
if (!cms.businesslogic.packager.Settings.HasFileAccess(ref ex)) {
|
||||
fb.Style.Add("margin-top", "7px");
|
||||
fb.type = global::umbraco.uicontrols.Feedback.feedbacktype.error;
|
||||
fb.Text = "<strong>" + ui.Text("errors", "filePermissionsError") + ":</strong><br/>" + ex.Message;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
if (cms.businesslogic.packager.InstalledPackage.isPackageInstalled("ae41aad0-1c30-11dd-bd0b-0800200c9a66")) {
|
||||
boostInstalled.Visible = true;
|
||||
boostInstalled.Text = ui.Text("installer", "runwayInstalled");
|
||||
boostNotInstalled.Visible = false;
|
||||
nitroPanel.Controls.Add(new UserControl().LoadControl(SystemDirectories.Umbraco + "/developer/packages/LoadNitros.ascx"));
|
||||
} else {
|
||||
boostInstalled.Visible = false;
|
||||
boostNotInstalled.Visible = true;
|
||||
boostNotInstalled.Text = ui.Text("install") + " Runway";
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnBubbleEvent(object source, EventArgs args)
|
||||
{
|
||||
fb.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
|
||||
fb.Text = "<strong>Modules installed successfully.</strong> Each module can be uninstalled under the 'installed packages' section </p> <p><a href='boost.aspx'>Install additional modules</a></p>";
|
||||
|
||||
ClientTools.ReloadActionNode(true, true);
|
||||
|
||||
boostInstalled.Visible = false;
|
||||
boostNotInstalled.Visible = false;
|
||||
|
||||
|
||||
return base.OnBubbleEvent(source, args);
|
||||
}
|
||||
|
||||
protected void installBoost(object sender, EventArgs e) {
|
||||
|
||||
string repoGuid = "65194810-1f85-11dd-bd0b-0800200c9a66";
|
||||
string packageGuid = "ae41aad0-1c30-11dd-bd0b-0800200c9a66";
|
||||
|
||||
cms.businesslogic.packager.Installer p = new cms.businesslogic.packager.Installer();
|
||||
cms.businesslogic.packager.repositories.Repository repo = cms.businesslogic.packager.repositories.Repository.getByGuid(repoGuid);
|
||||
|
||||
if (repo.HasConnection()) {
|
||||
string tempFile = p.Import(repo.fetch(packageGuid));
|
||||
p.LoadConfig(tempFile);
|
||||
p.Install(tempFile, packageGuid, repoGuid);
|
||||
|
||||
boostInstalled.Visible = true;
|
||||
boostNotInstalled.Visible = false;
|
||||
} else {
|
||||
fb.type = global::umbraco.uicontrols.Feedback.feedbacktype.error;
|
||||
fb.Text = "<strong>No connection to repository.</strong> Runway could not be installed as there was no connection to: '" + repo.RepositoryUrl + "'";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace umbraco.presentation.developer.packages {
|
||||
|
||||
|
||||
public partial class Boost {
|
||||
|
||||
/// <summary>
|
||||
/// JsInclude1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::ClientDependency.Core.Controls.JsInclude JsInclude1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.UmbracoPanel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// fb control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.Feedback fb;
|
||||
|
||||
/// <summary>
|
||||
/// boostInstalled control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.Pane boostInstalled;
|
||||
|
||||
/// <summary>
|
||||
/// nitroPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel nitroPanel;
|
||||
|
||||
/// <summary>
|
||||
/// progbar control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.ProgressBar progbar;
|
||||
|
||||
/// <summary>
|
||||
/// boostNotInstalled control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.Pane boostNotInstalled;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user