Skip to content

Commit d2a4c25

Browse files
authored
feat: update to bit 9.6.1 #72 (#73)
1 parent 35b9672 commit d2a4c25

File tree

33 files changed

+155
-174
lines changed

33 files changed

+155
-174
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
}
2525
},
2626
"forwardPorts": [
27-
4296,
27+
4293,
2828
5000,
29-
5148
29+
5129
3030
],
3131
"features": {
3232
"ghcr.io/devcontainers/features/node": {},

settings.VisualStudio.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Visual Studio Settings File */
22
{
3-
"debugging.general.disableJITOptimization": true,
4-
"environment.documents.saveWithSpecificEncoding": true,
5-
"environment.documents.saveEncoding": "utf-8;65001"
3+
"languages.defaults.general.lineNumbers": true,
4+
"debugging.general.disableJITOptimization": true,
5+
"environment.documents.saveWithSpecificEncoding": true,
6+
"environment.documents.saveEncoding": "utf-8;65001"
67
}

src/Client/Bit.TemplatePlayground.Client.Core/Components/LoadingComponent.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial class LoadingComponent
1414
/// This component is used in different parts of the application under varying conditions.
1515
///
1616
/// 1. In App.razor, for non-prerendered applications, this component displays minimal content before
17-
/// Blazor fully loads. Since it doesnt automatically get removed after the app loads, the z-index is set to -1
17+
/// Blazor fully loads. Since it doesn't automatically get removed after the app loads, the z-index is set to -1
1818
/// to ensure that once Blazor renders the main components, the loader falls behind the main content and becomes hidden.
1919
/// Additionally, the z-index will not change because @rendermode in App.razor is null, which prevents the OnAfterRender
2020
/// method from being invoked.

src/Client/Bit.TemplatePlayground.Client.Core/Components/Pages/Home/HomePage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</BitStack>
110110
</BitLink>
111111
<BitLink Href="https://www.nuget.org/profiles/bit-foundation" Target="_blank" NoUnderline>
112-
<BitImage Src="https://img.shields.io/badge/packages_download-6.0M-blue.svg?logo=nuget" Alt="nuget downloads" />
112+
<BitImage Src="https://img.shields.io/badge/packages_download-6.2M-blue.svg?logo=nuget" Alt="nuget downloads" />
113113
</BitLink>
114114
</BitStack>
115115
</BitCard>

src/Client/Bit.TemplatePlayground.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private async Task HandleOnSocialSignIn(string provider)
151151
{
152152
try
153153
{
154-
var port = localHttpServer.ShouldUseForSocialSignIn() ? localHttpServer.EnsureStarted() : -1;
154+
var port = localHttpServer.EnsureStarted();
155155

156156
var redirectUrl = await identityController.GetSocialSignInUri(provider, ReturnUrlQueryString, port is -1 ? null : port, CurrentCancellationToken);
157157

src/Client/Bit.TemplatePlayground.Client.Core/Components/Pages/Identity/SignUp/SignUpPage.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private async Task SocialSignUp(string provider)
7070
{
7171
try
7272
{
73-
var port = localHttpServer.ShouldUseForSocialSignIn() ? localHttpServer.EnsureStarted() : -1;
73+
var port = localHttpServer.EnsureStarted();
7474

7575
var redirectUrl = await identityController.GetSocialSignInUri(provider, ReturnUrlQueryString, port is -1 ? null : port, CurrentCancellationToken);
7676

src/Client/Bit.TemplatePlayground.Client.Core/Components/Pages/TermsPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<BitText Typography="BitTypography.H5">Push Notification</BitText>
5858
<BitText>
5959
The Software includes push notifications for updates and alerts. to enable this feature the app uses the device id
60-
generated by the native features available in the operating system. Users can opt-out of these notifications through the Softwares settings.
60+
generated by the native features available in the operating system. Users can opt-out of these notifications through the Software's settings.
6161
</BitText>
6262
<br />
6363
<BitText Typography="BitTypography.H5">Analytics and Cookies</BitText>

src/Client/Bit.TemplatePlayground.Client.Core/Scripts/ExternalJsRunner.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Checkout external-js-runner.html
1+
// Checkout external-js-runner.html
22
class ExternalJsRunner {
33
public static async run() {
44
const host = window.origin.replace('http://', '');
@@ -12,11 +12,10 @@ class ExternalJsRunner {
1212
} else if (request.type == 'createCredential') {
1313
result = await WebAuthn.createCredential(request.options);
1414
} else if (request.type == 'close') {
15-
result = {};
1615
localWebSocket.close();
17-
setTimeout(() => {
18-
window.close();
19-
}, 100);
16+
window.close();
17+
window.location.assign('/close-browser');
18+
return;
2019
}
2120
localWebSocket.send(JSON.stringify({ body: result }));
2221
}

src/Client/Bit.TemplatePlayground.Client.Core/Services/Contracts/ILocalHttpServer.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,4 @@ public interface ILocalHttpServer : IAsyncDisposable
77
int Port { get; }
88

99
string? Origin { get; }
10-
11-
/// <summary>
12-
/// Social sign-in on the web version of the app uses simple redirects. However, for Android, iOS, Windows, and macOS, social sign-in requires an in-app or external browser.
13-
///
14-
/// # Navigating Back to the App After Social Sign-In
15-
/// 1. **Universal Deep Links**: Allow the app to directly handle specific web links (for iOS and Android apps).
16-
/// 2. **Local HTTP Server**: Works similarly to how `git.exe` manages sign-ins with services like GitHub (supported on iOS, Android, Windows, and macOS).
17-
///
18-
/// - **iOS, Windows, and macOS**: Use local HTTP server implementations in MAUI and Windows projects.
19-
/// - **Android**: Use universal links.
20-
/// </summary>
21-
bool ShouldUseForSocialSignIn();
2210
}

src/Client/Bit.TemplatePlayground.Client.Core/Services/HttpMessageHandlers/RequestHeadersDelegatingHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
1212
request.SetBrowserRequestCredentials(BrowserRequestCredentials.Omit);
1313
request.SetBrowserResponseStreamingEnabled(true);
1414

15-
request.Version = HttpVersion.Version30;
15+
request.Version = HttpVersion.Version20;
1616
request.VersionPolicy = HttpVersionPolicy.RequestVersionOrLower;
1717

1818
if (request.Headers.UserAgent.Any() is false)

0 commit comments

Comments
 (0)