Skip to content

Commit

Permalink
Started some of the fun work on the "home" page, based heavily on Twi…
Browse files Browse the repository at this point in the history
…tter Bootstrap's "general usage" page (which is liberally licenses, to our benefit). Still a lot of work to be done, and the unfinished parts are obviously hard to document, but it's a good start. I think we could also publish this up using GitHub Pages eventually.
  • Loading branch information
perlun committed Oct 27, 2013
1 parent 85d3916 commit b07deda
Show file tree
Hide file tree
Showing 12 changed files with 2,296 additions and 60 deletions.
9 changes: 8 additions & 1 deletion CefSharp.Example/CefSharp.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,18 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\assets\css\docs.css" />
<Content Include="Resources\assets\css\shCore.css" />
<Content Include="Resources\assets\css\shCoreDefault.css" />
<Content Include="Resources\assets\js\application.js" />
<Content Include="Resources\assets\js\jquery.js" />
<Content Include="Resources\assets\js\shBrushCSharp.js" />
<Content Include="Resources\assets\js\shCore.js" />
<Content Include="Resources\BindingTest.html" />
<Content Include="Resources\bootstrap\bootstrap-theme.min.css" />
<Content Include="Resources\bootstrap\bootstrap.min.css" />
<Content Include="Resources\bootstrap\bootstrap.min.js" />
<Content Include="Resources\Home.html" />
<Content Include="Resources\home.html" />
<Content Include="Resources\PopupTest.html" />
<Content Include="Resources\SchemeTest.html" />
<Content Include="Resources\TooltipTest.html" />
Expand Down
12 changes: 11 additions & 1 deletion CefSharp.Example/CefSharpSchemeHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ public CefSharpSchemeHandler()
{
resources = new Dictionary<string, string>
{
{ "/", Resources.Home },
{ "/home", Resources.home_html },

{ "/assets/css/shCore.css", Resources.assets_css_shCore_css },
{ "/assets/css/shCoreDefault.css", Resources.assets_css_shCoreDefault_css },
{ "/assets/css/docs.css", Resources.assets_css_docs_css },
{ "/assets/js/application.js", Resources.assets_js_application_js },
{ "/assets/js/jquery.js", Resources.assets_js_jquery_js },
{ "/assets/js/shBrushCSharp.js", Resources.assets_js_shBrushCSharp_js },
{ "/assets/js/shCore.js", Resources.assets_js_shCore_js },

{ "/bootstrap/bootstrap-theme.min.css", Resources.bootstrap_theme_min_css },
{ "/bootstrap/bootstrap.min.css", Resources.bootstrap_min_css },
{ "/bootstrap/bootstrap.min.js", Resources.bootstrap_min_js },
Expand All @@ -28,6 +37,7 @@ public CefSharpSchemeHandler()

public bool ProcessRequestAsync(IRequest request, SchemeHandlerResponse response, OnRequestCompletedHandler requestCompletedCallback)
{
// The 'host' portion is entirely ignored by this scheme handler.
var uri = new Uri(request.Url);
var fileName = uri.AbsolutePath;

Expand Down
225 changes: 206 additions & 19 deletions CefSharp.Example/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion CefSharp.Example/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Home" type="System.Resources.ResXFileRef, System.Windows.Forms">
<data name="home_html" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Home.html;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="BindingTest" type="System.Resources.ResXFileRef, System.Windows.Forms">
Expand All @@ -142,4 +142,25 @@
<data name="bootstrap_theme_min_css" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bootstrap\bootstrap-theme.min.css;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="assets_css_docs_css" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\assets\css\docs.css;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="assets_css_shCore_css" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\assets\css\shcore.css;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="assets_js_application_js" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\assets\js\application.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="assets_js_jquery_js" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\assets\js\jquery.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="assets_js_shBrushCSharp_js" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\assets\js\shbrushcsharp.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="assets_js_shCore_js" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\assets\js\shcore.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="assets_css_shCoreDefault_css" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\assets\css\shcoredefault.css;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
</root>
Loading

0 comments on commit b07deda

Please sign in to comment.