Skip to content

Commit

Permalink
chore: update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Jul 31, 2024
1 parent 7071920 commit 432bda1
Show file tree
Hide file tree
Showing 38 changed files with 2,219 additions and 49 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
},
"devDependencies": {},
"dependencies": {
"@strapi/strapi": "4.20.3",
"@strapi/plugin-users-permissions": "4.20.3",
"@strapi/plugin-i18n": "4.20.3",
"@strapi/plugin-cloud": "4.20.3",
"@strapi/plugin-graphql": "^4.23.0",
"@strapi/plugin-i18n": "4.20.3",
"@strapi/plugin-users-permissions": "4.20.3",
"@strapi/strapi": "4.20.3",
"better-sqlite3": "8.6.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-plugin-multi-select": "^1.2.3",
"styled-components": "5.3.3"
},
"author": {
Expand Down
9 changes: 8 additions & 1 deletion src/api/capability/content-types/capability/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "capability",
"pluralName": "capabilities",
"displayName": "Capability"
"displayName": "Capability",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -28,6 +29,12 @@
"relation": "manyToMany",
"target": "api::service.service",
"inversedBy": "capabilities"
},
"offerings": {
"type": "relation",
"relation": "manyToMany",
"target": "api::offering.offering",
"inversedBy": "capabilities"
}
}
}
133 changes: 133 additions & 0 deletions src/api/common-content/content-types/common-content/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"kind": "collectionType",
"collectionName": "common_contents",
"info": {
"singularName": "common-content",
"pluralName": "common-contents",
"displayName": "Common content",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"internalName": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"unique": true,
"required": true
},
"privacyNoticeUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$",
"required": true
},
"privacyNoticeDownloadUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"required": true,
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$"
},
"termsOfServiceUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$",
"required": true
},
"termsOfServiceDownloadUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"required": true,
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$"
},
"cancellationUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$"
},
"emailIcon": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$"
},
"successActionButtonLabel": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"successActionButtonUrl": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"required": true,
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$"
},
"newsletterLabelTextCode": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "customField",
"options": [
"mdnplus",
"snp"
],
"customField": "plugin::multi-select.multi-select"
},
"newsletterSlug": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "customField",
"options": [
"mozilla-accounts",
"mdnplus",
"security-privacy-news"
],
"customField": "plugin::multi-select.multi-select"
}
}
}
9 changes: 9 additions & 0 deletions src/api/common-content/controllers/common-content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* common-content controller
*/

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

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

/**
* common-content router
*/

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

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

/**
* common-content service
*/

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

module.exports = createCoreService('api::common-content.common-content');
66 changes: 66 additions & 0 deletions src/api/coupon-config/content-types/coupon-config/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"kind": "collectionType",
"collectionName": "coupon_configs",
"info": {
"singularName": "coupon-config",
"pluralName": "coupon-configs",
"displayName": "Coupon config",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"internalName": {
"type": "string",
"required": true,
"unique": true
},
"countries": {
"type": "customField",
"options": [
"AT - Austria",
"BE - Belgium",
"BG - Bulgaria",
"CA - Canada",
"HR - Croatia",
"CY - Cyprus",
"CZ - Czech Republic",
"DK - Denmark",
"EE - Estonia",
"FI - Finland",
"FR - France",
"DE - Germany",
"GR - Greece",
"HU - Hungary",
"IE - Ireland",
"IT - Italy",
"LV - Latvia",
"LT - Lithuania",
"LU - Luxembourg",
"MY - Malaysia",
"MT - Malta",
"NL - Netherlands",
"NZ - New Zealand",
"PL - Poland",
"PT - Portugal",
"RO - Romania",
"SG - Singapore",
"SK - Slovakia",
"SI - Slovenia",
"ES - Spain",
"SE - Sweden",
"CH - Switzerland",
"UK - United Kingdom",
"US - United States"
],
"customField": "plugin::multi-select.multi-select"
},
"stripePromotionCodes": {
"type": "component",
"repeatable": true,
"component": "stripe.stripe-promo-codes"
}
}
}
9 changes: 9 additions & 0 deletions src/api/coupon-config/controllers/coupon-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* coupon-config controller
*/

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

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

/**
* coupon-config router
*/

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

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

/**
* coupon-config service
*/

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

module.exports = createCoreService('api::coupon-config.coupon-config');
31 changes: 31 additions & 0 deletions src/api/iap/content-types/iap/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"kind": "collectionType",
"collectionName": "iaps",
"info": {
"singularName": "iap",
"pluralName": "iaps",
"displayName": "IAP",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"internalName": {
"type": "string",
"required": false,
"unique": false
},
"appleProductIDs": {
"type": "component",
"repeatable": true,
"component": "iap.apple-product-i-ds"
},
"googleSKUs": {
"type": "component",
"repeatable": true,
"component": "iap.google-sk-us"
}
}
}
9 changes: 9 additions & 0 deletions src/api/iap/controllers/iap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* iap controller
*/

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

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

/**
* iap router
*/

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

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

/**
* iap service
*/

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

module.exports = createCoreService('api::iap.iap');
Loading

0 comments on commit 432bda1

Please sign in to comment.