using Nop.Core.Caching; namespace Nop.Services.Plugins; /// /// Represents default values related to plugins /// public static partial class NopPluginDefaults { /// /// Gets the path to file that contained (in previous versions) installed plugin system names /// public static string ObsoleteInstalledPluginsFilePath => "~/App_Data/InstalledPlugins.txt"; /// /// Gets the path to file that contains installed plugin system names /// public static string InstalledPluginsFilePath => "~/App_Data/installedPlugins.json"; /// /// Gets the path to file that contains installed plugin system names /// public static string PluginsInfoFilePath => "~/App_Data/plugins.json"; /// /// Gets the path to plugins folder /// public static string Path => "~/Plugins"; /// /// Gets the path to plugins folder /// public static string UploadedPath => "~/Plugins/Uploaded"; /// /// Gets the plugins folder name /// public static string PathName => "Plugins"; /// /// Gets the path to plugins refs folder /// public static string RefsPathName => "refs"; /// /// Gets the name of the plugin description file /// public static string DescriptionFileName => "plugin.json"; /// /// Gets the plugins logo filename /// public static string LogoFileName => "logo"; /// /// Gets supported extensions of logo file /// public static List SupportedLogoImageExtensions => ["jpg", "png", "gif"]; /// /// Gets the path to temp directory with uploads /// public static string UploadsTempPath => "~/App_Data/TempUploads"; /// /// Gets the name of the file containing information about the uploaded items /// public static string UploadedItemsFileName => "uploadedItems.json"; /// /// Gets the path to themes folder /// public static string ThemesPath => "~/Themes"; /// /// Gets the name of the theme description file /// public static string ThemeDescriptionFileName => "theme.json"; /// /// Gets a key for caching plugins for admin navigation /// /// /// {0} : customer identifier /// public static CacheKey AdminNavigationPluginsCacheKey => new("Nop.plugins.adminnavigation.{0}", AdminNavigationPluginsPrefix); /// /// Gets a key pattern to clear cache /// public static string AdminNavigationPluginsPrefix => "Nop.plugins.adminnavigation."; }