mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Adding static root files to Azure solution
--HG-- branch : dev
This commit is contained in:
14
src/Orchard.Azure/Orchard.Azure.Web/Advisory.html
Normal file
14
src/Orchard.Azure/Orchard.Azure.Web/Advisory.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<html>
|
||||
<body onload="iframeResizePipe()">
|
||||
<iframe id="helpframe" src="" frameborder="0" width="0" height="0"></iframe>
|
||||
<script type="text/javascript">
|
||||
function iframeResizePipe() {
|
||||
var height = document.body.scrollHeight;
|
||||
var helpFrame = document.getElementById('helpframe') || frames['helpframe'];
|
||||
helpFrame.src = 'Admin/DashboardProxy' + '#' + height;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Your advisory message here -->
|
||||
</body>
|
||||
</html>
|
3
src/Orchard.Azure/Orchard.Azure.Web/Default.aspx
Normal file
3
src/Orchard.Azure/Orchard.Azure.Web/Default.aspx
Normal file
@@ -0,0 +1,3 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Orchard.Azure.Web._Default" %>
|
||||
|
||||
<%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>
|
20
src/Orchard.Azure/Orchard.Azure.Web/Default.aspx.cs
Normal file
20
src/Orchard.Azure/Orchard.Azure.Web/Default.aspx.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace Orchard.Azure.Web {
|
||||
public class _Default : Page {
|
||||
public void Page_Load(object sender, EventArgs e) {
|
||||
// Change the current path so that the Routing handler can correctly interpret
|
||||
// the request, then restore the original path so that the OutputCache module
|
||||
// can correctly process the response (if caching is enabled).
|
||||
|
||||
var originalPath = Request.Path;
|
||||
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
|
||||
IHttpHandler httpHandler = new MvcHttpHandler();
|
||||
httpHandler.ProcessRequest(HttpContext.Current);
|
||||
HttpContext.Current.RewritePath(originalPath, false);
|
||||
}
|
||||
}
|
||||
}
|
@@ -143,6 +143,10 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Default.aspx.cs">
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
@@ -150,6 +154,8 @@
|
||||
<Compile Include="WebRole.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Advisory.html" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -185,6 +191,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Refresh.html" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
|
15
src/Orchard.Azure/Orchard.Azure.Web/Refresh.html
Normal file
15
src/Orchard.Azure/Orchard.Azure.Web/Refresh.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Configuration Changing...</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Orchard is temporarily unavailable as a change in configuration requires a restart.
|
||||
A simple page refresh usually solves this issue.</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.location.reload();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user