GetCatalogLeaf(string id, string version, string lower)
{
return dbContext.PackageVersions
diff --git a/src/isnd/ViewModels/PackageRegistrationViewModel.cs b/src/isnd/ViewModels/PackageRegistrationViewModel.cs
new file mode 100644
index 0000000..7f410e8
--- /dev/null
+++ b/src/isnd/ViewModels/PackageRegistrationViewModel.cs
@@ -0,0 +1,45 @@
+using isnd.Data.Packages;
+
+namespace isnd.ViewModels
+{
+ public class RegistrationLeaf
+ {
+ /*
+@id string yes The URL to the registration leaf
+catalogEntry object yes The catalog entry containing the package metadata
+packageContent string yes The URL to the package content (.nupkg)
+ */
+ public static RegistrationLeaf FromPackage(Package p)
+ {
+ RegistrationLeaf v = new RegistrationLeaf
+ {
+
+ };
+ return v;
+ }
+ }
+ public class CatalogEntry
+ {
+ /*
+ @id string yes The URL to the document used to produce this object
+authors string or array of strings no
+dependencyGroups array of objects no The dependencies of the package, grouped by target framework
+deprecation object no The deprecation associated with the package
+description string no
+iconUrl string no
+id string yes The ID of the package
+licenseUrl string no
+licenseExpression string no
+listed boolean no Should be considered as listed if absent
+minClientVersion string no
+projectUrl string no
+published string no A string containing a ISO 8601 timestamp of when the package was published
+requireLicenseAcceptance boolean no
+summary string no
+tags string or array of string no
+title string no
+version string yes The full version string after normalization
+vulnerabilities array of objects no The security vulnerabilities of the package
+ */
+ }
+}
\ No newline at end of file
diff --git a/src/isnd/Views/PackageVersion/Index.cshtml b/src/isnd/Views/PackageVersion/Index.cshtml
index 4f13d48..7e90861 100644
--- a/src/isnd/Views/PackageVersion/Index.cshtml
+++ b/src/isnd/Views/PackageVersion/Index.cshtml
@@ -43,7 +43,7 @@
@foreach (var item in Model.Versions) {
- @Html.DisplayFor(modelItem => item.Package.Id)
+ @Html.DisplayFor(modelItem => item.PackageId)
nuget
diff --git a/src/isnd/Views/Packages/Index.cshtml b/src/isnd/Views/Packages/Index.cshtml
index 1b63981..ee1536d 100644
--- a/src/isnd/Views/Packages/Index.cshtml
+++ b/src/isnd/Views/Packages/Index.cshtml
@@ -1,4 +1,4 @@
-@model PackageIndexViewModel
+@model PackageRegistrationIndexViewModel
@{
ViewData["Title"] = "Index";
@@ -28,7 +28,7 @@
@Html.DisplayNameFor(model => model.Data[0].Id)
|
- @Html.DisplayNameFor(model => model.Data[0].Description)
+ @Html.DisplayNameFor(model => model.Data[0].Entry.Description)
|
|
@@ -41,7 +41,7 @@
- @Html.DisplayFor(modelItem => item.Description)
+ @Html.DisplayFor(modelItem => item.Entry.Description)
|
@Html.ActionLink("Details", "Details", new { pkgid = item.Id })
diff --git a/src/isnd/Views/Shared/_Layout.cshtml b/src/isnd/Views/Shared/_Layout.cshtml
index ecb7e94..7f58efa 100644
--- a/src/isnd/Views/Shared/_Layout.cshtml
+++ b/src/isnd/Views/Shared/_Layout.cshtml
@@ -6,6 +6,7 @@
@ViewData["Title"] - isnd
+
diff --git a/src/isnd/Views/_ViewImports.cshtml b/src/isnd/Views/_ViewImports.cshtml
index d966b77..9f3044d 100644
--- a/src/isnd/Views/_ViewImports.cshtml
+++ b/src/isnd/Views/_ViewImports.cshtml
@@ -1,4 +1,5 @@
@using isnd.Data
@using isnd.ViewModels
@using isnd.Helpers
+@using isnd.Data.Catalog;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/src/isnd/wwwroot/css/site.css b/src/isnd/wwwroot/css/site.css
index 85e5ce6..62817e8 100644
--- a/src/isnd/wwwroot/css/site.css
+++ b/src/isnd/wwwroot/css/site.css
@@ -7848,3 +7848,6 @@ a.text-dark:hover, a.text-dark:focus {
.fa-copy {
cursor: copy; }
+
+.border-top.footer.text-muted {
+ padding: 1em; }
diff --git a/src/isnd/wwwroot/css/site.scss b/src/isnd/wwwroot/css/site.scss
index 7da0fd0..7c7c09e 100644
--- a/src/isnd/wwwroot/css/site.scss
+++ b/src/isnd/wwwroot/css/site.scss
@@ -111,3 +111,8 @@ background-color: black;
.fa-copy {
cursor: copy;
}
+
+.border-top.footer.text-muted {
+ padding: 1em;
+}
+
|