Skip to content

Commit eda0b93

Browse files
authored
Merge pull request #21743 from abpframework/auto-merge/rel-9-0/3332
Merge branch dev with rel-9.0
2 parents 43a9007 + f2bc1b9 commit eda0b93

File tree

12 files changed

+31
-27
lines changed

12 files changed

+31
-27
lines changed

docs/en/docs-params.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"Blazor": "Blazor WebAssembly",
99
"BlazorServer": "Blazor Server",
1010
"BlazorWebApp": "Blazor WebApp",
11+
"MAUIBlazor": "MAUI Blazor (Hybrid)",
1112
"NG": "Angular"
1213
}
1314
},
14.4 KB
Loading

docs/en/tutorials/book-store/part-01.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp","NG","MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````

docs/en/tutorials/book-store/part-02.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp", "NG"],
5+
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp", "NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````
@@ -518,14 +518,17 @@ Now you can see the final result on your browser:
518518

519519
## Create a Books Page
520520

521-
It's time to create something visible and usable! Right click on the `Pages` folder under the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and add a new **razor component**, named `Books.razor`:
521+
It's time to create something visible and usable! Right click on the `Pages` folder under the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else if UI == "Blazor" || UI == "BlazorWebApp" }}`Acme.BookStore.Blazor.Client`{{else}} `Acme.BookStore.MauiBlazor` {{ end }} project and add a new **razor component**, named `Books.razor`:
522522

523523
{{ if UI == "Blazor" || UI == "BlazorWebApp" }}
524524
![blazor-add-books-component](images/blazor-add-books-component-client.png)
525-
{{ else }}
525+
{{ else if UI == "BlazorServer" }}
526526
![blazor-add-books-component](images/blazor-add-books-component.png)
527+
{{ else if UI == "MAUIBlazor" }}
528+
![maui-blazor-add-books-component](images/maui-blazor-add-books-component.png)
527529
{{ end }}
528530

531+
529532
Replace the contents of this component as shown below:
530533

531534
````html
@@ -540,7 +543,7 @@ Replace the contents of this component as shown below:
540543

541544
### Add the Books Page to the Main Menu
542545

543-
Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer"}}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project add the following code to the end of the `ConfigureMainMenuAsync` method:
546+
Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer"}}`Acme.BookStore.Blazor`{{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project add the following code to the end of the `ConfigureMainMenuAsync` method:
544547

545548
````csharp
546549
context.Menu.AddItem(

docs/en/tutorials/book-store/part-03.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````
@@ -1101,7 +1101,7 @@ Clicking the "Delete" action calls the `delete` method which then shows a confir
11011101

11021102
{{end}}
11031103

1104-
{{if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp"}}
1104+
{{if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp" || UI == "MAUIBlazor"}}
11051105

11061106
## Creating a New Book
11071107

@@ -1292,13 +1292,13 @@ We can now define a modal to edit the book. Add the following code to the end of
12921292

12931293
The base `AbpCrudPageBase` uses the [object to object mapping](../../framework/infrastructure/object-to-object-mapping.md) system to convert an incoming `BookDto` object to a `CreateUpdateBookDto` object. So, we need to define the mapping.
12941294

1295-
Open the `BookStoreBlazorAutoMapperProfile` inside the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and change the content as the following:
1295+
Open the `BookStoreBlazorAutoMapperProfile` inside the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor` {{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor` {{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and change the content as the following:
12961296

12971297
````csharp
12981298
using Acme.BookStore.Books;
12991299
using AutoMapper;
13001300

1301-
{{ if UI == "BlazorServer" }}namespace Acme.BookStore.Blazor;{{ else }}namespace Acme.BookStore.Blazor.Client;{{ end }}
1301+
{{ if UI == "BlazorServer" }}namespace Acme.BookStore.Blazor; {{ else if UI == "MAUIBlazor" }}namespace Acme.BookStore.MauiBlazor; {{ else }}namespace Acme.BookStore.Blazor.Client;{{ end }}
13021302

13031303
public class BookStoreBlazorAutoMapperProfile : Profile
13041304
{

docs/en/tutorials/book-store/part-04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````

docs/en/tutorials/book-store/part-05.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````
@@ -389,11 +389,11 @@ Open the `/src/app/book/book.component.html` file and replace the edit and delet
389389
* Added `*abpPermission="'BookStore.Books.Edit'"` that hides the edit action if the current user has no editing permission.
390390
* Added `*abpPermission="'BookStore.Books.Delete'"` that hides the delete action if the current user has no delete permission.
391391

392-
{{else if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp"}}
392+
{{else if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp" || UI == "MAUIBlazor"}}
393393

394394
### Authorize the Razor Component
395395

396-
Open the `/Pages/Books.razor` file in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and add an `Authorize` attribute just after the `@page` directive and the following namespace imports (`@using` lines), as shown below:
396+
Open the `/Pages/Books.razor` file in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor` {{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor` {{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and add an `Authorize` attribute just after the `@page` directive and the following namespace imports (`@using` lines), as shown below:
397397

398398
````html
399399
@page "/books"
@@ -481,7 +481,7 @@ You can run and test the permissions. Remove a book related permission from the
481481

482482
Even we have secured all the layers of the book management page, it is still visible on the main menu of the application. We should hide the menu item if the current user has no permission.
483483

484-
Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project, find the code block below:
484+
Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project, find the code block below:
485485

486486
````csharp
487487
context.Menu.AddItem(

docs/en/tutorials/book-store/part-06.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp", "NG"],
5+
"UI": ["MVC","Blazor","BlazorServer", "BlazorWebApp", "NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````

docs/en/tutorials/book-store/part-07.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````

docs/en/tutorials/book-store/part-08.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
````json
33
//[doc-params]
44
{
5-
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"],
5+
"UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"],
66
"DB": ["EF","Mongo"]
77
}
88
````

0 commit comments

Comments
 (0)