diff --git a/package.json b/package.json index 05c1212..ebafdb7 100644 --- a/package.json +++ b/package.json @@ -70,4 +70,4 @@ "typescript": "^5" }, "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a" -} \ No newline at end of file +} diff --git a/src/sanity/schemaTypes/Finance.ts b/src/sanity/schemaTypes/Finance.ts new file mode 100644 index 0000000..af2a35e --- /dev/null +++ b/src/sanity/schemaTypes/Finance.ts @@ -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.', + }), + ], + }, + ], + }), + ], +}); diff --git a/src/sanity/schemaTypes/building_and_works.ts b/src/sanity/schemaTypes/building_and_works.ts new file mode 100644 index 0000000..646f8d3 --- /dev/null +++ b/src/sanity/schemaTypes/building_and_works.ts @@ -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', + }), + ], + }, + ], + }), + ], +}); diff --git a/src/sanity/schemaTypes/cgc.ts b/src/sanity/schemaTypes/cgc.ts new file mode 100644 index 0000000..39a4196 --- /dev/null +++ b/src/sanity/schemaTypes/cgc.ts @@ -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', + }), + ], + }, + ], + }), + ], +}); diff --git a/src/sanity/schemaTypes/index.ts b/src/sanity/schemaTypes/index.ts index cb048fe..4bf0e7e 100644 --- a/src/sanity/schemaTypes/index.ts +++ b/src/sanity/schemaTypes/index.ts @@ -38,6 +38,10 @@ import { ContactData, ContactInf, } from './generalInfo/ContactInfo'; +import { building_and_works } from './building_and_works'; +import { cgc } from './cgc'; +import { Finance } from './Finance'; +import { student_coordinators } from './student_coordinators'; export const schema: { types: SchemaTypeDefinition[] } = { types: [ @@ -73,17 +77,18 @@ export const schema: { types: SchemaTypeDefinition[] } = { Club, NIRF, Tender, - AnnualReport, - ContactInf, ContactCategory, ContactData, - EventInfo, Gallery, MainCarouselImage, ProgramCards, ProgramsType, + building_and_works, + cgc, + Finance, + student_coordinators, ], }; diff --git a/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts b/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts index f2316cf..24fb87d 100644 --- a/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts +++ b/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts @@ -1,7 +1,7 @@ import { defineType, defineField } from 'sanity'; export const krcDataTel = defineType({ - name: 'krcDataTEL', + name: 'krcDataTel', title: 'Krc Data TEL(First three)', type: 'document', fields: [ diff --git a/src/sanity/schemaTypes/student_coordinators.ts b/src/sanity/schemaTypes/student_coordinators.ts new file mode 100644 index 0000000..f816f43 --- /dev/null +++ b/src/sanity/schemaTypes/student_coordinators.ts @@ -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', + }), + ], + }, + ], + }), + ], +}); diff --git a/src/sanity/structure.ts b/src/sanity/structure.ts index ce42013..29236e9 100644 --- a/src/sanity/structure.ts +++ b/src/sanity/structure.ts @@ -19,8 +19,8 @@ export const structure: StructureResolver = (S) => .title('About') .child(S.documentTypeList('about').title('About')), S.listItem() - .title('Chairperson') - .child(S.documentTypeList('chairPerson').title('Chairperson')), + .title('Chair Person') + .child(S.documentTypeList('chairPerson').title('Chair Person')), S.listItem() .title('Contact') .child(S.documentTypeList('contact').title('Contact')), @@ -35,6 +35,23 @@ export const structure: StructureResolver = (S) => S.list() .title('Academics') .items([ + S.listItem() + .title('Seat Structure') + .child( + S.documentTypeList('seatStructure').title('Seat Structure') + ), + S.listItem() + .title('Links Structure') + .child( + S.documentTypeList('linksStructure').title('Links Structure') + ), + S.listItem() + .title('Description Structure') + .child( + S.documentTypeList('descriptionStructure').title( + 'Description Structure' + ) + ), S.listItem() .title('CSE Academic') .child(S.documentTypeList('cseDetail').title('CSE')), @@ -83,7 +100,7 @@ export const structure: StructureResolver = (S) => .child(S.documentTypeList('krcData').title('KRC Data')), S.listItem() .title('KRC Data Tel') - .child(S.documentTypeList('krcDataTEL').title('KRC Data Tel')), + .child(S.documentTypeList('krcDataTel').title('KRC Data Tel')), S.listItem() .title('KRC Data Tel Full') .child(