-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added import functionality for redirects module (#284)
* Draft * Added most logic * Cleanup / some improvemend in statusses / statii? * Minor changes based on pr feedback * Added check if url doesnt appear double in importfile * Added check for exact match --------- Co-authored-by: Ambert van Unen <[email protected]> Co-authored-by: Ambert <[email protected]>
- Loading branch information
1 parent
cc1ba69
commit 97d4600
Showing
14 changed files
with
640 additions
and
10 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
8 changes: 8 additions & 0 deletions
8
src/SeoToolkit.Umbraco.Redirects.Core/Constants/ImportConstants.cs
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,8 @@ | ||
namespace SeoToolkit.Umbraco.Redirects.Core.Constants; | ||
|
||
public class ImportConstants | ||
{ | ||
public const string SessionAlias = "uploadedImportRedirectsFile"; | ||
public const string SessionFileTypeAlias = "uploadedFileType"; | ||
public const string SessionDomainId = "selectedDomain"; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/SeoToolkit.Umbraco.Redirects.Core/Enumerators/ImportRedirectsFileExtension.cs
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,7 @@ | ||
namespace SeoToolkit.Umbraco.Redirects.Core.Enumerators; | ||
|
||
public enum ImportRedirectsFileExtension | ||
{ | ||
Csv, | ||
Excel | ||
} |
Oops, something went wrong.