Skip to content

Commit

Permalink
initial commit to git!
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarckmann committed Jun 21, 2012
0 parents commit 2424293
Show file tree
Hide file tree
Showing 43 changed files with 810 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

*.suo
/CompositeUI/obj/Debug/CompositeUI.csproj.FileListAbsolute.txt
/CompositeWeb/obj/Debug/CompositeWeb.csproj.FileListAbsolute.txt
26 changes: 26 additions & 0 deletions CompositeUI.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CompositeUI", "CompositeUI\CompositeUI.csproj", "{13209ED6-AEE5-4558-AA40-FCF79812AF33}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CompositeWeb", "CompositeWeb\CompositeWeb.csproj", "{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{13209ED6-AEE5-4558-AA40-FCF79812AF33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13209ED6-AEE5-4558-AA40-FCF79812AF33}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13209ED6-AEE5-4558-AA40-FCF79812AF33}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13209ED6-AEE5-4558-AA40-FCF79812AF33}.Release|Any CPU.Build.0 = Release|Any CPU
{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
41 changes: 41 additions & 0 deletions CompositeUI/BookDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using CompositeWeb;
using System.IO;

namespace CompositeUI
{
public class BookDetails : ComponentBase, IOutputModifier, IRespondToInput
{
private string _contents;
public string Contents
{
get
{

return _contents;
}
}

public string Name
{
get { return "BookDetails"; }
}

public void Init(System.Web.HttpContextBase context)
{
string boek = context.Request["book"];
if (string.IsNullOrEmpty(boek))
{
_contents = "No book...";
}
else
{
_contents = File.ReadAllText(context.Server.MapPath(string.Format("/BookDetails/{0}.html", boek)));
}
}


}
}
12 changes: 12 additions & 0 deletions CompositeUI/BookDetails/123.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<img class="product_image_regular" title="Engeleneiland" alt="Engeleneiland" src="http://s.s-bol.com/imgbase0/imagebase/regular/FC/0/7/3/7/9200000002307370.jpg" itemprop="image">
<div class="product_details">
<div class="product_creator bottom_s">
Titel:
Engeleneiland
</div>

<div class="product_creator bottom_s">
Auteur:
Camilla Läckberg
</div>
</div>
12 changes: 12 additions & 0 deletions CompositeUI/BookDetails/125.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<img title="Schaduwspel" class="product_image_regular" alt="Schaduwspel" src="http://s.s-bol.com/imgbase0/imagebase/regular/FC/8/1/9/3/1001004011823918.jpg" itemprop="image"/>
<div class="product_details">
<div class="product_creator bottom_s">
Titel:
Schaduwspel
</div>

<div class="product_creator bottom_s">
Auteur:
Ellen Gerretzen
</div>
</div>
118 changes: 118 additions & 0 deletions CompositeUI/CompositeUI.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{13209ED6-AEE5-4558-AA40-FCF79812AF33}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CompositeUI</RootNamespace>
<AssemblyName>CompositeUI</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<UseIISExpress>false</UseIISExpress>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<Content Include="BookDetails\123.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="BookDetails\125.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Global.asax" />
<Content Include="QuickBook\1336.html" />
<Content Include="QuickBook\1337.html" />
<Content Include="QuickBook\1338.html" />
<Content Include="QuickBook\1339.html" />
<Content Include="Suggestions\Suggestions.html" />
<Content Include="Test.htm" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="BookDetails.cs" />
<Compile Include="QuickBook.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Suggestions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CompositeWeb\CompositeWeb.csproj">
<Project>{F80B8B17-916C-4B16-87AA-8359D5E1BEEE}</Project>
<Name>CompositeWeb</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>23881</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
27 changes: 27 additions & 0 deletions CompositeUI/CompositeUI.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<StartPageUrl>Test.htm</StartPageUrl>
<StartAction>NoStartPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
<ExternalProgram>
</ExternalProgram>
<StartExternalURL>
</StartExternalURL>
<StartCmdLineArguments>
</StartCmdLineArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
<EnableENC>False</EnableENC>
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
1 change: 1 addition & 0 deletions CompositeUI/Global.asax
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="CompositeUI.Global" Language="C#" %>
50 changes: 50 additions & 0 deletions CompositeUI/Global.asax.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace CompositeUI
{
public class Global : System.Web.HttpApplication
{

protected void Application_Start(object sender, EventArgs e)
{
CompositeWeb.CompositeUIController.RegisterComponent(new Suggestions());
CompositeWeb.CompositeUIController.RegisterComponent(new BookDetails());
CompositeWeb.CompositeUIController.RegisterComponent(new QuickBook());
}

protected void Session_Start(object sender, EventArgs e)
{

}

protected void Application_BeginRequest(object sender, EventArgs e)
{

}

protected void Application_AuthenticateRequest(object sender, EventArgs e)
{

}

protected void Application_Error(object sender, EventArgs e)
{

}

protected void Session_End(object sender, EventArgs e)
{

}

protected void Application_End(object sender, EventArgs e)
{

}
}
}
35 changes: 35 additions & 0 deletions CompositeUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CompositeUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CompositeUI")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6d9088c3-bc2d-4845-88f8-37899cfbc24a")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
44 changes: 44 additions & 0 deletions CompositeUI/QuickBook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CompositeWeb;
using System.IO;

namespace CompositeUI
{


public class QuickBook : ComponentBase, IOutputModifier, INeedInlineId, IRespondToInput
{
private string _contents;
private System.Web.HttpContextBase _context;
public string Contents
{
get
{

return _contents;
}
}

public string Name
{
get { return "QuickBook"; }
}

public string Id
{
set
{
_contents = File.ReadAllText(_context.Server.MapPath(string.Format("/QuickBook/{0}.html", value)));
}
}

public void Init(System.Web.HttpContextBase context)
{
_context = context;
}
}

}
5 changes: 5 additions & 0 deletions CompositeUI/QuickBook/1336.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="quickbook">
<img src="http://s.s-bol.com/imgbase0/imagebase/mini/FC/2/5/1/9/1001004010949152.jpg">
Bloedbruiloft
Ellen Gerretzen
</div>
Loading

0 comments on commit 2424293

Please sign in to comment.