Browse Source

Merge branch 'dev' into maliming/docs-search

pull/2901/head
maliming 7 years ago
parent
commit
810faba78c
  1. 2
      README.md
  2. 2
      docs/cs/Getting-Started-Angular-Template.md
  3. 2
      docs/cs/Getting-Started-AspNetCore-Application.md
  4. 2
      docs/cs/Getting-Started-AspNetCore-MVC-Template.md
  5. 95
      docs/en/AspNetCore/Tag-Helpers/Buttons.md
  6. BIN
      docs/en/AspNetCore/Tag-Helpers/fa-address-card.png
  7. 2
      docs/en/Getting-Started-Angular-Template.md
  8. 2
      docs/en/Getting-Started-AspNetCore-Application.md
  9. 2
      docs/en/Getting-Started-AspNetCore-MVC-Template.md
  10. 2
      docs/en/Startup-Templates/Module.md
  11. 2
      docs/pt-BR/Getting-Started-Angular-Template.md
  12. 2
      docs/pt-BR/Getting-Started-AspNetCore-MVC-Template.md
  13. 21
      docs/zh-Hans/Entity-Framework-Core-Migrations.md
  14. 2
      docs/zh-Hans/Getting-Started-AspNetCore-MVC-Template.md

2
README.md

@ -17,7 +17,7 @@ See the <a href="https://docs.abp.io/" target="_blank">documentation</a>.
#### Pre Requirements
- Visual Studio 2019 16.3.0+
- Visual Studio 2019 16.4.0+
#### Framework

2
docs/cs/Getting-Started-Angular-Template.md

@ -26,7 +26,7 @@ abp new Acme.BookStore -u angular
Vytvořené řešení vyžaduje;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4.0+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

2
docs/cs/Getting-Started-AspNetCore-Application.md

@ -4,7 +4,7 @@ Tento tutoriál vysvětluje jak začít s ABP z ničeho s minimem závislostí.
## Tvorba nového projektu
1. Vytvořte novou AspNet Core Web aplikaci ve Visual Studio 2019 (16.3.0+):
1. Vytvořte novou AspNet Core Web aplikaci ve Visual Studio 2019 (16.4.0+):
![](images/create-new-aspnet-core-application-v2.png)

2
docs/cs/Getting-Started-AspNetCore-MVC-Template.md

@ -26,7 +26,7 @@ Příkaz `new` vytvoří **vrstvenou MVC aplikaci** s **Entity Framework Core**
Vytvořené řešení vyžaduje;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4.0+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

95
docs/en/AspNetCore/Tag-Helpers/Buttons.md

@ -0,0 +1,95 @@
# Buttons
ABP framework has a special Tag Helper to create bootstrap button easily.
`<abp-button>`
## Attributes
`<abp-button>` has 7 different attribute.
* [`button-type`](#button-type)
* [`size`](#size)
* [`busy-text`](#busy-text)
* [`text`](#text)
* [`icon`](#icon)
* [`disabled`](#disabled)
* [`icon-type`](#icon-type)
### `button-type`
`button-type` is a selectable parameter. It's default value is `Default`.
`<abp-button button-type="Primary">Button</abp-button>`
You can choose one of the button type listed below.
* `Default`
* `Primary`
* `Secondary`
* `Success`
* `Danger`
* `Warning`
* `Info`
* `Light`
* `Dark`
* `Outline_Primary`
* `Outline_Secondary`
* `Outline_Success`
* `Outline_Danger`
* `Outline_Warning`
* `Outline_Info`
* `Outline_Light`
* `Outline_Dark`
* `Link`
### `size`
`size` is a selectable parameter. It's default value is `Default`.
`<abp-button size="Default">Button</abp-button>`
You can choose one of the size type listed below.
* `Default`
* `Small`
* `Medium`
* `Large`
* `Block`
* `Block_Small`
* `Block_Medium`
* `Block_Large`
### `busy-text`
`busy-text` is a string parameter. IT shows the text while the button is busy.
### `text`
`text` is a string parameter that displaying on button.
### `icon`
`icon` is a string parameter. It is depending to [`icon-type`](#`icon-type`). For default, we use [Font Awesome](https://fontawesome.com/) for icons. To use it, you need to set `icon` parameter as a icon name.
##### Example
[fa-address-card](https://fontawesome.com/icons/address-card): ![fa-address-card](fa-address-card.png "Address Card")
`<abp-button icon="address-card" text="Address" />`
> Don't forget: You dont need to write prefix! It will add automatically "fa" prefix for [Font Awesome](https://fontawesome.com/) icons while you did not change `icon-type`.
### `disabled`
`disabled` is a boolean parameter. If you set it `true`, your button will be disabled.
### `icon-type`
`icon-type` is a selectable parameter. It's default value is `FontAwesome`. You can create your own icon type provider and change it.
You can choose one of the size type listed below.
* `FontAwesome`
* `Other`

BIN
docs/en/AspNetCore/Tag-Helpers/fa-address-card.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

2
docs/en/Getting-Started-Angular-Template.md

@ -26,7 +26,7 @@ abp new Acme.BookStore -u angular
The created solution requires;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

2
docs/en/Getting-Started-AspNetCore-Application.md

@ -4,7 +4,7 @@ This tutorial explains how to start ABP from scratch with minimal dependencies.
## Create A New Project
1. Create a new AspNet Core Web Application from Visual Studio 2019 (16.3.0+):
1. Create a new AspNet Core Web Application from Visual Studio 2019 (16.4.0+):
![](images/create-new-aspnet-core-application-v2.png)

2
docs/en/Getting-Started-AspNetCore-MVC-Template.md

@ -26,7 +26,7 @@ abp new Acme.BookStore
The created solution requires;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

2
docs/en/Startup-Templates/Module.md

@ -133,7 +133,7 @@ For the `.Web.Unified` application, there is a single database, named `YourProje
##### How to Run?
Set it as the startup project, run `Update-Database` command for the EF Core from Package Manager Console and run your application. Default username is `admin` and password is `1q2w3E*`.
Set `host/YourProjectName.Web.Unified` as the startup project, run `Update-Database` command for the EF Core from Package Manager Console and run your application. Default username is `admin` and password is `1q2w3E*`.
#### Separated Deployment & Databases Scenario

2
docs/pt-BR/Getting-Started-Angular-Template.md

@ -26,7 +26,7 @@ abp new Acme.BookStore -u angular
A solução criada requer;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

2
docs/pt-BR/Getting-Started-AspNetCore-MVC-Template.md

@ -26,7 +26,7 @@ abp new Acme.BookStore
A solução criada requer;
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

21
docs/zh-Hans/Entity-Framework-Core-Migrations.md

@ -902,26 +902,7 @@ public class BookStoreDbMigratorModule : AbpModule
}
````
#### BookStoreDbMigrationService
最后还需要找到 `Acme.BookStore.Domain` 项目的 `BookStoreDbMigrationService` 类,它当前被设计为使用单个 `IBookStoreDbSchemaMigrator` 实现,但现在我们有了两个.
它注入了 `IBookStoreDbSchemaMigrator`. 使用 `IEnumerable<IBookStoreDbSchemaMigrator>` 注入替换它, ([依赖注入系统](Dependency-Injection.md) 允许像这样注入接口的多个实现).
现在你有 **模式迁移器的集合** ,找到以下行:
````csharp
await _dbSchemaMigrators.MigrateAsync();
````
将这行代码进行以下改变:
````csharp
foreach (var migrator in _dbSchemaMigrators)
{
await migrator.MigrateAsync();
}
````
#### 运行数据库迁移程序
你可以运行 `.DbMigrator` 应用程序应用迁移和初始化种子数据. 你可以删除这两个数据库进行测试,然后再次运行 `.DbMigrator` 应用程序,它会创建两个数据库.

2
docs/zh-Hans/Getting-Started-AspNetCore-MVC-Template.md

@ -24,7 +24,7 @@ abp new Acme.BookStore
创建项目的要求:
* [Visual Studio 2019 (v16.3+)](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 (v16.4+)](https://visualstudio.microsoft.com/vs/)
* [.NET Core 3.0+](https://www.microsoft.com/net/download/dotnet-core/)
* [Node v12+](https://nodejs.org)
* [Yarn v1.19+](https://yarnpkg.com/)

Loading…
Cancel
Save