├── .gitignore └── Source ├── VidPub.Tasks ├── App.config ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── VidPub.Tasks.csproj ├── json.txt └── packages.config ├── VidPub.Tests ├── App.config ├── App_Data │ └── Membership_Test.sdf ├── Functionals │ ├── AccountControllerTests.cs │ ├── FakeTokenStore.cs │ ├── HomePage.cs │ └── ShopifyTests.cs ├── Integrations │ ├── Highrise.cs │ ├── Recurly.cs │ └── Shopify.cs ├── Properties │ └── AssemblyInfo.cs ├── Reports │ ├── CustomerReportingSpecs.cs │ ├── OrderReportingSpecs.cs │ ├── ProductionReportingSpecs.cs │ └── VideoLogSpecs.cs ├── Specs │ ├── CustomerSpecs.cs │ ├── DigitalRightsSpecs.cs │ ├── MembershipSpecs.cs │ ├── ProductionSpecs.cs │ ├── SearchSpecs.cs │ └── SubscriptionSpecs.cs ├── TestBase.cs ├── Tools │ └── Quixote.cs ├── VidPub.Tests.csproj └── packages.config ├── VidPub.Web ├── App │ ├── Areas │ │ ├── Reporting │ │ │ ├── Controllers │ │ │ │ └── AnnualController.cs │ │ │ ├── ReportingAreaRegistration.cs │ │ │ └── Views │ │ │ │ ├── Annual │ │ │ │ └── Sales.cshtml │ │ │ │ └── Web.config │ │ └── api │ │ │ ├── Controllers │ │ │ ├── EpisodesController.cs │ │ │ └── ProductionsController.cs │ │ │ ├── Views │ │ │ └── Web.config │ │ │ └── apiAreaRegistration.cs │ ├── Controllers │ │ ├── AccountController.cs │ │ ├── ApplicationController.cs │ │ ├── CustomersController.cs │ │ ├── HomeController.cs │ │ └── ShopifyController.cs │ ├── Infrastructure │ │ ├── CSVResult.cs │ │ ├── CruddyController.cs │ │ ├── DynamicModelBinder.cs │ │ ├── ExpandoObjectConverter.cs │ │ ├── FormsAuthTokenStore.cs │ │ ├── Logging │ │ │ ├── ILogger.cs │ │ │ └── NLogger.cs │ │ ├── Massive.cs │ │ ├── NinjectMVC3.cs │ │ ├── RequireAdminAttribute.cs │ │ ├── RouteHelper.cs │ │ └── VidpubController.cs │ └── Model │ │ ├── AccountModel.cs │ │ ├── Channels.cs │ │ ├── Customers.cs │ │ ├── DigitalRights.cs │ │ ├── Episodes.cs │ │ ├── Orders.cs │ │ ├── Productions.cs │ │ ├── Users.cs │ │ └── VideoLog.cs ├── App_Code │ ├── Assets.cshtml │ ├── Form.cshtml │ ├── Notifier.cshtml │ ├── Template.cshtml │ └── URL.cshtml ├── App_Data │ ├── DBScripts.sql │ ├── ShopifyPing.js │ └── logs │ │ └── site.log ├── CodeTemplates │ ├── AddController │ │ └── Controller.tt │ └── AddView │ │ └── CSHTML │ │ ├── Create.tt │ │ ├── Edit.tt │ │ └── List.tt ├── Global.asax ├── Global.asax.cs ├── HTMLPage1.htm ├── JScript1.js ├── NLog.config ├── Properties │ └── AssemblyInfo.cs ├── Public │ ├── images │ │ ├── agenda.png │ │ ├── camera.png │ │ ├── close.png │ │ ├── lead.png │ │ └── logo.png │ ├── javascripts │ │ ├── backbone-min.js │ │ ├── customer-admin.js │ │ ├── jquery.validate.min.js │ │ ├── jquery.validate.unobtrusive.min.js │ │ ├── modernizr-1.7.min.js │ │ ├── notifier.js │ │ ├── production-admin.js │ │ ├── underscore-min.js │ │ └── vidpub-search.js │ └── stylesheets │ │ ├── Site.css │ │ ├── forms.css │ │ ├── ie.css │ │ ├── jquery_ui │ │ ├── images │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ ├── jquery.ui.accordion.css │ │ ├── jquery.ui.all.css │ │ ├── jquery.ui.autocomplete.css │ │ ├── jquery.ui.base.css │ │ ├── jquery.ui.button.css │ │ ├── jquery.ui.core.css │ │ ├── jquery.ui.datepicker.css │ │ ├── jquery.ui.dialog.css │ │ ├── jquery.ui.progressbar.css │ │ ├── jquery.ui.resizable.css │ │ ├── jquery.ui.selectable.css │ │ ├── jquery.ui.slider.css │ │ ├── jquery.ui.tabs.css │ │ └── jquery.ui.theme.css │ │ ├── plugins │ │ ├── buttons │ │ │ ├── icons │ │ │ │ ├── cross.png │ │ │ │ ├── key.png │ │ │ │ └── tick.png │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── fancy-type │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── link-icons │ │ │ ├── icons │ │ │ │ ├── doc.png │ │ │ │ ├── email.png │ │ │ │ ├── external.png │ │ │ │ ├── feed.png │ │ │ │ ├── im.png │ │ │ │ ├── lock.png │ │ │ │ ├── pdf.png │ │ │ │ ├── visited.png │ │ │ │ └── xls.png │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ └── rtl │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── print.css │ │ └── screen.css ├── VidPub.Web.Publish.xml ├── VidPub.Web.csproj ├── Views │ ├── Account │ │ ├── ChangePassword.cshtml │ │ ├── ChangePasswordSuccess.cshtml │ │ ├── LogOn.cshtml │ │ └── Register.cshtml │ ├── Home │ │ ├── About.cshtml │ │ └── Index.cshtml │ ├── Productions │ │ ├── Create.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _AdminLayout.cshtml │ │ ├── _Layout.cshtml │ │ ├── _LogOnPartial.cshtml │ │ └── _PublicLayout.cshtml │ ├── Vidpub │ │ ├── Customers.cshtml │ │ ├── Index.cshtml │ │ └── Productions.cshtml │ ├── Web.config │ └── _ViewStart.cshtml ├── Web.Debug.config ├── Web.Release.config ├── Web.config └── packages.config ├── VidPub.sln ├── Vidpub.AcceptanceTests ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Tools │ └── Quixote.cs ├── Vidpub.AcceptanceTests.csproj └── app.config ├── Vidpub.Admin ├── Default.aspx ├── Default.aspx.cs ├── Default.aspx.designer.cs ├── DynamicData │ ├── Content │ │ ├── GridViewPager.ascx │ │ ├── GridViewPager.ascx.cs │ │ ├── GridViewPager.ascx.designer.cs │ │ └── Images │ │ │ ├── Back.gif │ │ │ ├── PgFirst.gif │ │ │ ├── PgLast.gif │ │ │ ├── PgNext.gif │ │ │ ├── PgPrev.gif │ │ │ ├── header_back.gif │ │ │ └── plus.gif │ ├── EntityTemplates │ │ ├── Default.ascx │ │ ├── Default.ascx.cs │ │ ├── Default.ascx.designer.cs │ │ ├── Default_Edit.ascx │ │ ├── Default_Edit.ascx.cs │ │ ├── Default_Edit.ascx.designer.cs │ │ ├── Default_Insert.ascx │ │ ├── Default_Insert.ascx.cs │ │ └── Default_Insert.ascx.designer.cs │ ├── FieldTemplates │ │ ├── Boolean.ascx │ │ ├── Boolean.ascx.cs │ │ ├── Boolean.ascx.designer.cs │ │ ├── Boolean_Edit.ascx │ │ ├── Boolean_Edit.ascx.cs │ │ ├── Boolean_Edit.ascx.designer.cs │ │ ├── Children.ascx │ │ ├── Children.ascx.cs │ │ ├── Children.ascx.designer.cs │ │ ├── Children_Insert.ascx │ │ ├── Children_Insert.ascx.cs │ │ ├── Children_Insert.ascx.designer.cs │ │ ├── DateTime.ascx │ │ ├── DateTime.ascx.cs │ │ ├── DateTime.ascx.designer.cs │ │ ├── DateTime_Edit.ascx │ │ ├── DateTime_Edit.ascx.cs │ │ ├── DateTime_Edit.ascx.designer.cs │ │ ├── Decimal_Edit.ascx │ │ ├── Decimal_Edit.ascx.cs │ │ ├── Decimal_Edit.ascx.designer.cs │ │ ├── EmailAddress.ascx │ │ ├── EmailAddress.ascx.cs │ │ ├── EmailAddress.ascx.designer.cs │ │ ├── Enumeration.ascx │ │ ├── Enumeration.ascx.cs │ │ ├── Enumeration.ascx.designer.cs │ │ ├── Enumeration_Edit.ascx │ │ ├── Enumeration_Edit.ascx.cs │ │ ├── Enumeration_Edit.ascx.designer.cs │ │ ├── ForeignKey.ascx │ │ ├── ForeignKey.ascx.cs │ │ ├── ForeignKey.ascx.designer.cs │ │ ├── ForeignKey_Edit.ascx │ │ ├── ForeignKey_Edit.ascx.cs │ │ ├── ForeignKey_Edit.ascx.designer.cs │ │ ├── Integer_Edit.ascx │ │ ├── Integer_Edit.ascx.cs │ │ ├── Integer_Edit.ascx.designer.cs │ │ ├── ManyToMany.ascx │ │ ├── ManyToMany.ascx.cs │ │ ├── ManyToMany.ascx.designer.cs │ │ ├── ManyToMany_Edit.ascx │ │ ├── ManyToMany_Edit.ascx.cs │ │ ├── ManyToMany_Edit.ascx.designer.cs │ │ ├── MultilineText_Edit.ascx │ │ ├── MultilineText_Edit.ascx.cs │ │ ├── MultilineText_Edit.ascx.designer.cs │ │ ├── Text.ascx │ │ ├── Text.ascx.cs │ │ ├── Text.ascx.designer.cs │ │ ├── Text_Edit.ascx │ │ ├── Text_Edit.ascx.cs │ │ ├── Text_Edit.ascx.designer.cs │ │ ├── Url.ascx │ │ ├── Url.ascx.cs │ │ └── Url.ascx.designer.cs │ ├── Filters │ │ ├── Boolean.ascx │ │ ├── Boolean.ascx.cs │ │ ├── Boolean.ascx.designer.cs │ │ ├── Enumeration.ascx │ │ ├── Enumeration.ascx.cs │ │ ├── Enumeration.ascx.designer.cs │ │ ├── ForeignKey.ascx │ │ ├── ForeignKey.ascx.cs │ │ └── ForeignKey.ascx.designer.cs │ ├── PageTemplates │ │ ├── Details.aspx │ │ ├── Details.aspx.cs │ │ ├── Details.aspx.designer.cs │ │ ├── Edit.aspx │ │ ├── Edit.aspx.cs │ │ ├── Edit.aspx.designer.cs │ │ ├── Insert.aspx │ │ ├── Insert.aspx.cs │ │ ├── Insert.aspx.designer.cs │ │ ├── List.aspx │ │ ├── List.aspx.cs │ │ ├── List.aspx.designer.cs │ │ ├── ListDetails.aspx │ │ ├── ListDetails.aspx.cs │ │ └── ListDetails.aspx.designer.cs │ └── web.config ├── Global.asax ├── Global.asax.cs ├── Properties │ └── AssemblyInfo.cs ├── Scripts │ ├── jquery-1.4.1-vsdoc.js │ ├── jquery-1.4.1.js │ └── jquery-1.4.1.min.js ├── Site.css ├── Site.master ├── Site.master.cs ├── Site.master.designer.cs ├── Vidpub.Admin.csproj ├── VidpubData.Designer.cs ├── VidpubData.edmx ├── Web.Debug.config ├── Web.Release.config └── web.config ├── Vidpub.UAT ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Tools │ └── Quixote.cs ├── Vidpub.UAT.csproj └── app.config └── packages ├── Elmah.Contrib.Mvc.1.0 ├── Elmah.Contrib.Mvc.1.0.nupkg └── lib │ └── net40 │ └── Elmah.Contrib.Mvc.dll ├── Modernizr.1.7 ├── Content │ └── Scripts │ │ ├── modernizr-1.7.js │ │ └── modernizr-1.7.min.js └── Modernizr.1.7.nupkg ├── Moq.4.0.10827 ├── License.txt ├── Moq.4.0.10827.nupkg ├── Moq.chm └── lib │ ├── NET35 │ ├── Moq.dll │ ├── Moq.pdb │ └── Moq.xml │ ├── NET40 │ ├── Moq.dll │ ├── Moq.pdb │ └── Moq.xml │ └── Silverlight4 │ ├── Castle.Core.dll │ ├── Moq.Silverlight.dll │ ├── Moq.Silverlight.pdb │ └── Moq.Silverlight.xml ├── Mvc3CodeTemplatesCSharp.3.0.11214.0 ├── Mvc3CodeTemplatesCSharp.3.0.11214.0.nupkg ├── content │ └── CodeTemplates │ │ ├── AddController │ │ └── Controller.tt │ │ └── AddView │ │ ├── AspxCSharp │ │ ├── Create.tt │ │ ├── Delete.tt │ │ ├── Details.tt │ │ ├── Edit.tt │ │ ├── Empty.tt │ │ └── List.tt │ │ └── CSHTML │ │ ├── Create.tt │ │ ├── Delete.tt │ │ ├── Details.tt │ │ ├── Edit.tt │ │ ├── Empty.tt │ │ └── List.tt └── tools │ └── install.ps1 ├── NLog.2.0.0.0 ├── NLog.2.0.0.0.nupkg └── lib │ ├── NET35 │ ├── NLog.Extended.dll │ ├── NLog.Extended.xml │ ├── NLog.dll │ └── NLog.xml │ ├── NET40 │ ├── NLog.Extended.dll │ ├── NLog.Extended.xml │ ├── NLog.dll │ └── NLog.xml │ ├── SL3 │ ├── NLog.dll │ └── NLog.xml │ └── SL4 │ ├── NLog.dll │ └── NLog.xml ├── NUnit.2.5.10.11092 ├── Logo.ico ├── NUnit.2.5.10.11092.nupkg ├── NUnitFitTests.html ├── fit-license.txt ├── lib │ ├── nunit.framework.dll │ ├── nunit.framework.xml │ ├── nunit.mocks.dll │ └── pnunit.framework.dll ├── license.txt └── tools │ ├── NUnitTests.VisualState.xml │ ├── NUnitTests.config │ ├── NUnitTests.nunit │ ├── TestResult.xml │ ├── agent.conf │ ├── agent.log.conf │ ├── launcher.log.conf │ ├── lib │ ├── Failure.png │ ├── Ignored.png │ ├── Inconclusive.png │ ├── Skipped.png │ ├── Success.png │ ├── fit.dll │ ├── log4net.dll │ ├── nunit-console-runner.dll │ ├── nunit-gui-runner.dll │ ├── nunit.core.dll │ ├── nunit.core.interfaces.dll │ ├── nunit.fixtures.dll │ ├── nunit.uiexception.dll │ ├── nunit.uikit.dll │ └── nunit.util.dll │ ├── nunit-agent-x86.exe │ ├── nunit-agent-x86.exe.config │ ├── nunit-agent.exe │ ├── nunit-agent.exe.config │ ├── nunit-console-x86.exe │ ├── nunit-console-x86.exe.config │ ├── nunit-console.exe │ ├── nunit-console.exe.config │ ├── nunit-x86.exe │ ├── nunit-x86.exe.config │ ├── nunit.exe │ ├── nunit.exe.config │ ├── nunit.framework.dll │ ├── pnunit-agent.exe │ ├── pnunit-agent.exe.config │ ├── pnunit-launcher.exe │ ├── pnunit-launcher.exe.config │ ├── pnunit.framework.dll │ ├── pnunit.tests.dll │ ├── runFile.exe │ ├── runFile.exe.config │ ├── runpnunit.bat │ └── test.conf ├── Ninject.2.2.1.4 ├── Ninject.2.2.1.4.nupkg └── lib │ ├── net35-Client │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── net35-Full │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── net40-Client │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── net40-Full │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── sl2 │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── sl3-wp │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ ├── sl3 │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml │ └── sl4 │ ├── Ninject.dll │ ├── Ninject.pdb │ └── Ninject.xml ├── Ninject.MVC3.2.2.2.0 ├── Content │ └── App_Start │ │ └── NinjectMVC3.cs.pp ├── Ninject.MVC3.2.2.2.0.nupkg └── lib │ └── net40-Full │ ├── Ninject.Web.Mvc.dll │ ├── Ninject.Web.Mvc.pdb │ └── Ninject.Web.Mvc.xml ├── WebActivator.1.4.1 ├── WebActivator.1.4.1.nupkg └── lib │ └── net40 │ └── WebActivator.dll ├── elmah.1.2 ├── elmah.1.2.nupkg └── lib │ └── Elmah.dll └── repositories.config /.gitignore: -------------------------------------------------------------------------------- 1 | *resharper.user 2 | [Dd]ebug/ 3 | [Rr]elease/ 4 | build/ 5 | [Bb]in/ 6 | [Oo]bj/ 7 | *.suo 8 | *.sln.cache 9 | _ReSharper.*/ 10 | *.user -------------------------------------------------------------------------------- /Source/VidPub.Tasks/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/VidPub.Tasks/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("VidPub.Tasks")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("VidPub.Tasks")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("7f562242-973c-4fbf-9ae9-f904fd04c4da")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Source/VidPub.Tasks/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/App_Data/Membership_Test.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Tests/App_Data/Membership_Test.sdf -------------------------------------------------------------------------------- /Source/VidPub.Tests/Functionals/FakeTokenStore.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using VidPub.Web.Infrastructure; 6 | 7 | namespace VidPub.Tests.Functionals { 8 | public class FakeTokenStore: ITokenHandler { 9 | string _token; 10 | public string GetToken() { 11 | return _token; 12 | } 13 | 14 | public void RemoveClientAccess() { 15 | _token = ""; 16 | } 17 | 18 | public void SetClientAccess(string token) { 19 | _token = token; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Functionals/HomePage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using WatiN.Core; 7 | 8 | namespace VidPub.Tests.Functionals { 9 | [TestFixture] 10 | [RequiresSTA] 11 | public class HomePage:TestBase { 12 | 13 | [Test] 14 | public void home_page_should_have_vidpub_name() { 15 | 16 | using (var browser = new IE("http://localhost:1701")) { 17 | Assert.True(browser.Title.Contains("VidPub")); 18 | } 19 | 20 | } 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Integrations/Highrise.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VidPub.Tests.Integrations { 7 | class Highrise { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Integrations/Recurly.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VidPub.Tests.Integrations { 7 | class Recurly { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Integrations/Shopify.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace VidPub.Tests.Integrations { 7 | class Shopify { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("VidPub.Tests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("VidPub.Tests")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("1c1c5ffd-7678-441f-b3fb-4fedfdae616f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Reports/CustomerReportingSpecs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using VidPub.Web.Model; 7 | 8 | namespace VidPub.Tests.Reports { 9 | [TestFixture] 10 | public class CustomerReportingSpecs:TestBase { 11 | dynamic _customers; 12 | dynamic _users; 13 | [SetUp] 14 | public void Init() { 15 | _customers = new Customers(); 16 | _users = new Users(); 17 | } 18 | 19 | [Test] 20 | public void customer_should_have_banned_switch() { 21 | var c = _users.First(); 22 | var dc = (IDictionary)c; 23 | Assert.True(dc.Keys.Any(x => x == "IsBanned")); 24 | } 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Reports/OrderReportingSpecs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using VidPub.Web.Model; 7 | 8 | namespace VidPub.Tests.Reports { 9 | [TestFixture] 10 | public class OrderReportingSpecs:TestBase { 11 | 12 | dynamic _items; 13 | 14 | [SetUp] 15 | public void Init() { 16 | _items = new OrderItems(); 17 | } 18 | 19 | [Test] 20 | public void order_item_should_have_discount() { 21 | var item = _items.First(); 22 | Assert.AreEqual(0, item.Discount); 23 | } 24 | [Test] 25 | public void order_item_should_not_have_productid() { 26 | var item = _items.First(); 27 | var dc = (IDictionary)item; 28 | Assert.False(dc.Keys.Any(x => x == "ProductID")); 29 | } 30 | [Test] 31 | public void order_item_should_have_required_fields() { 32 | var item = _items.First(); 33 | var dc = (IDictionary)item; 34 | Assert.True(dc.Keys.Any(x => x == "Price")); 35 | Assert.True(dc.Keys.Any(x => x == "Name")); 36 | Assert.True(dc.Keys.Any(x => x == "SKU")); 37 | Assert.True(dc.Keys.Any(x => x == "Quantity")); 38 | Assert.True(dc.Keys.Any(x => x == "Vendor")); 39 | Assert.True(dc.Keys.Any(x => x == "Discount")); 40 | Assert.True(dc.Keys.Any(x => x == "OrderType")); 41 | } 42 | 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Reports/ProductionReportingSpecs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using VidPub.Web.Model; 7 | 8 | namespace VidPub.Tests.Reports { 9 | [TestFixture] 10 | public class ProductionReportingSpecs:TestBase { 11 | dynamic _productions; 12 | dynamic _episodes; 13 | [SetUp] 14 | public void Init() { 15 | _productions = new Productions(); 16 | _episodes = new Episodes(); 17 | } 18 | 19 | [Test] 20 | public void production_should_have_costing_fields() { 21 | var e = _episodes.First(); 22 | var dc = (IDictionary)e; 23 | Assert.True(dc.ContainsKey("DurationMinutes")); 24 | } 25 | [Test] 26 | public void production_should_have_fileSize_for_hd_stream_mobile_tablet() { 27 | var e = _episodes.First(); 28 | var dc = (IDictionary)e; 29 | Assert.True(dc.ContainsKey("HDFileSize")); 30 | Assert.True(dc.ContainsKey("MobileFileSize")); 31 | Assert.True(dc.ContainsKey("TabletFileSize")); 32 | Assert.True(dc.ContainsKey("StreamFileSize")); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/Reports/VideoLogSpecs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using Massive; 7 | using VidPub.Web.Model; 8 | namespace VidPub.Tests.Reports { 9 | [TestFixture] 10 | public class VideoLogSpecs:TestBase { 11 | VideoLog _videoLog; 12 | [SetUp] 13 | public void Init() { 14 | _videoLog = new VideoLog(); 15 | } 16 | 17 | [Test] 18 | public void sales_report_should_be_able_to_track_download_costs() { 19 | //need to be able to track a purchase to the log table so we can 20 | //reconcile it in the rollups... 21 | var item = _videoLog.Prototype; 22 | Assert.True(_videoLog.ItemContainsKey("OrderItemID", item)); 23 | Assert.True(_videoLog.ItemContainsKey("BandwidthRate", item)); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/VidPub.Tests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/Reporting/Controllers/AnnualController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | using VidPub.Web.Controllers; 9 | using Massive; 10 | namespace VidPub.Web.Areas.Reporting.Controllers{ 11 | public class AnnualController : ApplicationController { 12 | public AnnualController(ITokenHandler tokenStore):base(tokenStore) { 13 | } 14 | 15 | 16 | public ActionResult Sales(int year = 2011) { 17 | 18 | var sales = DynamicModel.Open("VidPub").Query("exec Reports_AnnualSales @0", year); 19 | return View(sales); 20 | //return CSV(sales, "Vidpub_Annual_" + year + ".csv"); 21 | } 22 | 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/Reporting/ReportingAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace VidPub.Web.Areas.Reporting { 4 | public class ReportingAreaRegistration : AreaRegistration { 5 | public override string AreaName { 6 | get { 7 | return "Reporting"; 8 | } 9 | } 10 | 11 | public override void RegisterArea(AreaRegistrationContext context) { 12 | context.MapRoute( 13 | "Reporting_default", 14 | "Reporting/{controller}/{action}/{id}", 15 | new { action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/Reporting/Views/Annual/Sales.cshtml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | @foreach (var item in Model) { 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | } 32 |
SKUChannelQuarterYearPriceDiscountQuantityOrderTypeVendorBandwidthInGigsBandwidthCost
@item.SKU@item.Channel@item.Quarter@item.Year@item.Price@item.Discount@item.Quantity@item.OrderType@item.Vendor@item.BandwidthInGigs@item.BandwidthCost.ToString("C")
33 | 34 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/api/Controllers/EpisodesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | using VidPub.Web.Controllers; 9 | using Massive; 10 | namespace VidPub.Web.Areas.Api.Controllers{ 11 | public class EpisodesController : ApplicationController { 12 | dynamic _episodes; 13 | 14 | public EpisodesController(ITokenHandler tokenStore):base(tokenStore) { 15 | _episodes = new Episodes(); 16 | } 17 | 18 | public ActionResult Index(string query="") { 19 | if (string.IsNullOrEmpty(query)) { 20 | return VidpubJSON(_episodes.All()); 21 | } else { 22 | return VidpubJSON(_episodes.FuzzySearch(query)); 23 | } 24 | } 25 | [HttpPut] 26 | public ActionResult Edit() { 27 | var model = SqueezeJson(); 28 | _episodes.Update(model, model.ID); 29 | return VidpubJSON(model); 30 | } 31 | 32 | [HttpPost] 33 | public ActionResult Create() { 34 | var model = SqueezeJson(); 35 | _episodes.Insert(model); 36 | return VidpubJSON(model); 37 | } 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/api/Controllers/ProductionsController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | using VidPub.Web.Controllers; 9 | using Massive; 10 | using System.IO; 11 | using System.Web.Script.Serialization; 12 | using System.Dynamic; 13 | namespace VidPub.Web.Areas.Api.Controllers{ 14 | public class ProductionsController : ApplicationController { 15 | 16 | dynamic _productions; 17 | public ProductionsController(ITokenHandler tokenStore):base(tokenStore) { 18 | _productions = new Productions(); 19 | } 20 | [HttpGet] 21 | public ActionResult Index(string query="") { 22 | if (string.IsNullOrEmpty(query)) { 23 | return VidpubJSON(_productions.All()); 24 | } else { 25 | return VidpubJSON(_productions.FuzzySearch(query)); 26 | } 27 | } 28 | 29 | [HttpPut] 30 | public ActionResult Edit() { 31 | var model = SqueezeJson(); 32 | _productions.Update(model, model.ID); 33 | return VidpubJSON(model); 34 | } 35 | 36 | [HttpPost] 37 | public ActionResult Create() { 38 | var model = SqueezeJson(); 39 | _productions.Insert(model); 40 | return VidpubJSON(model); 41 | } 42 | 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Areas/api/apiAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace VidPub.Web.Areas.Api { 4 | public class ApiAreaRegistration : AreaRegistration { 5 | public override string AreaName { 6 | get { 7 | return "Api"; 8 | } 9 | } 10 | 11 | public override void RegisterArea(AreaRegistrationContext context) { 12 | context.MapRoute( 13 | "Api_default", 14 | "api/{controller}/{action}/{id}", 15 | new { action = "Index", id = UrlParameter.Optional } 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Controllers/CustomersController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | namespace VidPub.Web.Controllers{ 9 | public class CustomersController : CruddyController { 10 | public CustomersController(ITokenHandler tokenStore):base(tokenStore) { 11 | _table = new Customers(); 12 | ViewBag.Table = _table; 13 | } 14 | 15 | public override ActionResult Edit(int id, FormCollection collection) { 16 | var model = _table.CreateFrom(collection); 17 | try { 18 | // TODO: Add update logic here 19 | _table.Update(model, id); 20 | TempData["message"] = "Successfully updated " + model.Email; 21 | return RedirectToAction("customers", "vidpub", new { id = id }); 22 | } catch (Exception x) { 23 | TempData["error"] = "There was a problem editing this record"; 24 | return View(model); 25 | } 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Infrastructure.Logging; 7 | 8 | 9 | namespace VidPub.Web.Controllers { 10 | public class HomeController : Controller { 11 | ILogger _logger; 12 | public HomeController(ILogger logger) { 13 | _logger = logger; 14 | } 15 | 16 | public ActionResult Index() { 17 | 18 | return View(); 19 | } 20 | 21 | public ActionResult About() { 22 | return View(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Controllers/ShopifyController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | using System.Dynamic; 9 | using System.Web.Helpers; 10 | using System.Text; 11 | namespace VidPub.Web.Controllers{ 12 | public class ShopifyController : CruddyController { 13 | Orders _orders; 14 | Customers _customers; 15 | public ShopifyController(ITokenHandler tokenStore):base(tokenStore) { 16 | _orders = new Orders(); 17 | _customers = new Customers(); 18 | } 19 | 20 | public ActionResult Receiver() { 21 | try { 22 | //this is a ping from Shopify, record the order... 23 | var json = this.ReadJson(); 24 | var newOrder = System.Web.Helpers.Json.Decode(json); 25 | dynamic order = _orders.CreateFromPing(newOrder); 26 | 27 | //tell Customers we just received an Order 28 | var customer = _customers.OrderReived(order); 29 | 30 | //Give them rights to the bits... 31 | DigitalRights.AuthorizeOrder(customer, order); 32 | } catch (Exception x) { 33 | Logger.LogFatal(x); 34 | 35 | //rethrow 36 | throw x; 37 | } 38 | //if all worked out, return a 200 39 | //if something failed we've logged it - and Shopify will keep sending until we return 200... 40 | return Content("OK"); 41 | } 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/CSVResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.IO; 6 | 7 | namespace VidPub.Web.Infrastructure { 8 | public class CSVResult:System.Web.Mvc.FileResult { 9 | IEnumerable _data; 10 | public CSVResult(IEnumerable data, string fileName):base("text/csv") { 11 | _data = data; 12 | this.FileDownloadName = fileName; 13 | } 14 | 15 | protected override void WriteFile(HttpResponseBase response) { 16 | using (var stream = new MemoryStream()) { 17 | //write the file to the memory stream... 18 | WriteData(stream); 19 | //write the memory stream to the response 20 | response.OutputStream.Write(stream.GetBuffer(), 0, (int)stream.Length); 21 | } 22 | } 23 | void WriteData(Stream stream) { 24 | var writer = new StreamWriter(stream); 25 | 26 | //add the keys 27 | var first = _data.First(); 28 | var dc = (IDictionary)first; 29 | foreach (var key in dc.Keys) { 30 | //need to parse this! 31 | writer.Write(WriteVal(key)); 32 | } 33 | writer.WriteLine(); 34 | foreach (var line in _data) { 35 | dc = (IDictionary)line; 36 | var vals = dc.Values; 37 | foreach (var v in vals) { 38 | writer.Write(WriteVal(v.ToString()) ?? ""); 39 | } 40 | writer.WriteLine(); 41 | } 42 | writer.Flush(); 43 | } 44 | string WriteVal(string val) { 45 | return string.Format("\"{0}\",",val.Replace("\"", "\"\"")); 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/DynamicModelBinder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.IO; 7 | using System.Web.Helpers; 8 | 9 | namespace VidPub.Web.Infrastructure { 10 | 11 | public class DynamicModelBinder : DefaultModelBinder { 12 | 13 | public override object BindModel(ControllerContext controllerContext, 14 | ModelBindingContext bindingContext) { 15 | 16 | if (controllerContext.Controller.GetType().BaseType == typeof(CruddyController)) { 17 | var request = controllerContext.HttpContext.Request; 18 | var controller = (CruddyController)controllerContext.Controller; 19 | if (request.Form.Keys.Count > 0) { 20 | var table = controller._table; 21 | return table.CreateFrom(request.Form); 22 | } else { 23 | return base.BindModel(controllerContext, bindingContext); 24 | 25 | } 26 | } else { 27 | 28 | return base.BindModel(controllerContext, bindingContext); 29 | } 30 | } 31 | 32 | } 33 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/FormsAuthTokenStore.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.Mvc; 7 | 8 | namespace VidPub.Web.Infrastructure { 9 | 10 | public class FormsAuthTokenStore : ITokenHandler { 11 | 12 | public void SetClientAccess(string token) { 13 | HttpContext.Current.Response.Cookies["auth"].Value = token; 14 | HttpContext.Current.Response.Cookies["auth"].Expires = DateTime.Today.AddDays(60); 15 | HttpContext.Current.Response.Cookies["auth"].HttpOnly = true; 16 | 17 | //play nicely with FormsAuth 18 | FormsAuthentication.SetAuthCookie(token, true); 19 | } 20 | 21 | public void RemoveClientAccess() { 22 | FormsAuthentication.SignOut(); 23 | } 24 | 25 | public string GetToken() { 26 | var result = ""; 27 | if (HttpContext.Current.Request.Cookies["auth"] != null) { 28 | result = HttpContext.Current.Request.Cookies["auth"].Value; 29 | } 30 | return result; 31 | } 32 | 33 | } 34 | public interface ITokenHandler { 35 | string GetToken(); 36 | void RemoveClientAccess(); 37 | void SetClientAccess(string token); 38 | } 39 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/Logging/ILogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace VidPub.Web.Infrastructure.Logging { 3 | public interface ILogger { 4 | void LogDebug(string message); 5 | void LogError(Exception x); 6 | void LogError(string message); 7 | void LogFatal(Exception x); 8 | void LogFatal(string message); 9 | void LogInfo(string message); 10 | void LogWarning(string message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/RequireAdminAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Controllers; 7 | 8 | namespace VidPub.Web.Infrastructure { 9 | public class RequireAdminAttribute:ActionFilterAttribute { 10 | public override void OnActionExecuting(ActionExecutingContext filterContext) { 11 | 12 | var controller = (ApplicationController)filterContext.Controller; 13 | 14 | //user logged in? 15 | if (!controller.IsLoggedIn) { 16 | DecideResponse(filterContext.HttpContext); 17 | return; 18 | } 19 | 20 | //is the user an admin? 21 | var adminEmails = new string[] { "robconery@gmail.com", "rob@tekpub.com" }; 22 | string userEmail = controller.CurrentUser.Email; 23 | if (!adminEmails.Contains(userEmail)) { 24 | DecideResponse(filterContext.HttpContext); 25 | return; 26 | } 27 | 28 | } 29 | void DecideResponse(HttpContextBase ctx) { 30 | if (ctx.Request.ContentType == "application/json") { 31 | ctx.Response.Write("Unauthorized"); 32 | } else { 33 | ctx.Response.Redirect("/account/logon"); 34 | } 35 | ctx.Response.End(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Infrastructure/VidpubController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using VidPub.Web.Model; 7 | using VidPub.Web.Infrastructure; 8 | namespace VidPub.Web.Controllers{ 9 | public class VidpubController : ApplicationController { 10 | public VidpubController(ITokenHandler tokenStore):base(tokenStore) { 11 | } 12 | 13 | public ActionResult Index() { 14 | return View(); 15 | } 16 | public ActionResult Productions() { 17 | return View(); 18 | } 19 | public ActionResult Customers(int id) { 20 | var customer = new Customers().Single(id); 21 | return View(customer); 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Model/Channels.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using Massive; 6 | 7 | namespace VidPub.Web.Model { 8 | public class Channels:DynamicModel { 9 | public Channels():base("Vidpub","Channels","ID") { 10 | 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Model/Episodes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using Massive; 6 | 7 | namespace VidPub.Web.Model { 8 | public class Episodes:DynamicModel { 9 | public Episodes():base("VidPub","Episodes","ID") { 10 | 11 | } 12 | public dynamic FuzzySearch(string query) { 13 | return this.Query(@"select Title, ProductionID as ID from episodes 14 | where title LIKE('%'+@0+'%') 15 | or description LIKE('%'+@0+'%') 16 | ", query); 17 | } 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Model/Productions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using Massive; 6 | using System.ComponentModel.DataAnnotations; 7 | 8 | namespace VidPub.Web.Model { 9 | public class Productions:DynamicModel { 10 | public Productions():base("VidPub","Productions","ID") { 11 | 12 | } 13 | public dynamic FuzzySearch(string query) { 14 | return this.Query(@"select ID, Title from productions 15 | where title LIKE('%'+@0+'%') 16 | or description LIKE('%'+@0+'%') 17 | or slug LIKE('%'+@0+'%') 18 | ", query); 19 | } 20 | 21 | public override bool BeforeSave(dynamic item) { 22 | //a status should be present 23 | if (!this.ItemContainsKey("Status", item)) 24 | item.Status = "pending"; 25 | return true; 26 | } 27 | 28 | 29 | 30 | public override void Validate(dynamic item) { 31 | if (item.Price <= 0) 32 | Errors.Add("Price can't be negative"); 33 | } 34 | 35 | 36 | 37 | public IEnumerable Episodes(int productionID) { 38 | dynamic eps = new Episodes(); 39 | return eps.Find(ProductionID: productionID); 40 | } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App/Model/VideoLog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using Massive; 6 | 7 | namespace VidPub.Web.Model { 8 | public class VideoLog:DynamicModel { 9 | public VideoLog():base("Vidpub","VideoLog","ID") { 10 | 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Code/Assets.cshtml: -------------------------------------------------------------------------------- 1 | @helper CSS(string cssFile, string media= "screen"){ 2 | 3 | } 4 | @helper Image(string imageFile) { 5 | 6 | } 7 | @helper ImageLink(string link, string imageFile) { 8 | 9 | @Assets.Image(imageFile) 10 | 11 | } 12 | @helper Templates(){ 13 | 14 | } 15 | @helper Backbone(){ 16 | @Assets.Script("underscore-min.js") 17 | @Assets.Script("backbone-min.js") 18 | } 19 | @helper Script(string scriptFile) { 20 | 21 | } 22 | @helper jQuery(bool useGoogle = true) { 23 | if (useGoogle) { 24 | 25 | 26 | } else { 27 | 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Code/Notifier.cshtml: -------------------------------------------------------------------------------- 1 | @helper Script(dynamic tempData){ 2 |
3 | if (tempData["message"] != null) { 4 | 7 | }else if (tempData["alert"] != null) { 8 | 11 | }else if (tempData["notice"] != null) { 12 | 15 | } 16 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Code/Template.cshtml: -------------------------------------------------------------------------------- 1 | @helper Scripts(){ 2 | @Assets.CSS("plugins/buttons/screen.css") 3 | } 4 | 5 | @helper TextBox(string name) { 6 |

7 | 8 | 9 |

10 | } 11 | @helper TextBoxDate(string name) { 12 |

13 | 14 | 15 |

16 | } 17 | @helper TextBoxRequired(string name, string requiredMessage = "Required") { 18 |

19 | 20 | 21 |

22 | 23 | } 24 | @helper TextBoxNumber(string name, string numberMessage = "Should be a number") { 25 |

26 | 27 | 28 |

29 | 30 | } 31 | @helper TextArea(string name, string attributes = "") { 32 |

33 | 34 | 35 |

36 | } 37 | @helper Submit(string value = "Save") { 38 |

39 | 42 |

43 |
44 | } 45 | 46 | @helper HiddenID(object id) { 47 | 48 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Code/URL.cshtml: -------------------------------------------------------------------------------- 1 | @functions{ 2 | public static string SiteRoot(bool includeAppPath = true){ 3 | var context = HttpContext.Current; 4 | var Port = context.Request.ServerVariables["SERVER_PORT"]; 5 | if (Port == null || Port == "80" || Port == "443") 6 | Port = ""; 7 | else 8 | Port = ":" + Port; 9 | var Protocol = context.Request.ServerVariables["SERVER_PORT_SECURE"]; 10 | if (Protocol == null || Protocol == "0") 11 | Protocol = "http://"; 12 | else 13 | Protocol = "https://"; 14 | 15 | var appPath = ""; 16 | if (includeAppPath) { 17 | appPath = context.Request.ApplicationPath; 18 | if (appPath == "/") 19 | appPath = ""; 20 | } 21 | var sOut = Protocol + context.Request.ServerVariables["SERVER_NAME"] + Port + appPath; 22 | return sOut; 23 | } 24 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Data/DBScripts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/App_Data/DBScripts.sql -------------------------------------------------------------------------------- /Source/VidPub.Web/App_Data/logs/site.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/App_Data/logs/site.log -------------------------------------------------------------------------------- /Source/VidPub.Web/CodeTemplates/AddController/Controller.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" HostSpecific="True" #> 2 | <# 3 | MvcTextTemplateHost mvcHost = (MvcTextTemplateHost)(Host); 4 | #> 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Web; 9 | using System.Web.Mvc; 10 | using VidPub.Web.Model; 11 | using VidPub.Web.Infrastructure; 12 | <# 13 | var controllerName = mvcHost.ControllerName; 14 | var nameSpace = mvcHost.Namespace; 15 | var tableName = controllerName.Replace("Controller",""); 16 | #> 17 | namespace <#= nameSpace #>{ 18 | public class <#= controllerName #> : CruddyController { 19 | public <#= controllerName #>(ITokenHandler tokenStore):base(tokenStore) { 20 | _table = new <#= tableName #>(); 21 | ViewBag.Table = _table; 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/VidPub.Web/CodeTemplates/AddView/CSHTML/Create.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" HostSpecific="True" #> 2 | <#@ output extension=".cshtml" #> 3 | <#@ assembly name="System.ComponentModel.DataAnnotations" #> 4 | <#@ assembly name="System.Core" #> 5 | <#@ assembly name="System.Data.Entity" #> 6 | <#@ assembly name="System.Data.Linq" #> 7 | <#@ import namespace="System" #> 8 | <#@ import namespace="System.Collections.Generic" #> 9 | <#@ import namespace="System.ComponentModel.DataAnnotations" #> 10 | <#@ import namespace="System.Data.Linq.Mapping" #> 11 | <#@ import namespace="System.Data.Objects.DataClasses" #> 12 | <#@ import namespace="System.Linq" #> 13 | <#@ import namespace="System.Reflection" #> 14 | <# 15 | MvcTextTemplateHost mvcHost = (MvcTextTemplateHost)(Host); 16 | #> 17 | @{ 18 | ViewBag.Title = "Edit"; 19 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 20 | string tableName = ViewBag.Table.TableName; 21 | 22 | //Editor specific stuff 23 | string keyField = ViewBag.Table.PrimaryKeyField; 24 | string keyValue = ViewBag.Table.GetPrimaryKey(Model).ToString(); 25 | } 26 |

@Html.ActionLink(tableName,"index") >> Edit @Form.Descriptor(Model)

27 | @using (Html.BeginForm()) { 28 | @Html.AntiForgeryToken() 29 | @Form.BuildInputs(Model) 30 |

31 | 32 |

33 | } 34 | -------------------------------------------------------------------------------- /Source/VidPub.Web/CodeTemplates/AddView/CSHTML/Edit.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" HostSpecific="True" #> 2 | <#@ output extension=".cshtml" #> 3 | <#@ assembly name="System.ComponentModel.DataAnnotations" #> 4 | <#@ assembly name="System.Core" #> 5 | <#@ assembly name="System.Data.Entity" #> 6 | <#@ assembly name="System.Data.Linq" #> 7 | <#@ import namespace="System" #> 8 | <#@ import namespace="System.Collections.Generic" #> 9 | <#@ import namespace="System.ComponentModel.DataAnnotations" #> 10 | <#@ import namespace="System.Data.Linq.Mapping" #> 11 | <#@ import namespace="System.Data.Objects.DataClasses" #> 12 | <#@ import namespace="System.Linq" #> 13 | <#@ import namespace="System.Reflection" #> 14 | <# 15 | MvcTextTemplateHost mvcHost = (MvcTextTemplateHost)(Host); 16 | #> 17 | @{ 18 | ViewBag.Title = "Edit"; 19 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 20 | string tableName = ViewBag.Table.TableName; 21 | 22 | //Editor specific stuff 23 | string keyField = ViewBag.Table.PrimaryKeyField; 24 | string keyValue = ViewBag.Table.GetPrimaryKey(Model).ToString(); 25 | } 26 |

@Html.ActionLink(tableName,"index") >> Edit @Form.Descriptor(Model)

27 | @using (Html.BeginForm()) { 28 | @Html.AntiForgeryToken() 29 | @Html.Hidden(keyField, keyValue); 30 | @Form.BuildInputs(Model) 31 |

32 | 33 |

34 | } 35 | -------------------------------------------------------------------------------- /Source/VidPub.Web/CodeTemplates/AddView/CSHTML/List.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" HostSpecific="True" #> 2 | <#@ output extension=".cshtml" #> 3 | <#@ assembly name="System.ComponentModel.DataAnnotations" #> 4 | <#@ assembly name="System.Core" #> 5 | <#@ assembly name="System.Data.Entity" #> 6 | <#@ assembly name="System.Data.Linq" #> 7 | <#@ import namespace="System" #> 8 | <#@ import namespace="System.Collections.Generic" #> 9 | <#@ import namespace="System.ComponentModel.DataAnnotations" #> 10 | <#@ import namespace="System.Data.Linq.Mapping" #> 11 | <#@ import namespace="System.Data.Objects.DataClasses" #> 12 | <#@ import namespace="System.Linq" #> 13 | <#@ import namespace="System.Reflection" #> 14 | <# 15 | MvcTextTemplateHost mvcHost = (MvcTextTemplateHost)(Host); 16 | #> 17 | @{ 18 | ViewBag.Title = "Index"; 19 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 20 | } 21 |
22 |

@ViewBag.Table.TableName

23 | 24 | 25 | 26 | 27 | 28 | @foreach (var item in Model) { 29 | 30 | 35 | 39 | 40 | } 41 |
NameOptions
31 | 32 | @Form.Descriptor(item) 33 | 34 | 36 | @Html.ActionLink("Edit","edit",new {id = Form.PK(ViewBag.Table,item)}) | 37 | Delete 38 |
42 |
43 |
44 |
45 | @Html.ActionLink("Create New","create") 46 |
47 |
48 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="VidPub.Web.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | using VidPub.Web.Infrastructure; 8 | 9 | namespace VidPub.Web { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication { 14 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) { 15 | filters.Add(new HandleErrorAttribute()); 16 | } 17 | 18 | public static void RegisterRoutes(RouteCollection routes) { 19 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 20 | 21 | routes.MapRoute( 22 | "Default", // Route name 23 | "{controller}/{action}/{id}", // URL with parameters 24 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 25 | ); 26 | 27 | } 28 | 29 | protected void Application_Start() { 30 | AreaRegistration.RegisterAllAreas(); 31 | 32 | RegisterGlobalFilters(GlobalFilters.Filters); 33 | RegisterRoutes(RouteTable.Routes); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/HTMLPage1.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Source/VidPub.Web/NLog.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("VidPub.Web")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("VidPub.Web")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("640b70ef-d6b2-4a8d-8060-3c6c3da40957")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/images/agenda.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/images/agenda.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/images/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/images/camera.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/images/close.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/images/lead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/images/lead.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/images/logo.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/javascripts/customer-admin.js: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/javascripts/notifier.js: -------------------------------------------------------------------------------- 1 | notifier = { 2 | 3 | success: function (message) { 4 | $("#notifier").attr("class", "success"); 5 | $("#notifier").html(message); 6 | this.goAway(); 7 | }, 8 | error: function (message) { 9 | $("#notifier").attr("class", "error"); 10 | $("#notifier").html(message); 11 | this.goAway(); 12 | }, 13 | warn: function (message) { 14 | $("#notifier").attr("class", "notice"); 15 | $("#notifier").html(message); 16 | this.goAway(); 17 | }, 18 | notify: function (response) { 19 | if (response.success) { 20 | notifier.success(response.message); 21 | } else { 22 | notifier.error(response.message); 23 | } 24 | }, 25 | goAway: function () { 26 | $("#notifier").delay(3000).fadeOut(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/javascripts/vidpub-search.js: -------------------------------------------------------------------------------- 1 | var vidpubSearch = { 2 | resetResults: function (controller) { 3 | $(".search-results").empty(); 4 | }, 5 | getResults: function (query, controller) { 6 | $.getJSON("/" + controller, { query: query }, function (data) { 7 | var results = { controller: controller, items: data }; 8 | $("#productionTemplate").tmpl(results).appendTo("#" + controller + "-search-results"); 9 | }); 10 | }, 11 | getCustomerResults: function (query) { 12 | $.getJSON("/customers", { query: query }, function (data) { 13 | var results = { items: data }; 14 | $("#customerTemplate").tmpl(results).appendTo("#customers-search-results"); 15 | }); 16 | } 17 | }; 18 | jQuery(function () { 19 | $("#searchForm").submit(function () { 20 | var val = $("#search").val(); 21 | vidpubSearch.resetResults(); 22 | if (val.length > 0) { 23 | vidpubSearch.getResults(val, "productions"); 24 | vidpubSearch.getResults(val, "episodes"); 25 | vidpubSearch.getCustomerResults(val); 26 | } else { 27 | $(".search-results").first().html("Need to enter a value to search for"); 28 | } 29 | return false; 30 | }); 31 | }); -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/Site.css: -------------------------------------------------------------------------------- 1 | #logo 2 | { 3 | background-color:#2d2d2d; 4 | height:65px; 5 | padding-left:52px; 6 | } 7 | 8 | #logo img 9 | { 10 | padding-top:12px 11 | } 12 | 13 | #splash 14 | { 15 | margin-bottom:32px; 16 | background-color:#4d4d4d; 17 | border-top:#ccc; 18 | padding-top:24px; 19 | height:360px; 20 | } 21 | .emphasis 22 | { 23 | font-size:1.8em; 24 | font-family:"helvetica neue", "helvetica"; 25 | } 26 | 27 | label 28 | { 29 | display:block; 30 | font-style:italic; 31 | font-weight:bold; 32 | } 33 | /* Styles for validation helpers 34 | -----------------------------------------------------------*/ 35 | .field-validation-error 36 | { 37 | color: #ff0000; 38 | } 39 | 40 | .field-validation-valid 41 | { 42 | display: none; 43 | } 44 | 45 | .input-validation-error 46 | { 47 | border: 1px solid red; 48 | background-color: #ffeeee; 49 | } 50 | 51 | .validation-summary-errors 52 | { 53 | font-weight: bold; 54 | color: #ff0000; 55 | } 56 | 57 | .validation-summary-valid 58 | { 59 | display: none; 60 | } 61 | 62 | #notifier 63 | { 64 | margin-top:24px; 65 | margin-bottom: 24px; 66 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/forms.css: -------------------------------------------------------------------------------- 1 | /* form style */ 2 | #notifications 3 | { 4 | margin-top:16px; 5 | margin-bottom:16px; 6 | } 7 | hr 8 | { 9 | margin-top:16px; 10 | margin-bottom:16px; 11 | } 12 | 13 | /* input field */ 14 | .vidform input { 15 | border:1px solid #444; 16 | background-color:#E5ECF9; 17 | padding:5px; 18 | color:#000; 19 | font-size:12px; 20 | width:160px; 21 | /* CSS3 spicing */ 22 | -moz-border-radius:4px; 23 | -webkit-border-radius:4px; 24 | } 25 | .vidform textarea { 26 | border:1px solid #444; 27 | background-color:#E5ECF9; 28 | padding:5px; 29 | color:#000; 30 | font-size:12px; 31 | width: 210px; 32 | /* CSS3 spicing */ 33 | -moz-border-radius:4px; 34 | -webkit-border-radius:4px; 35 | } 36 | .vidform input:focus { color:#fff; background-color:#777; } 37 | .vidform input:active { background-color:#888; } 38 | 39 | 40 | /* button */ 41 | .vidform button { 42 | outline:0; 43 | border:1px solid #666; 44 | } 45 | 46 | .vidform p 47 | { 48 | padding:0; 49 | margin:12px; 50 | } 51 | 52 | /* field label */ 53 | label { 54 | display:block; 55 | font-size:11px; 56 | color:#ccc; 57 | } 58 | .imgbutton 59 | { 60 | cursor:pointer; 61 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/jquery_ui/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.accordion.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Accordion 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Accordion#theming 14 | */ 15 | /* IE/Win - Fix animation bug - #4615 */ 16 | .ui-accordion { width: 100%; } 17 | .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } 18 | .ui-accordion .ui-accordion-li-fix { display: inline; } 19 | .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } 20 | .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } 21 | .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } 22 | .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } 23 | .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } 24 | .ui-accordion .ui-accordion-content-active { display: block; } 25 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.all.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI CSS Framework 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Theming 14 | */ 15 | @import "jquery.ui.base.css"; 16 | @import "jquery.ui.theme.css"; 17 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.base.css: -------------------------------------------------------------------------------- 1 | @import url("jquery.ui.core.css"); 2 | @import url("jquery.ui.resizable.css"); 3 | @import url("jquery.ui.selectable.css"); 4 | @import url("jquery.ui.accordion.css"); 5 | @import url("jquery.ui.autocomplete.css"); 6 | @import url("jquery.ui.button.css"); 7 | @import url("jquery.ui.dialog.css"); 8 | @import url("jquery.ui.slider.css"); 9 | @import url("jquery.ui.tabs.css"); 10 | @import url("jquery.ui.datepicker.css"); 11 | @import url("jquery.ui.progressbar.css"); -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.dialog.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Dialog 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Dialog#theming 14 | */ 15 | .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } 16 | .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } 17 | .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 18 | .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } 19 | .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } 20 | .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } 21 | .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } 22 | .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } 23 | .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } 24 | .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } 25 | .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } 26 | .ui-draggable .ui-dialog-titlebar { cursor: move; } 27 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.progressbar.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Progressbar 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Progressbar#theming 14 | */ 15 | .ui-progressbar { height:2em; text-align: left; } 16 | .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.resizable.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Resizable 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)] 12 | * 13 | * http://docs.jquery.com/UI/Resizable#theming 14 | */ 15 | .ui-resizable { position: relative;} 16 | .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} 17 | .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } 18 | .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } 19 | .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } 20 | .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } 21 | .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } 22 | .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } 23 | .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } 24 | .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } 25 | .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;} -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.selectable.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Selectable 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Selectable#theming 14 | */ 15 | .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; } 16 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.slider.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Slider 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Slider#theming 14 | */ 15 | .ui-slider { position: relative; text-align: left; } 16 | .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } 17 | .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } 18 | 19 | .ui-slider-horizontal { height: .8em; } 20 | .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } 21 | .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } 22 | .ui-slider-horizontal .ui-slider-range-min { left: 0; } 23 | .ui-slider-horizontal .ui-slider-range-max { right: 0; } 24 | 25 | .ui-slider-vertical { width: .8em; height: 100px; } 26 | .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } 27 | .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } 28 | .ui-slider-vertical .ui-slider-range-min { bottom: 0; } 29 | .ui-slider-vertical .ui-slider-range-max { top: 0; } -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/jquery_ui/jquery.ui.tabs.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: While Microsoft is not the author of this file, Microsoft is 3 | * offering you a license subject to the terms of the Microsoft Software 4 | * License Terms for Microsoft ASP.NET Model View Controller 3. 5 | * Microsoft reserves all other rights. The notices below are provided 6 | * for informational purposes only and are not the license terms under 7 | * which Microsoft distributed this file. 8 | * 9 | * jQuery UI Tabs 1.8.11 10 | * 11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 12 | * 13 | * http://docs.jquery.com/UI/Tabs#theming 14 | */ 15 | .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ 16 | .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } 17 | .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } 18 | .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } 19 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } 20 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } 21 | .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ 22 | .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } 23 | .ui-tabs .ui-tabs-hide { display: none !important; } 24 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/cross.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/key.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/buttons/icons/tick.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/buttons/readme.txt: -------------------------------------------------------------------------------- 1 | Buttons 2 | 3 | * Gives you great looking CSS buttons, for both and 25 | 26 | 27 | Change Password 28 | 29 | 30 | 31 | Cancel 32 | 33 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/fancy-type/readme.txt: -------------------------------------------------------------------------------- 1 | Fancy Type 2 | 3 | * Gives you classes to use if you'd like some 4 | extra fancy typography. 5 | 6 | Credits and instructions are specified above each class 7 | in the fancy-type.css file in this directory. 8 | 9 | 10 | Usage 11 | ---------------------------------------------------------------- 12 | 13 | 1) Add this plugin to lib/settings.yml. 14 | See compress.rb for instructions. 15 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/doc.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/email.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/external.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/external.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/feed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/feed.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/im.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/lock.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/pdf.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/visited.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/visited.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/xls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/VidPub.Web/Public/stylesheets/plugins/link-icons/icons/xls.png -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/readme.txt: -------------------------------------------------------------------------------- 1 | Link Icons 2 | * Icons for links based on protocol or file type. 3 | 4 | This is not supported in IE versions < 7. 5 | 6 | 7 | Credits 8 | ---------------------------------------------------------------- 9 | 10 | * Marc Morgan 11 | * Olav Bjorkoy [bjorkoy.com] 12 | 13 | 14 | Usage 15 | ---------------------------------------------------------------- 16 | 17 | 1) Add this line to your HTML: 18 | 19 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/link-icons/screen.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------------------------------- 2 | 3 | link-icons.css 4 | * Icons for links based on protocol or file type. 5 | 6 | See the Readme file in this folder for additional instructions. 7 | 8 | -------------------------------------------------------------- */ 9 | 10 | /* Use this class if a link gets an icon when it shouldn't. */ 11 | body a.noicon { 12 | background:transparent none !important; 13 | padding:0 !important; 14 | margin:0 !important; 15 | } 16 | 17 | /* Make sure the icons are not cut */ 18 | a[href^="http:"], a[href^="https:"], 19 | a[href^="http:"]:visited, a[href^="https:"]:visited, 20 | a[href^="mailto:"], a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], 21 | a[href$=".rss"], a[href$=".rdf"], a[href^="aim:"] { 22 | padding:2px 22px 2px 0; 23 | margin:-2px 0; 24 | background-repeat: no-repeat; 25 | background-position: right center; 26 | } 27 | 28 | /* External links */ 29 | a[href^="http:"] { background-image: url(icons/external.png); } 30 | a[href^="https:"] { background-image: url(icons/lock.png); } 31 | a[href^="mailto:"] { background-image: url(icons/email.png); } 32 | a[href^="http:"]:visited { background-image: url(icons/visited.png); } 33 | 34 | /* Files */ 35 | a[href$=".pdf"] { background-image: url(icons/pdf.png); } 36 | a[href$=".doc"] { background-image: url(icons/doc.png); } 37 | a[href$=".xls"] { background-image: url(icons/xls.png); } 38 | 39 | /* Misc */ 40 | a[href$=".rss"], 41 | a[href$=".rdf"] { background-image: url(icons/feed.png); } 42 | a[href^="aim:"] { background-image: url(icons/im.png); } 43 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/plugins/rtl/readme.txt: -------------------------------------------------------------------------------- 1 | RTL 2 | * Mirrors Blueprint, so it can be used with Right-to-Left languages. 3 | 4 | By Ran Yaniv Hartstein, ranh.co.il 5 | 6 | Usage 7 | ---------------------------------------------------------------- 8 | 9 | 1) Add this line to your HTML: 10 | 11 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Public/stylesheets/print.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 1.0.1 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* print.css */ 15 | body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} 16 | .container {background:none;} 17 | hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} 18 | hr.space {background:#fff;color:#fff;visibility:hidden;} 19 | h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} 20 | code {font:.9em "Courier New", Monaco, Courier, monospace;} 21 | a img {border:none;} 22 | p img.top {margin-top:0;} 23 | blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} 24 | .small {font-size:.9em;} 25 | .large {font-size:1.1em;} 26 | .quiet {color:#999;} 27 | .hide {display:none;} 28 | a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} 29 | a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Account/ChangePasswordSuccess.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Change Password"; 3 | } 4 | 5 |

Change Password

6 |

7 | Your password has been changed successfully. 8 |

9 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Account/LogOn.cshtml: -------------------------------------------------------------------------------- 1 | @model VidPub.Web.Models.LogOnModel 2 | 3 | @{ 4 | ViewBag.Title = "Log On"; 5 | } 6 |
7 |
8 | 9 |

Log On

10 |

11 | Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account. 12 |

13 | 14 | 15 | 16 | @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") 17 | 18 | @using (Html.BeginForm()) { 19 |
20 |
21 | Account Information 22 | 23 |
24 | Email 25 |
26 |
27 | @Html.TextBox("Email") 28 |
29 | 30 |
31 | Password 32 |
33 |
34 | @Html.Password("Password") 35 |
36 |

37 | 38 |

39 |
40 |
41 | } 42 |
43 |
44 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About Us"; 3 | } 4 | 5 |

About

6 |

7 | Put content here. 8 |

9 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Productions/Create.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Create"; 3 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 4 | } 5 | 6 |

Create

7 | 8 | @using (Html.BeginForm()) { 9 | @Html.AntiForgeryToken() 10 |
11 | Production 12 |

13 | 14 | 15 |

16 |

17 | 18 | 19 |

20 |

21 | 22 | 23 |

24 |

25 | 26 |

27 |
28 | } 29 | 30 |
31 | @Html.ActionLink("Back to List", "Index") 32 |
33 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Productions/Edit.cshtml: -------------------------------------------------------------------------------- 1 | 

@Html.ActionLink("Productions","Index","Vidpub") >>> Edit @Model.Title

2 |
3 | @using (Html.BeginForm()) { 4 | @Html.AntiForgeryToken() 5 | @Form.HiddenID(Model.ID) 6 | @Form.TextBoxRequired(name: "Title", value: Model.Title) 7 | @Form.TextBoxRequired(name: "Slug", value: Model.Slug) 8 | @Form.TextArea(name: "Description", value: Model.Description) 9 | @Form.TextBoxRequired(name: "Author", value: Model.Author) 10 | @Form.TextBoxNumber(name: "Price", value: Model.Price) 11 | @Form.TextBox(name: "ReleasedOn", value: Model.ReleasedOn) 12 | @Form.Submit() 13 | } 14 |
-------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Productions/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Index"; 3 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 4 | } 5 | 6 |

Index

7 | 8 |

9 | @Html.ActionLink("Create New", "Create") 10 |

11 | 12 | 13 | 16 | 19 | 20 | 21 | @foreach (var item in Model) { 22 | 23 | 24 | 28 | 29 | } 30 | 31 |
14 | Name 15 | 17 | Options 18 |
@item.Title 25 | @Html.ActionLink("Edit","edit",new{id = item.ID}) | 26 | @Html.ActionLink("Delete","delete",new{id = item.ID}) 27 |
32 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model System.Web.Mvc.HandleErrorInfo 2 | 3 | @{ 4 | ViewBag.Title = "Error"; 5 | } 6 | 7 |

8 | Sorry, an error occurred while processing your request. 9 |

10 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Shared/_AdminLayout.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | @Assets.CSS("jquery_ui/jquery.ui.all.css") 5 | @Assets.CSS("forms.css") 6 | 7 |
8 |
9 | @RenderBody() 10 |
11 |
12 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | @Page.Title 6 | 7 | @Assets.jQuery() 8 | @Assets.CSS("screen.css") 9 | @Assets.CSS("print.css", "print") 10 | @Assets.CSS("site.css") 11 | 12 | 13 | 14 | 17 | 18 | @RenderBody() 19 | 20 |
21 |
22 |

23 | ©@DateTime.Now.Year VidPub, Inc. 24 |

25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Shared/_LogOnPartial.cshtml: -------------------------------------------------------------------------------- 1 | @if(Request.IsAuthenticated) { 2 | Welcome @User.Identity.Name! 3 | [ @Html.ActionLink("Log Off", "LogOff", "Account") ] 4 | } 5 | else { 6 | @:[ @Html.ActionLink("Log On", "LogOn", "Account") ] 7 | } 8 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Shared/_PublicLayout.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 |
5 |
6 | @RenderBody() 7 |
8 |
9 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Vidpub/Customers.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Productions"; 3 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 4 | } 5 | 6 | @Assets.Script("notifier.js") 7 | 8 |
9 | @Notifier.Script(TempData) 10 |

11 | @Html.ActionLink("Admin","index") >> 12 | Edit: @Model.First @Model.Last 13 |

14 |
15 | @Html.AntiForgeryToken() 16 | @Form.HiddenID(Model.ID) 17 | @Form.TextBox("First",Model.First) 18 | @Form.TextBox("Last",Model.Last) 19 | @Form.TextBox("Email",Model.Email) 20 | @Form.TextBoxDate("StreamUntil",Model.StreamUntil) 21 | @Form.TextBoxDate("DownloadUntil",Model.DownloadUntil) 22 | @Form.Submit() 23 |
24 | 25 |
26 |
27 |
28 | 29 | 34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Views/Vidpub/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Index"; 3 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 4 | } 5 | @Assets.Templates() 6 | @Assets.Script("vidpub-search.js") 7 | 8 | 18 | 28 |

Vidpub Admin

29 |
30 | 31 | 32 | 33 |
34 |
35 |
36 |
-------------------------------------------------------------------------------- /Source/VidPub.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | Page.Title = "Welcome to VidPub!"; 4 | Page.Router = new RouteHelper(Url); 5 | } -------------------------------------------------------------------------------- /Source/VidPub.Web/Web.Debug.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Source/VidPub.Web/Web.Release.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /Source/VidPub.Web/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Source/Vidpub.AcceptanceTests/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Quixote; 6 | 7 | namespace Vidpub.AcceptanceTests { 8 | class Program { 9 | static void Main(string[] args) { 10 | Runner.SiteRoot = "http://localhost:1701/"; 11 | TheFollowing.Describes("Home Page"); 12 | 13 | It.Should("Have 'VidPub' in the title", () => { 14 | return Runner.Get("/").Title.ShouldContain("VidPugb"); 15 | }); 16 | 17 | It.Should("Log me in with correct credentials", () => { 18 | var post = Runner.Post("/account/logon", new { login = "rob@tekpub.com", password = "password" }); 19 | return post.Title.ShouldContain("Welcome"); 20 | }); 21 | 22 | Console.Read(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Source/Vidpub.AcceptanceTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Vidpub.AcceptanceTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Vidpub.AcceptanceTests")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72d054be-cc86-44ab-901e-e8ae5efcd307")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Source/Vidpub.AcceptanceTests/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Default.aspx.cs" Inherits="Vidpub.Admin._Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

My tables

10 | 11 |

12 | 13 | 15 | 16 | 17 | 18 | <%# Eval("DisplayName") %> 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.Web.DynamicData; 4 | 5 | namespace Vidpub.Admin { 6 | public partial class _Default : System.Web.UI.Page { 7 | protected void Page_Load(object sender, EventArgs e) { 8 | System.Collections.IList visibleTables = Global.DefaultModel.VisibleTables; 9 | if (visibleTables.Count == 0) { 10 | throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages."); 11 | } 12 | Menu1.DataSource = visibleTables; 13 | Menu1.DataBind(); 14 | } 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class _Default { 15 | 16 | protected global::System.Web.UI.WebControls.Content headContent; 17 | 18 | protected global::System.Web.UI.WebControls.Content Content1; 19 | 20 | protected global::System.Web.UI.ScriptManagerProxy ScriptManagerProxy1; 21 | 22 | protected global::System.Web.UI.WebControls.GridView Menu1; 23 | 24 | protected global::System.Web.DynamicData.DynamicHyperLink HyperLink1; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/GridViewPager.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class GridViewPager { 15 | 16 | protected global::System.Web.UI.WebControls.ImageButton ImageButtonFirst; 17 | 18 | protected global::System.Web.UI.WebControls.ImageButton ImageButtonPrev; 19 | 20 | protected global::System.Web.UI.WebControls.Label LabelPage; 21 | 22 | protected global::System.Web.UI.WebControls.TextBox TextBoxPage; 23 | 24 | protected global::System.Web.UI.WebControls.Label LabelNumberOfPages; 25 | 26 | protected global::System.Web.UI.WebControls.ImageButton ImageButtonNext; 27 | 28 | protected global::System.Web.UI.WebControls.ImageButton ImageButtonLast; 29 | 30 | protected global::System.Web.UI.WebControls.Label LabelRows; 31 | 32 | protected global::System.Web.UI.WebControls.DropDownList DropDownListPageSize; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/Back.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/Back.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/PgFirst.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/PgFirst.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/PgLast.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/PgLast.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/PgNext.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/PgNext.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/PgPrev.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/PgPrev.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/header_back.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/header_back.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Content/Images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/Vidpub.Admin/DynamicData/Content/Images/plus.gif -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Default.ascx.cs" Inherits="Vidpub.Admin.DefaultEntityTemplate" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.DynamicData; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class DefaultEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl { 11 | private MetaColumn currentColumn; 12 | 13 | protected override void OnLoad(EventArgs e) { 14 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType)) { 15 | currentColumn = column; 16 | Control item = new _NamingContainer(); 17 | EntityTemplate1.ItemTemplate.InstantiateIn(item); 18 | EntityTemplate1.Controls.Add(item); 19 | } 20 | } 21 | 22 | protected void Label_Init(object sender, EventArgs e) { 23 | Label label = (Label)sender; 24 | label.Text = currentColumn.DisplayName; 25 | } 26 | 27 | protected void DynamicControl_Init(object sender, EventArgs e) { 28 | DynamicControl dynamicControl = (DynamicControl)sender; 29 | dynamicControl.DataField = currentColumn.Name; 30 | } 31 | 32 | public class _NamingContainer : Control, INamingContainer { } 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class DefaultEntityTemplate { 15 | 16 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Default_Edit.ascx.cs" Inherits="Vidpub.Admin.Default_EditEntityTemplate" %> 2 | 3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.DynamicData; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Default_EditEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl { 11 | private MetaColumn currentColumn; 12 | 13 | protected override void OnLoad(EventArgs e) { 14 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType)) { 15 | currentColumn = column; 16 | Control item = new DefaultEntityTemplate._NamingContainer(); 17 | EntityTemplate1.ItemTemplate.InstantiateIn(item); 18 | EntityTemplate1.Controls.Add(item); 19 | } 20 | } 21 | 22 | protected void Label_Init(object sender, EventArgs e) { 23 | Label label = (Label)sender; 24 | label.Text = currentColumn.DisplayName; 25 | } 26 | 27 | protected void Label_PreRender(object sender, EventArgs e) { 28 | Label label = (Label)sender; 29 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl"); 30 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl; 31 | if (ftuc != null && ftuc.DataControl != null) { 32 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label); 33 | } 34 | } 35 | 36 | protected void DynamicControl_Init(object sender, EventArgs e) { 37 | DynamicControl dynamicControl = (DynamicControl)sender; 38 | dynamicControl.DataField = currentColumn.Name; 39 | } 40 | 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Default_EditEntityTemplate { 15 | 16 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1; 17 | 18 | protected global::System.Web.DynamicData.DynamicControl DynamicControl; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Insert.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Default_Insert.ascx.cs" Inherits="Vidpub.Admin.Default_InsertEntityTemplate" %> 2 | 3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Insert.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.DynamicData; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Default_InsertEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl { 11 | private MetaColumn currentColumn; 12 | 13 | protected override void OnLoad(EventArgs e) { 14 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType)) { 15 | currentColumn = column; 16 | Control item = new DefaultEntityTemplate._NamingContainer(); 17 | EntityTemplate1.ItemTemplate.InstantiateIn(item); 18 | EntityTemplate1.Controls.Add(item); 19 | } 20 | } 21 | 22 | protected void Label_Init(object sender, EventArgs e) { 23 | Label label = (Label)sender; 24 | label.Text = currentColumn.DisplayName; 25 | } 26 | 27 | protected void Label_PreRender(object sender, EventArgs e) { 28 | Label label = (Label)sender; 29 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl"); 30 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl; 31 | if (ftuc != null && ftuc.DataControl != null) { 32 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label); 33 | } 34 | } 35 | 36 | protected void DynamicControl_Init(object sender, EventArgs e) { 37 | DynamicControl dynamicControl = (DynamicControl)sender; 38 | dynamicControl.DataField = currentColumn.Name; 39 | } 40 | 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/EntityTemplates/Default_Insert.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Default_InsertEntityTemplate { 15 | 16 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1; 17 | 18 | protected global::System.Web.DynamicData.DynamicControl DynamicControl; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="Vidpub.Admin.BooleanField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class BooleanField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected override void OnDataBinding(EventArgs e) { 12 | base.OnDataBinding(e); 13 | 14 | object val = FieldValue; 15 | if (val != null) 16 | CheckBox1.Checked = (bool)val; 17 | } 18 | 19 | public override Control DataControl { 20 | get { 21 | return CheckBox1; 22 | } 23 | } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class BooleanField { 15 | 16 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Boolean_Edit.ascx.cs" Inherits="Vidpub.Admin.Boolean_EditField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Boolean_EditField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected override void OnDataBinding(EventArgs e) { 12 | base.OnDataBinding(e); 13 | 14 | object val = FieldValue; 15 | if (val != null) 16 | CheckBox1.Checked = (bool)val; 17 | } 18 | 19 | protected override void ExtractValues(IOrderedDictionary dictionary) { 20 | dictionary[Column.Name] = CheckBox1.Checked; 21 | } 22 | 23 | public override Control DataControl { 24 | get { 25 | return CheckBox1; 26 | } 27 | } 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Boolean_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Boolean_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Children.ascx.cs" Inherits="Vidpub.Admin.ChildrenField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class ChildrenField : System.Web.DynamicData.FieldTemplateUserControl { 11 | private bool _allowNavigation = true; 12 | private string _navigateUrl; 13 | 14 | public string NavigateUrl { 15 | get { 16 | return _navigateUrl; 17 | } 18 | set { 19 | _navigateUrl = value; 20 | } 21 | } 22 | 23 | public bool AllowNavigation { 24 | get { 25 | return _allowNavigation; 26 | } 27 | set { 28 | _allowNavigation = value; 29 | } 30 | } 31 | 32 | protected void Page_Load(object sender, EventArgs e) { 33 | HyperLink1.Text = "View " + ChildrenColumn.ChildTable.DisplayName; 34 | } 35 | 36 | protected string GetChildrenPath() { 37 | if (!AllowNavigation) { 38 | return null; 39 | } 40 | 41 | if (String.IsNullOrEmpty(NavigateUrl)) { 42 | return ChildrenPath; 43 | } else { 44 | return BuildChildrenPath(NavigateUrl); 45 | } 46 | } 47 | 48 | public override Control DataControl { 49 | get { 50 | return HyperLink1; 51 | } 52 | } 53 | 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ChildrenField { 15 | 16 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children_Insert.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Children_Insert.ascx.cs" Inherits="Vidpub.Admin.Children_InsertField" %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children_Insert.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Children_InsertField : System.Web.DynamicData.FieldTemplateUserControl { 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Children_Insert.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Children_InsertField { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/DateTime.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="DateTime.ascx.cs" Inherits="Vidpub.Admin.DateTimeField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/DateTime.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class DateTimeField : System.Web.DynamicData.FieldTemplateUserControl { 11 | public override Control DataControl { 12 | get { 13 | return Literal1; 14 | } 15 | } 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/DateTime.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class DateTimeField { 15 | 16 | protected global::System.Web.UI.WebControls.Literal Literal1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/DateTime_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="DateTime_Edit.ascx.cs" Inherits="Vidpub.Admin.DateTime_EditField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/DateTime_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class DateTime_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.TextBox TextBox1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; 21 | 22 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 23 | 24 | protected global::System.Web.UI.WebControls.CustomValidator DateValidator; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Decimal_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Decimal_Edit.ascx.cs" Inherits="Vidpub.Admin.Decimal_EditField" %> 2 | 3 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Decimal_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Decimal_EditField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected void Page_Load(object sender, EventArgs e) { 12 | TextBox1.ToolTip = Column.Description; 13 | 14 | SetUpValidator(RequiredFieldValidator1); 15 | SetUpValidator(CompareValidator1); 16 | SetUpValidator(RegularExpressionValidator1); 17 | SetUpValidator(RangeValidator1); 18 | SetUpValidator(DynamicValidator1); 19 | } 20 | 21 | protected override void ExtractValues(IOrderedDictionary dictionary) { 22 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text); 23 | } 24 | 25 | public override Control DataControl { 26 | get { 27 | return TextBox1; 28 | } 29 | } 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Decimal_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Decimal_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.TextBox TextBox1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.UI.WebControls.CompareValidator CompareValidator1; 21 | 22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; 23 | 24 | protected global::System.Web.UI.WebControls.RangeValidator RangeValidator1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/EmailAddress.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="EmailAddress.ascx.cs" Inherits="Vidpub.Admin.EmailAddressField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/EmailAddress.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class EmailAddressField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected override void OnDataBinding(EventArgs e) { 12 | string url = FieldValueString; 13 | if (!url.StartsWith("mailto:", StringComparison.OrdinalIgnoreCase)) { 14 | url = "mailto:" + url; 15 | } 16 | HyperLink1.NavigateUrl = url; 17 | } 18 | 19 | public override Control DataControl { 20 | get { 21 | return HyperLink1; 22 | } 23 | } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/EmailAddress.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class EmailAddressField { 15 | 16 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Enumeration.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="Vidpub.Admin.EnumerationField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Enumeration.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class EnumerationField : System.Web.DynamicData.FieldTemplateUserControl { 11 | public override Control DataControl { 12 | get { 13 | return Literal1; 14 | } 15 | } 16 | 17 | public string EnumFieldValueString { 18 | get { 19 | if (FieldValue == null) { 20 | return FieldValueString; 21 | } 22 | 23 | Type enumType = Column.GetEnumType(); 24 | if (enumType != null) { 25 | object enumValue = System.Enum.ToObject(enumType, FieldValue); 26 | return FormatFieldValue(enumValue); 27 | } 28 | 29 | return FieldValueString; 30 | } 31 | } 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Enumeration.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class EnumerationField { 15 | 16 | protected global::System.Web.UI.WebControls.Literal Literal1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Enumeration_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Enumeration_Edit.ascx.cs" Inherits="Vidpub.Admin.Enumeration_EditField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Enumeration_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Enumeration_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ForeignKey.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="Vidpub.Admin.ForeignKeyField" %> 2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ForeignKey.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class ForeignKeyField : System.Web.DynamicData.FieldTemplateUserControl { 11 | private bool _allowNavigation = true; 12 | 13 | public string NavigateUrl { 14 | get; 15 | set; 16 | } 17 | 18 | public bool AllowNavigation { 19 | get { 20 | return _allowNavigation; 21 | } 22 | set { 23 | _allowNavigation = value; 24 | } 25 | } 26 | 27 | protected string GetDisplayString() { 28 | object value = FieldValue; 29 | 30 | if (value == null) { 31 | return FormatFieldValue(ForeignKeyColumn.GetForeignKeyString(Row)); 32 | } else { 33 | return FormatFieldValue(ForeignKeyColumn.ParentTable.GetDisplayString(value)); 34 | } 35 | } 36 | 37 | protected string GetNavigateUrl() { 38 | if (!AllowNavigation) { 39 | return null; 40 | } 41 | 42 | if (String.IsNullOrEmpty(NavigateUrl)) { 43 | return ForeignKeyPath; 44 | } else { 45 | return BuildForeignKeyPath(NavigateUrl); 46 | } 47 | } 48 | 49 | public override Control DataControl { 50 | get { 51 | return HyperLink1; 52 | } 53 | } 54 | 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ForeignKey.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ForeignKeyField { 15 | 16 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ForeignKey_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="ForeignKey_Edit.ascx.cs" Inherits="Vidpub.Admin.ForeignKey_EditField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ForeignKey_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ForeignKey_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Integer_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Integer_Edit.ascx.cs" Inherits="Vidpub.Admin.Integer_EditField" %> 2 | 3 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Integer_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Integer_EditField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected void Page_Load(object sender, EventArgs e) { 12 | TextBox1.ToolTip = Column.Description; 13 | 14 | SetUpValidator(RequiredFieldValidator1); 15 | SetUpValidator(CompareValidator1); 16 | SetUpValidator(RegularExpressionValidator1); 17 | SetUpValidator(RangeValidator1); 18 | SetUpValidator(DynamicValidator1); 19 | } 20 | 21 | protected override void ExtractValues(IOrderedDictionary dictionary) { 22 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text); 23 | } 24 | 25 | public override Control DataControl { 26 | get { 27 | return TextBox1; 28 | } 29 | } 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Integer_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Integer_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.TextBox TextBox1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.UI.WebControls.CompareValidator CompareValidator1; 21 | 22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; 23 | 24 | protected global::System.Web.UI.WebControls.RangeValidator RangeValidator1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ManyToMany.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="ManyToMany.ascx.cs" Inherits="Vidpub.Admin.ManyToManyField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ManyToMany.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.ComponentModel; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.Data.Objects; 6 | using System.Data.Objects.DataClasses; 7 | using System.Web.DynamicData; 8 | using System.Web.UI; 9 | using System.Web.UI.WebControls; 10 | 11 | namespace Vidpub.Admin { 12 | public partial class ManyToManyField : System.Web.DynamicData.FieldTemplateUserControl { 13 | protected override void OnDataBinding(EventArgs e) { 14 | base.OnDataBinding(e); 15 | 16 | object entity; 17 | ICustomTypeDescriptor rowDescriptor = Row as ICustomTypeDescriptor; 18 | if (rowDescriptor != null) { 19 | // Get the real entity from the wrapper 20 | entity = rowDescriptor.GetPropertyOwner(null); 21 | } else { 22 | entity = Row; 23 | } 24 | 25 | // Get the collection and make sure it's loaded 26 | RelatedEnd entityCollection = Column.EntityTypeProperty.GetValue(entity, null) as RelatedEnd; 27 | if (entityCollection == null) { 28 | throw new InvalidOperationException(String.Format("The ManyToMany template does not support the collection type of the '{0}' column on the '{1}' table.", Column.Name, Table.Name)); 29 | } 30 | if (!entityCollection.IsLoaded) { 31 | entityCollection.Load(); 32 | } 33 | 34 | // Bind the repeater to the list of children entities 35 | Repeater1.DataSource = entityCollection; 36 | Repeater1.DataBind(); 37 | } 38 | 39 | public override Control DataControl { 40 | get { 41 | return Repeater1; 42 | } 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ManyToMany.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ManyToManyField { 15 | 16 | protected global::System.Web.UI.WebControls.Repeater Repeater1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ManyToMany_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="ManyToMany_Edit.ascx.cs" Inherits="Vidpub.Admin.ManyToMany_EditField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/ManyToMany_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ManyToMany_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.CheckBoxList CheckBoxList1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/MultilineText_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="MultilineText_Edit.ascx.cs" Inherits="Vidpub.Admin.MultilineText_EditField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/MultilineText_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class MultilineText_EditField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected void Page_Load(object sender, EventArgs e) { 12 | TextBox1.MaxLength = Column.MaxLength; 13 | TextBox1.ToolTip = Column.Description; 14 | 15 | SetUpValidator(RequiredFieldValidator1); 16 | SetUpValidator(RegularExpressionValidator1); 17 | SetUpValidator(DynamicValidator1); 18 | } 19 | 20 | protected override void ExtractValues(IOrderedDictionary dictionary) { 21 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text); 22 | } 23 | 24 | public override Control DataControl { 25 | get { 26 | return TextBox1; 27 | } 28 | } 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/MultilineText_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class MultilineText_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.TextBox TextBox1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; 21 | 22 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Text.ascx.cs" Inherits="Vidpub.Admin.TextField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class TextField : System.Web.DynamicData.FieldTemplateUserControl { 11 | private const int MAX_DISPLAYLENGTH_IN_LIST = 25; 12 | 13 | public override string FieldValueString { 14 | get { 15 | string value = base.FieldValueString; 16 | if (ContainerType == ContainerType.List) { 17 | if (value != null && value.Length > MAX_DISPLAYLENGTH_IN_LIST) { 18 | value = value.Substring(0, MAX_DISPLAYLENGTH_IN_LIST - 3) + "..."; 19 | } 20 | } 21 | return value; 22 | } 23 | } 24 | 25 | public override Control DataControl { 26 | get { 27 | return Literal1; 28 | } 29 | } 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class TextField { 15 | 16 | protected global::System.Web.UI.WebControls.Literal Literal1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text_Edit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Text_Edit.ascx.cs" Inherits="Vidpub.Admin.Text_EditField" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text_Edit.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class Text_EditField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected void Page_Load(object sender, EventArgs e) { 12 | if (Column.MaxLength < 20) { 13 | TextBox1.Columns = Column.MaxLength; 14 | } 15 | TextBox1.ToolTip = Column.Description; 16 | 17 | SetUpValidator(RequiredFieldValidator1); 18 | SetUpValidator(RegularExpressionValidator1); 19 | SetUpValidator(DynamicValidator1); 20 | } 21 | 22 | protected override void OnDataBinding(EventArgs e) { 23 | base.OnDataBinding(e); 24 | if (Column.MaxLength > 0) { 25 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength); 26 | } 27 | } 28 | 29 | protected override void ExtractValues(IOrderedDictionary dictionary) { 30 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text); 31 | } 32 | 33 | public override Control DataControl { 34 | get { 35 | return TextBox1; 36 | } 37 | } 38 | 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Text_Edit.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Text_EditField { 15 | 16 | protected global::System.Web.UI.WebControls.TextBox TextBox1; 17 | 18 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; 19 | 20 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; 21 | 22 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Url.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Url.ascx.cs" Inherits="Vidpub.Admin.UrlField" %> 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Url.ascx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Specialized; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | 9 | namespace Vidpub.Admin { 10 | public partial class UrlField : System.Web.DynamicData.FieldTemplateUserControl { 11 | protected override void OnDataBinding(EventArgs e) { 12 | HyperLinkUrl.NavigateUrl = ProcessUrl(FieldValueString); 13 | } 14 | 15 | private string ProcessUrl(string url) { 16 | if (url.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || url.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) { 17 | return url; 18 | } 19 | 20 | return "http://" + url; 21 | } 22 | 23 | public override Control DataControl { 24 | get { 25 | return HyperLinkUrl; 26 | } 27 | } 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/FieldTemplates/Url.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class UrlField { 15 | 16 | protected global::System.Web.UI.WebControls.HyperLink HyperLinkUrl; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/Boolean.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="Vidpub.Admin.BooleanFilter" %> 2 | 3 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/Boolean.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class BooleanFilter { 15 | 16 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/Enumeration.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="Vidpub.Admin.EnumerationFilter" %> 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/Enumeration.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class EnumerationFilter { 15 | 16 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/ForeignKey.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="Vidpub.Admin.ForeignKeyFilter" %> 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/Filters/ForeignKey.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class ForeignKeyFilter { 15 | 16 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Details.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web.Routing; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | using System.Web.UI.WebControls.Expressions; 9 | 10 | namespace Vidpub.Admin { 11 | public partial class Details : System.Web.UI.Page { 12 | protected MetaTable table; 13 | 14 | protected void Page_Init(object sender, EventArgs e) { 15 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context); 16 | FormView1.SetMetaTable(table); 17 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name; 18 | } 19 | 20 | protected void Page_Load(object sender, EventArgs e) { 21 | Title = table.DisplayName; 22 | DetailsDataSource.Include = table.ForeignKeyColumnsNames; 23 | } 24 | 25 | protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e) { 26 | if (e.Exception == null || e.ExceptionHandled) { 27 | Response.Redirect(table.ListActionPath); 28 | } 29 | } 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Details.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Details { 15 | 16 | protected global::System.Web.UI.WebControls.Content headContent; 17 | 18 | protected global::System.Web.UI.WebControls.Content Content1; 19 | 20 | protected global::System.Web.DynamicData.DynamicDataManager DynamicDataManager1; 21 | 22 | protected global::System.Web.UI.UpdatePanel UpdatePanel1; 23 | 24 | protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator DetailsViewValidator; 27 | 28 | protected global::System.Web.UI.WebControls.FormView FormView1; 29 | 30 | protected global::System.Web.UI.WebControls.EntityDataSource DetailsDataSource; 31 | 32 | protected global::System.Web.UI.WebControls.QueryExtender DetailsQueryExtender; 33 | 34 | protected global::System.Web.DynamicData.DynamicHyperLink ListHyperLink; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Edit.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web.Routing; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | using System.Web.UI.WebControls.Expressions; 9 | 10 | namespace Vidpub.Admin { 11 | public partial class Edit : System.Web.UI.Page { 12 | protected MetaTable table; 13 | 14 | protected void Page_Init(object sender, EventArgs e) { 15 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context); 16 | FormView1.SetMetaTable(table); 17 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name; 18 | } 19 | 20 | protected void Page_Load(object sender, EventArgs e) { 21 | Title = table.DisplayName; 22 | DetailsDataSource.Include = table.ForeignKeyColumnsNames; 23 | } 24 | 25 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e) { 26 | if (e.CommandName == DataControlCommands.CancelCommandName) { 27 | Response.Redirect(table.ListActionPath); 28 | } 29 | } 30 | 31 | protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { 32 | if (e.Exception == null || e.ExceptionHandled) { 33 | Response.Redirect(table.ListActionPath); 34 | } 35 | } 36 | 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Edit.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Edit { 15 | 16 | protected global::System.Web.UI.WebControls.Content headContent; 17 | 18 | protected global::System.Web.UI.WebControls.Content Content1; 19 | 20 | protected global::System.Web.DynamicData.DynamicDataManager DynamicDataManager1; 21 | 22 | protected global::System.Web.UI.UpdatePanel UpdatePanel1; 23 | 24 | protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator DetailsViewValidator; 27 | 28 | protected global::System.Web.UI.WebControls.FormView FormView1; 29 | 30 | protected global::System.Web.UI.WebControls.EntityDataSource DetailsDataSource; 31 | 32 | protected global::System.Web.UI.WebControls.QueryExtender DetailsQueryExtender; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Insert.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Web.DynamicData; 5 | using System.Web.Routing; 6 | using System.Web.UI; 7 | using System.Web.UI.WebControls; 8 | using System.Web.UI.WebControls.Expressions; 9 | 10 | namespace Vidpub.Admin { 11 | public partial class Insert : System.Web.UI.Page { 12 | protected MetaTable table; 13 | 14 | protected void Page_Init(object sender, EventArgs e) { 15 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context); 16 | FormView1.SetMetaTable(table, table.GetColumnValuesFromRoute(Context)); 17 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name; 18 | } 19 | 20 | protected void Page_Load(object sender, EventArgs e) { 21 | Title = table.DisplayName; 22 | } 23 | 24 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e) { 25 | if (e.CommandName == DataControlCommands.CancelCommandName) { 26 | Response.Redirect(table.ListActionPath); 27 | } 28 | } 29 | 30 | protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { 31 | if (e.Exception == null || e.ExceptionHandled) { 32 | Response.Redirect(table.ListActionPath); 33 | } 34 | } 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/Insert.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Insert { 15 | 16 | protected global::System.Web.UI.WebControls.Content headContent; 17 | 18 | protected global::System.Web.UI.WebControls.Content Content1; 19 | 20 | protected global::System.Web.DynamicData.DynamicDataManager DynamicDataManager1; 21 | 22 | protected global::System.Web.UI.UpdatePanel UpdatePanel1; 23 | 24 | protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator DetailsViewValidator; 27 | 28 | protected global::System.Web.UI.WebControls.FormView FormView1; 29 | 30 | protected global::System.Web.UI.WebControls.EntityDataSource DetailsDataSource; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/PageTemplates/List.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class List { 15 | 16 | protected global::System.Web.UI.WebControls.Content headContent; 17 | 18 | protected global::System.Web.UI.WebControls.Content Content1; 19 | 20 | protected global::System.Web.DynamicData.DynamicDataManager DynamicDataManager1; 21 | 22 | protected global::System.Web.UI.UpdatePanel UpdatePanel1; 23 | 24 | protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1; 25 | 26 | protected global::System.Web.DynamicData.DynamicValidator GridViewValidator; 27 | 28 | protected global::System.Web.DynamicData.QueryableFilterRepeater FilterRepeater; 29 | 30 | protected global::System.Web.DynamicData.DynamicFilter DynamicFilter; 31 | 32 | protected global::System.Web.UI.WebControls.GridView GridView1; 33 | 34 | protected global::System.Web.UI.WebControls.EntityDataSource GridDataSource; 35 | 36 | protected global::System.Web.UI.WebControls.QueryExtender GridQueryExtender; 37 | 38 | protected global::System.Web.DynamicData.DynamicHyperLink InsertHyperLink; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/DynamicData/web.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="Vidpub.Admin.Global" %> 2 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Vidpub.Admin")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Vidpub.Admin")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("0cc9bfef-4714-45ab-8e70-2ba860ef11d9")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Site.master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" CodeBehind="Site.master.cs" Inherits="Vidpub.Admin.Site" %> 2 | 3 | 4 | 5 | 6 | 7 | Dynamic Data Site 8 | 9 | 10 | 11 | 12 | 13 |

Dynamic Data Site

14 |
15 | Back to home pageBack to home page 16 |
17 | 18 |
19 |
20 | <%-- TODO: Enable partial rendering by setting the EnablePartialRendering attribute to "true" to provide a smoother browsing experience. 21 | Leaving partial rendering disabled will provide a better debugging experience while the application is in development. --%> 22 | 23 | 24 | 25 | 26 |
27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Site.master.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using System.Web.DynamicData; 3 | using System.Web.UI.WebControls; 4 | 5 | namespace Vidpub.Admin { 6 | public partial class Site : System.Web.UI.MasterPage { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Site.master.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30311.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Vidpub.Admin { 12 | 13 | 14 | public partial class Site { 15 | 16 | protected global::System.Web.UI.WebControls.ContentPlaceHolder head; 17 | 18 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 19 | 20 | protected global::System.Web.UI.ScriptManager ScriptManager1; 21 | 22 | protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Web.Debug.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/Web.Release.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /Source/Vidpub.Admin/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Source/Vidpub.UAT/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Quixote; 6 | 7 | namespace Vidpub.UAT { 8 | class Program { 9 | 10 | //TODO: Add a whole lot more tests! Like Registration, anon browsing of home and about,etc 11 | static void Main(string[] args) { 12 | 13 | Runner.SiteRoot = "http://localhost:1701"; 14 | 15 | TheFollowing.Describes("The Home Page"); 16 | 17 | It.Should("Have VidPub in the Title", () => { 18 | return Runner.Get("/").Title.ShouldContain("VidPub"); 19 | }); 20 | 21 | It.Should("Log me in with correct credentials", () => { 22 | var post= Runner.Post("/account/logon", new { login = "rob@tekpub.com", password = "password" }); 23 | Console.WriteLine(post.Html); 24 | return post.Title.ShouldContain("Welcome"); 25 | }); 26 | 27 | Console.Read(); 28 | 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Source/Vidpub.UAT/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Vidpub.UAT")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Vidpub.UAT")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("7648d8cc-d2cc-4b12-9aa4-315bb6b66ad7")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Source/Vidpub.UAT/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/packages/Elmah.Contrib.Mvc.1.0/Elmah.Contrib.Mvc.1.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Elmah.Contrib.Mvc.1.0/Elmah.Contrib.Mvc.1.0.nupkg -------------------------------------------------------------------------------- /Source/packages/Elmah.Contrib.Mvc.1.0/lib/net40/Elmah.Contrib.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Elmah.Contrib.Mvc.1.0/lib/net40/Elmah.Contrib.Mvc.dll -------------------------------------------------------------------------------- /Source/packages/Modernizr.1.7/Modernizr.1.7.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Modernizr.1.7/Modernizr.1.7.nupkg -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/Moq.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/Moq.chm -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/NET35/Moq.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/NET35/Moq.dll -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/NET35/Moq.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/NET35/Moq.pdb -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/NET40/Moq.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/NET40/Moq.dll -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/NET40/Moq.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/NET40/Moq.pdb -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll -------------------------------------------------------------------------------- /Source/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb -------------------------------------------------------------------------------- /Source/packages/Mvc3CodeTemplatesCSharp.3.0.11214.0/Mvc3CodeTemplatesCSharp.3.0.11214.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Mvc3CodeTemplatesCSharp.3.0.11214.0/Mvc3CodeTemplatesCSharp.3.0.11214.0.nupkg -------------------------------------------------------------------------------- /Source/packages/Mvc3CodeTemplatesCSharp.3.0.11214.0/content/CodeTemplates/AddView/CSHTML/Empty.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" HostSpecific="True" #> 2 | <#@ output extension=".cshtml" #> 3 | <# 4 | MvcTextTemplateHost mvcHost = (MvcTextTemplateHost)(Host); 5 | if(!String.IsNullOrEmpty(mvcHost.ViewDataTypeName)) { 6 | #> 7 | @model <#= mvcHost.ViewDataTypeName #> 8 | 9 | <# 10 | } 11 | 12 | // The following chained if-statement outputs the file header code and markup for a partial view, a content page, or a regular view. 13 | if(mvcHost.IsPartialView) { 14 | #> 15 | <# 16 | } else if(mvcHost.IsContentPage) { 17 | #> 18 | @{ 19 | ViewBag.Title = "<#= mvcHost.ViewName#>"; 20 | <# 21 | if (!String.IsNullOrEmpty(mvcHost.MasterPageFile)) { 22 | #> 23 | Layout = "<#= mvcHost.MasterPageFile#>"; 24 | <# 25 | } 26 | #> 27 | } 28 | 29 |

<#= mvcHost.ViewName#>

30 | 31 | <# 32 | } else { 33 | #> 34 | @{ 35 | Layout = null; 36 | } 37 | 38 | 39 | 40 | 41 | 42 | <#= mvcHost.ViewName #> 43 | 44 | 45 | <# 46 | PushIndent(" "); 47 | } 48 | #> 49 | <# 50 | if(!mvcHost.IsPartialView && !mvcHost.IsContentPage) { 51 | #> 52 |
53 | 54 |
55 | <# 56 | } 57 | #> 58 | <# 59 | if(!mvcHost.IsPartialView && !mvcHost.IsContentPage) { 60 | ClearIndent(); 61 | #> 62 | 63 | 64 | <# 65 | } 66 | #> 67 | -------------------------------------------------------------------------------- /Source/packages/Mvc3CodeTemplatesCSharp.3.0.11214.0/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | $codeTemplatesFolder = $project.ProjectItems.Item("CodeTemplates"); 4 | 5 | # ASP.NET MVC uses a custom Text Template Host to scaffold views and controllers so clear the built in TextTemplatingFileGenerator from the Custom Tool property. 6 | foreach($ttFile in $codeTemplatesFolder.ProjectItems.Item("AddController").ProjectItems){ 7 | $ttFile.Properties.Item("CustomTool").Value = ""; 8 | } 9 | 10 | foreach($ttLanguageFolder in $codeTemplatesFolder.ProjectItems.Item("AddView").ProjectItems){ 11 | foreach($ttFile in $ttLanguageFolder.ProjectItems){ 12 | $ttFile.Properties.Item("CustomTool").Value = ""; 13 | } 14 | } -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/NLog.2.0.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/NLog.2.0.0.0.nupkg -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/NET35/NLog.Extended.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/NET35/NLog.Extended.dll -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/NET35/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/NET35/NLog.dll -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/NET40/NLog.Extended.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/NET40/NLog.Extended.dll -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/NET40/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/NET40/NLog.dll -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/SL3/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/SL3/NLog.dll -------------------------------------------------------------------------------- /Source/packages/NLog.2.0.0.0/lib/SL4/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NLog.2.0.0.0/lib/SL4/NLog.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/Logo.ico -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/NUnit.2.5.10.11092.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/NUnit.2.5.10.11092.nupkg -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/lib/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/lib/nunit.framework.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/lib/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/lib/nunit.mocks.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/lib/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/lib/pnunit.framework.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/license.txt -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/Failure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/Failure.png -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/Ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/Ignored.png -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/Inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/Inconclusive.png -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/Skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/Skipped.png -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/Success.png -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/fit.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/log4net.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit-gui-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit-gui-runner.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.core.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.fixtures.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.uiexception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.uiexception.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.uikit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.uikit.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/lib/nunit.util.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit-agent-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit-agent-x86.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit-agent.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit-console-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit-console-x86.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit-console.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit-x86.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/nunit.framework.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/pnunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/pnunit-agent.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/pnunit-launcher.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/pnunit-launcher.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/pnunit.framework.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/pnunit.tests.dll -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/runFile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/NUnit.2.5.10.11092/tools/runFile.exe -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent agent.conf 2 | pnunit-launcher test.conf -------------------------------------------------------------------------------- /Source/packages/NUnit.2.5.10.11092/tools/test.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Testing 6 | 7 | 8 | Testing 9 | pnunit.tests.dll 10 | TestLibraries.Testing.EqualTo19 11 | localhost:8080 12 | 13 | ..\server 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb -------------------------------------------------------------------------------- /Source/packages/Ninject.MVC3.2.2.2.0/Ninject.MVC3.2.2.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.MVC3.2.2.2.0/Ninject.MVC3.2.2.2.0.nupkg -------------------------------------------------------------------------------- /Source/packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.dll -------------------------------------------------------------------------------- /Source/packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/Ninject.MVC3.2.2.2.0/lib/net40-Full/Ninject.Web.Mvc.pdb -------------------------------------------------------------------------------- /Source/packages/WebActivator.1.4.1/WebActivator.1.4.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/WebActivator.1.4.1/WebActivator.1.4.1.nupkg -------------------------------------------------------------------------------- /Source/packages/WebActivator.1.4.1/lib/net40/WebActivator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/WebActivator.1.4.1/lib/net40/WebActivator.dll -------------------------------------------------------------------------------- /Source/packages/elmah.1.2/elmah.1.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/elmah.1.2/elmah.1.2.nupkg -------------------------------------------------------------------------------- /Source/packages/elmah.1.2/lib/Elmah.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robconery/mvc3/35181e89d02aebef40709926a388050981839b93/Source/packages/elmah.1.2/lib/Elmah.dll -------------------------------------------------------------------------------- /Source/packages/repositories.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | --------------------------------------------------------------------------------