Skip to content

Commit 6119372

Browse files
committed
test
1 parent c748d25 commit 6119372

File tree

11 files changed

+176
-257
lines changed

11 files changed

+176
-257
lines changed

.github/workflows/test-core.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup .NET
2020
uses: actions/setup-dotnet@v4
2121
with:
22-
dotnet-version: 8.0.x
22+
dotnet-version: 9.0.x
2323
- name: GitHub Pages Blazor WASM
2424
uses: ./
2525
with:

Test/Properties/launchSettings.json

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
11
{
2-
"$schema": "http://json.schemastore.org/launchsettings.json",
3-
"iisSettings": {
4-
"windowsAuthentication": false,
5-
"anonymousAuthentication": true,
6-
"iisExpress": {
7-
"applicationUrl": "http://localhost:44895",
8-
"sslPort": 0
9-
}
10-
},
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
113
"profiles": {
124
"http": {
135
"commandName": "Project",
146
"dotnetRunMessages": true,
157
"launchBrowser": true,
168
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
17-
"applicationUrl": "http://localhost:5096",
18-
"environmentVariables": {
19-
"ASPNETCORE_ENVIRONMENT": "Development"
20-
}
21-
},
22-
"IIS Express": {
23-
"commandName": "IISExpress",
24-
"launchBrowser": true,
25-
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
9+
"applicationUrl": "http://localhost:5248",
2610
"environmentVariables": {
2711
"ASPNETCORE_ENVIRONMENT": "Development"
2812
}

Test/Test.csproj

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.4" />
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.4" PrivateAssets="all" />
10+
<PackageReference Include="Bluehill.Blazor.GHPages" Version="1.0.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
1213
</ItemGroup>
1314

1415
</Project>

Test/Test.sln

-25
This file was deleted.

Test/wwwroot/404.html

-39
This file was deleted.

Test/wwwroot/css/app.css

+11
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
}
1212

1313
#blazor-error-ui {
14+
color-scheme: light only;
1415
background: lightyellow;
1516
bottom: 0;
1617
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
18+
box-sizing: border-box;
1719
display: none;
1820
left: 0;
1921
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
@@ -75,3 +77,12 @@
7577
code {
7678
color: #c02d76;
7779
}
80+
81+
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
82+
color: var(--bs-secondary-color);
83+
text-align: end;
84+
}
85+
86+
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
87+
text-align: start;
88+
}

Test/wwwroot/index.html

+3-43
Original file line numberDiff line numberDiff line change
@@ -22,50 +22,10 @@
2222

2323
<div id="blazor-error-ui">
2424
An unhandled error has occurred.
25-
<a href="" class="reload">Reload</a>
26-
<a class="dismiss">🗙</a>
25+
<a href="." class="reload">Reload</a>
26+
<span class="dismiss">🗙</span>
2727
</div>
28-
29-
<!-- Start Single Page Apps for GitHub Pages -->
30-
<script type="text/javascript">
31-
// Single Page Apps for GitHub Pages
32-
// https://github.com/rafrex/spa-github-pages
33-
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
34-
// ----------------------------------------------------------------------
35-
// This script checks to see if a redirect is present in the query string
36-
// and converts it back into the correct url and adds it to the
37-
// browser's history using window.history.replaceState(...),
38-
// which won't cause the browser to attempt to load the new url.
39-
// When the single page app is loaded further down in this file,
40-
// the correct url will be waiting in the browser's history for
41-
// the single page app to route accordingly.
42-
(function (l) {
43-
if (l.search) {
44-
var q = {};
45-
l.search.slice(1).split('&').forEach(function (v) {
46-
var a = v.split('=');
47-
q[a[0]] = a.slice(1)
48-
.join('=')
49-
.replace(/~and~/g, '&');
50-
});
51-
if (q.p !== undefined) {
52-
// Added support for non-main repos based on https://jkdev.me/publish-client-side-blazor-to-github-pages/?cse
53-
var repoName = l.pathname.slice(0, -1);
54-
if (q.p !== undefined) {
55-
q.p = q.p.replace(`${repoName}/`, '/');
56-
}
57-
58-
window.history.replaceState(null, null,
59-
repoName + (q.p || '') +
60-
(q.q ? ('?' + q.q) : '') +
61-
l.hash
62-
);
63-
}
64-
}
65-
}(window.location))
66-
</script>
67-
<!-- End Single Page Apps for GitHub Pages -->
68-
28+
<script src="gh-pages.js"></script>
6929
<script src="_framework/blazor.webassembly.js"></script>
7030
</body>
7131

action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ inputs:
1111
required: true
1212
publish-path:
1313
description: Path to output in Publish step
14+
required: true
1415
default: _out
1516
main-repo:
1617
description:

dist/index.js

+77-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)