Skip to content

Commit 3744628

Browse files
authored
Merge pull request #3 from tjmoore/destination-app
Add demo Destination app
2 parents 88cf475 + a9bca64 commit 3744628

27 files changed

Lines changed: 264 additions & 68 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
.WithReference(frontend)
1010
.WaitFor(frontend);
1111

12+
builder.AddProject<Projects.Destination>("destination");
13+
1214
builder.Build().Run();

SignalRGatewayTunnel.AppHost/SignalRGatewayTunnel.AppHost.csproj renamed to AppHost/AppHost.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
7-
<TargetFramework>net8.0</TargetFramework>
7+
<TargetFramework>net9.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
<UserSecretsId>2f5cf0e6-04ba-425c-9e34-c6da020ecdfb</UserSecretsId>
@@ -16,6 +16,7 @@
1616

1717
<ItemGroup>
1818
<ProjectReference Include="..\Backend\Backend.csproj" />
19+
<ProjectReference Include="..\Destination\Destination.csproj" />
1920
<ProjectReference Include="..\Frontend\Frontend.csproj" />
2021
</ItemGroup>
2122

SignalRGatewayTunnel.AppHost/Properties/launchSettings.json renamed to AppHost/Properties/launchSettings.json

File renamed without changes.

SignalRGatewayTunnel.AppHost/appsettings.Development.json renamed to AppHost/appsettings.Development.json

File renamed without changes.

SignalRGatewayTunnel.AppHost/appsettings.json renamed to AppHost/appsettings.json

File renamed without changes.

Backend/Backend.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<UserSecretsId>246972d0-2477-4915-8d25-164c075b48f3</UserSecretsId>
@@ -19,7 +19,7 @@
1919

2020
<ItemGroup>
2121
<ProjectReference Include="..\Model\Model.csproj" />
22-
<ProjectReference Include="..\SignalRGatewayTunnel.ServiceDefaults\SignalRGatewayTunnel.ServiceDefaults.csproj" />
22+
<ProjectReference Include="..\ServiceDefaults\ServiceDefaults.csproj" />
2323
</ItemGroup>
2424

2525
</Project>

Backend/appsettings.Development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"Url": "http://localhost:5105/gw-hub"
1010
},
1111
"DestinationEndpoint": {
12-
"Url": "http://localhost:9000"
12+
"Url": "http://localhost:5174"
1313
}
1414
}

Destination/Components/App.razor

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<base href="/" />
8+
<link rel="stylesheet" href="@Assets["app.css"]" />
9+
<link rel="stylesheet" href="@Assets["Destination.styles.css"]" />
10+
<ImportMap />
11+
<HeadOutlet />
12+
</head>
13+
14+
<body>
15+
<Routes />
16+
<script src="_framework/blazor.web.js"></script>
17+
</body>
18+
19+
</html>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@inherits LayoutComponentBase
2+
3+
@Body
4+
5+
<div id="blazor-error-ui" data-nosnippet>
6+
An unhandled error has occurred.
7+
<a href="." class="reload">Reload</a>
8+
<span class="dismiss">🗙</span>
9+
</div>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#blazor-error-ui {
2+
color-scheme: light only;
3+
background: lightyellow;
4+
bottom: 0;
5+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
6+
box-sizing: border-box;
7+
display: none;
8+
left: 0;
9+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
10+
position: fixed;
11+
width: 100%;
12+
z-index: 1000;
13+
}
14+
15+
#blazor-error-ui .dismiss {
16+
cursor: pointer;
17+
position: absolute;
18+
right: 0.75rem;
19+
top: 0.5rem;
20+
}

0 commit comments

Comments
 (0)