-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from fluentcms/183-seeddata-cleanup
#183 default data loader
- Loading branch information
Showing
12 changed files
with
94 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using FluentCMS.Entities; | ||
|
||
namespace FluentCMS.Api; | ||
|
||
public class DefaultData | ||
{ | ||
public required Host Host { get; set; } | ||
public required DefaultUser SuperAdmin { get; set; } | ||
public required DefaultUser Admin { get; set; } | ||
public required Role AdminRole { get; set; } | ||
public required Site Site { get; set; } | ||
public required List<Page> Pages { get; set; } | ||
|
||
public class DefaultUser | ||
{ | ||
public required string UserName { get; set; } | ||
public required string Email { get; set; } | ||
public required string Password { get; set; } | ||
} | ||
} |
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
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
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
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,44 @@ | ||
{ | ||
"Host": { | ||
"SuperUsers": [ "superadmin" ] | ||
}, | ||
"SuperAdmin": { | ||
"Username": "superadmin", | ||
"Password": "Passw0rd!", | ||
"Email": "[email protected]" | ||
}, | ||
"Admin": { | ||
"Username": "admin", | ||
"Password": "Passw0rd!", | ||
"Email": "[email protected]" | ||
}, | ||
"Site": { | ||
"Name": "My First Site", | ||
"Description": "This is my first site", | ||
"Urls": [ "http://www.myfirstsite.com" ] | ||
}, | ||
"AdminRole": { | ||
"Name": "Administrators", | ||
"Description": "Administrator roles for the site" | ||
}, | ||
"Pages": [ | ||
{ | ||
"Title": "Home", | ||
"Description": "This is my home page", | ||
"Path": "/", | ||
"Order": 0 | ||
}, | ||
{ | ||
"Title": "About me", | ||
"Description": "This is about me page", | ||
"Path": "/about-me", | ||
"Order": 1 | ||
}, | ||
{ | ||
"Title": "Contact me", | ||
"Description": "This is contact me page", | ||
"Path": "/contact", | ||
"Order": 2 | ||
} | ||
] | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.