Skip to content

Commit

Permalink
Upgraded Lists widget
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhenko committed Mar 22, 2016
1 parent f5a4f99 commit dbcaa84
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 10 deletions.
21 changes: 21 additions & 0 deletions ListWidget/App_Start/RazorGeneratorMvcStart.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using RazorGenerator.Mvc;

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(ListWidget.RazorGeneratorMvcStart), "Start")]

namespace ListWidget {
public static class RazorGeneratorMvcStart {
public static void Start() {
var engine = new PrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly) {
UsePhysicalViewsIfNewer = HttpContext.Current.Request.IsLocal
};

ViewEngines.Engines.Insert(0, engine);

// StartPage lookups are done by WebPages.
VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
}
}
}
23 changes: 19 additions & 4 deletions ListWidget/ListWidget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@
<Reference Include="Ninject">
<HintPath>packages\Ninject.3.2.2.0\lib\net40\Ninject.dll</HintPath>
</Reference>
<Reference Include="Ninject.Web.Common">
<HintPath>packages\Ninject.Web.Common.3.2.3.0\lib\net45-full\Ninject.Web.Common.dll</HintPath>
</Reference>
<Reference Include="RazorEngine">
<HintPath>packages\Sitefinity.RazorEngine.3.0.8.0\lib\net40\RazorEngine.dll</HintPath>
</Reference>
<Reference Include="RazorGenerator.Mvc">
<HintPath>packages\RazorGenerator.Mvc.2.3.12\lib\net40\RazorGenerator.Mvc.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
Expand Down Expand Up @@ -78,11 +84,16 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Telerik.Sitefinity.Frontend">
<HintPath>packages\Telerik.Sitefinity.Feather.Core.1.4.360.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
<Reference Include="Telerik.Sitefinity.Frontend, Version=1.5.470.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\Telerik.Sitefinity.Feather.Core.1.5.470.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Mvc">
<HintPath>packages\Telerik.Sitefinity.Mvc.1.4.360.0\lib\net45\Telerik.Sitefinity.Mvc.dll</HintPath>
<Reference Include="Telerik.Sitefinity.Frontend.Data">
<HintPath>packages\Telerik.Sitefinity.Feather.Core.1.5.470.0\lib\net45\Telerik.Sitefinity.Frontend.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Mvc, Version=1.5.470.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\Telerik.Sitefinity.Mvc.1.5.470.0\lib\net45\Telerik.Sitefinity.Mvc.dll</HintPath>
</Reference>
<Reference Include="Telerik.Web.Design">
<HintPath>packages\Telerik.Web.UI.2014.2.618.40\lib\net40\Telerik.Web.Design.dll</HintPath>
Expand All @@ -97,8 +108,12 @@
<Reference Include="Telerik.Web.UI.Skins">
<HintPath>packages\Telerik.Web.UI.2014.2.618.40\lib\net40\Telerik.Web.UI.Skins.dll</HintPath>
</Reference>
<Reference Include="WebActivatorEx">
<HintPath>packages\WebActivatorEx.2.0.3\lib\net40\WebActivatorEx.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="App_Start\RazorGeneratorMvcStart.cs" />
<Compile Include="Mvc\Controllers\ListController.cs" />
<Compile Include="ListMode.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
6 changes: 6 additions & 0 deletions ListWidget/ListWidget.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
</GhostDoc>
16 changes: 12 additions & 4 deletions ListWidget/app.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2014.2.618.40" newVersion="2014.2.618.40"/>
<assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2014.2.618.40" newVersion="2014.2.618.40" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup></configuration>
7 changes: 5 additions & 2 deletions ListWidget/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net40" />
<package id="Ninject" version="3.2.2.0" targetFramework="net40" requireReinstallation="True" />
<package id="Ninject.Web.Common" version="3.2.3.0" targetFramework="net45" />
<package id="RazorGenerator.Mvc" version="2.3.12" targetFramework="net45" />
<package id="Sitefinity.RazorEngine" version="3.0.8.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core" version="1.4.360.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Mvc" version="1.4.360.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core" version="1.5.470.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Mvc" version="1.5.470.0" targetFramework="net45" />
<package id="Telerik.Web.UI" version="2014.2.618.40" targetFramework="net40" />
<package id="WebActivatorEx" version="2.0.3" targetFramework="net45" />
</packages>
6 changes: 6 additions & 0 deletions ReCaptcha/ReCaptcha.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
</GhostDoc>

0 comments on commit dbcaa84

Please sign in to comment.