mirror of https://github.com/EasyAbp/EShop.git
52 changed files with 224 additions and 175 deletions
@ -1,7 +1,7 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.UI.Navigation; |
using Volo.Abp.UI.Navigation; |
||||
|
|
||||
namespace EasyAbp.EShop.Web |
namespace EasyAbp.EShop.Web.Menus |
||||
{ |
{ |
||||
public class EShopMenuContributor : IMenuContributor |
public class EShopMenuContributor : IMenuContributor |
||||
{ |
{ |
||||
@ -0,0 +1,13 @@ |
|||||
|
namespace EasyAbp.EShop.Web.Menus |
||||
|
{ |
||||
|
public class EShopMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Web.Pages.EShopPage |
|
||||
*/ |
|
||||
public abstract class EShopPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<EShopResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,15 @@ |
|||||
|
namespace EasyAbp.EShop.Orders.Web.Menus |
||||
|
{ |
||||
|
public class OrdersMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix + ".Orders"; |
||||
|
|
||||
|
public const string Order = Prefix + ".Order"; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Orders.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Orders.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Orders.Web.Pages.EShop.Orders.OrdersPage |
|
||||
*/ |
|
||||
public abstract class OrdersPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<OrdersResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,17 @@ |
|||||
|
namespace EasyAbp.EShop.Payments.Web.Menus |
||||
|
{ |
||||
|
public class PaymentsMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix + ".Payments"; |
||||
|
|
||||
|
public const string Payment = Prefix + ".Payment"; |
||||
|
|
||||
|
public const string Refund = Prefix + ".Refund"; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Payments.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Payments.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Payments.Web.Pages.PaymentsPage |
|
||||
*/ |
|
||||
public abstract class PaymentsPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<PaymentsResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,7 +1,7 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.UI.Navigation; |
using Volo.Abp.UI.Navigation; |
||||
|
|
||||
namespace EasyAbp.EShop.Plugins.Web |
namespace EasyAbp.EShop.Plugins.Web.Menus |
||||
{ |
{ |
||||
public class PluginsMenuContributor : IMenuContributor |
public class PluginsMenuContributor : IMenuContributor |
||||
{ |
{ |
||||
@ -0,0 +1,13 @@ |
|||||
|
namespace EasyAbp.EShop.Plugins.Web.Menus |
||||
|
{ |
||||
|
public class PluginsMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix + ".Plugins"; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Plugins.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Plugins.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Plugins.Web.Pages.PluginsPage |
|
||||
*/ |
|
||||
public abstract class PluginsPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<PluginsResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,19 @@ |
|||||
|
namespace EasyAbp.EShop.Products.Web.Menus |
||||
|
{ |
||||
|
public class ProductsMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix + ".Products"; |
||||
|
|
||||
|
public const string ProductType = Prefix + ".ProductType"; |
||||
|
|
||||
|
public const string Category = Prefix + ".Category"; |
||||
|
|
||||
|
public const string Product = Prefix + ".Product"; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Products.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Products.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Products.Web.Pages.ProductsPage |
|
||||
*/ |
|
||||
public abstract class ProductsPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<ProductsResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,6 +1,6 @@ |
|||||
using Volo.Abp.Reflection; |
using Volo.Abp.Reflection; |
||||
|
|
||||
namespace EasyAbp.EShop.Stores.Authorization |
namespace EasyAbp.EShop.Stores.Permissions |
||||
{ |
{ |
||||
public class StoresPermissions |
public class StoresPermissions |
||||
{ |
{ |
||||
@ -0,0 +1,15 @@ |
|||||
|
namespace EasyAbp.EShop.Stores.Web.Menus |
||||
|
{ |
||||
|
public class StoresMenus |
||||
|
{ |
||||
|
public const string ModuleGroupPrefix = "EasyAbp.EShop"; |
||||
|
|
||||
|
public const string Prefix = ModuleGroupPrefix + ".Stores"; |
||||
|
|
||||
|
public const string Store = Prefix + ".Store"; |
||||
|
|
||||
|
//Add your menu items here...
|
||||
|
//public const string Home = Prefix + ".MyNewMenuItem";
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.Localization; |
|
||||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|
||||
using EasyAbp.EShop.Stores.Localization; |
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Stores.Web.Pages |
|
||||
{ |
|
||||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|
||||
* @inherits EasyAbp.EShop.Stores.Web.Pages.StoresPage |
|
||||
*/ |
|
||||
public abstract class StoresPage : AbpPage |
|
||||
{ |
|
||||
[RazorInject] |
|
||||
public IHtmlLocalizer<StoresResource> L { get; set; } |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue