eslint quality changes

This commit is contained in:
2018-07-24 15:03:36 +05:30
parent 7c40e1e4b1
commit 28c9e223cf
11 changed files with 1847 additions and 1201 deletions

View File

@@ -1,92 +1,92 @@
module.exports = {
gitToken: "96ead73c54cbbf023a73ee57af145b205d460851",
intentSlugToOperations: {
'createrepo' : {
"requestMethod": 'post',
"intentMessage": "Create a Repository in Github",
"getDataOperation": "getCreateRepoJson",
"githubOperation": "createRepository",
"showWidgetOperation": "showCreateRepoWidget",
"populateDataOperation": "populateCreateRepoData",
"successMessage": "Repository Added!",
"cardMsg": "Requested Repository has been added and is available at ",
"cardDataUrl": "html_url",
"cardDataName": "name"
},
'createissue' : {
"requestMethod": 'post',
"intentMessage": "Raise an issue in Github",
"getDataOperation": "getCreateIssueJson",
"githubOperation": "createIssue",
"showWidgetOperation": "showCreateIssueWidget",
"populateDataOperation": "populateCreateIssueData",
"successMessage": "Issue Created!",
"cardMsg": "Issue Created as requested, issue details available at ",
"cardDataUrl": "html_url",
"cardDataName": "title"
},
'closeissue' : {
"requestMethod": 'post',
"intentMessage": "Close an issue in Github",
"getDataOperation": "getCloseIssueJson",
"githubOperation": "closeIssue",
"showWidgetOperation": "showCloseIssueWidget",
"populateDataOperation": "populateCloseIssueData",
"successMessage": "Issue Closed!",
"cardMsg": "Issue Closed as requested, closed issue available at: ",
"cardDataUrl": "html_url",
"cardDataName": "title"
},
'addissuecomment' : {
"requestMethod": 'post',
"intentMessage": "Add a comment on an issue in Github",
"getDataOperation": "getAddCommentJson",
"githubOperation": "addIssueComment",
"showWidgetOperation": "showAddCommentWidget",
"populateDataOperation": "populateAddCommentData",
"successMessage": "Comment Added!",
"cardMsg": "Comment Added as Requested, view here: ",
"cardDataUrl": "html_url",
"cardDataName": "title"
},
'displaylastcomment' : {
"requestMethod": 'get',
"intentMessage": "Display last comment of an issue in Github",
"getDataOperation": "getDisplayCommentJson",
"githubOperation": "displayLastComment",
"showWidgetOperation": "showDisplayCommentWidget",
"populateDataOperation": "populateDisplayCommentData",
"successMessage": "Comment Retrieved!",
"cardMsg": "Please find requested comment below: ",
"cardDataUrl": "html_url",
"cardDataName": "title"
},
'addcollab' : {
"requestMethod": 'post',
"intentMessage": "Add a collaborator",
"getDataOperation": "getAddCollaboratorJson",
"githubOperation": "addCollaborator",
"showWidgetOperation": "showAddCollaboratorWidget",
"populateDataOperation": "populateAddCollaboratorData",
"successMessage": "Collaborator Added!",
"cardMsg": "Collaborator added, details available at ",
"cardDataUrl": "html_url",
"cardDataName": "invitee,login"
},
'viewrepos': {
"requestMethod": 'get',
"intentMessage": "View Repositories for current user",
"getDataOperation": "getViewRepositoryJson",
"githubOperation": "viewRepositories",
"showWidgetOperation": "showViewRepoWidget",
"populateDataOperation": "populateViewRepoData",
"successMessage": "Showing repositories",
"cardMsg": "Repository Details available below: ",
"cardDataUrl": "html_url",
"cardDataName": "invitee,login"
}
gitToken: '96ead73c54cbbf023a73ee57af145b205d460851',
intentSlugToOperations: {
createrepo: {
requestMethod: 'post',
intentMessage: 'Create a Repository in Github',
getDataOperation: 'getCreateRepoJson',
githubOperation: 'createRepository',
showWidgetOperation: 'showCreateRepoWidget',
populateDataOperation: 'populateCreateRepoData',
successMessage: 'Repository Added!',
cardMsg: 'Requested Repository has been added and is available at ',
cardDataUrl: 'html_url',
cardDataName: 'name',
},
costants: {
"hiddenIntentFieldId": "intentHidden",
}
}
createissue: {
requestMethod: 'post',
intentMessage: 'Raise an issue in Github',
getDataOperation: 'getCreateIssueJson',
githubOperation: 'createIssue',
showWidgetOperation: 'showCreateIssueWidget',
populateDataOperation: 'populateCreateIssueData',
successMessage: 'Issue Created!',
cardMsg: 'Issue Created as requested, issue details available at ',
cardDataUrl: 'html_url',
cardDataName: 'title',
},
closeissue: {
requestMethod: 'post',
intentMessage: 'Close an issue in Github',
getDataOperation: 'getCloseIssueJson',
githubOperation: 'closeIssue',
showWidgetOperation: 'showCloseIssueWidget',
populateDataOperation: 'populateCloseIssueData',
successMessage: 'Issue Closed!',
cardMsg: 'Issue Closed as requested, closed issue available at: ',
cardDataUrl: 'html_url',
cardDataName: 'title',
},
addissuecomment: {
requestMethod: 'post',
intentMessage: 'Add a comment on an issue in Github',
getDataOperation: 'getAddCommentJson',
githubOperation: 'addIssueComment',
showWidgetOperation: 'showAddCommentWidget',
populateDataOperation: 'populateAddCommentData',
successMessage: 'Comment Added!',
cardMsg: 'Comment Added as Requested, view here: ',
cardDataUrl: 'html_url',
cardDataName: 'title',
},
displaylastcomment: {
requestMethod: 'get',
intentMessage: 'Display last comment of an issue in Github',
getDataOperation: 'getDisplayCommentJson',
githubOperation: 'displayLastComment',
showWidgetOperation: 'showDisplayCommentWidget',
populateDataOperation: 'populateDisplayCommentData',
successMessage: 'Comment Retrieved!',
cardMsg: 'Please find requested comment below: ',
cardDataUrl: 'html_url',
cardDataName: 'title',
},
addcollab: {
requestMethod: 'post',
intentMessage: 'Add a collaborator',
getDataOperation: 'getAddCollaboratorJson',
githubOperation: 'addCollaborator',
showWidgetOperation: 'showAddCollaboratorWidget',
populateDataOperation: 'populateAddCollaboratorData',
successMessage: 'Collaborator Added!',
cardMsg: 'Collaborator added, details available at ',
cardDataUrl: 'html_url',
cardDataName: 'invitee,login',
},
viewrepos: {
requestMethod: 'get',
intentMessage: 'View Repositories for current user',
getDataOperation: 'getViewRepositoryJson',
githubOperation: 'viewRepositories',
showWidgetOperation: 'showViewRepoWidget',
populateDataOperation: 'populateViewRepoData',
successMessage: 'Showing repositories',
cardMsg: 'Repository Details available below: ',
cardDataUrl: 'html_url',
cardDataName: 'invitee,login',
},
},
costants: {
hiddenIntentFieldId: 'intentHidden',
},
};