2013-01-22 05:40:26 +00:00
|
|
|
using System.Linq;
|
|
|
|
using Cassette;
|
|
|
|
using Cassette.Scripts;
|
|
|
|
using Cassette.Stylesheets;
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Backbone.NzbDrone
|
|
|
|
{
|
|
|
|
public class CassetteBundleConfiguration : IConfiguration<BundleCollection>
|
|
|
|
{
|
|
|
|
public const string BASE_STYLE = "BASE_STYLE";
|
2013-02-14 02:28:56 +00:00
|
|
|
//public const string NZBDRONE = "NZBDRONE";
|
2013-01-22 05:40:26 +00:00
|
|
|
internal const string FONTS = "FONTS";
|
|
|
|
|
|
|
|
private const string APP_PATH = "_backboneApp";
|
|
|
|
|
|
|
|
public void Configure(BundleCollection bundles)
|
|
|
|
{
|
|
|
|
bundles.AddUrlWithAlias<StylesheetBundle>("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,300'", FONTS);
|
|
|
|
|
2013-02-14 02:28:56 +00:00
|
|
|
//bundles.AddPerIndividualFile<ScriptBundle>(APP_PATH);
|
2013-01-22 05:40:26 +00:00
|
|
|
|
|
|
|
bundles.Add<StylesheetBundle>(BASE_STYLE, new[]{
|
|
|
|
APP_PATH + "\\Content\\Bootstrap\\bootstrap.less",
|
|
|
|
APP_PATH + "\\Content\\base.css",
|
|
|
|
APP_PATH + "\\Content\\menu.css",
|
2013-02-13 06:32:17 +00:00
|
|
|
APP_PATH + "\\AddSeries\\addSeries.css",
|
2013-02-15 23:38:53 +00:00
|
|
|
APP_PATH + "\\Content\\jquery.dataTables.bootstrap.css",
|
|
|
|
APP_PATH + "\\Content\\tablesorter.bootstrap.css"
|
2013-01-22 05:40:26 +00:00
|
|
|
},
|
|
|
|
bundle => bundle.AddReference("/" + FONTS));
|
|
|
|
|
2013-02-14 02:28:56 +00:00
|
|
|
/* bundles.Add<ScriptBundle>("~/_backboneApp/JsLibraries/backbone.js");
|
2013-01-22 23:58:08 +00:00
|
|
|
|
|
|
|
bundles.Add<ScriptBundle>(NZBDRONE, new[]{
|
2013-02-14 02:28:56 +00:00
|
|
|
APP_PATH + "\\app.js",
|
|
|
|
APP_PATH + "\\routing.js",
|
2013-02-09 10:04:18 +00:00
|
|
|
APP_PATH + "\\Series\\Index\\IndexLayout.js",
|
2013-01-22 23:58:08 +00:00
|
|
|
APP_PATH + "\\AddSeries\\AddSeriesLayout.js",
|
2013-01-29 01:59:18 +00:00
|
|
|
APP_PATH + "\\Shared\\NotificationView.js",
|
2013-01-22 23:58:08 +00:00
|
|
|
|
2013-01-22 05:40:26 +00:00
|
|
|
|
2013-02-14 02:28:56 +00:00
|
|
|
});*/
|
2013-01-22 05:40:26 +00:00
|
|
|
|
2013-01-22 23:58:08 +00:00
|
|
|
/* bundles.Add<ScriptBundle>(NZBDRONE, new[]{
|
|
|
|
|
|
|
|
},
|
|
|
|
bundle => bundle.AddReference("/" + BACKBONE));*/
|
|
|
|
|
|
|
|
|
2013-01-22 05:40:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|