Skip to content

Commit

Permalink
added schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJ104 committed Oct 14, 2024
1 parent d3a377b commit b25bd67
Show file tree
Hide file tree
Showing 42 changed files with 11,413 additions and 271 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ next-env.d.ts

# Local Netlify folder
.netlify

# auto-generated migrations
database/migrations/*update*
8,289 changes: 8,289 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions schema/about-us-chinese.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
const { ContentType, FieldType } = require('@include/hearth');

const aboutUs = new ContentType({
name: 'about-us-chinese',
singularDisplayName: 'About Us (Chinese)',
});

aboutUs
.createField({
name: 'page_title',
displayName: 'Page Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'page_subtitle',
displayName: 'Page Subtitle',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'commitment_statement',
displayName: 'Commitment Statement',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_1_title',
displayName: 'History Card 1: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_1_text',
displayName: 'History Card 1: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_2_title',
displayName: 'History Card 2: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_2_text',
displayName: 'History Card 2: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_3_title',
displayName: 'History Card 3: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_3_text',
displayName: 'History Card 3: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_4_title',
displayName: 'History Card 4: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_4_text',
displayName: 'History Card 4: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_5_title',
displayName: 'History Card 5: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_5_text',
displayName: 'History Card 5: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'sister_clinics_text',
displayName: '"Sister Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'sister_clinics',
displayName: 'Sister Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics_text',
displayName: '"UCD Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics',
displayName: 'UCD Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
});

module.exports = aboutUs;
112 changes: 112 additions & 0 deletions schema/about-us-english.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
const { ContentType, FieldType } = require('@include/hearth');

const aboutUs = new ContentType({
name: 'about-us-english',
singularDisplayName: 'About Us (English)',
});

aboutUs
.createField({
name: 'page_title',
displayName: 'Page Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'page_subtitle',
displayName: 'Page Subtitle',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'commitment_statement',
displayName: 'Commitment Statement',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_1_title',
displayName: 'History Card 1: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_1_text',
displayName: 'History Card 1: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_2_title',
displayName: 'History Card 2: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_2_text',
displayName: 'History Card 2: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_3_title',
displayName: 'History Card 3: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_3_text',
displayName: 'History Card 3: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_4_title',
displayName: 'History Card 4: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_4_text',
displayName: 'History Card 4: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_5_title',
displayName: 'History Card 5: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_5_text',
displayName: 'History Card 5: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'sister_clinics_text',
displayName: '"Sister Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'sister_clinics',
displayName: 'Sister Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics_text',
displayName: '"UCD Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics',
displayName: 'UCD Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
});

module.exports = aboutUs;
142 changes: 142 additions & 0 deletions schema/about-us-hmong.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
const { ContentType, FieldType } = require('@include/hearth');

const aboutUs = new ContentType({
name: 'about-us-hmong',
singularDisplayName: 'About Us (Hmong)',
});

aboutUs
.createField({
name: 'page_title',
displayName: 'Page Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'page_subtitle',
displayName: 'Page Subtitle',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'commitment_statement',
displayName: 'Commitment Statement',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_1_title',
displayName: 'History Card 1: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_1_text',
displayName: 'History Card 1: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_1_image',
displayName: 'History Card 1: Image',
type: FieldType.MEDIA_LIST,
required: true,
})
.createField({
name: 'history_card_2_title',
displayName: 'History Card 2: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_2_text',
displayName: 'History Card 2: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_2_image',
displayName: 'History Card 2: Image',
type: FieldType.MEDIA_LIST,
required: true,
})
.createField({
name: 'history_card_3_title',
displayName: 'History Card 3: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_3_text',
displayName: 'History Card 3: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_3_image',
displayName: 'History Card 3: Image',
type: FieldType.MEDIA_LIST,
required: true,
})
.createField({
name: 'history_card_4_title',
displayName: 'History Card 4: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_4_text',
displayName: 'History Card 4: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_4_image',
displayName: 'History Card 4: Image',
type: FieldType.MEDIA_LIST,
required: true,
})
.createField({
name: 'history_card_5_title',
displayName: 'History Card 5: Title',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'history_card_5_text',
displayName: 'History Card 5: Text',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'history_card_5_image',
displayName: 'History Card 5: Image',
type: FieldType.MEDIA_LIST,
required: true,
})
.createField({
name: 'sister_clinics_text',
displayName: '"Sister Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'sister_clinics',
displayName: 'Sister Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics_text',
displayName: '"UCD Clinics" text',
type: FieldType.SHORT_TEXT,
required: true,
})
.createField({
name: 'ucd_clinics',
displayName: 'UCD Clinics (Use a bulleted list, each bullet formatted exactly like Clinic Name - link',
type: FieldType.LONG_TEXT,
required: true,
});

module.exports = aboutUs;
Loading

0 comments on commit b25bd67

Please sign in to comment.