Skip to content

Commit

Permalink
feat: add project ecosystem (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Jun 22, 2023
1 parent 8d7c055 commit 4ad69c1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deskStructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ export default S =>
.title('Project Activity')
.schemaType('projectActivity')
.child(S.documentTypeList('projectActivity').title('Project Activity')),
S.listItem()
.title('Project Ecosystem')
.schemaType('projectEcosystem')
.child(S.documentTypeList('projectEcosystem').title('Project Ecosystem')),
S.listItem()
.title('Project')
.schemaType('project')
Expand Down
18 changes: 18 additions & 0 deletions schemas/documents/shared/projectEcosystem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export default {
title: 'Project Ecosystem',
name: 'projectEcosystem',
type: 'document',
fields: [
{
title: 'Name',
name: 'name',
type: 'string',
validation: Rule => Rule.required(),
},
{
title: 'Icon',
name: 'icon',
type: 'image',
},
],
};
2 changes: 2 additions & 0 deletions schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import creditGenerationMethod from './documents/shared/creditGenerationMethod';
import ecologicalCreditCard from './documents/shared/ecologicalCreditCard';
import offsetMethod from './documents/shared/offsetMethod';
import projectActivity from './documents/shared/projectActivity';
import projectEcosystem from './documents/shared/projectEcosystem';
import project from './documents/shared/project';
import featuredProjectCard from './documents/shared/featuredProjectCard';
import partner from './documents/shared/partner';
Expand Down Expand Up @@ -317,6 +318,7 @@ export default [
presskitTimelineSection,
project,
projectActivity,
projectEcosystem,
projectDetails,
projectDetailsCard,
projectPage,
Expand Down

0 comments on commit 4ad69c1

Please sign in to comment.