Commit e3981cfc authored by alain's avatar alain 🐙
Browse files

initial commit

parents
Pipeline #275 canceled with stages
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
async afterUpdate() {
strapi.services.util.build()
},
},
};
{
"kind": "collectionType",
"collectionName": "solutions",
"info": {
"name": "Solution"
},
"options": {
"increments": true,
"timestamps": true
},
"attributes": {
"title": {
"type": "string",
"required": true,
"unique": true
},
"description": {
"type": "richtext"
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
{
"routes": [
{
"method": "GET",
"path": "/use-cases",
"handler": "use-case.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/use-cases/count",
"handler": "use-case.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/use-cases/:id",
"handler": "use-case.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/use-cases",
"handler": "use-case.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/use-cases/:id",
"handler": "use-case.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/use-cases/:id",
"handler": "use-case.delete",
"config": {
"policies": []
}
}
]
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
async afterUpdate() {
strapi.services.util.build()
},
},
};
{
"kind": "collectionType",
"collectionName": "use_cases",
"info": {
"name": "Use case"
},
"options": {
"increments": true,
"timestamps": true
},
"attributes": {
"title": {
"type": "string",
"unique": true,
"required": true
},
"description": {
"type": "richtext"
},
"solutions": {
"collection": "solution"
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
module.exports = {
build: () => {
const { exec } = require('child_process');
exec('cd ../frontend && gatsby build', (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.error(`stderr: ${stderr}`);
});
return 'koek';
},
};
\ No newline at end of file
{
"collectionName": "components_content_headers",
"info": {
"name": "Header",
"icon": "air-freshener"
},
"options": {},
"attributes": {
"text": {
"type": "string"
},
"type": {
"type": "enumeration",
"enum": [
"h1",
"h2",
"h3",
"h4",
"h5"
]
}
}
}
{
"collectionName": "components_content_rows",
"info": {
"name": "Row",
"icon": "archway"
},
"options": {},
"attributes": {
"text": {
"type": "richtext"
},
"Headers": {
"type": "component",
"repeatable": true,
"component": "content.header"
}
}
}
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'sqlite',
filename: env('DATABASE_FILENAME', '.tmp/data.db'),
},
options: {
useNullAsDefault: true,
},
},
},
});
'use strict';
/**
* An asynchronous bootstrap function that runs before
* your application gets started.
*
* This gives you an opportunity to set up your data model,
* run jobs, or perform some special logic.
*
* See more details here: https://strapi.io/documentation/v3.x/concepts/configurations.html#bootstrap
*/
module.exports = () => {};
'use strict';
/**
* Cron config that gives you an opportunity
* to run scheduled jobs.
*
* The cron format consists of:
* [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK]
*
* See more details here: https://strapi.io/documentation/v3.x/concepts/configurations.html#cron-tasks
*/
module.exports = {
/**
* Simple example.
* Every monday at 1am.
*/
// '0 1 * * 1': () => {
//
// }
};
'use strict';
module.exports = async (/* ctx */) => {
// return ctx.notFound('My custom message 404');
};
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
});
module.exports = {
jwtSecret: process.env.JWT_SECRET || 'a52259c6-e985-4aa6-8475-96d8ba067fda'
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment