-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrated radzen layout, fixed cors issue, added save form button
- Loading branch information
Showing
14 changed files
with
148 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace FormBuilder.API.Configurations; | ||
|
||
public static class CorsConfiguration | ||
{ | ||
public static void ConfigureCors(this WebApplicationBuilder builder) | ||
{ | ||
builder.Services.AddCors(options => | ||
{ | ||
options.AddPolicy("AnyCors", cors => | ||
{ | ||
cors.AllowAnyOrigin() | ||
.AllowAnyHeader() | ||
.AllowAnyMethod(); | ||
}); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
@inherits LayoutComponentBase | ||
|
||
<div class="page"> | ||
<div class="sidebar"> | ||
<NavMenu/> | ||
</div> | ||
|
||
<main class="content"> | ||
@Body | ||
</main> | ||
<PageTitle>Blazor Form Builder</PageTitle> | ||
<RadzenComponents /> | ||
|
||
<RadzenLayout> | ||
<RadzenHeader> | ||
<RadzenRow class="h-100"> | ||
<RadzenColumn class="d-flex" Size="3"> | ||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0.5rem"> | ||
<RadzenSidebarToggle Click="@ToggleSidebar"/> | ||
<RadzenText class="ms-2" Text="Blazor Form Builder" TextStyle="TextStyle.H5" /> | ||
</RadzenStack> | ||
</RadzenColumn> | ||
</RadzenRow> | ||
</RadzenHeader> | ||
|
||
<RadzenSidebar @bind-Expanded="@_sidebarExpanded"> | ||
<RadzenPanelMenu> | ||
<RadzenPanelMenuItem Text="Designer" Icon="home" Path="/designer"/> | ||
<RadzenPanelMenuItem Text="Renderer" Icon="build" Path="/renderer"/> | ||
</RadzenPanelMenu> | ||
</RadzenSidebar> | ||
|
||
<RadzenBody> | ||
<div class="rz-p-5"> | ||
@Body | ||
</div> | ||
</RadzenBody> | ||
</RadzenLayout> | ||
|
||
<div id="blazor-error-ui"> | ||
An unhandled error has occurred. | ||
<a href="" class="reload">Reload</a> | ||
<a class="dismiss">🗙</a> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace FormBuilder.DesignerApp.Layout; | ||
|
||
public partial class MainLayout : LayoutComponentBase | ||
{ | ||
private bool _sidebarExpanded = true; | ||
|
||
private void ToggleSidebar() | ||
{ | ||
_sidebarExpanded = !_sidebarExpanded; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.