1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-23 02:05:27 +02:00
Sonarr/NzbDrone.Web/_backboneApp/CassetteConfiguration.cs

48 lines
1.6 KiB
C#
Raw Normal View History

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";
public const string NZBDRONE = "NZBDRONE";
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-01-23 02:58:08 +03:00
bundles.AddPerIndividualFile<ScriptBundle>(APP_PATH);
bundles.Add<StylesheetBundle>(BASE_STYLE, new[]{
APP_PATH + "\\Content\\Bootstrap\\bootstrap.less",
APP_PATH + "\\Content\\base.css",
APP_PATH + "\\Content\\menu.css",
APP_PATH + "\\AddSeries\\addSeries.css"
},
bundle => bundle.AddReference("/" + FONTS));
bundles.Add<ScriptBundle>("~/_backboneApp/JsLibraries/backbone.js");
2013-01-23 02:58:08 +03:00
bundles.Add<ScriptBundle>(NZBDRONE, new[]{
2013-02-09 13:04:18 +03:00
APP_PATH + "\\Series\\Index\\IndexLayout.js",
2013-01-23 02:58:08 +03:00
APP_PATH + "\\AddSeries\\AddSeriesLayout.js",
APP_PATH + "\\Shared\\NotificationView.js",
2013-01-23 02:58:08 +03:00
});
2013-01-23 02:58:08 +03:00
/* bundles.Add<ScriptBundle>(NZBDRONE, new[]{
},
bundle => bundle.AddReference("/" + BACKBONE));*/
}
}
}