Browse Source

Close #32: Improved menu item name

pull/57/head
gdlcf88 6 years ago
parent
commit
f3846e3abc
  1. 4
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs
  2. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml
  3. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json
  4. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json
  5. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json
  6. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json
  7. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json
  8. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json
  9. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json
  10. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json
  11. 4
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json
  12. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml
  13. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml
  14. 6
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs
  15. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml
  16. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml
  17. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml
  18. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml
  19. 8
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs
  20. 4
      modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs

4
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs

@ -24,7 +24,7 @@ namespace EasyAbp.EShop.Orders.Web
{
var l = context.GetLocalizer<OrdersResource>(); //Add main menu items.
var orderManagementMenuItem = new ApplicationMenuItem("OrderManagement", l["Menu:OrderManagement"]);
var orderManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopOrders", l["Menu:OrderManagement"]);
if (await context.IsGrantedAsync(OrdersPermissions.Orders.Manage))
{
@ -33,7 +33,7 @@ namespace EasyAbp.EShop.Orders.Web
var defaultStore = (await storeAppService.GetDefaultAsync())?.Id;
orderManagementMenuItem.AddItem(
new ApplicationMenuItem("Order", l["Menu:Order"], "/EShop/Orders/Orders/Order?storeId=" + defaultStore)
new ApplicationMenuItem("EasyAbpEShopOrdersOrder", l["Menu:Order"], "/EShop/Orders/Orders/Order?storeId=" + defaultStore)
);
}

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml

@ -7,7 +7,7 @@
@{
PageLayout.Content.Title = L["Order"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Order"].Value);
PageLayout.Content.MenuItemName = "Order";
PageLayout.Content.MenuItemName = "EasyAbpEShopOrdersOrder";
var cardTitle = @L["Order"].Value;

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json

@ -5,7 +5,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -21,7 +21,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json

@ -6,7 +6,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -22,7 +22,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json

@ -5,7 +5,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -21,7 +21,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json

@ -5,7 +5,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -21,7 +21,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json

@ -6,7 +6,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -22,7 +22,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json

@ -6,7 +6,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -22,7 +22,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json

@ -5,7 +5,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -21,7 +21,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json

@ -6,7 +6,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -22,7 +22,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

4
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json

@ -6,7 +6,7 @@
"Permission:Create": "Create",
"Permission:Update": "Update",
"Permission:Delete": "Delete",
"Menu:Payments": "MenuPayments",
"Menu:Payment": "MenuPayments",
"Payment": "Payment",
"PaymentStoreId": "PaymentStoreId",
"CreatePayment": "CreatePayment",
@ -22,7 +22,7 @@
"PaymentItemRefundAmount": "PaymentItemRefundAmount",
"SuccessfullyDeleted": "Successfully deleted",
"Permission:Refunds": "Refunds",
"Menu:Refunds": "MenuRefunds",
"Menu:Refund": "MenuRefunds",
"Refund": "Refund",
"RefundStoreId": "RefundStoreId",
"CreateRefund": "CreateRefund",

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml

@ -10,7 +10,7 @@
@{
PageLayout.Content.Title = L["Payment"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Payment"].Value);
PageLayout.Content.MenuItemName = "Payment";
PageLayout.Content.MenuItemName = "EasyAbpEShopPaymentsPayment";
var cardTitle = @L["Payment"].Value;

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml

@ -10,7 +10,7 @@
@{
PageLayout.Content.Title = L["Refund"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Refund"].Value);
PageLayout.Content.MenuItemName = "Refund";
PageLayout.Content.MenuItemName = "EasyAbpEShopPaymentsRefund";
var cardTitle = @L["Refund"].Value;

6
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs

@ -35,7 +35,7 @@ namespace EasyAbp.EShop.Payments.Web
{
var l = context.GetLocalizer<PaymentsResource>(); //Add main menu items.
var paymentManagementMenuItem = new ApplicationMenuItem("PaymentManagement", l["Menu:PaymentManagement"]);
var paymentManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopPayments", l["Menu:PaymentManagement"]);
var storeAppService = context.ServiceProvider.GetRequiredService<IStoreAppService>();
@ -44,13 +44,13 @@ namespace EasyAbp.EShop.Payments.Web
if (await context.IsGrantedAsync(PaymentsPermissions.Payments.Manage))
{
paymentManagementMenuItem.AddItem(
new ApplicationMenuItem("Payments", l["Menu:Payments"], "/EShop/Payments/Payments/Payment?storeId=" + defaultStore)
new ApplicationMenuItem("EasyAbpEShopPaymentsPayment", l["Menu:Payment"], "/EShop/Payments/Payments/Payment?storeId=" + defaultStore)
);
}
if (await context.IsGrantedAsync(PaymentsPermissions.Refunds.Manage))
{
paymentManagementMenuItem.AddItem(
new ApplicationMenuItem("Refunds", l["Menu:Refunds"], "/EShop/Payments/Refunds/Refund?storeId=" + defaultStore)
new ApplicationMenuItem("EasyAbpEShopPaymentsRefund", l["Menu:Refund"], "/EShop/Payments/Refunds/Refund?storeId=" + defaultStore)
);
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml

@ -7,7 +7,7 @@
@{
PageLayout.Content.Title = L["Category"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Category"].Value);
PageLayout.Content.MenuItemName = "Category";
PageLayout.Content.MenuItemName = "EasyAbpEShopProductsCategory";
}
@section scripts

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml

@ -7,7 +7,7 @@
@{
PageLayout.Content.Title = L["ProductType"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:ProductType"].Value);
PageLayout.Content.MenuItemName = "ProductType";
PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProductType";
}
@section scripts

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml

@ -7,7 +7,7 @@
@{
PageLayout.Content.Title = L["Product"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Product"].Value);
PageLayout.Content.MenuItemName = "Product";
PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProduct";
}
@section scripts

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml

@ -7,7 +7,7 @@
@{
PageLayout.Content.Title = L["ProductSku"].Value;
PageLayout.Content.BreadCrumb.Add(L["Menu:Product"].Value);
PageLayout.Content.MenuItemName = "Product";
PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProduct";
}
@section scripts

8
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs

@ -30,19 +30,19 @@ namespace EasyAbp.EShop.Products.Web
{
var l = context.GetLocalizer<ProductsResource>(); //Add main menu items.
var productManagementMenuItem = new ApplicationMenuItem("ProductManagement", l["Menu:ProductManagement"]);
var productManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopProducts", l["Menu:ProductManagement"]);
if (await context.IsGrantedAsync(ProductsPermissions.ProductTypes.Default))
{
productManagementMenuItem.AddItem(
new ApplicationMenuItem("ProductType", l["Menu:ProductType"], "/EShop/Products/ProductTypes/ProductType")
new ApplicationMenuItem("EasyAbpEShopProductsProductType", l["Menu:ProductType"], "/EShop/Products/ProductTypes/ProductType")
);
}
if (await context.IsGrantedAsync(ProductsPermissions.Categories.Default))
{
productManagementMenuItem.AddItem(
new ApplicationMenuItem("Category", l["Menu:Category"], "/EShop/Products/Categories/Category")
new ApplicationMenuItem("EasyAbpEShopProductsCategory", l["Menu:Category"], "/EShop/Products/Categories/Category")
);
}
@ -53,7 +53,7 @@ namespace EasyAbp.EShop.Products.Web
var defaultStore = (await storeAppService.GetDefaultAsync())?.Id;
productManagementMenuItem.AddItem(
new ApplicationMenuItem("Product", l["Menu:Product"], "/EShop/Products/Products/Product?storeId=" + defaultStore)
new ApplicationMenuItem("EasyAbpEShopProductsProduct", l["Menu:Product"], "/EShop/Products/Products/Product?storeId=" + defaultStore)
);
}

4
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs

@ -23,12 +23,12 @@ namespace EasyAbp.EShop.Stores.Web
{
var l = context.GetLocalizer<StoresResource>(); //Add main menu items.
var storeManagementMenuItem = new ApplicationMenuItem("StoreManagement", l["Menu:StoreManagement"]);
var storeManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopStores", l["Menu:StoreManagement"]);
if (await context.IsGrantedAsync(StoresPermissions.Stores.Default))
{
storeManagementMenuItem.AddItem(
new ApplicationMenuItem("Store", l["Menu:Store"], "/EShop/Stores/Stores/Store")
new ApplicationMenuItem("EasyAbpEShopStoresStore", l["Menu:Store"], "/EShop/Stores/Stores/Store")
);
}

Loading…
Cancel
Save