This commit is contained in:
2018-06-29 19:47:36 +00:00
commit be7f501333
3769 changed files with 1425961 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
using System.Web;
using System.Web.Optimization;
namespace ri
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui.min.js"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/custom").Include(
"~/Scripts/ayAutoCompleteScript.js",
"~/Scripts/ayConfirmPrompt.js",
"~/Scripts/ayFormHelper.js",
"~/Scripts/ayMRU.js",
"~/Scripts/aySearch.js",
"~/Scripts/ayNavigation.js",
"~/Scripts/ayKeepAlive.js"
));
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/jquery-ui.min.css"));
bundles.Add(new ScriptBundle("~/bundles/bootstrapjs").Include(
"~/Scripts/bootstrap.js"));
bundles.Add(new StyleBundle("~/Content/bootstrapcss").Include(
"~/Content/bootstrap.css"));//,"~/Content/bootstrap-theme.css"
bundles.Add(new ScriptBundle("~/bundles/fullcalendarjs").Include(
"~/Scripts/string.js",
"~/Scripts/moment.min.js",
"~/Scripts/fullcalendar.js"));
bundles.Add(new StyleBundle("~/Content/fullcalendarcss").Include(
"~/Content/fullcalendar.css"));
//This forces minification and compression of scripts and css
//normally it is enabled by setting debug=false in the web.config file
//but this will override that.
//THE PLAN IS TO LEAVE IT TO THE WEB.CONFIG FILE FOR TESTING AND THEN ULTIMATELY
//FORCE IT HERE OR JUST GO THROUGH AND CLEAN UP THE SCRIPTS
#if(DEBUG)
BundleTable.EnableOptimizations = true;
#endif
}
//eoc
}
}

View File

@@ -0,0 +1,13 @@
using System.Web;
using System.Web.Mvc;
namespace ri
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace ri
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}