diff --git a/.gitattributes b/.gitattributes index 412eeda..1ff0c42 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,22 +1,63 @@ -# Auto detect text files and perform LF normalization +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### * text=auto -# Custom for Visual Studio -*.cs diff=csharp -*.sln merge=union -*.csproj merge=union -*.vbproj merge=union -*.fsproj merge=union -*.dbproj merge=union +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index 5ebd21a..70dc36a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,38 +1,3 @@ -################# -## Eclipse -################# - -*.pydevproject -.project -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - -################# -## Visual Studio -################# - ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. @@ -43,9 +8,33 @@ local.properties # Build results [Dd]ebug/ +[Dd]ebugPublic/ [Rr]elease/ +x64/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Roslyn cache directories +*.ide/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +#NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + *_i.c *_p.c +*_i.h *.ilk *.meta *.obj @@ -59,12 +48,17 @@ local.properties *.tli *.tlh *.tmp +*.tmp_proj +*.log *.vspscc +*.vssscc .builds -*.dotCover +*.pidb +*.svclog +*.scc -## TODO: If you have NuGet Package Restore enabled, uncomment this -#packages/ +# Chutzpah Test files +_Chutzpah* # Visual C++ cache files ipch/ @@ -72,16 +66,46 @@ ipch/ *.ncb *.opensdf *.sdf +*.cachefile # Visual Studio profiler *.psess *.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState # ReSharper is a .NET coding add-in -_ReSharper* +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding addin-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ # Installshield output folder -[Ee]xpress +[Ee]xpress/ # DocProject is a documentation generator add-in DocProject/buildhelp/ @@ -94,70 +118,73 @@ DocProject/Help/Html2 DocProject/Help/html # Click-Once directory -publish +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +## TODO: Comment the next line if you want to checkin your +## web deploy settings but do note that will include unencrypted +## passwords +#*.pubxml + +# NuGet Packages Directory +packages/* +## TODO: If the tool you use requires repositories.config +## uncomment the next line +#!packages/repositories.config + +# Enable "build/" folder in the NuGet Packages folder since +# NuGet packages use it for MSBuild targets. +# This line needs to be after the ignore of the build folder +# (and the packages folder if the line above has been uncommented) +!packages/build/ + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ # Others -[Bb]in -[Oo]bj -sql -TestResults +sql/ *.Cache -ClientBin -stylecop.* +ClientBin/ +[Ss]tyle[Cc]op.* ~$* +*~ *.dbmdl -Generated_Code #added for RIA/Silverlight projects - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML +UpgradeLog*.htm +# SQL Server files +*.mdf +*.ldf +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings -############ -## Windows -############ - -# Windows image file caches -Thumbs.db - -# Folder config file -Desktop.ini - - -############# -## Python -############# - -*.py[co] - -# Packages -*.egg -*.egg-info -dist -build -eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg - -# Installer logs -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox - -#Translations -*.mo - -#Mr Developer -.mr.developer.cfg +# Microsoft Fakes +FakesAssemblies/ -# Mac crap -.DS_Store +# LightSwitch generated files +GeneratedArtifacts/ +_Pvt_Extensions/ +ModelManifest.xml \ No newline at end of file diff --git a/FlexLabs.Web.TablePager.sln b/FlexLabs.Web.TablePager.sln new file mode 100644 index 0000000..c93941f --- /dev/null +++ b/FlexLabs.Web.TablePager.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A2875F06-7319-47E7-910E-02AFDB0926A8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E685C7B6-1D8A-4969-8C53-AF238F7300F8}" + ProjectSection(SolutionItems) = preProject + global.json = global.json + EndProjectSection +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "FlexLabs.Web.TablePager", "src\FlexLabs.Web.TablePager\FlexLabs.Web.TablePager.xproj", "{819C9A3B-C8FA-42D2-9E4E-209355ED8443}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {819C9A3B-C8FA-42D2-9E4E-209355ED8443}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {819C9A3B-C8FA-42D2-9E4E-209355ED8443}.Debug|Any CPU.Build.0 = Debug|Any CPU + {819C9A3B-C8FA-42D2-9E4E-209355ED8443}.Release|Any CPU.ActiveCfg = Release|Any CPU + {819C9A3B-C8FA-42D2-9E4E-209355ED8443}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {819C9A3B-C8FA-42D2-9E4E-209355ED8443} = {A2875F06-7319-47E7-910E-02AFDB0926A8} + EndGlobalSection +EndGlobal diff --git a/IOrderByExpression.cs b/IOrderByExpression.cs deleted file mode 100644 index a49a5c8..0000000 --- a/IOrderByExpression.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Linq; - -namespace FlexLabs.Web.TablePager -{ - public interface IOrderByExpression - { - IOrderedQueryable ApplyOrdering(IQueryable query); - IOrderedQueryable ApplyOrdering(IQueryable query, Boolean ascending); - } -} diff --git a/NuGet/FlexLabs.Web.TablePager.nuspec b/NuGet/FlexLabs.Web.TablePager.nuspec deleted file mode 100644 index 66d39f0..0000000 --- a/NuGet/FlexLabs.Web.TablePager.nuspec +++ /dev/null @@ -1,21 +0,0 @@ - - - - FlexLabs.Web.TablePager - 1.5.10 - Table Pager - Artiom Chilaru - Artiom Chilaru - https://github.com/artiomchi/TablePager - false - Helps manage paging and page sorting in a ASP.NET MVC project - mvc4 - - - - - - - - - \ No newline at end of file diff --git a/OrderByExpression.cs b/OrderByExpression.cs deleted file mode 100644 index 4ef0fd9..0000000 --- a/OrderByExpression.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; - -namespace FlexLabs.Web.TablePager -{ - // Derived from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2641510&SiteID=1 - public class OrderByExpression : IOrderByExpression - { - private Expression> exp = null; - public OrderByExpression(Expression> expression) - { - exp = expression; - } - public IOrderedQueryable ApplyOrdering(IQueryable query) - { - return query.OrderBy(exp); - } - public IOrderedQueryable ApplyOrdering(IQueryable query, Boolean ascending) - { - if (ascending) - return query.OrderBy(exp); - else - return query.OrderByDescending(exp); - } - } -} diff --git a/OrderByExpressionCollection.cs b/OrderByExpressionCollection.cs deleted file mode 100644 index 9068283..0000000 --- a/OrderByExpressionCollection.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq.Expressions; - -namespace FlexLabs.Web.TablePager -{ - public class OrderByExpressionCollection : IEnumerable - { - private Dictionary> storage = new Dictionary>(); - - public void Add(TKey key, Expression> expression) - { - storage.Add(key, new OrderByExpression(expression)); - } - - public IOrderByExpression this[TKey key] - { - get - { - return storage[key]; - } - } - - public IEnumerator GetEnumerator() - { - throw new NotImplementedException(); - } - } -} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs deleted file mode 100644 index 76d6f8f..0000000 --- a/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("FlexLabs TablePager")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("FlexLabs Inc.")] -[assembly: AssemblyProduct("TablePager")] -[assembly: AssemblyCopyright("Copyright © Artiom Chilaru 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("0651203d-acf5-42f1-9340-a7febdeb8e36")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.5.10.*")] -[assembly: AssemblyFileVersion("1.5.10.*")] diff --git a/TablePager.csproj b/TablePager.csproj deleted file mode 100644 index e582efa..0000000 --- a/TablePager.csproj +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Debug - AnyCPU - {B4B86594-6061-4B8B-AECB-B7C98F3DF48E} - Library - Properties - FlexLabs.Web.TablePager - FlexLabs.Web.TablePager - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - packages\PagedList.1.15.0.0\lib\net40\PagedList.dll - - - - - - - - - - - - - - - - - - - - - - True - True - TablePager.cshtml - - - - RazorGenerator - TablePager.generated.cs - - - - - - - - - - - - "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /t http://timestamp.digicert.com /a FlexLabs.Web.TablePager.dll - - - \ No newline at end of file diff --git a/TablePager.generated.cs b/TablePager.generated.cs deleted file mode 100644 index 6d2e8d5..0000000 --- a/TablePager.generated.cs +++ /dev/null @@ -1,480 +0,0 @@ -#pragma warning disable 1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace FlexLabs.Web.TablePager -{ - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; - using System.Net; - using System.Text; - using System.Web; - using System.Web.Helpers; - - #line 3 "..\..\TablePager.cshtml" - using System.Web.Mvc; - - #line default - #line hidden - using System.Web.Mvc.Ajax; - - #line 4 "..\..\TablePager.cshtml" - using System.Web.Mvc.Html; - - #line default - #line hidden - using System.Web.Routing; - using System.Web.Security; - using System.Web.UI; - using System.Web.WebPages; - - #line 2 "..\..\TablePager.cshtml" - using PagedList; - - #line default - #line hidden - - [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] - public static class TablePager - { - - #line 5 "..\..\TablePager.cshtml" - - public static HelperResult Pager(IPagedList pagedList, String label = "Page: ") - { - if (pagedList.PageCount == 0) { - return null; - } - var model = new PagedListData(pagedList.PageNumber, pagedList.PageSize, pagedList.PageCount, pagedList.TotalItemCount); - return Pager(model, label); - } - - #line default - #line hidden - -public static System.Web.WebPages.HelperResult Pager(PagedListData model, String label) { -return new System.Web.WebPages.HelperResult(__razor_helper_writer => { - - - -#line 15 "..\..\TablePager.cshtml" - - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
\r\n \r\n
    \r\n"); - - - -#line 19 "..\..\TablePager.cshtml" - if (!model.CanSeeFirstPage()) { - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
  • \r\n
  • \r\n"); - - - -#line 23 "..\..\TablePager.cshtml" - } - -#line default -#line hidden - - - -#line 24 "..\..\TablePager.cshtml" - foreach (var page in model.PageRange) { - if (page == model.PageNumber) { - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
  • "); - - - -#line 26 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, page); - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
  • \r\n"); - - - -#line 27 "..\..\TablePager.cshtml" - } else { - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
  • \r\n"); - - - -#line 29 "..\..\TablePager.cshtml" - } - } - -#line default -#line hidden - - - -#line 31 "..\..\TablePager.cshtml" - if (!model.CanSeeLastPage()) { - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
  • \r\n"); - - - -#line 33 "..\..\TablePager.cshtml" - } - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "
\r\n
\r\n"); - - - -#line 36 "..\..\TablePager.cshtml" - -#line default -#line hidden - -}); - -} - - -public static System.Web.WebPages.HelperResult PageSizer(System.Web.Mvc.HtmlHelper html, String label = "Page Size:", Int32[] pageSizes = null, Int32? currentSize = null) { -return new System.Web.WebPages.HelperResult(__razor_helper_writer => { - - - -#line 38 "..\..\TablePager.cshtml" - - -#line default -#line hidden - - -#line 39 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, html.Label("PageSize", label)); - -#line default -#line hidden - - -#line 39 "..\..\TablePager.cshtml" - - -#line default -#line hidden - - -#line 40 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, html.DropDownList("PageSize", TableModel.GetPageSizes(pageSizes, currentSize), new { onchange = "$(this).closest('form').submit();" })); - -#line default -#line hidden - - -#line 40 "..\..\TablePager.cshtml" - - -#line default -#line hidden - - -#line 41 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, html.ValidationMessage("PageSize")); - -#line default -#line hidden - - -#line 41 "..\..\TablePager.cshtml" - - -#line default -#line hidden - -}); - -} - - -public static System.Web.WebPages.HelperResult Header(IEnumerable headers) { -return new System.Web.WebPages.HelperResult(__razor_helper_writer => { - - - -#line 44 "..\..\TablePager.cshtml" - - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, " \r\n"); - - - -#line 46 "..\..\TablePager.cshtml" - foreach (var iheader in headers) { - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, " "); - -#line default -#line hidden - - -#line 47 "..\..\TablePager.cshtml" - - var header = iheader as TableHeader; - if (iheader is CustomTableHeader) { - -#line default -#line hidden - - -#line 50 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, (iheader as CustomTableHeader).Content(null)); - -#line default -#line hidden - - -#line 50 "..\..\TablePager.cshtml" - - } else { - if(header.Value != null) - { -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, ""); - - - -#line 53 "..\..\TablePager.cshtml" - } - else { - -#line default -#line hidden - - -#line 55 "..\..\TablePager.cshtml" -WebViewPage.WriteTo(@__razor_helper_writer, header.Title); - -#line default -#line hidden - - -#line 55 "..\..\TablePager.cshtml" - - } - } - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\r\n"); - - - -#line 59 "..\..\TablePager.cshtml" - } - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, " \r\n"); - - - -#line 61 "..\..\TablePager.cshtml" - -#line default -#line hidden - -}); - -} - - -public static System.Web.WebPages.HelperResult FormHidden(ITableModel model) { -return new System.Web.WebPages.HelperResult(__razor_helper_writer => { - - - -#line 63 "..\..\TablePager.cshtml" - - -#line default -#line hidden - - - -#line 64 "..\..\TablePager.cshtml" - - -#line default -#line hidden - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, " \r\n"); - - - -WebViewPage.WriteLiteralTo(@__razor_helper_writer, " \r\n"); - - - -#line 67 "..\..\TablePager.cshtml" - -#line default -#line hidden - -}); - -} - - - } -} -#pragma warning restore 1591 diff --git a/TablePager.sln b/TablePager.sln deleted file mode 100644 index 10ab639..0000000 --- a/TablePager.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TablePager", "TablePager.csproj", "{B4B86594-6061-4B8B-AECB-B7C98F3DF48E}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B4B86594-6061-4B8B-AECB-B7C98F3DF48E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B4B86594-6061-4B8B-AECB-B7C98F3DF48E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B4B86594-6061-4B8B-AECB-B7C98F3DF48E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B4B86594-6061-4B8B-AECB-B7C98F3DF48E}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/global.json b/global.json new file mode 100644 index 0000000..ad67817 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "projects": [ "src", "test" ], + "sdk": { + "version": "1.0.0-rc1-update1" + } +} diff --git a/packages.config b/packages.config deleted file mode 100644 index 97d55f8..0000000 --- a/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nupkg b/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nupkg deleted file mode 100644 index 274dcb5..0000000 Binary files a/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nupkg and /dev/null differ diff --git a/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nuspec b/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nuspec deleted file mode 100644 index 8878f17..0000000 --- a/packages/PagedList.1.15.0.0/PagedList.1.15.0.0.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - PagedList - 1.15.0.0 - PagedList - Troy Goode - Troy Goode - http://www.opensource.org/licenses/mit-license.php - http://github.com/TroyGoode/PagedList - false - PagedList makes it easier for .Net developers to write paging code. It allows you to take any IEnumerable(T) and by specifying the page size and desired page index, select only a subset of that list. PagedList also provides properties that are useful when building UI paging controls. - - - - paging pager page infinitescroll ajax mvc - - \ No newline at end of file diff --git a/packages/PagedList.1.15.0.0/lib/net40/PagedList.dll b/packages/PagedList.1.15.0.0/lib/net40/PagedList.dll deleted file mode 100644 index be9bc96..0000000 Binary files a/packages/PagedList.1.15.0.0/lib/net40/PagedList.dll and /dev/null differ diff --git a/packages/PagedList.1.15.0.0/lib/net40/PagedList.xml b/packages/PagedList.1.15.0.0/lib/net40/PagedList.xml deleted file mode 100644 index fe837b3..0000000 --- a/packages/PagedList.1.15.0.0/lib/net40/PagedList.xml +++ /dev/null @@ -1,388 +0,0 @@ - - - - PagedList - - - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - The type of object the collection should contain. - - - - - - Non-enumerable version of the PagedList class. - - - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - - - Total number of subsets within the superset. - - - Total number of subsets within the superset. - - - - - Total number of objects contained within the superset. - - - Total number of objects contained within the superset. - - - - - One-based index of this subset within the superset. - - - One-based index of this subset within the superset. - - - - - Maximum size any individual subset. - - - Maximum size any individual subset. - - - - - Returns true if this is NOT the first subset within the superset. - - - Returns true if this is NOT the first subset within the superset. - - - - - Returns true if this is NOT the last subset within the superset. - - - Returns true if this is NOT the last subset within the superset. - - - - - Returns true if this is the first subset within the superset. - - - Returns true if this is the first subset within the superset. - - - - - Returns true if this is the last subset within the superset. - - - Returns true if this is the last subset within the superset. - - - - - One-based index of the first item in the paged subset. - - - One-based index of the first item in the paged subset. - - - - - One-based index of the last item in the paged subset. - - - One-based index of the last item in the paged subset. - - - - - Protected constructor that allows for instantiation without passing in a separate list. - - - - - Non-enumerable version of the PagedList class. - - A PagedList (likely enumerable) to copy metadata from. - - - - Total number of subsets within the superset. - - - Total number of subsets within the superset. - - - - - Total number of objects contained within the superset. - - - Total number of objects contained within the superset. - - - - - One-based index of this subset within the superset. - - - One-based index of this subset within the superset. - - - - - Maximum size any individual subset. - - - Maximum size any individual subset. - - - - - Returns true if this is NOT the first subset within the superset. - - - Returns true if this is NOT the first subset within the superset. - - - - - Returns true if this is NOT the last subset within the superset. - - - Returns true if this is NOT the last subset within the superset. - - - - - Returns true if this is the first subset within the superset. - - - Returns true if this is the first subset within the superset. - - - - - Returns true if this is the last subset within the superset. - - - Returns true if this is the last subset within the superset. - - - - - One-based index of the first item in the paged subset. - - - One-based index of the first item in the paged subset. - - - - - One-based index of the last item in the paged subset. - - - One-based index of the last item in the paged subset. - - - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - The type of object the collection should contain. - - - - - Gets a non-enumerable copy of this paged list. - - A non-enumerable copy of this paged list. - - - - Gets the element at the specified index. - - The zero-based index of the element to get. - - - - Gets the number of elements contained on this page. - - - - - The subset of items contained only within this one page of the superset. - - - - - Parameterless constructor. - - - - - Initializes a new instance of a type deriving from and sets properties needed to calculate position and size data on the subset and superset. - - The one-based index of the subset of objects contained by this instance. - The maximum size of any individual subset. - The size of the superset. - - - - Returns an enumerator that iterates through the BasePagedList<T>. - - A BasePagedList<T>.Enumerator for the BasePagedList<T>. - - - - Returns an enumerator that iterates through the BasePagedList<T>. - - A BasePagedList<T>.Enumerator for the BasePagedList<T>. - - - - Gets a non-enumerable copy of this paged list. - - A non-enumerable copy of this paged list. - - - - Gets the element at the specified index. - - The zero-based index of the element to get. - - - - Gets the number of elements contained on this page. - - - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - The type of object the collection should contain. - - - - - - - - Initializes a new instance of the class that divides the supplied superset into subsets the size of the supplied pageSize. The instance then only containes the objects contained in the subset specified by index. - - The collection of objects to be divided into subsets. If the collection implements , it will be treated as such. - The one-based index of the subset of objects to be contained by this instance. - The maximum size of any individual subset. - The specified index cannot be less than zero. - The specified page size cannot be less than one. - - - - Initializes a new instance of the class that divides the supplied superset into subsets the size of the supplied pageSize. The instance then only containes the objects contained in the subset specified by index. - - The collection of objects to be divided into subsets. If the collection implements , it will be treated as such. - The one-based index of the subset of objects to be contained by this instance. - The maximum size of any individual subset. - The specified index cannot be less than zero. - The specified page size cannot be less than one. - - - - Container for extension methods designed to simplify the creation of instances of . - - - - - Creates a subset of this collection of objects that can be individually accessed by index and containing metadata about the collection of objects the subset was created from. - - The type of object the collection should contain. - The collection of objects to be divided into subsets. If the collection implements , it will be treated as such. - The one-based index of the subset of objects to be contained by this instance. - The maximum size of any individual subset. - A subset of this collection of objects that can be individually accessed by index and containing metadata about the collection of objects the subset was created from. - - - - - Creates a subset of this collection of objects that can be individually accessed by index and containing metadata about the collection of objects the subset was created from. - - The type of object the collection should contain. - The collection of objects to be divided into subsets. If the collection implements , it will be treated as such. - The one-based index of the subset of objects to be contained by this instance. - The maximum size of any individual subset. - A subset of this collection of objects that can be individually accessed by index and containing metadata about the collection of objects the subset was created from. - - - - - Splits a collection of objects into n pages with an (for example, if I have a list of 45 shoes and say 'shoes.Split(5)' I will now have 4 pages of 10 shoes and 1 page of 5 shoes. - - The type of object the collection should contain. - The collection of objects to be divided into subsets. - The number of pages this collection should be split into. - A subset of this collection of objects, split into n pages. - - - - Splits a collection of objects into an unknown number of pages with n items per page (for example, if I have a list of 45 shoes and say 'shoes.Partition(10)' I will now have 4 pages of 10 shoes and 1 page of 5 shoes. - - The type of object the collection should contain. - The collection of objects to be divided into subsets. - The maximum number of items each page may contain. - A subset of this collection of objects, split into pages of maximum size n. - - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - - Represents a subset of a collection of objects that can be individually accessed by index and containing metadata about the superset collection of objects this subset was created from. - - The type of object the collection should contain. - - - - - - - - Initializes a new instance of the class that contains the already divided subset and information about the size of the superset and the subset's position within it. - - The single subset this collection should represent. - Supply the ".MetaData" property of an existing IPagedList instance to recreate it here (such as when creating a new instance of a PagedList after having used Automapper to convert its contents to a DTO.) - The specified index cannot be less than zero. - The specified page size cannot be less than one. - - - - Initializes a new instance of the class that contains the already divided subset and information about the size of the superset and the subset's position within it. - - The single subset this collection should represent. - The one-based index of the subset of objects contained by this instance. - The maximum size of any individual subset. - The size of the superset. - The specified index cannot be less than zero. - The specified page size cannot be less than one. - - - diff --git a/packages/repositories.config b/packages/repositories.config deleted file mode 100644 index 0dec135..0000000 --- a/packages/repositories.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CustomTableHeader.cs b/src/FlexLabs.Web.TablePager/CustomTableHeader.cs similarity index 73% rename from CustomTableHeader.cs rename to src/FlexLabs.Web.TablePager/CustomTableHeader.cs index e861fd8..6bd1f7e 100644 --- a/CustomTableHeader.cs +++ b/src/FlexLabs.Web.TablePager/CustomTableHeader.cs @@ -7,5 +7,7 @@ public class CustomTableHeader : ITableHeader { public Func Content { get; set; } public String CssClass { get; set; } + public Int32? ColSpan { get; set; } + public Int32? RowSpan { get; set; } } } diff --git a/src/FlexLabs.Web.TablePager/FlexLabs.Web.TablePager.xproj b/src/FlexLabs.Web.TablePager/FlexLabs.Web.TablePager.xproj new file mode 100644 index 0000000..d5baa55 --- /dev/null +++ b/src/FlexLabs.Web.TablePager/FlexLabs.Web.TablePager.xproj @@ -0,0 +1,21 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + 819c9a3b-c8fa-42d2-9e4e-209355ed8443 + FlexLabs.TablePager + ..\..\artifacts\obj\$(MSBuildProjectName) + ..\..\artifacts\bin\$(MSBuildProjectName)\ + + + 2.0 + + + True + + + \ No newline at end of file diff --git a/ITableHeader.cs b/src/FlexLabs.Web.TablePager/ITableHeader.cs similarity index 65% rename from ITableHeader.cs rename to src/FlexLabs.Web.TablePager/ITableHeader.cs index 00f41b4..b1067fb 100644 --- a/ITableHeader.cs +++ b/src/FlexLabs.Web.TablePager/ITableHeader.cs @@ -5,5 +5,7 @@ namespace FlexLabs.Web.TablePager public interface ITableHeader { String CssClass { get; set; } + Int32? ColSpan { get; set; } + Int32? RowSpan { get; set; } } } diff --git a/ITableModel.cs b/src/FlexLabs.Web.TablePager/ITableModel.cs similarity index 100% rename from ITableModel.cs rename to src/FlexLabs.Web.TablePager/ITableModel.cs diff --git a/PagedListData.cs b/src/FlexLabs.Web.TablePager/PagedListData.cs similarity index 100% rename from PagedListData.cs rename to src/FlexLabs.Web.TablePager/PagedListData.cs diff --git a/TableHeader.cs b/src/FlexLabs.Web.TablePager/TableHeader.cs similarity index 76% rename from TableHeader.cs rename to src/FlexLabs.Web.TablePager/TableHeader.cs index 0972fb4..c10e4ef 100644 --- a/TableHeader.cs +++ b/src/FlexLabs.Web.TablePager/TableHeader.cs @@ -8,5 +8,7 @@ public class TableHeader : ITableHeader public Object Value { get; set; } public String ToolTip { get; set; } public String CssClass { get; set; } + public Int32? ColSpan { get; set; } + public Int32? RowSpan { get; set; } } } diff --git a/TableModel.cs b/src/FlexLabs.Web.TablePager/TableModel.cs similarity index 100% rename from TableModel.cs rename to src/FlexLabs.Web.TablePager/TableModel.cs diff --git a/TableModelBinder.cs b/src/FlexLabs.Web.TablePager/TableModelBinder.cs similarity index 100% rename from TableModelBinder.cs rename to src/FlexLabs.Web.TablePager/TableModelBinder.cs diff --git a/TablePager.cshtml b/src/FlexLabs.Web.TablePager/TablePager.cshtml similarity index 68% rename from TablePager.cshtml rename to src/FlexLabs.Web.TablePager/TablePager.cshtml index 58d912e..08016f8 100644 --- a/TablePager.cshtml +++ b/src/FlexLabs.Web.TablePager/TablePager.cshtml @@ -42,20 +42,27 @@ } @helper Header(IEnumerable headers) { +@Header(new[] { headers }) +} +@helper Header(IEnumerable[] headersSet) { - @foreach (var iheader in headers) { - @{ - var header = iheader as TableHeader; - if (iheader is CustomTableHeader) { - @((iheader as CustomTableHeader).Content(null)) - } else { - if(header.Value != null) - {} - else { - @header.Title - } + @foreach (var headers in headersSet) { + + @foreach (var iheader in headers) { + @{ + var header = iheader as TableHeader; + if (iheader is CustomTableHeader) { + @((iheader as CustomTableHeader).Content(null)) + } else { + if(header.Value != null) + {} + else { + @header.Title + } + } + } } - } + } } diff --git a/src/FlexLabs.Web.TablePager/TablePager.generated.cs b/src/FlexLabs.Web.TablePager/TablePager.generated.cs new file mode 100644 index 0000000..63f9560 --- /dev/null +++ b/src/FlexLabs.Web.TablePager/TablePager.generated.cs @@ -0,0 +1,616 @@ +#pragma warning disable 1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace FlexLabs.Web.TablePager +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Net; + using System.Text; + using System.Web; + using System.Web.Helpers; + +#line 5 "..\..\TablePager.cshtml" + using System.Web.Mvc; + +#line default +#line hidden + using System.Web.Mvc.Ajax; + +#line 6 "..\..\TablePager.cshtml" + using System.Web.Mvc.Html; + +#line default +#line hidden + using System.Web.Routing; + using System.Web.Security; + using System.Web.UI; + using System.Web.WebPages; + +#line 4 "..\..\TablePager.cshtml" + using PagedList; + +#line default +#line hidden + + [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] + public class TablePager : System.Web.WebPages.HelperPage + { + +#line 7 "..\..\TablePager.cshtml" + + public static HelperResult Pager(IPagedList pagedList, String label = "Page: ") + { + if (pagedList.PageCount == 0) + { + return null; + } + var model = new PagedListData(pagedList.PageNumber, pagedList.PageSize, pagedList.PageCount, pagedList.TotalItemCount); + return Pager(model, label); + } + +#line default +#line hidden + +#line 17 "..\..\TablePager.cshtml" + public static System.Web.WebPages.HelperResult Pager(PagedListData model, String label) + { +#line default +#line hidden + return new System.Web.WebPages.HelperResult(__razor_helper_writer => { + +#line 17 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " \r\n \r\n
    \r\n"); + + +#line 21 "..\..\TablePager.cshtml" + + +#line default +#line hidden + +#line 21 "..\..\TablePager.cshtml" + if (!model.CanSeeFirstPage()) + { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • \r\n 1.\r\n
  • \r\n"); + + +#line 25 "..\..\TablePager.cshtml" + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " "); + + +#line 26 "..\..\TablePager.cshtml" + foreach (var page in model.PageRange) + { + if (page == model.PageNumber) + { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • "); + + +#line 28 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, page); + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • \r\n"); + + +#line 29 "..\..\TablePager.cshtml" + } + else { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • (page + +#line default +#line hidden +, 1055), false) + ); + + WriteLiteralTo(__razor_helper_writer, ">"); + + +#line 30 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, page); + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • \r\n"); + + +#line 31 "..\..\TablePager.cshtml" + } + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " "); + + +#line 33 "..\..\TablePager.cshtml" + if (!model.CanSeeLastPage()) + { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • (model.PageCount + +#line default +#line hidden +, 1207), false) + ); + + WriteLiteralTo(__razor_helper_writer, ">"); + + +#line 34 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, model.PageCount); + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
  • \r\n"); + + +#line 35 "..\..\TablePager.cshtml" + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "
\r\n \r\n"); + + +#line 38 "..\..\TablePager.cshtml" + + +#line default +#line hidden + }); + +#line 38 "..\..\TablePager.cshtml" + } +#line default +#line hidden + +#line 40 "..\..\TablePager.cshtml" + public static System.Web.WebPages.HelperResult PageSizer(System.Web.Mvc.HtmlHelper html, String label = "Page Size:", Int32[] pageSizes = null, Int32? currentSize = null) + { +#line default +#line hidden + return new System.Web.WebPages.HelperResult(__razor_helper_writer => { + +#line 40 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + +#line 41 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, html.Label("PageSize", label)); + + +#line default +#line hidden + +#line 41 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + +#line 42 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, html.DropDownList("PageSize", TableModel.GetPageSizes(pageSizes, currentSize), new { onchange = "$(this).closest('form').submit();" })); + + +#line default +#line hidden + +#line 42 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + +#line 43 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, html.ValidationMessage("PageSize")); + + +#line default +#line hidden + +#line 43 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + }); + +#line 44 "..\..\TablePager.cshtml" + } +#line default +#line hidden + +#line 46 "..\..\TablePager.cshtml" + public static System.Web.WebPages.HelperResult Header(IEnumerable headers) + { +#line default +#line hidden + return new System.Web.WebPages.HelperResult(__razor_helper_writer => { + +#line 46 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + +#line 47 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, Header(new[] { headers })); + + +#line default +#line hidden + +#line 47 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + }); + +#line 48 "..\..\TablePager.cshtml" + } +#line default +#line hidden + +#line 49 "..\..\TablePager.cshtml" + public static System.Web.WebPages.HelperResult Header(IEnumerable[] headersSet) + { +#line default +#line hidden + return new System.Web.WebPages.HelperResult(__razor_helper_writer => { + +#line 49 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " \r\n"); + + +#line 51 "..\..\TablePager.cshtml" + + +#line default +#line hidden + +#line 51 "..\..\TablePager.cshtml" + foreach (var headers in headersSet) + { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " \r\n"); + + +#line 53 "..\..\TablePager.cshtml" + + +#line default +#line hidden + +#line 53 "..\..\TablePager.cshtml" + foreach (var iheader in headers) + { + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " (iheader.CssClass + +#line default +#line hidden +, 1964), false) + ); + + WriteAttributeTo(__razor_helper_writer, "colspan", Tuple.Create(" colspan=\"", 1982), Tuple.Create("\"", 2008) + +#line 54 "..\..\TablePager.cshtml" +, Tuple.Create(Tuple.Create("", 1992), Tuple.Create(iheader.ColSpan + +#line default +#line hidden +, 1992), false) + ); + + WriteAttributeTo(__razor_helper_writer, "rowspan", Tuple.Create(" rowspan=\"", 2009), Tuple.Create("\"", 2035) + +#line 54 "..\..\TablePager.cshtml" + , Tuple.Create(Tuple.Create("", 2019), Tuple.Create(iheader.RowSpan + +#line default +#line hidden +, 2019), false) + ); + + WriteLiteralTo(__razor_helper_writer, ">"); + + +#line 54 "..\..\TablePager.cshtml" + + var header = iheader as TableHeader; + if (iheader is CustomTableHeader) + { + + +#line default +#line hidden + +#line 57 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, (iheader as CustomTableHeader).Content(null)); + + +#line default +#line hidden + +#line 57 "..\..\TablePager.cshtml" + + } + else { + if (header.Value != null) + { + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "(header.Value + +#line default +#line hidden +, 2409), false) + ); + + WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 2423), Tuple.Create("\"", 2446) + +#line 60 "..\..\TablePager.cshtml" + , Tuple.Create(Tuple.Create("", 2431), Tuple.Create(header.ToolTip + +#line default +#line hidden +, 2431), false) + ); + + WriteLiteralTo(__razor_helper_writer, ">"); + + +#line 60 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, header.Title); + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, ""); + + +#line 60 "..\..\TablePager.cshtml" + } + else { + + +#line default +#line hidden + +#line 62 "..\..\TablePager.cshtml" + WriteTo(__razor_helper_writer, header.Title); + + +#line default +#line hidden + +#line 62 "..\..\TablePager.cshtml" + + } + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, "\r\n"); + + +#line 66 "..\..\TablePager.cshtml" + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " \r\n"); + + +#line 68 "..\..\TablePager.cshtml" + } + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " \r\n"); + + +#line 70 "..\..\TablePager.cshtml" + + +#line default +#line hidden + }); + +#line 70 "..\..\TablePager.cshtml" + } +#line default +#line hidden + +#line 72 "..\..\TablePager.cshtml" + public static System.Web.WebPages.HelperResult FormHidden(ITableModel model) + { +#line default +#line hidden + return new System.Web.WebPages.HelperResult(__razor_helper_writer => { + +#line 72 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + +#line 73 "..\..\TablePager.cshtml" + + + +#line default +#line hidden + WriteLiteralTo(__razor_helper_writer, " (model.SortBy + +#line default +#line hidden +, 2954), false) + ); + + WriteLiteralTo(__razor_helper_writer, " />\r\n"); + + WriteLiteralTo(__razor_helper_writer, " (model.SortAsc.ToString() + +#line default +#line hidden +, 3020), false) + ); + + WriteLiteralTo(__razor_helper_writer, " />\r\n"); + + +#line 76 "..\..\TablePager.cshtml" + + +#line default +#line hidden + }); + +#line 76 "..\..\TablePager.cshtml" + } +#line default +#line hidden + + } +} +#pragma warning restore 1591 diff --git a/src/FlexLabs.Web.TablePager/project.json b/src/FlexLabs.Web.TablePager/project.json new file mode 100644 index 0000000..d6fded9 --- /dev/null +++ b/src/FlexLabs.Web.TablePager/project.json @@ -0,0 +1,39 @@ +{ + "version": "2.0.0-*", + "description": "", + "authors": [ "Artiom Chilaru" ], + "tags": [ "" ], + "projectUrl": "", + "licenseUrl": "", + + "dependencies": { + }, + + "frameworks": { + "dnx451": { + "frameworkAssemblies": { + "System.Web": "" + }, + "dependencies": { + "Microsoft.AspNet.Mvc": "4.0.20505", + "PagedList": "1.15.0" + } + }, + "net45": { + "frameworkAssemblies": { + "System.Web": "" + }, + "dependencies": { + "Microsoft.AspNet.Mvc": "4.0.20505", + "PagedList": "1.15.0" + } + } + }, + + "scripts": { + "postbuild": [ + "%project:Directory%\\..\\..\\..\\signtool.exe sign /n \"Artiom Chilaru\" /t \"http://timestamp.digicert.com\" /a \"%project:Directory%\\..\\..\\artifacts\\bin\\%project:Name%\\Release\\dnx451\\*.dll", + "%project:Directory%\\..\\..\\..\\signtool.exe sign /n \"Artiom Chilaru\" /t \"http://timestamp.digicert.com\" /a \"%project:Directory%\\..\\..\\artifacts\\bin\\%project:Name%\\Release\\net45\\*.dll" + ] + } +} diff --git a/src/FlexLabs.Web.TablePager/project.lock.json b/src/FlexLabs.Web.TablePager/project.lock.json new file mode 100644 index 0000000..ff3cdaf --- /dev/null +++ b/src/FlexLabs.Web.TablePager/project.lock.json @@ -0,0 +1,447 @@ +{ + "locked": false, + "version": 2, + "targets": { + "DNX,Version=v4.5.1": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + }, + ".NETFramework,Version=v4.5": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + }, + "DNX,Version=v4.5.1/win7-x86": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + }, + "DNX,Version=v4.5.1/win7-x64": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + }, + ".NETFramework,Version=v4.5/win7-x86": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + }, + ".NETFramework,Version=v4.5/win7-x64": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.AspNet.WebPages": "2.0.20505" + }, + "compile": { + "lib/net40/System.Web.Mvc.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Mvc.dll": {} + } + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "compile": { + "lib/net40/System.Web.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Razor.dll": {} + } + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "dependencies": { + "Microsoft.AspNet.Razor": "2.0.20505", + "Microsoft.Web.Infrastructure": "1.0.0" + }, + "compile": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + }, + "runtime": { + "lib/net40/System.Web.Helpers.dll": {}, + "lib/net40/System.Web.WebPages.Deployment.dll": {}, + "lib/net40/System.Web.WebPages.dll": {}, + "lib/net40/System.Web.WebPages.Razor.dll": {} + } + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "compile": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + }, + "runtime": { + "lib/net40/Microsoft.Web.Infrastructure.dll": {} + } + }, + "PagedList/1.15.0": { + "type": "package", + "compile": { + "lib/net40/PagedList.dll": {} + }, + "runtime": { + "lib/net40/PagedList.dll": {} + } + } + } + }, + "libraries": { + "Microsoft.AspNet.Mvc/4.0.20505": { + "type": "package", + "sha512": "V6zLs67Ns8wMQ4AkzP2iFn3hh/KkM4r+YxkjV2NgTnlVyo3jgiHDmdi0sM6Bl51sGcwg8BGhgRsLGDOzTqunzg==", + "files": [ + "lib/net40/System.Web.Mvc.dll", + "lib/net40/System.Web.Mvc.xml", + "Microsoft.AspNet.Mvc.4.0.20505.nupkg", + "Microsoft.AspNet.Mvc.4.0.20505.nupkg.sha512", + "Microsoft.AspNet.Mvc.nuspec" + ] + }, + "Microsoft.AspNet.Razor/2.0.20505": { + "type": "package", + "sha512": "Gk3ZVP/bwGsKx3fQf4EHoIzCApHU9LTIWOjmABa5VMT7axwyPDtUq3wGfW3LiHmlHjkh/SwnZzwCw1LnCTgmBQ==", + "files": [ + "lib/net40/System.Web.Razor.dll", + "lib/net40/System.Web.Razor.xml", + "Microsoft.AspNet.Razor.2.0.20505.nupkg", + "Microsoft.AspNet.Razor.2.0.20505.nupkg.sha512", + "Microsoft.AspNet.Razor.nuspec" + ] + }, + "Microsoft.AspNet.WebPages/2.0.20505": { + "type": "package", + "sha512": "/eILBjvoH9y3DqTZO3HX0HHyocyQPzdR125lVxSVHJUQq6NosyYS9BdcLlug9c7qYtVkDcUDxQRhHTBnDqC1VA==", + "files": [ + "lib/net40/System.Web.Helpers.dll", + "lib/net40/System.Web.Helpers.xml", + "lib/net40/System.Web.WebPages.Deployment.dll", + "lib/net40/System.Web.WebPages.Deployment.xml", + "lib/net40/System.Web.WebPages.dll", + "lib/net40/System.Web.WebPages.Razor.dll", + "lib/net40/System.Web.WebPages.Razor.xml", + "lib/net40/System.Web.WebPages.xml", + "Microsoft.AspNet.WebPages.2.0.20505.nupkg", + "Microsoft.AspNet.WebPages.2.0.20505.nupkg.sha512", + "Microsoft.AspNet.WebPages.nuspec" + ] + }, + "Microsoft.Web.Infrastructure/1.0.0": { + "type": "package", + "sha512": "FNmvLn5m2LTU/Rs2KWVo0SIIh9Ek+U0ojex7xeDaSHw/zgEP77A8vY5cVWgUtBGS8MJfDGNn8rpXJWEIQaPwTg==", + "files": [ + "lib/net40/Microsoft.Web.Infrastructure.dll", + "Microsoft.Web.Infrastructure.1.0.0.nupkg", + "Microsoft.Web.Infrastructure.1.0.0.nupkg.sha512", + "Microsoft.Web.Infrastructure.nuspec" + ] + }, + "PagedList/1.15.0": { + "type": "package", + "sha512": "9dsyyfnjBvW2lECdTzMZCqQ/+DRtCEmXPHllOC+ZEg4EMp7ADkpMgOYIUkM4pqvtAQw/rcRvjpCrwjIz6zDS/Q==", + "files": [ + "lib/net40/PagedList.dll", + "lib/net40/PagedList.xml", + "PagedList.1.15.0.nupkg", + "PagedList.1.15.0.nupkg.sha512", + "PagedList.nuspec" + ] + } + }, + "projectFileDependencyGroups": { + "": [], + "DNX,Version=v4.5.1": [ + "Microsoft.AspNet.Mvc >= 4.0.20505", + "PagedList >= 1.15.0", + "fx/System.Web " + ], + ".NETFramework,Version=v4.5": [ + "Microsoft.AspNet.Mvc >= 4.0.20505", + "PagedList >= 1.15.0", + "fx/System.Web " + ] + } +} \ No newline at end of file