• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

BlazorComponent/MASA.Blazor.Pro: Material design admin template for blazor.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

BlazorComponent/MASA.Blazor.Pro

开源软件地址(OpenSource Url):

https://github.com/BlazorComponent/MASA.Blazor.Pro

开源编程语言(OpenSource Language):

HTML 55.1%

开源软件介绍(OpenSource Introduction):



Masa Blazor Pro Logo

Masa Blazor Pro

Out-of-the-box mid-office front-end/design solutions, Blazor project templates, provide preset layouts for a variety of common scenarios.

Masa.Blazor.Pro

English| 简体中文

Online example

https://masa-blazor-pro.lonsid.cn

Templates

- Dashboard
  - eCommerce
- App
  - eCommerce
  - Todo
  - Invoice
  - User
- Page
  - Login
  - Register
  - Forgot Password
  - Reset Password
  - Account Seetings
  - 500
  - 401 

Use

  • CLI
  • [Existing Project](#Existing Project)

CLI

Install Template

dotnet new --install Masa.Template

Create Project

  • Blazor Server
dotnet new masabp -o Masa.Test
  • Blazor WebAssembly
dotnet new masabp --mode Wasm -o Masa.TestWasm
  • Blazor RCL
dotnet new masabp --mode ServerAndWasm -o Masa.TestRcl

Go to the Server project directory

cd Masa.Test

Run

dotnet run

masabp

Existing Project

Introduce styles in wwwroot/index.html(WebAssembly) or Pages/_Host.cshtml(Server):

<html lang="en">
	<head>
		<!--Style-->
		<link href="css/masa-blazor-pro.css" rel="stylesheet">
		<!--<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet">-->
		<link href="Masa.Blazor.Pro.styles.css" rel="stylesheet">
	</head>
</html>

The masa-blazor-pro.css file is in the hierarchical directory of the project wwwroot/css/masa-blazor-pro.css

Masa.Blazor.Pro.styles.css needs to be changed to {ASSEMBLY NAME}.styles.css, the placeholder {ASSEMBLY NAME} is the assembly name of the project, see ASP.NET Core Blazor for details CSS isolation

  • Setting up MasaBlazor theme
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMasaBlazor(builder => 
{
    builder.UseTheme(option=>
        {
            option.Primary = "#4318FF";
            option.Accent = "#4318FF";
        }
    );
});

Rendering

rendering rendering
dashboard basket
edit view
login todo

Related projects

Supported browsers

chromefirefoxedgeieSafarioper

Mobile devices

iosAndriod

Chrome Firefox Safari Microsoft Edge
iOS Supported Supported Supported Supported
Android Supported Supported N/A Supported

Desktop devices

macOSlinuxwindows

Chrome Firefox Safari Opera Microsoft Edge Internet Explorer
Mac Supported Supported Supported Supported N/A N/A
Linux Supported Supported N/A N/A N/A N/A
Windows Supported Supported Not supported Supported Supported Supported, IE11+

Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation

How to contribute

  1. Clone
  2. Create Feature_xxx branch
  3. Commit with commit message, like feat:add MButton
  4. Create Pull Request

Contributors

Thanks to all the friends who have contributed to this project.

Interactive

QQ group WX public account WX Customer Service
masa.blazor-qq masa.blazor-weixin masa.blazor-weixin

Development team

The Digital Flash technical team is an efficient, stable and innovative team. The team adheres to the original intention of enriching the Blazor ecosystem, and it is the pursuit of the Digital Flash technical team to continue to work hard to bring a better experience to the developers. Thank you for your support and use.

Code of conduct

This project adopts the code of conduct defined in the "Contributors Convention" to clarify the expected behavior of our community. For more information, see Masa Stack Community Code of Conduct.

License

Masa.Blazor.Pro

Copyright (c) 2021-present Masa.Blazor.Pro




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap