diff --git a/AdminMenu.cs b/AdminMenu.cs new file mode 100644 index 0000000..59d5595 --- /dev/null +++ b/AdminMenu.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Orchard.Localization; +using Orchard.UI.Navigation; + +namespace JsonProjection +{ + public class AdminMenu : INavigationProvider + { + public AdminMenu() + { + } + + public Localizer T { get; set; } + public string MenuName { get { return "admin"; } } + + public void GetNavigation(NavigationBuilder builder) + { + builder.AddImageSet("navigation") + .Add(T("Json Query Feeds"), "9", + menu => + { + menu.Add(T("Preview"), "0", item => item.Action("Index", "Service", new { area = "JsonProjection" })); + }); + } + } +} diff --git a/JsonProjection.csproj b/JsonProjection.csproj new file mode 100644 index 0000000..bba4c00 --- /dev/null +++ b/JsonProjection.csproj @@ -0,0 +1,177 @@ + + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {8858EE50-B5EC-4589-AD2A-9CD3A4FBF1E2} + {fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + JsonProjection + JsonProjection + v4.0 + false + + + 4.0 + + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + AllRules.ruleset + + + pdbonly + true + bin\ + TRACE + prompt + 4 + AllRules.ruleset + + + + False + ..\..\..\..\lib\claysharp\ClaySharp.dll + + + + ..\..\..\packages\Newtonsoft.Json.4.0.8\lib\net40\Newtonsoft.Json.dll + + + + + 3.5 + + + + False + ..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll + + + + + + + + + + + + + + + + + + + + {2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6} + Orchard.Framework + + + {9916839C-39FC-4CEB-A5AF-89CA7E87119F} + Orchard.Core + + + {642a49d7-8752-4177-80d6-bfbbcfad3de0} + Orchard.Forms + + + {5531e894-d259-45a3-aa61-26dbe720c1ce} + Orchard.Projections + + + {6f759635-13d7-4e94-bcc9-80445d63f117} + Orchard.Tokens + + + + + + + + + + + + + + + + + + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + $(ProjectDir)\..\Manifests + + + + + + + + + \ No newline at end of file diff --git a/JsonProjection.csproj.user b/JsonProjection.csproj.user new file mode 100644 index 0000000..6f23531 --- /dev/null +++ b/JsonProjection.csproj.user @@ -0,0 +1,13 @@ + + + + + + + + + + en-US + false + + \ No newline at end of file diff --git a/Module.txt b/Module.txt new file mode 100644 index 0000000..ae23a31 --- /dev/null +++ b/Module.txt @@ -0,0 +1,10 @@ +Name: JsonProjection +AntiForgery: enabled +Author: The Orchard Team +Website: http://orchardproject.net +Version: 1.0 +OrchardVersion: 1.0 +Description: Description for the module +Features: + JsonProjection: + Description: Description for feature JsonProjection. \ No newline at end of file diff --git a/Routes.cs b/Routes.cs new file mode 100644 index 0000000..eaefc01 --- /dev/null +++ b/Routes.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Web.Mvc; +using System.Web.Routing; +using Orchard.Mvc.Routes; + +namespace JsonProjection +{ + public class Routes : IRouteProvider + { + public string Area + { + get { return "JsonProjection"; } + } + + public Routes() + { + } + + public void GetRoutes(ICollection routes) + { + foreach (var routeDescriptor in GetRoutes()) + routes.Add(routeDescriptor); + } + + public IEnumerable GetRoutes() + { + return new[] { + new RouteDescriptor { + Route = new Route( + "Admin/JsonProjection/Preview/{id}", + new RouteValueDictionary { + {"area", this.Area}, + {"controller", "Service"}, + {"action", "Preview"} + }, + new RouteValueDictionary(), + new RouteValueDictionary { + {"area", this.Area } + }, + new MvcRouteHandler()) + } + }; + } + } +} diff --git a/Web.config b/Web.config new file mode 100644 index 0000000..88ddc0e --- /dev/null +++ b/Web.config @@ -0,0 +1,41 @@ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages.config b/packages.config new file mode 100644 index 0000000..e4a5069 --- /dev/null +++ b/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file