Skip to content

Commit

Permalink
Merge pull request #2 from include-davis/feat/single-types
Browse files Browse the repository at this point in the history
single types added for all pages
  • Loading branch information
JayJ104 authored Jun 7, 2024
2 parents 216d1f3 + 67dce34 commit e60d195
Show file tree
Hide file tree
Showing 43 changed files with 2,917 additions and 1,208 deletions.
2 changes: 1 addition & 1 deletion config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ module.exports = ({ env }) => ({
},
debug: false,
},
});
});
2,164 changes: 1,085 additions & 1,079 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,35 @@
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"dev": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
"dev": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-cloud": "4.20.4",
"@strapi/plugin-i18n": "4.20.4",
"@strapi/plugin-users-permissions": "4.20.4",
"@strapi/provider-upload-cloudinary": "^4.20.4",
"@strapi/strapi": "4.20.4",
"@strapi/utils": "^4.20.4",
"better-sqlite3": "8.6.0",
"esbuild": "^0.20.1",
"pg": "^8.11.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"styled-components": "5.3.3"
"@strapi/plugin-cloud": "4.20.4",
"@strapi/plugin-i18n": "4.20.4",
"@strapi/plugin-users-permissions": "4.20.4",
"@strapi/provider-upload-cloudinary": "^4.20.4",
"@strapi/strapi": "^4.24.3",
"@strapi/utils": "^4.20.4",
"better-sqlite3": "8.6.0",
"esbuild": "^0.20.1",
"pg": "^8.11.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"styled-components": "5.3.3"
},
"author": {
"name": "A Strapi developer"
"name": "A Strapi developer"
},
"strapi": {
"uuid": "fe70fd52-9864-4a89-beaf-03cd63d9d9f6"
"uuid": "fe70fd52-9864-4a89-beaf-03cd63d9d9f6"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}

}
75 changes: 75 additions & 0 deletions src/api/about-us/content-types/about-us/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"kind": "singleType",
"collectionName": "about_uses",
"info": {
"singularName": "about-us",
"pluralName": "about-uses",
"displayName": "about_us",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"page_title_and_subtitle": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "home.title-description",
"required": true
},
"sister_clinics": {
"displayName": "clinc_lists",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-us.clinc-lists",
"required": true
},
"ucd_clinics": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-us.clinc-lists",
"required": true
},
"history_cards": {
"displayName": "flipping-card",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-us.flipping-card",
"required": true
},
"commitment_statement": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": true
}
}
}
9 changes: 9 additions & 0 deletions src/api/about-us/controllers/about-us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* about-us controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::about-us.about-us');
9 changes: 9 additions & 0 deletions src/api/about-us/routes/about-us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* about-us router
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::about-us.about-us');
9 changes: 9 additions & 0 deletions src/api/about-us/services/about-us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* about-us service
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::about-us.about-us');
50 changes: 50 additions & 0 deletions src/api/committees-page/content-types/committees-page/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"kind": "singleType",
"collectionName": "committees_pages",
"info": {
"singularName": "committees-page",
"pluralName": "committees-pages",
"displayName": "committees_page",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title_text": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"cards": {
"displayName": "committee_cards",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "committees.committee-cards",
"required": true
},
"back_to_committees": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
}
}
}
9 changes: 9 additions & 0 deletions src/api/committees-page/controllers/committees-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* committees-page controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::committees-page.committees-page');
9 changes: 9 additions & 0 deletions src/api/committees-page/routes/committees-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* committees-page router
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::committees-page.committees-page');
9 changes: 9 additions & 0 deletions src/api/committees-page/services/committees-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* committees-page service
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::committees-page.committees-page');
95 changes: 95 additions & 0 deletions src/api/get-involved/content-types/get-involved/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"kind": "singleType",
"collectionName": "get_involveds",
"info": {
"singularName": "get-involved",
"pluralName": "get-involveds",
"displayName": "get_involved",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"page_title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"involvement_opportunities": {
"displayName": "involvement_cards",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "get-involved.involvement-cards",
"required": true
},
"details_text": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"sign_up_text": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"donate_today_text": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"donation_instruction": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": true
},
"thank_you_text": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"address": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": true
}
}
}
9 changes: 9 additions & 0 deletions src/api/get-involved/controllers/get-involved.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* get-involved controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::get-involved.get-involved');
9 changes: 9 additions & 0 deletions src/api/get-involved/routes/get-involved.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* get-involved router
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::get-involved.get-involved');
9 changes: 9 additions & 0 deletions src/api/get-involved/services/get-involved.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* get-involved service
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::get-involved.get-involved');
Loading

0 comments on commit e60d195

Please sign in to comment.