Skip to content

Commit 7266218

Browse files
Gitlab component kit backedn setup
1 parent 140f0ad commit 7266218

23 files changed

Lines changed: 710 additions & 0 deletions

File tree

cms/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
HOST=0.0.0.0
22
PORT=1337
3+
GITLAB_TOKEN='gitlab_personal_access_token'
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"routes": [
3+
{
4+
"method": "GET",
5+
"path": "/gitlab-issues",
6+
"handler": "gitlab-issues.find",
7+
"config": {
8+
"policies": []
9+
}
10+
},
11+
{
12+
"method": "GET",
13+
"path": "/gitlab-issues/count",
14+
"handler": "gitlab-issues.count",
15+
"config": {
16+
"policies": []
17+
}
18+
},
19+
{
20+
"method": "GET",
21+
"path": "/gitlab-issues/:id",
22+
"handler": "gitlab-issues.findOne",
23+
"config": {
24+
"policies": []
25+
}
26+
},
27+
{
28+
"method": "POST",
29+
"path": "/gitlab-issues",
30+
"handler": "gitlab-issues.create",
31+
"config": {
32+
"policies": []
33+
}
34+
},
35+
{
36+
"method": "PUT",
37+
"path": "/gitlab-issues/:id",
38+
"handler": "gitlab-issues.update",
39+
"config": {
40+
"policies": []
41+
}
42+
},
43+
{
44+
"method": "DELETE",
45+
"path": "/gitlab-issues/:id",
46+
"handler": "gitlab-issues.delete",
47+
"config": {
48+
"policies": []
49+
}
50+
}
51+
]
52+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
/**
4+
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
5+
* to customize this controller
6+
*/
7+
8+
module.exports = {};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
/**
4+
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
5+
* to customize this model
6+
*/
7+
8+
module.exports = {};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "gitlab_issues",
4+
"info": {
5+
"name": "GitlabIssues"
6+
},
7+
"options": {
8+
"increments": true,
9+
"timestamps": true,
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"gitlab_repository": {
15+
"model": "gitlab-repositories",
16+
"via": "gitlab_issue"
17+
},
18+
"issues": {
19+
"type": "json"
20+
}
21+
}
22+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
/**
4+
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
5+
* to customize this service
6+
*/
7+
8+
module.exports = {};
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"routes": [
3+
{
4+
"method": "GET",
5+
"path": "/gitlab-members",
6+
"handler": "gitlab-members.find",
7+
"config": {
8+
"policies": []
9+
}
10+
},
11+
{
12+
"method": "GET",
13+
"path": "/gitlab-members/count",
14+
"handler": "gitlab-members.count",
15+
"config": {
16+
"policies": []
17+
}
18+
},
19+
{
20+
"method": "GET",
21+
"path": "/gitlab-members/:id",
22+
"handler": "gitlab-members.findOne",
23+
"config": {
24+
"policies": []
25+
}
26+
},
27+
{
28+
"method": "POST",
29+
"path": "/gitlab-members",
30+
"handler": "gitlab-members.create",
31+
"config": {
32+
"policies": []
33+
}
34+
},
35+
{
36+
"method": "PUT",
37+
"path": "/gitlab-members/:id",
38+
"handler": "gitlab-members.update",
39+
"config": {
40+
"policies": []
41+
}
42+
},
43+
{
44+
"method": "DELETE",
45+
"path": "/gitlab-members/:id",
46+
"handler": "gitlab-members.delete",
47+
"config": {
48+
"policies": []
49+
}
50+
}
51+
]
52+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
/**
4+
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
5+
* to customize this controller
6+
*/
7+
8+
module.exports = {};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
/**
4+
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
5+
* to customize this model
6+
*/
7+
8+
module.exports = {};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "gitlab_members",
4+
"info": {
5+
"name": "GitlabMembers"
6+
},
7+
"options": {
8+
"increments": true,
9+
"timestamps": true,
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"members": {
15+
"type": "json"
16+
},
17+
"gitlab_repository": {
18+
"model": "gitlab-repositories",
19+
"via": "gitlab_member"
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)