-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Shardendu Mishra <shardendumishrabrave@gmail.com>
- Loading branch information
1 parent
cfdfea2
commit 7a9db08
Showing
5 changed files
with
193 additions
and
0 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,47 @@ | ||
import { defineField, defineType } from 'sanity'; | ||
|
||
export const Finance = defineType({ | ||
title: 'finance', | ||
name: 'Finance', | ||
type: 'document', | ||
fields: [ | ||
defineField({ | ||
name: 'title', | ||
title: 'Group Title', | ||
type: 'string', | ||
description: | ||
'Title of the profile group, e.g., "Members" or "Special Invitee".', | ||
}), | ||
defineField({ | ||
name: 'profiles', | ||
title: 'Profiles', | ||
type: 'array', | ||
of: [ | ||
{ | ||
type: 'object', | ||
fields: [ | ||
defineField({ | ||
name: 'content', | ||
title: 'Content', | ||
type: 'array', | ||
of: [{ type: 'string' }], | ||
description: 'Roles or descriptions for the profile.', | ||
}), | ||
defineField({ | ||
name: 'imageURL', | ||
title: 'Image URL', | ||
type: 'string', | ||
description: 'URL of the profile image (can be empty).', | ||
}), | ||
defineField({ | ||
name: 'title', | ||
title: 'Profile Name', | ||
type: 'string', | ||
description: 'Name of the person.', | ||
}), | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
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,46 @@ | ||
import { defineField, defineType } from 'sanity'; | ||
|
||
export const building_and_works = defineType({ | ||
title: 'Building and Works', | ||
name: 'buildingAndWorks', | ||
type: 'document', | ||
fields: [ | ||
defineField({ | ||
name: 'title', | ||
title: 'Title', | ||
type: 'string', | ||
description: 'Group title (optional)', | ||
}), | ||
defineField({ | ||
name: 'profiles', | ||
title: 'Profiles', | ||
type: 'array', | ||
of: [ | ||
{ | ||
type: 'object', | ||
fields: [ | ||
defineField({ | ||
name: 'content', | ||
title: 'Content', | ||
type: 'array', | ||
of: [{ type: 'string' }], | ||
description: 'Roles or descriptions for the profile', | ||
}), | ||
defineField({ | ||
name: 'imageURL', | ||
title: 'Image URL', | ||
type: 'url', | ||
description: 'Profile image URL (optional)', | ||
}), | ||
defineField({ | ||
name: 'title', | ||
title: 'Profile Name', | ||
type: 'string', | ||
description: 'Name of the person', | ||
}), | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
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,46 @@ | ||
import { defineField, defineType } from 'sanity'; | ||
|
||
export const cgc = defineType({ | ||
title: 'cgc', | ||
name: 'Cgc', | ||
type: 'document', | ||
fields: [ | ||
defineField({ | ||
name: 'title', | ||
title: 'Title', | ||
type: 'string', | ||
description: 'Group title (can be empty)', | ||
}), | ||
defineField({ | ||
name: 'profiles', | ||
title: 'Profiles', | ||
type: 'array', | ||
of: [ | ||
{ | ||
type: 'object', | ||
fields: [ | ||
defineField({ | ||
name: 'content', | ||
title: 'Content', | ||
type: 'array', | ||
of: [{ type: 'string' }], | ||
description: 'Roles or descriptions for the profile', | ||
}), | ||
defineField({ | ||
name: 'imageURL', | ||
title: 'Image URL', | ||
type: 'string', | ||
description: 'URL of the profile image', | ||
}), | ||
defineField({ | ||
name: 'title', | ||
title: 'Profile Name', | ||
type: 'string', | ||
description: 'Name of the person', | ||
}), | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
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,46 @@ | ||
import { defineField, defineType } from 'sanity'; | ||
|
||
export const student_coordinators = defineType({ | ||
title: 'student_coordinators', | ||
name: 'student_Coordinators', | ||
type: 'document', | ||
fields: [ | ||
defineField({ | ||
name: 'title', | ||
title: 'Title', | ||
type: 'string', | ||
description: 'Group title (can be empty)', | ||
}), | ||
defineField({ | ||
name: 'profiles', | ||
title: 'Profiles', | ||
type: 'array', | ||
of: [ | ||
{ | ||
type: 'object', | ||
fields: [ | ||
defineField({ | ||
name: 'content', | ||
title: 'Content', | ||
type: 'array', | ||
of: [{ type: 'string' }], | ||
description: 'Roles or descriptions for the profile', | ||
}), | ||
defineField({ | ||
name: 'imageURL', | ||
title: 'Image URL', | ||
type: 'string', | ||
description: 'Profile image URL', | ||
}), | ||
defineField({ | ||
name: 'title', | ||
title: 'Profile Name', | ||
type: 'string', | ||
description: 'Name of the person', | ||
}), | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
}); |