Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Manifest Models #21

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace jcdcdev.Umbraco.Core.Web.Models.Manifests;

public class ConditionManifest
{
public string Alias { get; set; }
public string Match { get; set; }
}
19 changes: 19 additions & 0 deletions src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace jcdcdev.Umbraco.Core.Web.Models.Manifests;

public class DashboardManifest : IManifest
{
public string Type => "dashboard";
public string Alias { get; set; }

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Name { get; set; }

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string ElementName { get; set; }

Check warning on line 8 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'ElementName' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 8 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'ElementName' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 8 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'ElementName' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Element { get; set; }

Check warning on line 9 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Element' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 9 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Element' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 9 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Element' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public int Weight { get; set; }
public MetaManifest Meta { get; set; }

Check warning on line 11 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Meta' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 11 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Meta' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 11 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Meta' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public ConditionManifest[] Conditions { get; set; }

Check warning on line 12 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Conditions' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 12 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Conditions' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 12 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Conditions' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

public class MetaManifest
{
public string Label { get; set; }

Check warning on line 16 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Label' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 16 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Label' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 16 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/DashboardManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Label' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Pathname { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace jcdcdev.Umbraco.Core.Web.Models.Manifests;

public class EntryPointManifest : IManifest
{
public string Name { get; set; }

Check warning on line 5 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 5 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 5 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Alias { get; set; }

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 6 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Js { get; set; }

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Js' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Js' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 7 in src/jcdcdev.Umbraco.Core/Web/Models/Manifests/EntryPointManifest.cs

View workflow job for this annotation

GitHub Actions / release

Non-nullable property 'Js' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Type => "entryPoint";
}
6 changes: 6 additions & 0 deletions src/jcdcdev.Umbraco.Core/Web/Models/Manifests/IManifest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace jcdcdev.Umbraco.Core.Web.Models.Manifests;

public interface IManifest
{
public string Type { get; }
}