Skip to content

Commit

Permalink
add dev settings and feature flags for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Aug 30, 2024
1 parent bb9c3e1 commit abd8d32
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
20 changes: 13 additions & 7 deletions src/web/Jordnaer/Pages/Shared/TopBar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
<MudAppBar Fixed="false" Elevation="0" Dense Style="@($"background: {JordnaerTheme.CustomTheme.PaletteLight.BackgroundGray}")">
<MudIconButton Href="/" title="Forsiden" Icon="@Icons.Material.Filled.Home" />
<MudIconButton Href="/users" title="Personer" Icon="@Icons.Material.Filled.PersonSearch" />
<MudIconButton Href="/groups" title="Grupper" Icon="@Icons.Material.Filled.Groups" />
<MudIconButton Href="/groups" title="Grupper" Icon="@Icons.Material.Filled.Groups" />

<Feature Name="@FeatureFlags.Posts">
<MudIconButton Href="/posts" title="Opslag" Icon="@Icons.Material.Filled.Article" />
</Feature>

<AuthorizeView>
<Authorized>
<ChatNavLink />
</Authorized>
</AuthorizeView>

<MudSpacer />

<AuthorizeView>
<Authorized>
<ChatNavLink />
</Authorized>
</AuthorizeView>
<MudSpacer />
<AuthorizeView>
<Authorized>
@* TODO: This doesn't look great as is. Rethink it and add it back?
Expand Down
21 changes: 21 additions & 0 deletions src/web/Jordnaer/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"FeatureManagement": {
"Contacts": false,
"Events": false,
"Posts": true,
"AccountSettings": false,
"NotificationSettings": false
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System.Net.Http": "Warning",
"Polly": "Warning",
"MudBlazor": "Information"
}
}
}
}
4 changes: 2 additions & 2 deletions src/web/Jordnaer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System.Net.Http": "Warning",
"Polly": "Warning",
"MudBlazor": "Information"
"MudBlazor": "Warning"
}
}
}
Expand Down

0 comments on commit abd8d32

Please sign in to comment.