-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
351e3f5
commit 0015a19
Showing
8 changed files
with
227 additions
and
14 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 @@ | ||
[{ title: "Waste handling and disposal", value: "waste-h-d" }]; |
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,47 @@ | ||
import { defineType } from "sanity"; | ||
|
||
export default defineType({ | ||
name: "assessor", | ||
title: "Assessor", | ||
description: "Information about an organization that assesses projects", | ||
description: | ||
"A profile containing information about an entity including name, avatar, and link", | ||
type: "document", | ||
preview: { | ||
select: { | ||
name: "name", | ||
}, | ||
prepare(selection) { | ||
return { | ||
title: selection.name || "", | ||
}; | ||
}, | ||
}, | ||
fields: [ | ||
{ | ||
type: "string", | ||
title: "Name", | ||
name: "name", | ||
validation: (r) => r.required(), | ||
}, | ||
{ | ||
type: "string", | ||
title: "Link", | ||
name: "link", | ||
}, | ||
{ | ||
type: "image", | ||
title: "Avatar", | ||
name: "avatar", | ||
}, | ||
{ | ||
type: "array", | ||
title: "Accreditations", | ||
name: "accreditations", | ||
of: [ | ||
{ type: "string", name: "name" }, | ||
{ type: "string", name: "link" }, | ||
], | ||
}, | ||
], | ||
}); |
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 @@ | ||
import { defineType } from "sanity"; | ||
|
||
export default defineType({ | ||
name: "developer", | ||
title: "Developer", | ||
description: "Information about an organization that develops projects", | ||
description: | ||
"A profile containing information about an entity including name, avatar, and link", | ||
type: "document", | ||
preview: { | ||
select: { | ||
name: "name", | ||
}, | ||
prepare(selection) { | ||
return { | ||
title: selection.name || "", | ||
}; | ||
}, | ||
}, | ||
fields: [ | ||
{ | ||
type: "string", | ||
title: "Name", | ||
name: "name", | ||
validation: (r) => r.required(), | ||
}, | ||
{ | ||
type: "string", | ||
title: "Link", | ||
name: "link", | ||
}, | ||
{ | ||
type: "image", | ||
title: "Avatar", | ||
name: "avatar", | ||
}, | ||
{ | ||
type: "array", | ||
title: "Carbonmark Handles", | ||
name: "handles", | ||
of: [{ type: "string" }], | ||
}, | ||
], | ||
}); |
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
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,36 @@ | ||
import { defineType } from "sanity"; | ||
|
||
export default defineType({ | ||
name: "standard", | ||
title: "Standard", | ||
description: "Information about a standard that applies to projects", | ||
type: "document", | ||
preview: { | ||
select: { | ||
name: "name", | ||
}, | ||
prepare(selection) { | ||
return { | ||
title: selection.name || "", | ||
}; | ||
}, | ||
}, | ||
fields: [ | ||
{ | ||
type: "string", | ||
title: "Name", | ||
name: "name", | ||
validation: (r) => r.required(), | ||
}, | ||
{ | ||
type: "string", | ||
title: "Link", | ||
name: "link", | ||
}, | ||
{ | ||
type: "image", | ||
title: "Logo", | ||
name: "logo", | ||
}, | ||
], | ||
}); |