Skip to content

Commit

Permalink
chore: Adjust MSAL, post preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 3, 2024
1 parent fa4ee21 commit 1c3eceb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"sdk": {
"allowPrerelease": false
},
"msbuild-sdks": {
"Uno.Sdk": "5.6.0-dev.250",
"Microsoft.Build.NoTargets": "3.7.56"
}
}
"msbuild-sdks": {
"Uno.Sdk": "5.6.0-dev.264",
"Microsoft.Build.NoTargets": "3.7.56"
}
}
2 changes: 1 addition & 1 deletion src/app/MZikmund.App.Core/Services/Account/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private async Task EnsureIdentityClientAsync()
_identityClient = PublicClientApplicationBuilder
.Create(AuthenticationConstants.ApplicationId)
.WithAuthority(AzureCloudInstance.AzurePublic, AuthenticationConstants.TenantId)
.WithRedirectUri("https://login.microsoftonline.com/common/oauth2/nativeclient")
.WithRedirectUri("http://localhost")
.WithUnoHelpers()
.Build();

Expand Down
4 changes: 4 additions & 0 deletions src/app/MZikmund.App/MZikmund.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
</UnoFeatures>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Templates\PostPreviewTemplate.html" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MZikmund.App.Core\MZikmund.App.Core.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public PostEditorView()
{
InitializeComponent();
// Read the template from the embedded resource
_postPreviewTemplate = typeof(PostEditorView).Assembly.GetManifestResourceStream("MZikmund.App.Assets.PostPreviewTemplate.html")!.ReadToEnd()!;
_postPreviewTemplate = typeof(PostEditorView).Assembly.GetManifestResourceStream("MZikmund.App.Templates.PostPreviewTemplate.html")!.ReadToEnd()!;
PreviewWebViewContainer.Content = _previewWebView = new WebView2();
this.Loaded += PostEditorView_Loaded;
this.Unloaded += PostEditorView_Unloaded;
Expand Down
2 changes: 1 addition & 1 deletion src/app/MZikmund.App/Views/PostView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public PostView()
{
InitializeComponent();
// Read the template from the embedded resource
_postPreviewTemplate = typeof(PostView).Assembly.GetManifestResourceStream("MZikmund.App.Assets.PostPreviewTemplate.html")?.ReadToEnd()!;
_postPreviewTemplate = typeof(PostView).Assembly.GetManifestResourceStream("MZikmund.App.Templates.PostPreviewTemplate.html")?.ReadToEnd()!;
PreviewWebViewContainer.Content = _previewWebView = new WebView2();
this.Loaded += PostEditorView_Loaded;
this.Unloaded += PostEditorView_Unloaded;
Expand Down

0 comments on commit 1c3eceb

Please sign in to comment.