mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +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>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Default.aspx.cs">
|
||||||
|
<DependentUpon>Default.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -150,6 +154,8 @@
|
|||||||
<Compile Include="WebRole.cs" />
|
<Compile Include="WebRole.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Advisory.html" />
|
||||||
|
<Content Include="Default.aspx" />
|
||||||
<Content Include="Global.asax" />
|
<Content Include="Global.asax" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -185,6 +191,7 @@
|
|||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Refresh.html" />
|
||||||
<Content Include="Web.config">
|
<Content Include="Web.config">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Content>
|
</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>
|
@@ -44,9 +44,6 @@ EndProject
|
|||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Tests", "Tools\Orchard.Tests\Orchard.Tests.csproj", "{0DFA2E10-96C8-4E05-BC10-B710B97ECCDE}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Tests", "Tools\Orchard.Tests\Orchard.Tests.csproj", "{0DFA2E10-96C8-4E05-BC10-B710B97ECCDE}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Notes", "_Notes", "{8A49DB66-40B2-4B6A-BFF0-D4839A240D00}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Notes", "_Notes", "{8A49DB66-40B2-4B6A-BFF0-D4839A240D00}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
Shapes.txt = Shapes.txt
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Modules", "Orchard.Web\Modules\Orchard.Modules\Orchard.Modules.csproj", "{17F86780-9A1F-4AA1-86F1-875EEC2730C7}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Modules", "Orchard.Web\Modules\Orchard.Modules\Orchard.Modules.csproj", "{17F86780-9A1F-4AA1-86F1-875EEC2730C7}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Reference in New Issue
Block a user