Permalink
Browse files

Initial Source Commit

  • Loading branch information...
0 parents commit 8049f8e60a52d25d2f8dd28e0c42f9367c0d15d2 @jgable committed Jul 16, 2011
Showing with 10,403 additions and 0 deletions.
  1. +46 −0 .gitignore
  2. +7 −0 README.md
  3. +22 −0 Resource/MS-PL.txt
  4. +17 −0 Resource/Notes.txt
  5. BIN Resource/Versions/JQueryMobileSite.1.0.vsix
  6. +9 −0 Resource/Welcome.txt
  7. +20 −0 Source/JQueryMobileSite.sln
  8. +38 −0 Source/JQueryMobileTemplate/404.html
  9. +22 −0 Source/JQueryMobileTemplate/Controllers/HomeController.cs
  10. +26 −0 Source/JQueryMobileTemplate/GenericErrorPage.html
  11. +1 −0 Source/JQueryMobileTemplate/Global.asax
  12. +65 −0 Source/JQueryMobileTemplate/Global.asax.cs
  13. +172 −0 Source/JQueryMobileTemplate/JQueryMobileTemplate.csproj
  14. +3 −0 Source/JQueryMobileTemplate/License.txt
  15. +11 −0 Source/JQueryMobileTemplate/Views/Home/About.cshtml
  16. +12 −0 Source/JQueryMobileTemplate/Views/Home/Index.cshtml
  17. +9 −0 Source/JQueryMobileTemplate/Views/Shared/Error.cshtml
  18. +114 −0 Source/JQueryMobileTemplate/Views/Shared/_Layout.cshtml
  19. +54 −0 Source/JQueryMobileTemplate/Views/Web.config
  20. +3 −0 Source/JQueryMobileTemplate/Views/_ViewStart.cshtml
  21. +30 −0 Source/JQueryMobileTemplate/Web.Debug.config
  22. +31 −0 Source/JQueryMobileTemplate/Web.Release.config
  23. +188 −0 Source/JQueryMobileTemplate/Web.config
  24. BIN Source/JQueryMobileTemplate/apple-touch-icon-114x114-precomposed.png
  25. BIN Source/JQueryMobileTemplate/apple-touch-icon-57x57-precomposed.png
  26. BIN Source/JQueryMobileTemplate/apple-touch-icon-72x72-precomposed.png
  27. BIN Source/JQueryMobileTemplate/apple-touch-icon-precomposed.png
  28. BIN Source/JQueryMobileTemplate/apple-touch-icon.png
  29. +25 −0 Source/JQueryMobileTemplate/crossdomain.xml
  30. +258 −0 Source/JQueryMobileTemplate/css/combine/1-style.css
  31. +258 −0 Source/JQueryMobileTemplate/css/style.css
  32. +1 −0 Source/JQueryMobileTemplate/css/style.min.css
  33. BIN Source/JQueryMobileTemplate/favicon.ico
  34. +43 −0 Source/JQueryMobileTemplate/humans.txt
  35. +13 −0 Source/JQueryMobileTemplate/js/combine/1-plugins.js
  36. +26 −0 Source/JQueryMobileTemplate/js/combine/2-script.js
  37. +13 −0 Source/JQueryMobileTemplate/js/libs/dd_belatedpng.js
  38. +18 −0 Source/JQueryMobileTemplate/js/libs/jquery-1.6.1.min.js
  39. +5,626 −0 Source/JQueryMobileTemplate/js/libs/jquery.mobile-1.0b1.js
  40. +165 −0 Source/JQueryMobileTemplate/js/libs/jquery.unobtrusive-ajax.js
  41. +5 −0 Source/JQueryMobileTemplate/js/libs/jquery.unobtrusive-ajax.min.js
  42. +1,292 −0 Source/JQueryMobileTemplate/js/libs/jquery.validate-vsdoc.js
  43. +31 −0 Source/JQueryMobileTemplate/js/libs/jquery.validate.min.js
  44. +5 −0 Source/JQueryMobileTemplate/js/libs/jquery.validate.unobtrusive.min.js
  45. +4 −0 Source/JQueryMobileTemplate/js/libs/modernizr-2.0.min.js
  46. +229 −0 Source/JQueryMobileTemplate/js/libs/openid-jquery.js
  47. +2 −0 Source/JQueryMobileTemplate/js/libs/respond.min.js
  48. +14 −0 Source/JQueryMobileTemplate/js/script.js
  49. +1 −0 Source/JQueryMobileTemplate/js/script.min.js
  50. +5 −0 Source/JQueryMobileTemplate/robots.txt
  51. +30 −0 Source/JQueryMobileTemplate/test/index.html
  52. +148 −0 Source/JQueryMobileTemplate/test/qunit/qunit.css
  53. +1,265 −0 Source/JQueryMobileTemplate/test/qunit/qunit.js
  54. +26 −0 Source/JQueryMobileTemplate/test/tests.js
@@ -0,0 +1,46 @@
+#OS junk files
+[Tt]humbs.db
+*.DS_Store
+
+#Visual Studio files
+*.[Oo]bj
+*.exe
+*.pdb
+*.user
+*.aps
+*.pch
+*.vspscc
+*.vssscc
+*_i.c
+*_p.c
+*.ncb
+*.suo
+*.tlb
+*.tlh
+*.bak
+*.[Cc]ache
+*.ilk
+*.log
+*.lib
+*.sbr
+*.sdf
+ipch/
+obj/
+[Bb]in
+[Dd]ebug*/
+[Rr]elease*/
+Ankh.NoLoad
+
+#Tooling
+_ReSharper*/
+*.resharper
+[Tt]est[Rr]esult*
+
+#Project files
+[Bb]uild/
+
+#Subversion files
+.svn
+
+# Office Temp Files
+~$*
@@ -0,0 +1,7 @@
+# .Net MVC 3 Razor jQuery Mobile Site Template
+
+## Create jQuery Mobile Sites with .Net MVC 3
+
+This **Visual Studio Extension** helps developers create jQuery Mobile .Net MVC 3 Websites quickly and easily through the File -> Add New Project dialog in Visual Studio 2010.
+
+This project is licensed under the Microsoft Public License (Ms-PL).
@@ -0,0 +1,22 @@
+Microsoft Public License (Ms-PL)
+
+This license governs use of the accompanying software. If you use the software, you
+accept this license. If you do not accept the license, do not use the software.
+
+1. Definitions
+The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
+same meaning here as under U.S. copyright law.
+A "contribution" is the original software, or any additions or changes to the software.
+A "contributor" is any person that distributes its contribution under this license.
+"Licensed patents" are a contributor's patent claims that read directly on its contribution.
+
+2. Grant of Rights
+(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
+(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
+
+3. Conditions and Limitations
+(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
+(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
+(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
+(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
+(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
@@ -0,0 +1,17 @@
+jQuery Mobile Site
+
+A simple site template for creating MVC 3 Razor Syntax jQuery Mobile Sites. References the latest builds of jQuery Mobile javascript and CSS.
+
+Icon and Preview are 172px iphone images in site root.
+
+Welcome.txt in Resources
+
+JQueryMobileTemplate.7b8504c1-488c-48bc-ba4a-c0853908ffe6
+
+jQuery Mobile Site
+
+Ms-PL License File in Resources
+
+https://github.com/jgable/MVC3-jQuery-Mobile-Site-Template/wiki/Welcome
+
+All Builds VS 2010
Binary file not shown.
@@ -0,0 +1,9 @@
+Welcome to your new jQuery Mobile Site
+
+Some Notes:
+- This project uses AjaxMin Build Tasks (http://ajaxmin.codeplex.com/) to combine and concatenate the JS and CSS files in the css/combined and js/combined directories. The css/style.css and js/script.css are automagically created on each build, so don't bother editing them.
+- Based on a setting in the Global.asax.cs file we reference the minified or just combined versions of CSS and JS files. If you want to override which version is referenced you can use the IsDebug property in the MvcApplication class to manipulate it.
+
+For more information about jQuery Mobile visit http://jquerymobile.com.
+
+This template was created with love, some unicorns and a touch of glitter by the Chicago based Software Developer / Amateur Philosopher Jacob Gable (jacob.gable[at]gmail.com).
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JQueryMobileTemplate", "JQueryMobileTemplate\JQueryMobileTemplate.csproj", "{EE0B0497-F4D6-432B-A3B5-D48A79BA0D2A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {EE0B0497-F4D6-432B-A3B5-D48A79BA0D2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EE0B0497-F4D6-432B-A3B5-D48A79BA0D2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EE0B0497-F4D6-432B-A3B5-D48A79BA0D2A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EE0B0497-F4D6-432B-A3B5-D48A79BA0D2A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,38 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Page Not Found :(</title>
+ <style>
+ body { text-align: center;}
+ h1 { font-size: 50px; text-align: center }
+ span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
+ body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
+ ::-moz-selection{ background:#FF5E99; color:#fff; }
+ ::selection { background:#FF5E99; color:#fff; }
+ article {display:block; text-align: left; width: 500px; margin: 0 auto; }
+
+ a { color: rgb(36, 109, 56); text-decoration:none; }
+ a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
+ </style>
+</head>
+<body>
+ <article>
+ <h1>Not found <span frown>:(</span></h1>
+ <div>
+ <p>Sorry, but the page you were trying to view does not exist.</p>
+ <p>It looks like this was the result of either:</p>
+ <ul>
+ <li>a mistyped address</li>
+ <li>an out-of-date link</li>
+ </ul>
+ </div>
+
+ <script>
+ var GOOG_FIXURL_LANG = (navigator.language || '').slice(0, 2),
+ GOOG_FIXURL_SITE = location.host;
+ </script>
+ <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
+ </article>
+</body>
+</html>
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+
+namespace jQueryMobileTemplate.Controllers
+{
+ public class HomeController : Controller
+ {
+ public ActionResult Index()
+ {
+ return View();
+ }
+
+ public ActionResult About()
+ {
+ return View();
+ }
+
+ }
+}
@@ -0,0 +1,26 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Error'd</title>
+
+ <style>
+ body { text-align: center;}
+ h1 { font-size: 50px; }
+ body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
+ ::-moz-selection{ background:#FF5E99; color:#fff; }
+ ::selection { background:#FF5E99; color:#fff; }
+ details { display:block; }
+ a { color: rgb(36, 109, 56); text-decoration:none; }
+ a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
+ span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
+ </style>
+</head>
+<body>
+ <details>
+ <summary><h1>Error'd, Bro</h1></summary>
+ <p>Show me your error'd face</p>
+ <p><span frown>:(</span></p>
+ </details>
+</body>
+</html>
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="jQueryMobileTemplate.MvcApplication" Language="C#" %>
@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+using System.Web.Routing;
+using System.Configuration;
+
+namespace jQueryMobileTemplate
+{
+ // Note: For instructions on enabling IIS6 or IIS7 classic mode,
+ // visit http://go.microsoft.com/?LinkId=9394801
+
+ public class MvcApplication : System.Web.HttpApplication
+ {
+ // Debug override option.
+ // TODO: pull from appsettings?
+ private static bool? _isDebug;
+
+ /// <summary>
+ /// Value indicating whether this app should be in debug mode.
+ /// NOTE: This is used in the layout to determine whether or not we reference our minified script and css.
+ /// </summary>
+ public static bool IsDebug
+ {
+ get
+ {
+ // Get a value indicating whether we are built in debug or not.
+ var buildIsDebug =
+#if DEBUG
+ true;
+#else
+ false;
+#endif
+ // If we have an override, return it, otherwise return the build condition.
+ return _isDebug.HasValue ? _isDebug.Value : buildIsDebug;
+ }
+ }
+
+ public static void RegisterGlobalFilters(GlobalFilterCollection filters)
+ {
+ filters.Add(new HandleErrorAttribute());
+ }
+
+ public static void RegisterRoutes(RouteCollection routes)
+ {
+ routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
+
+ routes.MapRoute(
+ "Default", // Route name
+ "{controller}/{action}/{id}", // URL with parameters
+ new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
+ );
+
+ }
+
+ protected void Application_Start()
+ {
+ AreaRegistration.RegisterAllAreas();
+
+ RegisterGlobalFilters(GlobalFilters.Filters);
+ RegisterRoutes(RouteTable.Routes);
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 8049f8e

Please sign in to comment.