本文整理汇总了C#中BundleCollection.Clear方法的典型用法代码示例。如果您正苦于以下问题:C# BundleCollection.Clear方法的具体用法?C# BundleCollection.Clear怎么用?C# BundleCollection.Clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BundleCollection
的用法示例。
在下文中一共展示了BundleCollection.Clear方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.ResetAll();
ScriptBundle loginBundle = new ScriptBundle("~/js/login");
loginBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
loginBundle.Include("~/Views/Documentation/Login.js");
bundles.Add(loginBundle);
ScriptBundle sandboxBundle = new ScriptBundle("~/js/sandbox");
sandboxBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
sandboxBundle.Include("~/Content/js/lib/jquery.slideto.min.js");
sandboxBundle.Include("~/Content/js/lib/jquery.wiggle.min.js");
sandboxBundle.Include("~/Content/js/lib/jquery.ba-bbq.min.js");
sandboxBundle.Include("~/Content/js/lib/handlebars-2.0.0.js");
sandboxBundle.Include("~/Content/js/lib/underscore-min.js");
sandboxBundle.Include("~/Content/js/lib/backbone-min.js");
sandboxBundle.Include("~/Content/js/swagger-ui.js");
sandboxBundle.Include("~/Content/js/lib/highlight.7.3.pack.js");
sandboxBundle.Include("~/Content/js/lib/marked.js");
sandboxBundle.Include("~/Content/js/lib/swagger-oauth.js");
sandboxBundle.Include("~/Views/Documentation/Sandbox.js");
bundles.Add(sandboxBundle);
bundles.Add(new StyleBundle("~/css/login").Include("~/Content/css/login.css"));
bundles.Add(new StyleBundle("~/css/sandbox").Include("~/Content/css/reset.css",
"~/content/css/typography.css",
"~/content/css/screen.css"));
}
示例2: BundleIt
void BundleIt(BundleCollection bundles)
{
bundles.Clear();
bundles.Add(new StyleBundle("~/resources/css").Include("~/content/site.css"));
bundles.Add(new ScriptBundle("~/resources/js").Include(
"~/Scripts/jquery-{version}.js",
"~/Scripts/modernizr-{version}.js"
));
bundles.Add(new StyleBundle("~/resources/backofficecss")
.Include(
"~/content/bootstrap/bootstrap-glyphicons.css",
"~/content/bootstrap/bootstrap.css",
"~/content/backoffice.css"));
bundles.Add(new ScriptBundle("~/resources/spajs").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/angular.js",
"~/Scripts/angular-sanitize.js",
"~/Scripts/angular-resource.js",
"~/Scripts/angular-route.js",
"~/Scripts/angular-animate.js",
"~/Scripts/i18n/angular-locale_de-de.js"
));
bundles.Add(new ScriptBundle("~/resources/backofficejs")
.IncludeDirectory("~/backofficeapp/js", "*.js", true)
.Include("~/backofficeapp/App.js"));
bundles.Add(new ScriptBundle("~/resources/jsval").Include(
"~/Scripts/jquery.validate.js",
"~/Scripts/jquery.validate.unobtrusive.js"
));
}
示例3: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.ResetAll();
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive-ajax.js",
"~/Scripts/jquery.validate.js",
"~/Scripts/jquery.validate.unobtrusive.js"));
}
示例4: RegisterBundles
internal static void RegisterBundles(BundleCollection bundleCollection)
{
bundleCollection.ResetAll();
bundleCollection.Clear();
bundleCollection.Add(GetScriptBundle("modernizr", "modernizr-{version}.js"));
bundleCollection.Add(GetScriptBundle("library", GetJsLibraryPaths()));
bundleCollection.Add(GetStyleBundle("site"
, "bootstrap/bootstrap.min.css", "bootstrap/bootstrap-theme.min.css", "site.css"));
}
示例5: Initialize
public void Initialize(BundleCollection bundleCollection)
{
using (bundleCollection.GetWriteLock())
{
bundles = bundleCollection;
bundles.Clear();
AddBundles();
ProcessBundles();
AddBundlesForUrlReferences();
bundles.BuildReferences();
}
}
示例6: RegisterBundles
/// <summary>
/// 捆绑css,script和其他资源
/// </summary>
/// <param name="bundles">当前捆绑对象集</param>
public static void RegisterBundles(BundleCollection bundles)
{
//设置当前捆绑对象集到字段
_Bundles = bundles;
//清除系统默认加入的资源
_Bundles.Clear();
//禁用CDN地址上的代码替换本地代码
_Bundles.UseCdn = false;
//捆绑外部css,script和其他资源
BundleCss();
BundleScript();
//捆绑自定义css,script和其他资源
BundleCustom();
}
示例7: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
/* This configuration assumes you want to extend, override or add to the default scripts and styles
* To start over from scratch instead, call bundles.Clear(); at the top of this method.
*/
// If you need to load scripts in a specific order, use scriptBundle.Include instead of scriptBundle.IncludeDirectory
var scriptBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_SCRIPTS_BUNDLE);
scriptBundle.IncludeDirectory("~/Themes/$MyTheme$/Scripts", "*.js");
var styleBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_STYLES_BUNDLE);
styleBundle.Include("~/Themes/$MyTheme$/Content/css/theme.css");
// Re-register bundles
bundles.Clear();
bundles.Add(scriptBundle);
bundles.Add(styleBundle);
}
示例8: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.IgnoreList.Clear();
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-1.8.2.js",
"~/Scripts/jquery.unobtrusive-ajax.min.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/docs.min.js"));
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new StyleBundle("~/Content/css")
.Include("~/Content/bootstrap/css/bootstrap.css")
.Include("~/Content/site.css")
.Include("~/Content/PagedList.css"));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
"~/Content/themes/base/jquery.ui.datepicker.css",
"~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"));
}
示例9: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.ResetAll();
ScriptBundle scripts = new ScriptBundle("~/bundle/scripts");
scripts.Include("~/Content/js/jquery-1.11.2.min.js");
scripts.Include("~/Content/js/app.js");
#if DEBUG
scripts.Include("~/Content/js/debug.js");
#endif
bundles.Add(scripts);
bundles.Add(new Bundle("~/bundle/views").IncludeDirectory("~/Views/Partials/", "*.html", true));
bundles.Add(new ScriptBundle("~/bundle/viewScripts").IncludeDirectory("~/Views/Partials/", "*.js", true));
bundles.Add(new StyleBundle("~/bundle/style").Include("~/Content/css/bootstrap.grid.css", "~/Content/css/base.css"));
}
示例10: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
}
示例11: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
"~/Content/scripts/jquery-1.10.1.js",
"~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
"~/Content/scripts/jquery.treeview.js",
"~/Content/scripts/Bootstrap/mediator.js",
"~/Content/scripts/Bootstrap/model.js",
"~/Content/scripts/Bootstrap/usefull.js",
//"~/Content/scripts/Bootstrap/pager.js",
"~/Content/scripts/core.js",
"~/Content/scripts/App/admin.js",
"~/Content/scripts/App/contact.js",
"~/Content/scripts/App/comment.js"
));
//bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
// "~/Content/scripts/jquery-1.10.1.js",
// "~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
// "~/Content/scripts/jquery.treeview.js",
// "~/Content/scripts/Bootstrap/mediator.js",
// "~/Content/scripts/Bootstrap/model.js",
// "~/Content/scripts/Bootstrap/usefull.js",
// //"~/Content/scripts/Bootstrap/pager.js",
// "~/Content/scripts/core.js",
// "~/Content/scripts/App/admin.js",
// "~/Content/scripts/App/contact.js",
// "~/Content/scripts/App/comment.js"
// ));
bundles.Add(new StyleBundle("~/bundles/css/min").Include(
//"~/Content/min/DIYFE_min.css"
"~/Content/scripts/Bootstrap/Twitter/css/bootstrap.css",
"~/Content/site.css",
"~/Content/comments.css"
// "~/Content/scripts/Bootstrap/Twitter/css/bootstrap-responsive.css",
////"~/Content/scripts/themes.css",));
// "~/Content/site.css",
// "~/Content/jquery.treeview.css",
// "~/Content/comments.css"
));
//bundles.Add(new ScriptBundle("~/Content/min").Include(
// "~/Content/Scripts/jquery-{version}.js",
// "~/Content/Scripts/jquery{addOn}.js",
// "~/Content/Scripts/jquery{addOn}.js"));
//bundles.Add(new StyleBundle("~/Content/min").Include(
// "~/Content/scripts/Bootstrap/Twitter/bootstrap-responsive.css",
// //"~/Content/scripts/themes.css",));
// "~/Content/site.css",
// "~/Content/jquery.treeview.css",
// "~/Content/comments.css"
// ));
//bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
// "~/Scripts/jquery-{version}.js"));
//bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
// "~/Scripts/jquery-ui-{version}.js"));
//bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
// "~/Scripts/jquery.unobtrusive*",
// "~/Scripts/jquery.validate*"));
// 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 StyleBundle("~/Content/css").Include("~/Content/site.css"));
//bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
// "~/Content/themes/base/jquery.ui.core.css",
// "~/Content/themes/base/jquery.ui.resizable.css",
// "~/Content/themes/base/jquery.ui.selectable.css",
// "~/Content/themes/base/jquery.ui.accordion.css",
// "~/Content/themes/base/jquery.ui.autocomplete.css",
// "~/Content/themes/base/jquery.ui.button.css",
// "~/Content/themes/base/jquery.ui.dialog.css",
// "~/Content/themes/base/jquery.ui.slider.css",
// "~/Content/themes/base/jquery.ui.tabs.css",
// "~/Content/themes/base/jquery.ui.datepicker.css",
// "~/Content/themes/base/jquery.ui.progressbar.css",
// "~/Content/themes/base/jquery.ui.theme.css"));
BundleTable.EnableOptimizations = true;
}
示例12: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.ResetAll();
bundles.Add(new ScriptBundle("~/Scripts/lib/jquery").Include(
"~/Scripts/lib/jquery-{version}.js",
"~/Scripts/lib/jquery.unobtrusive-ajax.js"));
bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap").Include(
"~/Scripts/lib/bootstrap.js",
"~/Scripts/lib/plugins/datepicker/js/boostrap-datepicker.js"));
bundles.Add(new ScriptBundle("~/Scripts/lib/globalize/js")
.Include(
"~/Scripts/lib/globalize/globalize.js",
"~/Scripts/lib/globalize/globalize.culture.es-AR.js",
"~/Scripts/lib/globalize/globalize.init.js"));
bundles.Add(new ScriptBundle("~/Scripts/lib/jqueryval").Include(
"~/Scripts/lib/jquery.validate.js",
"~/Scripts/lib/jquery.validate.unobtrusive.js",
"~/Scripts/lib/jquery.validate.unobtrusive.extensions.js",
"~/Scripts/lib/jquery.validate.unobtrusive.custom.js",
"~/Scripts/lib/jquery.validate.fixes.js"));
bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap/plugins").Include(
"~/Scripts/lib/plugins/metisMenu/jquery.metisMenu.js",
"~/Scripts/lib/plugins/morris/raphael-2.1.0.min.js",
"~/Scripts/lib/plugins/morris/morris.js",
"~/Scripts/lib/plugins/autoNumeric.js",
"~/Scripts/lib/plugins/spin.js",
"~/Scripts/lib/plugins/bootstrap-timepicker.js",
"~/Scripts/lib/plugins/bootstrap-datepicker.js",
"~/Scripts/lib/plugins/bootstrap-datepicker.es.js",
"~/Scripts/lib/plugins/bootstrap-bootbox.js",
"~/Scripts/lib/typeahead.bundle.js"));
bundles.Add(new ScriptBundle("~/Scripts/lib/comun").Include(
"~/Scripts/lib/javascript.object.extension.js",
"~/Scripts/lib/maxikiosco-util.js",
"~/Scripts/app/maxikiosco-spinner.js",
"~/Scripts/lib/plugins/select2-3.4.5/select2.min.js",
"~/Scripts/lib/plugins/select2-3.4.5/select2_locale_es.js",
"~/Scripts/lib/plugins/bootstrap-multiselect/js/prettify.js",
"~/Scripts/lib/plugins/bootstrap-multiselect/js/bootstrap-multiselect.js",
"~/Scripts/lib/plugins/shortcut.js",
"~/Scripts/lib/jquery.hotkeys.js",
"~/Scripts/lib/jquery.confirm.js",
"~/Scripts/lib/jsrender.js",
"~/Scripts/lib/jquery.cursortable.js",
"~/Scripts/app/bootstrapAlerts.js"));
bundles.Add(new ScriptBundle("~/Scripts/app/admin").Include(
"~/Scripts/app/sb-admin.js",
"~/Scripts/app/maxikiosco.unobtrusive.js",
"~/Scripts/app/dataservices/*.js",
"~/Scripts/app/maxikiosco-reportar-error.js",
"~/Scripts/app/maxikiosco-util.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("~/Scripts/lib/modernizr").Include(
"~/Scripts/lib/modernizr-*"));
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
"~/Content/spin.css",
"~/Content/maxikiosco-form.css",
"~/Content/maxikiosco-table.css"));
bundles.Add(new StyleBundle("~/Content/bootstrap/css/styles")
.Include("~/Content/bootstrap/css/bootstrap.css",
"~/Content/bootstrap/css/bootstrap-theme.css",
"~/Content/bootstrap/css/select2.css",
"~/Content/bootstrap/css/select2-bootstrap.css",
"~/Content/bootstrap/css/boostrap-multiselect.css",
"~/Content/bootstrap/css/bootstrap-timepicker.css",
"~/Content/bootstrap/css/bootstrap-datepicker.css",
"~/Content/bootstrap/css/typeaheadjs.css"));
bundles.Add(new StyleBundle("~/Content/admin/css/styles")
.Include("~/Content/admin/css/font-awesome.css",
"~/Content/admin/css/morris-0.4.3.min.css",
"~/Content/admin/css/timeline.css",
"~/Content/admin/css/sb-admin.css"));
}
示例13: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.js",
"~/Scripts/galleria-{version}.js",
"~/Scripts/jRate.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
bundles.Add(new ScriptBundle("~/bundles/jqueryvalidate").Include(
"~/Scripts/jquery.validate.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 StyleBundle("~/Content/css").Include(
"~/Content/site.css"
, "~/Content/DataTables-1.9.4/media/css/jquery.dataTables.css"
, "~/Content/bootstrap.css"
, "~/Content/bootstrap-datepicker.css"
, "~/Content/bootstrap-responsive.css"
, "~/Content/bootstrap-theme.css"
, "~/Content/galleria.classic.css"
));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.resizable.css",
"~/Content/themes/base/jquery.ui.selectable.css",
"~/Content/themes/base/jquery.ui.accordion.css",
"~/Content/themes/base/jquery.ui.autocomplete.css",
"~/Content/themes/base/jquery.ui.button.css",
"~/Content/themes/base/jquery.ui.dialog.css",
"~/Content/themes/base/jquery.ui.slider.css",
"~/Content/themes/base/jquery.ui.tabs.css",
"~/Content/themes/base/jquery.ui.datepicker.css",
"~/Content/themes/base/jquery.ui.progressbar.css",
"~/Content/themes/base/jquery.ui.theme.css"));
//// wijmo themes
//bundles.Add(new StyleBundle("~/Content/themes/wijmo/css").Include(
// "~/Content/themes/aristo/jquery-wijmo.css",
// "~/Content/themes/jquery.wijmo-complete.2.4.1.css"));
//// wijmo javascripts
//bundles.Add(new ScriptBundle("~/bundles/wijmo").Include(
// "~/Scripts/jquery.wijmo-open.all.3.20133.29.min.js",
// "~/Scripts/jquery.wijmo-complete.all.2.4.1.min.js"));
// knockoutjs
bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
"~/Scripts/knockout-{version}.js"));
// dataTables.
bundles.Add(new ScriptBundle("~/bundles/dataTables").Include(
"~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js",
"~/Scripts/DataTables-1.9.4/extras/ColReorder/media/js/ColReorder.min.js",
"~/Scripts/DataTables-1.9.4/extras/ColVis/media/js/ColVis.min.js",
//"~/Scripts/DataTables-1.9.4/ZeroClipboard.js",
//"~/Scripts/DataTables-1.9.4/TableTools.min.js",
"~/Scripts/jquery.dataTables.editable.js",
"~/Scripts/jquery.jeditable.js"
));
// bootstrap + bootbox
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/bootstrap-datepicker.js",
"~/Scripts/bootbox.js"
));
#if ANGULARJS
bundles.Add(new ScriptBundle("~/bundles/angular").Include(
"~/Scripts/angular.js",
"~/Scripts/angular-ng-grid.js",
"~/Scripts/angular-resource.js",
"~/Scripts/angular-route.js"));
bundles.Add(new StyleBundle("~/Content/angular").Include(
"~/Content/ng-grid.css"));
#endif
}
示例14: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.IgnoreList.Clear();
string cultureName = WebSiteConfig.DefaultSetting.Language.Culture.ToLower();
var preLibraryScriptBundle = new ScriptBundle("~/bundles/pre-libraryScript").Include(
"~/Scripts/library/jquery/jquery-1.7.2.min.js",
"~/Scripts/library/amplify/amplify.min.js",
"~/Scripts/library/moment/moment.min.js",
"~/Scripts/library/knockout/knockout-3.0.0.js",
"~/Scripts/chesapeakebay/cpkb.js"
);
if (cultureName != "en-us")
{
preLibraryScriptBundle.Include(string.Format("~/Scripts/library/moment/lang/{0}.js", cultureName));
}
bundles.Add(preLibraryScriptBundle);
var postLibraryScriptBundle = new ScriptBundle("~/bundles/post-libraryScript").Include(
"~/Scripts/library/json/json2.min.js",
"~/Scripts/library/jquery/simplePagination/jquery.simplePagination.js",
"~/Scripts/library/jquery/scrollUp/jquery.scrollUp.min.js",
"~/Scripts/library/noty/jquery.noty.js",
"~/Scripts/library/noty/layouts/top.js",
"~/Scripts/library/noty/layouts/center.js",
"~/Scripts/library/noty/layouts/bottom.js",
"~/Scripts/library/noty/themes/default.js",
"~/Scripts/library/bootstrap/bootstrap-v2.3.2.min.js",
"~/Scripts/library/knockout/knockout.mapping.js",
"~/Scripts/library/knockout/knockout.validation.min.js",
"~/Scripts/library/knockout/ko.editables.js",
//chesapeakebay
"~/Scripts/chesapeakebay/extend.js",
"~/Scripts/chesapeakebay/utility.js",
//lang
string.Format("~/Scripts/chesapeakebay/lang/{0}.js", cultureName),
//model
"~/Scripts/chesapeakebay/model/model.js",
"~/Scripts/chesapeakebay/model/model.user.js",
"~/Scripts/chesapeakebay/model/model.content.js",
//site
"~/Scripts/chesapeakebay/site/site.js",
"~/Scripts/chesapeakebay/site/site.user.js",
"~/Scripts/chesapeakebay/site/site.layout.js",
"~/Scripts/chesapeakebay/site/site.content.js"
);
postLibraryScriptBundle.Include("~/Scripts/library/kindeditor/kindeditor-min.js");
string kindEditorLangFileName;
switch (cultureName)
{
case "en-us" :
kindEditorLangFileName = "en"; break;
case "zh-cn" :
kindEditorLangFileName = "zh-CN"; break;
default:
kindEditorLangFileName = "en"; break;
}
postLibraryScriptBundle.Include(string.Format("~/Scripts/library/kindeditor/lang/{0}.js", kindEditorLangFileName));
bundles.Add(postLibraryScriptBundle);
bundles.Add(new StyleBundle("~/Content/siteCss")
.Include("~/Content/bootstrap/css/bootstrap-v2.3.2.css")
.Include("~/Content/library/simplePagination/simplePagination.css")
.Include("~/Content/library/scrollUp/css/labs.css")
.Include("~/Content/library/scrollUp/css/themes/image.css")
.Include("~/Content/site.css")
.Include("~/Content/chesapeakebay/cpkb.css"));
}
示例15: RegisterBundles
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.ResetAll();
bundles.Add(new ScriptBundle("~/bundles/angular").Include(
"~/Scripts/jquery-1.10.2.js",
"~/Scripts/angular.js",
"~/Scripts/angular-route.js",
"~/Scripts/angular-animate.js",
"~/Scripts/angular-cache.js"));
bundles.Add(new ScriptBundle("~/bundles/lib").Include(
"~/Scripts/d3.js",
"~/Scripts/lodash.js",
"~/Scripts/canvg/rgbcolor.js",
"~/Scripts/canvg/StackBlur.js",
"~/Scripts/canvg/canvg.js",
"~/Scripts/html2canvas.js",
"~/Scripts/jspdf.js",
"~/kendo/js/jszip.js",
"~/Scripts/cdnlibs/leaflet.js",
"~/Scripts/cdnlibs/queue.v1.js",
"~/Scripts/cdnlibs/d3-tip.js",
"~/Scripts/ui.js",
"~/app/app.js",
"~/app/directive/app_localization.js"));
bundles.Add(new ScriptBundle("~/bundles/app").Include(
/* Directives */
"~/app/directive/directive.js",
"~/app/directive/barChart.js",
"~/app/directive/donutChart.js",
"~/app/directive/infoChart.js",
"~/app/directive/lineChart.js",
"~/app/directive/schoolMap.js",
"~/app/directive/countyMap.js",
/* Factories */
"~/app/factories/campus/campusGeneral.js",
"~/app/factories/campus/campusStudent.js",
"~/app/factories/campus/campusStaff.js",
"~/app/factories/campus/campusAdmissions.js",
"~/app/factories/campus/campusC4Long.js",
"~/app/factories/campus/campusLong.js",
"~/app/factories/campus/campusDropout.js",
"~/app/factories/campus/campusAPIB.js",
"~/app/factories/campus/campusCCReady.js",
"~/app/factories/campus/campusStaar.js",
"~/app/factories/district/districtGeneral.js",
"~/app/factories/district/districtStudent.js",
"~/app/factories/district/districtLong.js",
"~/app/factories/district/districtStaar.js",
"~/app/factories/district/districtStaff.js",
/* Services */
"~/app/services/campusData.js",
"~/app/services/districtData.js",
"~/app/services/district2015Data.js",
"~/app/services/allData.js",
"~/app/services/sqlData.js",
"~/app/services/aeisData.js",
"~/app/services/mapper.js",
"~/app/services/fieldMapper.js",
"~/app/services/campusReportData.js",
"~/app/services/reportData.js",
"~/app/services/gridView.js",
/* Controllers */
"~/app/controllers/campus2015Controller.js",
"~/app/controllers/district2015Controller.js",
"~/app/controllers/donorsController.js",
"~/app/controllers/scorecardController.js",
"~/app/controllers/teksController.js",
"~/app/controllers/actExpFinalController.js",
"~/app/controllers/explanation_aeisController.js",
"~/app/controllers/explanation_staarController.js",
"~/app/controllers/bulkController.js",
"~/app/controllers/literacy.js",
//"~/app/controllers/naepController.js",
"~/app/controllers/spreadsheetController.js",
"~/app/controllers/signinController.js",
"~/app/controllers/signupController.js",
"~/app/controllers/campusReportController.js",
"~/app/controllers/reportController.js",
/* Themes JS */
"~/kendo/js/kendo.all.min.js",
"~/Scripts/bootstrap.js"
));
bundles.Add(new StyleBundle("~/bundles/css")
.Include("~/Content/literacy.css")
.Include("~/Content/main.css"));
//BundleTable.EnableOptimizations = true;
}