diff --git a/global.json b/global.json index 1243cf82..d495e625 100644 --- a/global.json +++ b/global.json @@ -2,8 +2,8 @@ "sdk": { "allowPrerelease": false }, - "msbuild-sdks": { - "Uno.Sdk": "5.6.0-dev.250", - "Microsoft.Build.NoTargets": "3.7.56" - } -} \ No newline at end of file + "msbuild-sdks": { + "Uno.Sdk": "5.6.0-dev.264", + "Microsoft.Build.NoTargets": "3.7.56" + } +} diff --git a/src/app/MZikmund.App.Core/Services/Account/UserService.cs b/src/app/MZikmund.App.Core/Services/Account/UserService.cs index 30aa2fa1..f5c51164 100644 --- a/src/app/MZikmund.App.Core/Services/Account/UserService.cs +++ b/src/app/MZikmund.App.Core/Services/Account/UserService.cs @@ -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(); diff --git a/src/app/MZikmund.App/MZikmund.App.csproj b/src/app/MZikmund.App/MZikmund.App.csproj index a1718877..a68b6f0f 100644 --- a/src/app/MZikmund.App/MZikmund.App.csproj +++ b/src/app/MZikmund.App/MZikmund.App.csproj @@ -42,6 +42,10 @@ + + + + diff --git a/src/app/MZikmund.App/Assets/PostPreviewTemplate.html b/src/app/MZikmund.App/Templates/PostPreviewTemplate.html similarity index 100% rename from src/app/MZikmund.App/Assets/PostPreviewTemplate.html rename to src/app/MZikmund.App/Templates/PostPreviewTemplate.html diff --git a/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs b/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs index c0a1e6d6..3dc420a2 100644 --- a/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs +++ b/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs @@ -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; diff --git a/src/app/MZikmund.App/Views/PostView.xaml.cs b/src/app/MZikmund.App/Views/PostView.xaml.cs index f2151839..f9ad75c4 100644 --- a/src/app/MZikmund.App/Views/PostView.xaml.cs +++ b/src/app/MZikmund.App/Views/PostView.xaml.cs @@ -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;