Skip to content

Commit 8c4b467

Browse files
committed
Updates to default settings
1 parent 3351ef9 commit 8c4b467

File tree

9 files changed

+10
-21
lines changed

9 files changed

+10
-21
lines changed

Blogifier.Core/Blogifier.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
55
<Product>Blogifier.Core</Product>
6-
<AssemblyVersion>1.4.9.3</AssemblyVersion>
7-
<FileVersion>1.4.9.3</FileVersion>
8-
<Version>1.4.9.3</Version>
6+
<AssemblyVersion>1.4.9.4</AssemblyVersion>
7+
<FileVersion>1.4.9.4</FileVersion>
8+
<Version>1.4.9.4</Version>
99
<Authors>blogifierdotnet</Authors>
1010
<Company>Blogifier</Company>
1111
<Description>Blogifier.Core will add full-featured, multi-user blog to your ASP.NET Core application. Along with administration panel to create, update and publish posts, upload files and images, expose RSS feed to subscribers and more.</Description>

Blogifier.Core/Common/ApplicationSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class ApplicationSettings
2525
public static string ProfileAvatar { get; set; } = "/embedded/lib/img/avatar.jpg";
2626

2727
public static string PkgSettingsLayout { get; set; } = "~/Views/Blogifier/Admin/_Layout/_PackagesSettings.cshtml";
28+
public static string SupportedStorageFiles { get; set; } = "zip,txt,mp3,mp4,pdf,doc,docx,xls,xlsx,xml";
2829

2930
#endregion
3031

Blogifier.Core/Common/BlogSettings.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class BlogSettings
99
public static string Description { get; set; } = "Short description of the blog";
1010
public static string Logo { get; set; } = "/embedded/lib/img/logo.png";
1111
public static string Cover { get; set; } = "/embedded/lib/img/cover.png";
12-
public static string Theme { get; set; } = "OneFour";
12+
public static string Theme { get; set; } = "Standard";
1313
public static string Head { get; set; } = "";
1414
public static string Footer { get; set; } = "";
1515

@@ -18,8 +18,6 @@ public class BlogSettings
1818
// posts
1919
public static int ItemsPerPage { get; set; } = 10;
2020
public static string PostCover { get; set; } = "/embedded/lib/img/cover.png";
21-
public static string PostFooter { get; set; } = "";
22-
23-
public static string SupportedStorageFiles { get; set; } = "zip,txt,mp3,mp4,pdf,doc,docx,xls,xlsx,xml";
21+
public static string PostFooter { get; set; } = "";
2422
}
2523
}

Blogifier.Core/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static void LoadFromConfigFile(IConfiguration config)
219219
ApplicationSettings.PkgSettingsLayout = section.GetValue<string>("PkgSettingsLayout");
220220

221221
if (section["SupportedStorageFiles"] != null)
222-
BlogSettings.SupportedStorageFiles = section.GetValue<string>("SupportedStorageFiles");
222+
ApplicationSettings.SupportedStorageFiles = section.GetValue<string>("SupportedStorageFiles");
223223

224224
// troubleshooting
225225

Blogifier.Core/Services/Syndication/Rss/RssService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async Task AddCategories(FeedItem item, int blogId)
331331

332332
bool ValidFileType(string file)
333333
{
334-
var extentions = BlogSettings.SupportedStorageFiles.Split(',').ToList();
334+
var extentions = ApplicationSettings.SupportedStorageFiles.Split(',').ToList();
335335
foreach (var ext in extentions)
336336
{
337337
if (file.EndsWith("." + ext, StringComparison.OrdinalIgnoreCase))

Blogifier.Core/Views/Embedded/Admin/Settings/About.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</li>
7171
<li>
7272
<label>SupportedStorageFiles</label>
73-
<p>@BlogSettings.SupportedStorageFiles</p>
73+
<p>@ApplicationSettings.SupportedStorageFiles</p>
7474
</li>
7575
<li>
7676
<label>BlogTheme</label>

Blogifier.Core/Views/Embedded/Admin/_Layout/_Settings.cshtml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
<li is-active-route asp-controller="Settings" asp-action="ChangePassword">
2525
<a asp-controller="Settings" asp-action="ChangePassword">Password</a>
2626
</li>
27-
@if (Model.Profile.IsAdmin)
28-
{
29-
<li is-active-route asp-controller="Settings" asp-action="Users">
30-
<a asp-controller="Settings" asp-action="Users">Users</a>
31-
</li>
32-
}
3327
</ul>
3428
@if (Model.Profile.IsAdmin)
3529
{

Blogifier.Web/Views/Blogifier/Admin/Packages/Widgets.cshtml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ else
8282
<td>Updated</td>
8383
<td class="bf-package-info-date"></td>
8484
</tr>
85-
@*<tr>
86-
<td>Installs</td>
87-
<td class="bf-package-info-installs"></td>
88-
</tr>*@
8985
<tr>
9086
<td>Developer</td>
9187
<td class="bf-package-info-developer"></td>

Blogifier.Web/Views/Blogifier/Admin/Settings/About.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</li>
7171
<li>
7272
<label>SupportedStorageFiles</label>
73-
<p>@BlogSettings.SupportedStorageFiles</p>
73+
<p>@ApplicationSettings.SupportedStorageFiles</p>
7474
</li>
7575
<li>
7676
<label>BlogTheme</label>

0 commit comments

Comments
 (0)