Skip to content

Commit

Permalink
feat: plugins added
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalhk7 committed Apr 13, 2021
1 parent 36d2040 commit 1b43bf4
Show file tree
Hide file tree
Showing 8 changed files with 142 additions and 10 deletions.
6 changes: 6 additions & 0 deletions api/blog/documentation/1.0.0/blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down
41 changes: 41 additions & 0 deletions api/members/documentation/1.0.0/members.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,41 @@
"type": "integer"
}
}
},
"sigs": {
"type": "array",
"items": {
"required": [
"id",
"name",
"description",
"no_link",
"logo"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"no_link": {
"type": "boolean"
},
"logo": {
"type": "string"
},
"created_by": {
"type": "string"
},
"updated_by": {
"type": "string"
}
}
}
}
}
},
Expand Down Expand Up @@ -617,6 +652,12 @@
}
}
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down
3 changes: 3 additions & 0 deletions api/members/models/members.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"type": "component",
"repeatable": false,
"component": "members.social"
},
"sigs": {
"collection": "sig"
}
}
}
6 changes: 6 additions & 0 deletions api/project-reports/documentation/1.0.0/project-reports.json
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions api/project/documentation/1.0.0/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions api/smp/documentation/1.0.0/smp.json
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down
17 changes: 8 additions & 9 deletions config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
module.exports = ({ env }) => {
const plugins = {
"github-publish": {
owner: "IET-NITK", // The gothub organisation or user
repo: "IET-NITK.github.io", // The name of the repository
workflow_id: "deploy.yml", // The workflow_id or filename
token: env("GITHUB_TOKEN"), // The GitHub personal access token with access to trigger workflows and view build status
branch: "daddy", // The branch the workflow should be triggered on
},
};
const plugins = {};
if (env("NODE_ENV") === "production") {
plugins["upload"]={
provider: "cloudinary",
Expand All @@ -17,6 +9,13 @@ module.exports = ({ env }) => {
api_secret: env("CLOUDINARY_SECRET"),
},
}
// plugins["github-publish"]= {
// owner: "IET-NITK", // The gothub organisation or user
// repo: "IET-NITK.github.io", // The name of the repository
// workflow_id: "7048366", // The workflow_id or filename
// token: env("GITHUB_TOKEN"), // The GitHub personal access token with access to trigger workflows and view build status
// branch: "daddy", // The branch the workflow should be triggered on
// }
}
return plugins
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "04/13/2021 7:44:02 PM"
"x-generation-date": "04/13/2021 9:41:26 PM"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down Expand Up @@ -6908,6 +6908,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down Expand Up @@ -7094,6 +7100,41 @@
"type": "integer"
}
}
},
"sigs": {
"type": "array",
"items": {
"required": [
"id",
"name",
"description",
"no_link",
"logo"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"no_link": {
"type": "boolean"
},
"logo": {
"type": "string"
},
"created_by": {
"type": "string"
},
"updated_by": {
"type": "string"
}
}
}
}
}
},
Expand Down Expand Up @@ -7147,6 +7188,12 @@
}
}
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down Expand Up @@ -7194,6 +7241,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down Expand Up @@ -7431,6 +7484,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down Expand Up @@ -7770,6 +7829,12 @@
"contacts": {
"type": "component"
},
"sigs": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
Expand Down

0 comments on commit 1b43bf4

Please sign in to comment.