Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
Public Stack Site
Commits
e3981cfc
Commit
e3981cfc
authored
Jul 31, 2020
by
alain
🐙
Browse files
initial commit
parents
Pipeline
#275
canceled with stages
Changes
67
Pipelines
1
Show whitespace changes
Inline
Side-by-side
backend/api/solution/controllers/solution.js
0 → 100644
View file @
e3981cfc
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module
.
exports
=
{};
backend/api/solution/models/solution.js
0 → 100644
View file @
e3981cfc
'
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
()
},
},
};
backend/api/solution/models/solution.settings.json
0 → 100644
View file @
e3981cfc
{
"kind"
:
"collectionType"
,
"collectionName"
:
"solutions"
,
"info"
:
{
"name"
:
"Solution"
},
"options"
:
{
"increments"
:
true
,
"timestamps"
:
true
},
"attributes"
:
{
"title"
:
{
"type"
:
"string"
,
"required"
:
true
,
"unique"
:
true
},
"description"
:
{
"type"
:
"richtext"
}
}
}
backend/api/solution/services/solution.js
0 → 100644
View file @
e3981cfc
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module
.
exports
=
{};
backend/api/use-case/config/routes.json
0 → 100644
View file @
e3981cfc
{
"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"
:
[]
}
}
]
}
backend/api/use-case/controllers/use-case.js
0 → 100644
View file @
e3981cfc
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module
.
exports
=
{};
backend/api/use-case/models/use-case.js
0 → 100644
View file @
e3981cfc
'
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
()
},
},
};
backend/api/use-case/models/use-case.settings.json
0 → 100644
View file @
e3981cfc
{
"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"
}
}
}
backend/api/use-case/services/use-case.js
0 → 100644
View file @
e3981cfc
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module
.
exports
=
{};
backend/api/util/services/Util.js
0 → 100644
View file @
e3981cfc
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
backend/components/content/header.json
0 → 100644
View file @
e3981cfc
{
"collectionName"
:
"components_content_headers"
,
"info"
:
{
"name"
:
"Header"
,
"icon"
:
"air-freshener"
},
"options"
:
{},
"attributes"
:
{
"text"
:
{
"type"
:
"string"
},
"type"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"h1"
,
"h2"
,
"h3"
,
"h4"
,
"h5"
]
}
}
}
backend/components/content/row.json
0 → 100644
View file @
e3981cfc
{
"collectionName"
:
"components_content_rows"
,
"info"
:
{
"name"
:
"Row"
,
"icon"
:
"archway"
},
"options"
:
{},
"attributes"
:
{
"text"
:
{
"type"
:
"richtext"
},
"Headers"
:
{
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"content.header"
}
}
}
backend/config/database.js
0 → 100644
View file @
e3981cfc
module
.
exports
=
({
env
})
=>
({
defaultConnection
:
'
default
'
,
connections
:
{
default
:
{
connector
:
'
bookshelf
'
,
settings
:
{
client
:
'
sqlite
'
,
filename
:
env
(
'
DATABASE_FILENAME
'
,
'
.tmp/data.db
'
),
},
options
:
{
useNullAsDefault
:
true
,
},
},
},
});
backend/config/functions/bootstrap.js
0 → 100644
View file @
e3981cfc
'
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
=
()
=>
{};
backend/config/functions/cron.js
0 → 100644
View file @
e3981cfc
'
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': () => {
//
// }
};
backend/config/functions/responses/404.js
0 → 100644
View file @
e3981cfc
'
use strict
'
;
module
.
exports
=
async
(
/* ctx */
)
=>
{
// return ctx.notFound('My custom message 404');
};
backend/config/server.js
0 → 100644
View file @
e3981cfc
module
.
exports
=
({
env
})
=>
({
host
:
env
(
'
HOST
'
,
'
0.0.0.0
'
),
port
:
env
.
int
(
'
PORT
'
,
1337
),
});
backend/extensions/.gitkeep
0 → 100644
View file @
e3981cfc
backend/extensions/users-permissions/config/jwt.js
0 → 100644
View file @
e3981cfc
module
.
exports
=
{
jwtSecret
:
process
.
env
.
JWT_SECRET
||
'
a52259c6-e985-4aa6-8475-96d8ba067fda
'
};
\ No newline at end of file
backend/favicon.ico
0 → 100644
View file @
e3981cfc
1.12 KB
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment