diff --git a/BetterCms.sln b/BetterCms.sln index b3b53c07f..bc0036db6 100644 --- a/BetterCms.sln +++ b/BetterCms.sln @@ -91,6 +91,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BetterCms.Module.Newsletter EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BetterCms.Module.WebApi", "Modules\BetterCms.Module.WebApi\BetterCms.Module.WebApi.csproj", "{5FF9D100-CF25-4899-8D23-8EB9F0C0E102}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BetterCms.Module.Vimeo", "Modules\BetterCms.Module.Vimeo\BetterCms.Module.Vimeo.csproj", "{830378CB-B360-4AC9-B8BC-FB08734C5F70}" + ProjectSection(ProjectDependencies) = postProject + {F3E41793-E8ED-4BA8-A1AB-CBA1E47B0786} = {F3E41793-E8ED-4BA8-A1AB-CBA1E47B0786} + EndProjectSection +EndProject Global GlobalSection(TestCaseManagementSettings) = postSolution CategoryFile = DevBridge.Cms31.vsmdi @@ -247,6 +252,14 @@ Global {5FF9D100-CF25-4899-8D23-8EB9F0C0E102}.Release|Any CPU.Build.0 = Release|Any CPU {5FF9D100-CF25-4899-8D23-8EB9F0C0E102}.Staging|Any CPU.ActiveCfg = Staging|Any CPU {5FF9D100-CF25-4899-8D23-8EB9F0C0E102}.Staging|Any CPU.Build.0 = Staging|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Debug|Any CPU.Build.0 = Debug|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Dev|Any CPU.ActiveCfg = Dev|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Dev|Any CPU.Build.0 = Dev|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Release|Any CPU.ActiveCfg = Release|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Release|Any CPU.Build.0 = Release|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Staging|Any CPU.ActiveCfg = Staging|Any CPU + {830378CB-B360-4AC9-B8BC-FB08734C5F70}.Staging|Any CPU.Build.0 = Staging|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -267,6 +280,7 @@ Global {6E8E91D9-AEB9-432F-9647-68FA2DEF2CA9} = {35580EFA-13E7-4F08-B5FB-ABBFA899B94C} {5235602A-EE7C-45A3-8B41-0C8770303650} = {35580EFA-13E7-4F08-B5FB-ABBFA899B94C} {5FF9D100-CF25-4899-8D23-8EB9F0C0E102} = {35580EFA-13E7-4F08-B5FB-ABBFA899B94C} + {830378CB-B360-4AC9-B8BC-FB08734C5F70} = {35580EFA-13E7-4F08-B5FB-ABBFA899B94C} {5ABF44DC-EE5E-4EDE-B1FF-E5FE65BA7CC1} = {6721A380-251A-4D6F-BCCD-639A6842DFD9} {5D0111B2-677B-481C-8F05-C3B26065FEAB} = {6721A380-251A-4D6F-BCCD-639A6842DFD9} {65E5AB5A-A7E3-428D-A80D-F7D7DC0F9A54} = {01B2D036-F6B3-4796-B9C5-A2D3405987BF} diff --git a/Modules/BetterCms.Module.Vimeo/BetterCms.Module.Vimeo.csproj b/Modules/BetterCms.Module.Vimeo/BetterCms.Module.Vimeo.csproj new file mode 100644 index 000000000..ed9278de9 --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/BetterCms.Module.Vimeo.csproj @@ -0,0 +1,226 @@ + + + + + Debug + AnyCPU + + + 2.0 + {830378CB-B360-4AC9-B8BC-FB08734C5F70} + {E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + BetterCms.Module.Vimeo + BetterCms.Module.Vimeo + v4.0 + false + false + + + + + + + + + ..\ + true + + + + + 4.0 + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + AnyCPU + false + false + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + ..\..\packages\Autofac.3.0.0\lib\net40\Autofac.dll + + + ..\..\packages\Autofac.3.0.0\lib\net40\Autofac.Configuration.dll + + + False + ..\..\packages\Common.Logging.2.1.1\lib\net40\Common.Logging.dll + + + False + ..\..\packages\FluentMigrator.1.0.6.0\lib\40\FluentMigrator.dll + + + False + ..\..\packages\FluentNHibernate.1.3.0.733\lib\FluentNHibernate.dll + + + False + ..\..\packages\Iesi.Collections.3.2.0.4000\lib\Net35\Iesi.Collections.dll + + + + False + ..\..\packages\Mvc3Futures.3.0.20105.0\lib\Microsoft.Web.Mvc.dll + + + False + ..\..\packages\MvcContrib.Mvc3-ci.3.0.100.0\lib\MvcContrib.dll + + + False + ..\..\packages\NHibernate.3.3.3.4000\lib\Net35\NHibernate.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Properties\SharedAssemblyInfo.cs + + + True + True + Globalization.resx + + + + + + + + + + + + + PublicResXFileCodeGenerator + Globalization.Designer.cs + Designer + + + + + {DA2B225E-6AEE-4465-8B08-4D5B1C1CED49} + BetterCms.Configuration + + + {694ca5ca-a0e2-4578-a249-648498b058d7} + BetterCms.Core + + + {f3e41793-e8ed-4ba8-a1ab-cba1e47b0786} + BetterCms.Module.MediaManager + + + {66e7e4df-eeea-4b1e-8663-a1b430eb7375} + BetterCms.Module.Root + + + + + + + Designer + + + + + + + + + + + + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + true + bin\ + DEBUG;TRACE + full + AnyCPU + prompt + MinimumRecommendedRules.ruleset + false + + + bin\ + DEBUG + full + true + + + + + + + + + + + + + True + + + + + + + $(MSBuildBinPath)\msbuild.exe /p:Configuration=$(ConfigurationName) /p:SolutionDir="$(SolutionDir)\" /p:ProjectDir="$(ProjectDir)\" "$(ProjectDir)BuildConfiguration.xml" + + \ No newline at end of file diff --git a/Modules/BetterCms.Module.Vimeo/BuildConfiguration.xml b/Modules/BetterCms.Module.Vimeo/BuildConfiguration.xml new file mode 100644 index 000000000..3616f647a --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/BuildConfiguration.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.Designer.cs b/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.Designer.cs new file mode 100644 index 000000000..56dc0639e --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18047 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BetterCms.Module.Vimeo.Content.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Globalization { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Globalization() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BetterCms.Module.Vimeo.Content.Resources.Globalization", typeof(Globalization).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.resx b/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/Content/Resources/Globalization.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.media.vimeo.min.css b/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.media.vimeo.min.css new file mode 100644 index 000000000..e69de29bb diff --git a/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.video.css b/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.video.css new file mode 100644 index 000000000..1bb986d5a --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.video.css @@ -0,0 +1 @@ +/* Empty file. */ \ No newline at end of file diff --git a/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.video.min.css b/Modules/BetterCms.Module.Vimeo/Content/Styles/bcms.video.min.css new file mode 100644 index 000000000..e69de29bb diff --git a/Modules/BetterCms.Module.Vimeo/Controllers/VideoController.cs b/Modules/BetterCms.Module.Vimeo/Controllers/VideoController.cs new file mode 100644 index 000000000..0226854c9 --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/Controllers/VideoController.cs @@ -0,0 +1,27 @@ +using System.Web.Mvc; + +using BetterCms.Core.Security; +using BetterCms.Module.MediaManager.Vimeo; +using BetterCms.Module.Root; +using BetterCms.Module.Root.Mvc; + +using Microsoft.Web.Mvc; + +namespace BetterCms.Module.Vimeo.Controllers +{ + [BcmsAuthorize] + [ActionLinkArea(VimeoModuleDescriptor.VimeoServiceAreaName)] + public class VideoController : CmsControllerBase + { + [BcmsAuthorize(RootModuleConstants.UserRoles.EditContent, RootModuleConstants.UserRoles.DeleteContent)] + public ActionResult Index() + { +// var images = GetCommand().ExecuteCommand(new MediaManagerViewModel()); +// var success = images != null; +// var view = RenderView("Index", new MediaImageViewModel()); +// +// return ComboWireJson(success, view, images, JsonRequestBehavior.AllowGet); + return null; + } + } +} \ No newline at end of file diff --git a/Modules/BetterCms.Module.Vimeo/Models/Maps/VideoMap.cs b/Modules/BetterCms.Module.Vimeo/Models/Maps/VideoMap.cs new file mode 100644 index 000000000..117950000 --- /dev/null +++ b/Modules/BetterCms.Module.Vimeo/Models/Maps/VideoMap.cs @@ -0,0 +1,20 @@ +using System; + +using BetterCms.Core.Models; +using BetterCms.Module.MediaManager.Vimeo; +using BetterCms.Module.MediaManager.Vimeo.Models; + +namespace BetterCms.Module.Vimeo.Models.Maps +{ + [Serializable] + public class VideoMap : EntityMapBase