Skip to content

Commit e4326ed

Browse files
committed
Some small cleanup
1 parent ce84d9e commit e4326ed

File tree

6 files changed

+1
-157
lines changed

6 files changed

+1
-157
lines changed

src/App/Pages/Admin/Settings/Theme.cshtml

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/App/app.db

0 Bytes
Binary file not shown.

src/App/wwwroot/widgets/newsletter/edit.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/App/wwwroot/widgets/newsletter/widget.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.2</TargetFramework>
5-
<Version>2.4.1.3</Version>
5+
<Version>2.4.1.4</Version>
66
</PropertyGroup>
77

88
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

src/Core/Services/StorageService.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public interface IStorageService
2929
IList<string> GetAssets(string path);
3030
IList<string> GetThemes();
3131
bool SelectTheme(string theme);
32-
IList<WidgetItem> GetWidgets(string theme);
3332

3433
string GetHtmlTemplate(string template);
3534

@@ -178,22 +177,6 @@ static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo target)
178177
file.CopyTo(Path.Combine(target.FullName, file.Name));
179178
}
180179

181-
public IList<WidgetItem> GetWidgets(string theme)
182-
{
183-
var widgets = new List<WidgetItem>();
184-
string jsonFile = $"{AppSettings.ContentRootPath}{_separator}Views{_separator}Themes{_separator}{theme}{_separator}{theme}.json";
185-
186-
if (File.Exists(jsonFile))
187-
{
188-
using (StreamReader r = new StreamReader(jsonFile))
189-
{
190-
string json = r.ReadToEnd();
191-
widgets = JsonConvert.DeserializeObject<List<WidgetItem>>(json);
192-
}
193-
}
194-
return widgets;
195-
}
196-
197180
public string GetThemeData(string theme)
198181
{
199182
string jsonFile = $"{AppSettings.WebRootPath}{_separator}themes{_separator}{theme}{_separator}assets{_separator}{Constants.ThemeDataFile}";

0 commit comments

Comments
 (0)