// Copyright (c) Umbraco.
// See LICENSE for more details.

using System.Collections.Generic;

namespace Umbraco.Cms.Core.Configuration.Models
{
    /// <summary>
    /// Typed configuration options for the plugins.
    /// </summary>
    [UmbracoOptions(Constants.Configuration.ConfigPlugins)]
    public class UmbracoPluginSettings
    {
        

        /// <summary>
        /// Gets or sets the allowed file extensions (including the period ".") that should be accessible from the browser.
        /// </summary>
        /// WB-TODO
        public ISet<string> BrowsableFileExtensions { get; set; } = new HashSet<string>(new[]
        {
            ".html", // markup
            ".css", // styles
            ".js", // scripts
            ".jpg", ".jpeg", ".gif", ".png", ".svg", // images
            ".eot", ".ttf", ".woff", // fonts
            ".xml", ".json", ".config", // configurations
            ".lic" // license
        });
    }
}

// Copyright (c) Umbraco.
// See LICENSE for more details.

using System.Collections.Generic;

namespace Umbraco.Cms.Core.Configuration.Models
{
    /// <summary>
    /// Typed configuration options for the plugins.
    /// </summary>
    [UmbracoOptions(Constants.Configuration.ConfigPlugins)]
    public class UmbracoPluginSettings
    {
        /// <summary>
        /// Gets or sets the allowed file extensions (including the period ".") that should be accessible from the browser.
        /// </summary>
        /// WB-TODO
        public ISet<string> BrowsableFileExtensions { get; set; } = new HashSet<string>(new[]
        {
            ".html", // markup
            ".css", // styles
            ".js", // scripts
            ".jpg", ".jpeg", ".gif", ".png", ".svg", // images
            ".eot", ".ttf", ".woff", // fonts
            ".xml", ".json", ".config", // configurations
            ".lic", // license
            ".map" // js map files
        });
    }
}

Allow .map files as default browsable file extensions from the App_Plugins static file handler.
Allow .map files as default browsable file extensions from the App_Plugins static file handler.
