Skip to content

Commit 57b2bef

Browse files
committed
docs: update readme
1 parent 5249ecd commit 57b2bef

File tree

3 files changed

+73
-11
lines changed

3 files changed

+73
-11
lines changed

README.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center">
1+
<p align="center">
22
<a href="https://masa-blazor-docs-dev.lonsid.cn" target="_blank">
33
<img alt="MASA Blazor Pro Logo" width="150" src="./imgs/logo.png">
44
</a>
@@ -23,15 +23,14 @@ English| [简体中文](./README.zh-CN.md)
2323
## Templates
2424

2525
```
26-
- Dashboards
26+
- Dashboard
2727
- eCommerce
28-
- Analytics
29-
- Apps
28+
- App
3029
- eCommerce
3130
- Todo
3231
- Invoice
3332
- User
34-
- Pages
33+
- Page
3534
- Login
3635
- Register
3736
- Forgot Password
@@ -43,6 +42,39 @@ English| [简体中文](./README.zh-CN.md)
4342

4443
# Use
4544

45+
* [CLI](#CLI)
46+
* [Existing Project](#Existing Project)
47+
48+
49+
50+
### CLI
51+
52+
**Install Template**
53+
54+
```c#
55+
dotnet new --install MASA.Template
56+
```
57+
58+
**Create Project**
59+
60+
* Blazor Server
61+
62+
```c#
63+
dotnet new masabp -o MASA.Test
64+
```
65+
66+
* Blazor Server + RCL(Razor class libraries)
67+
68+
```c#
69+
dotnet new masabp -rcl -o MASA.Test
70+
```
71+
72+
![masabp](D:\Project\MASA\BlazorComponent\MASA.Blazor.Pro\imgs\masabp.gif)
73+
74+
75+
76+
### Existing Project
77+
4678
Introduce styles in `wwwroot/index.html`(WebAssembly) or `Pages/_Host.cshtml`(Server):
4779

4880
```html

README.zh-CN.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center">
1+
<p align="center">
22
<a href="https://masa-blazor-docs-dev.lonsid.cn" target="_blank">
33
<img alt="MASA Blazor Pro Logo" width="150" src="./imgs/logo.png">
44
</a>
@@ -23,15 +23,14 @@
2323
## 模板
2424

2525
```
26-
- Dashboards
27-
- 商务报表
28-
- 分析报表
29-
- Apps
26+
- Dashboard
27+
- 电商报表
28+
- App
3029
- 商城
3130
- 工作事项
3231
- 发票
3332
- 用户
34-
- Pages
33+
- Page
3534
- 登录
3635
- 注册
3736
- 忘记密码
@@ -43,6 +42,37 @@
4342

4443
## 使用
4544

45+
* [CLI](#CLI)
46+
* [现有项目](#现有项目)
47+
48+
### CLI
49+
50+
**安装模板**
51+
52+
```c#
53+
dotnet new --install MASA.Template
54+
```
55+
56+
**创建项目**
57+
58+
* Blazor Server
59+
60+
```c#
61+
dotnet new masabp -o MASA.Test
62+
```
63+
64+
* Blazor Server + RCL(Razor class libraries)
65+
66+
```c#
67+
dotnet new masabp -rcl -o MASA.Test
68+
```
69+
70+
![masabp](.\imgs\masabp.gif)
71+
72+
73+
74+
### 现有项目
75+
4676
-`wwwroot/index.html`(WebAssembly) 或 `Pages/_Host.cshtml`(Server) 中引入样式:
4777

4878
```html

imgs/masabp.gif

2.61 MB
Loading

0 commit comments

Comments
 (0)