8 |
9 |
10 |
14 |
15 |
16 |
17 |
@L["LongWelcomeMessage"]
18 |
19 | @if (!CurrentUser.IsAuthenticated)
20 | {
21 |
@L["Login"]
22 | }
23 |
24 |
25 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/Pages/Index.razor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Linq;
5 | using System.Text.Json;
6 | using System.Threading.Tasks;
7 | using AntDesign;
8 | using AntDesign.TableModels;
9 |
10 | namespace BookStore.BlazorServer.Pages;
11 |
12 | public partial class Index
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/Pages/Index.razor.css:
--------------------------------------------------------------------------------
1 | /* Write here your styles for the Index page */
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
3 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
4 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "https://localhost:44313/",
7 | "sslPort": 44313
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "BookStore.Blazor": {
19 | "commandName": "Project",
20 | "dotnetRunMessages": "true",
21 | "launchBrowser": true,
22 | "applicationUrl": "https://localhost:44313/",
23 | "environmentVariables": {
24 | "ASPNETCORE_ENVIRONMENT": "Development"
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using System.Net.Http
2 | @using Microsoft.AspNetCore.Authorization
3 | @using Microsoft.AspNetCore.Components.Authorization
4 | @using Microsoft.AspNetCore.Components.Forms
5 | @using Microsoft.AspNetCore.Components.Routing
6 | @using Microsoft.AspNetCore.Components.Web
7 | @using Microsoft.AspNetCore.Components.Web.Virtualization
8 | @using Microsoft.JSInterop
9 | @using BookStore.Blazor
10 | @using AntDesign
11 | @using Lsw.Abp.AntDesignUI
12 | @using Lsw.Abp.AntDesignUI.Components
13 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/abp.resourcemapping.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | aliases: {
3 |
4 | },
5 | clean: [
6 |
7 | ],
8 | mappings: {
9 |
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | }
3 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "App": {
3 | "SelfUrl": "https://localhost:44313",
4 | "RedirectAllowedUrls": "https://localhost:44313"
5 | },
6 | "ConnectionStrings": {
7 | "Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=AntBlazorDemo;Trusted_Connection=True"
8 | },
9 | "AuthServer": {
10 | "Authority": "https://localhost:44313",
11 | "RequireHttpsMetadata": "false"
12 | },
13 | "StringEncryption": {
14 | "DefaultPassPhrase": "PkQhKQMtlOiqySK3"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/appsettings.secrets.json:
--------------------------------------------------------------------------------
1 | {
2 | }
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0.0",
3 | "name": "my-app",
4 | "private": true,
5 | "dependencies": {
6 | "@abp/aspnetcore.mvc.ui.theme.basic": "~9.0.0",
7 | "@abp/aspnetcore.components.server.basictheme": "~9.0.0"
8 | }
9 | }
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/wwwroot/blazor-global-styles.css:
--------------------------------------------------------------------------------
1 | #blazor-error-ui {
2 | background: lightyellow;
3 | bottom: 0;
4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
5 | display: none;
6 | left: 0;
7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem;
8 | position: fixed;
9 | width: 100%;
10 | z-index: 1000;
11 | }
12 |
13 | #blazor-error-ui .dismiss {
14 | cursor: pointer;
15 | position: absolute;
16 | right: 0.75rem;
17 | top: 0.5rem;
18 | }
19 |
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/realLiangshiwei/Lsw.Abp.AntDesignUI/f21ac53fa001d35e15a5751806cd855c5a411ee0/samples/BookStore/src/BookStore.BlazorServer/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.BlazorServer/wwwroot/global-styles.css:
--------------------------------------------------------------------------------
1 | body {
2 |
3 | }
--------------------------------------------------------------------------------
/samples/BookStore/src/BookStore.DbMigrator/BookStoreDbMigratorModule.cs:
--------------------------------------------------------------------------------
1 | using BookStore.EntityFrameworkCore;
2 | using Volo.Abp.Autofac;
3 | using Volo.Abp.BackgroundJobs;
4 | using Volo.Abp.Modularity;
5 |
6 | namespace BookStore.DbMigrator;
7 |
8 | [DependsOn(
9 | typeof(AbpAutofacModule),
10 | typeof(BookStoreEntityFrameworkCoreModule),
11 | typeof(BookStoreApplicationContractsModule)
12 | )]
13 | public class BookStoreDbMigratorModule : AbpModule
14 | {
15 | public override void ConfigureServices(ServiceConfigurationContext context)
16 | {
17 | Configure