Skip to content

Commit 95246d2

Browse files
committed
update blazor pages
1 parent 241b4b6 commit 95246d2

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,78 @@
22
title: React Templates
33
---
44

5+
6+
## Angular SPA
7+
8+
### Development
9+
10+
```mermaid
11+
---
12+
config:
13+
layout: dagre
14+
look: neo
15+
theme: redux
16+
themeVariables:
17+
edgeLabelBackground: '#ffffff'
18+
---
19+
flowchart LR
20+
subgraph DEVELOPMENT["DEVELOPMENT"]
21+
direction LR
22+
DevServer[(".NET PROJECT<br>(localhost:5001)")]
23+
Identity("ASP.NET Core Identity<br>Razor Pages")
24+
Endpoints(".NET Endpoint Routing")
25+
DevNext[/"Vite React App<br>(localhost:5173)<br>Runs concurrently"/]
26+
end
27+
DevServer -- /Identity/* --> Identity
28+
DevServer -- /* --> Endpoints
29+
DevServer -- /* Fallback<br>(Proxied) --> DevNext
30+
DevServer -- Vite HMR<br>(Websocket) --> DevNext
31+
32+
Identity:::static
33+
Endpoints:::static
34+
DevServer:::netHost
35+
DevNext:::nextApp
36+
classDef netHost fill:#dbeafe,stroke:#1e3a8a,stroke-width:2px,color:#1e3a8a
37+
classDef nextApp fill:#f3e8ff,stroke:#6b21a8,stroke-width:2px,color:#6b21a8
38+
classDef static fill:#ecfdf5,stroke:#047857,stroke-width:2px
39+
```
40+
41+
### Production
42+
43+
```mermaid
44+
---
45+
config:
46+
layout: dagre
47+
look: neo
48+
theme: redux
49+
themeVariables:
50+
edgeLabelBackground: '#ffffff'
51+
---
52+
flowchart LR
53+
subgraph PRODUCTION["PRODUCTION"]
54+
direction LR
55+
DevServer[(".NET PROJECT<br>(localhost:5001)")]
56+
Identity("ASP.NET Core Identity<br>Razor Pages")
57+
Endpoints(".NET Endpoint Routing")
58+
StaticFiles[/"/wwwroot<br>Serves static files<br>(HTML, CSS, JS)"/]
59+
end
60+
DevServer -- /Identity/* --> Identity
61+
DevServer -- /* --> Endpoints
62+
DevServer <-- /* Static Files --> StaticFiles
63+
64+
DevServer:::netHost
65+
Identity:::static
66+
Endpoints:::static
67+
StaticFiles:::static
68+
69+
classDef netHost fill:#dbeafe,stroke:#1e3a8a,stroke-width:2px,color:#1e3a8a
70+
classDef nextApp fill:#f3e8ff,stroke:#6b21a8,stroke-width:2px,color:#6b21a8
71+
classDef static fill:#ecfdf5,stroke:#047857,stroke-width:2px
72+
```
73+
74+
75+
76+
577
## React Static
678

779
### Development

MyApp/wwwroot/pages/templates/blazor-server.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Templates, { Index } from "../templates/Templates.mjs"
22

33
const BlazorTemplates = {
44
components: { Templates },
5-
template:`<Templates :templates="[Index['blazor'], Index['blazor-vue'], Index['blazor-wasm']]" hide="demo" />`,
5+
template:`<Templates :templates="[Index['blazor'], Index['blazor-vue']]" hide="demo" />`,
66
setup() {
77
return { Index }
88
}

MyApp/wwwroot/pages/templates/blazor-tailwind.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Templates, { Index } from "../templates/Templates.mjs"
22

33
const BlazorTemplates = {
44
components: { Templates },
5-
template:`<Templates :templates="[Index['blazor'], Index['blazor-vue'], Index['blazor-wasm']]" hide="demo" />`,
5+
template:`<Templates :templates="[Index['blazor'], Index['blazor-vue']]" hide="demo" />`,
66
setup() {
77
return { Index }
88
}

0 commit comments

Comments
 (0)