using Cassette;
using Cassette.Scripts;
using Cassette.Stylesheets;
namespace NzbDrone.Web
{
///
/// Configures the Cassette asset bundles for the web application.
///
public class CassetteBundleConfiguration : IConfiguration
{
public const string BASE_STYLE = "BASE_STYLE";
public const string BASE_SCRIPT = "BASE_SCRIPT";
public const string BACKBONE = "BACKBONE";
public const string FONTS = "FONTS";
public const string VALIDATION_SCRIPTS = "VALIDATION_SCRIPTS";
public const string FILEBROWSER_SCRIPT = "FILEBROWSER_SCRIPT";
public const string FILEBROWSER_STYLE = "FILEBROWSER_STYLE";
public void Configure(BundleCollection bundles)
{
bundles.AddUrlWithAlias("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,300'", FONTS);
bundles.Add(BASE_STYLE, new[]{
"content2\\Bootstrap\\bootstrap.less",
"content2\\Bootstrap\\responsive.less",
//"content2\\bootstrap-metro.css",
"content2\\base.css",
"content2\\menu.css",
"content2\\bootstrap-overrides.css"},
bundle => bundle.AddReference("/" + FONTS));
bundles.Add(BASE_SCRIPT, new[]{
"scripts2\\jquery-1.8.2.js",
"scripts2\\jquery.livequery.js",
"scripts2\\bootstrap-mvc.js",
"scripts2\\bootstrap.js",
"scripts2\\metro\\jquery.metro.js"});
bundles.Add(BACKBONE, new[]{
"JsLibraries\\underscore.js",
"JsLibraries\\backbone.js",
"JsLibraries\\backbone.marionette.js",
"app.js",
"AddSeries\\Views\\addSeriesView.js"},
bundle => bundle.AddReference("/" + BASE_SCRIPT));
bundles.Add(FILEBROWSER_STYLE, new[]{
"content2\\stats.css",
"content2\\file-browser.css",
"content2\\FancyBox\\jquery.fancybox.css"},
bundle => bundle.AddReference("/" + BASE_STYLE));
bundles.Add(FILEBROWSER_SCRIPT, new[]{
"content2\\FancyBox\\jquery.fancybox.js"},
bundle => bundle.AddReference("/" + BASE_SCRIPT));
bundles.Add(VALIDATION_SCRIPTS, new[]{
"scripts2\\jquery.livequery.js",
"scripts2\\jquery.validate.js",
"scripts2\\jquery.validate.unobtrusive.js",
"scripts2\\bootstrap-mvc.js"},
bundle => bundle.AddReference("/" + BASE_SCRIPT));
}
}
}