>(System.IO.File.ReadAllText(Path.Combine(assetpath, "assets.json")));
+ assets.Reverse();
foreach (string asset in assets)
{
// legacy support for assets that were stored as absolute paths
@@ -70,6 +71,10 @@ namespace Oqtane.Controllers
if (System.IO.File.Exists(filepath))
{
System.IO.File.Delete(filepath);
+ if (!Directory.EnumerateFiles(Path.GetDirectoryName(filepath)).Any())
+ {
+ Directory.Delete(Path.GetDirectoryName(filepath));
+ }
}
}
_logger.Log(LogLevel.Information, this, LogFunction.Delete, "Theme Assets Removed For {ThemeName}", theme.ThemeName);
diff --git a/Oqtane.Server/Infrastructure/InstallationManager.cs b/Oqtane.Server/Infrastructure/InstallationManager.cs
index f14e8ae1..3b627c70 100644
--- a/Oqtane.Server/Infrastructure/InstallationManager.cs
+++ b/Oqtane.Server/Infrastructure/InstallationManager.cs
@@ -126,6 +126,10 @@ namespace Oqtane.Infrastructure
{
File.Delete(manifestpath);
}
+ if (!Directory.Exists(Path.GetDirectoryName(manifestpath)))
+ {
+ Directory.CreateDirectory(Path.GetDirectoryName(manifestpath));
+ }
File.WriteAllText(manifestpath, JsonSerializer.Serialize(assets));
}
}
diff --git a/Oqtane.Server/Infrastructure/SiteTemplates/DefaultSiteTemplate.cs b/Oqtane.Server/Infrastructure/SiteTemplates/DefaultSiteTemplate.cs
index 3dd8ab3f..e21629d8 100644
--- a/Oqtane.Server/Infrastructure/SiteTemplates/DefaultSiteTemplate.cs
+++ b/Oqtane.Server/Infrastructure/SiteTemplates/DefaultSiteTemplate.cs
@@ -65,7 +65,7 @@ namespace Oqtane.SiteTemplates
new Permission(PermissionNames.View, RoleNames.Admin, true),
new Permission(PermissionNames.Edit, RoleNames.Admin, true)
}.EncodePermissions(),
- Content = "Copyright (c) 2019-2020 .NET Foundation
" +
+ Content = "Copyright (c) 2019-2021 .NET Foundation
" +
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
" +
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
" +
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"
diff --git a/Oqtane.Server/Oqtane.Server.csproj b/Oqtane.Server/Oqtane.Server.csproj
index 474b9335..4a6802f5 100644
--- a/Oqtane.Server/Oqtane.Server.csproj
+++ b/Oqtane.Server/Oqtane.Server.csproj
@@ -3,7 +3,7 @@
net5.0
Debug;Release
- 2.0.0
+ 2.0.1
Oqtane
Shaun Walker
.NET Foundation
@@ -12,7 +12,7 @@
https://www.oqtane.org
https://github.com/oqtane
Git
- https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.0
+ https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.1
Oqtane
true
diff --git a/Oqtane.Shared/Oqtane.Shared.csproj b/Oqtane.Shared/Oqtane.Shared.csproj
index 976f255b..65df5df5 100644
--- a/Oqtane.Shared/Oqtane.Shared.csproj
+++ b/Oqtane.Shared/Oqtane.Shared.csproj
@@ -3,7 +3,7 @@
net5.0
Debug;Release
- 2.0.0
+ 2.0.1
Oqtane
Shaun Walker
.NET Foundation
@@ -12,7 +12,7 @@
https://www.oqtane.org
https://github.com/oqtane
Git
- https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.0
+ https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.1
Oqtane
true
diff --git a/Oqtane.Shared/Shared/Constants.cs b/Oqtane.Shared/Shared/Constants.cs
index 51e71450..1b05a7e7 100644
--- a/Oqtane.Shared/Shared/Constants.cs
+++ b/Oqtane.Shared/Shared/Constants.cs
@@ -5,8 +5,8 @@ namespace Oqtane.Shared {
public class Constants {
public const string PackageId = "Oqtane.Framework";
- public const string Version = "2.0.0";
- public const string ReleaseVersions = "1.0.0,1.0.1,1.0.2,1.0.3,1.0.4,2.0.0";
+ public const string Version = "2.0.1";
+ public const string ReleaseVersions = "1.0.0,1.0.1,1.0.2,1.0.3,1.0.4,2.0.0,2.0.1";
public const string PageComponent = "Oqtane.UI.ThemeBuilder, Oqtane.Client";
public const string ContainerComponent = "Oqtane.UI.ContainerBuilder, Oqtane.Client";
@@ -55,8 +55,8 @@ namespace Oqtane.Shared {
[Obsolete(RoleObsoleteMessage)]
public const string RegisteredRole = RoleNames.Registered;
- public const string ImageFiles = "jpg,jpeg,jpe,gif,bmp,png,svg,ico";
- public const string UploadableFiles = "jpg,jpeg,jpe,gif,bmp,png,svg,ico,mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg,csv";
+ public const string ImageFiles = "jpg,jpeg,jpe,gif,bmp,png,ico";
+ public const string UploadableFiles = ImageFiles + ",mov,wmv,avi,mp4,mp3,doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,nupkg,csv";
public const string ReservedDevices = "CON,NUL,PRN,COM0,COM1,COM2,COM3,COM4,COM5,COM6,COM7,COM8,COM9,LPT0,LPT1,LPT2,LPT3,LPT4,LPT5,LPT6,LPT7,LPT8,LPT9,CONIN$,CONOUT$";
public static readonly char[] InvalidFileNameChars =
diff --git a/Oqtane.Test/Oqtane.Test.csproj b/Oqtane.Test/Oqtane.Test.csproj
index 78c230db..da295fb4 100644
--- a/Oqtane.Test/Oqtane.Test.csproj
+++ b/Oqtane.Test/Oqtane.Test.csproj
@@ -3,7 +3,7 @@
net5.0
Debug;Release
- 2.0.0
+ 2.0.1
Oqtane
Shaun Walker
.NET Foundation
@@ -12,7 +12,7 @@
https://www.oqtane.org
https://github.com/oqtane
Git
- https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.0
+ https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.1
Oqtane
false
diff --git a/Oqtane.Upgrade/Oqtane.Upgrade.csproj b/Oqtane.Upgrade/Oqtane.Upgrade.csproj
index cd3d0a4c..f67d23d2 100644
--- a/Oqtane.Upgrade/Oqtane.Upgrade.csproj
+++ b/Oqtane.Upgrade/Oqtane.Upgrade.csproj
@@ -3,7 +3,7 @@
net5.0
Exe
- 2.0.0
+ 2.0.1
Oqtane
Shaun Walker
.NET Foundation
@@ -12,7 +12,7 @@
https://www.oqtane.org
https://github.com/oqtane
Git
- https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.0
+ https://github.com/oqtane/oqtane.framework/releases/tag/v2.0.1
Oqtane
false
diff --git a/README.md b/README.md
index 5d0bb04c..5788b1db 100644
--- a/README.md
+++ b/README.md
@@ -51,8 +51,8 @@ This project is a work in progress and the schedule for implementing enhancement
V.2.1.0 ( Q1 2021 )
- [x] Complete Static Localization of Admin UI
-- [ ] Cross Platform Database Support ( ie. SQLite )
-- [ ] EF Core Migrations for Database Installation/Upgrade
+- [ ] Cross Platform Database Support ( ie. SQLite ) - see [#964](https://github.com/oqtane/oqtane.framework/discussions/964)
+- [ ] EF Core Migrations for Database Installation/Upgrade - see [#964](https://github.com/oqtane/oqtane.framework/discussions/964)
V.2.0.0 ( released in conjuntion with .NET 5 on Nov 11, 2020 )
- [x] Migration to .NET 5