-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Told prettier and eslint to ignore the github actions, they might be causing issues * Added vscode folder and started to fix some resolver bugs * Reworked the single movie resolver and model * Fixed the original language functionality * Updated the resolvers which used the movies model and updated some of the unit tests * Wrapped up the Movie resolver and model improvements * Updated the utils for the Cast, Credits and SocialLinks. * Improved the readability of all tests, reworked some of the resolvers and models * Updated the shows model and resolvers * Added the featuredCrew functionality * Refactored the popular person resolver and model * Updated setSocial link util to support the single person data * Updated the jsdoc documentation * Updated the object names to make them more consistent * Added the episode count functionality, but it needs improving * Refactored the setCast episodeCount functionality and created unit tests for the new functionality * Added role to the resonse for the setCredits * Fixed an with the setCast util. When it failed it returned the incorrect data * Made the utils compatiable with node version 12 * Updated the github actions .yml files * Fixed a github action syntax error * Updated the action names as they were incorrect
- Loading branch information
1 parent
79eda97
commit 6d8a4cd
Showing
154 changed files
with
5,001 additions
and
3,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"VisualStudioExptTeam.vscodeintellicode", | ||
"christian-kohler.npm-intellisense", | ||
"letrieu.expand-region", | ||
"formulahendry.auto-rename-tag", | ||
"christian-kohler.path-intellisense", | ||
"2gua.rainbow-brackets", | ||
"PKief.material-icon-theme", | ||
"orta.vscode-jest", | ||
"kumar-harsh.graphql-for-vscode", | ||
"jpoissonnier.vscode-styled-components", | ||
"ionutvmi.path-autocomplete", | ||
"emmanuelbeziat.vscode-great-icons", | ||
"vincaslt.highlight-matching-tag", | ||
"eamodio.gitlens" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.detectIndentation": true, | ||
"editor.fontLigatures": false, | ||
"editor.snippetSuggestions": "top", | ||
"editor.suggest.localityBonus": true, | ||
"editor.acceptSuggestionOnCommitCharacter": false, | ||
"editor.renderWhitespace": "boundary", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.cursorSmoothCaretAnimation": true, | ||
"editor.fontSize": 20, | ||
"editor.minimap.enabled": false, | ||
"editor.tabSize": 2, | ||
|
||
"files.trimTrailingWhitespace": true, | ||
"files.trimFinalNewlines": true, | ||
|
||
"workbench.sideBar.location": "left", | ||
|
||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
|
||
"files.autoSave": "off", | ||
"files.exclude": { | ||
"USE_GITIGNORE": true | ||
}, | ||
"files.defaultLanguage": "{activeEditorLanguage}", | ||
|
||
"javascript.validate.enable": true, // Highligts the unused imports when true | ||
"editor.showUnused": true, // Highligts the unused imports when true | ||
|
||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/bower_components": true, | ||
"**/*.code-search": true, | ||
"**/build": true, | ||
"**/.build": true | ||
}, | ||
|
||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], | ||
|
||
"javascript.implicitProjectConfig.checkJs": true, | ||
|
||
"breadcrumbs.enabled": true, | ||
"grunt.autoDetect": "off", | ||
"npm.runSilent": true, | ||
"explorer.confirmDragAndDrop": true, | ||
|
||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.suggestSelection": "recentlyUsedByPrefix", | ||
"editor.suggest.showKeywords": true | ||
}, | ||
|
||
"[json]": { | ||
"breadcrumbs.showBooleans": true | ||
}, | ||
|
||
"files.associations": { | ||
"*.react.js": "javascriptreact", | ||
"*.jsx": "javascriptreact", | ||
"*.js": "javascriptreact" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"checkJs": true, | ||
"target": "es5" | ||
}, | ||
"exclude": ["node_modules", "**/node_modules/*"] | ||
} |
7 changes: 3 additions & 4 deletions
7
models/Show/CreatedBy.js → models/BelongsToCollection/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ const typeDef = gql` | |
id: Int | ||
logo: String | ||
name: String | ||
origin_country: String | ||
} | ||
`; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { gql } = require('apollo-server'); | ||
|
||
const MoviesModel = gql` | ||
type Movies { | ||
id: Int | ||
name: String | ||
overview: String | ||
backgroundUrl: String | ||
posterUrl: String | ||
genres: [Int] | ||
releaseDate: String | ||
originalLanguage: String | ||
voteAverage: Float | ||
} | ||
`; | ||
|
||
module.exports = MoviesModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const { gql } = require('apollo-server'); | ||
|
||
const MovieModel = gql` | ||
type Movie { | ||
id: Int | ||
name: String | ||
overview: String | ||
backgroundUrl: String | ||
posterUrl: String | ||
genres: [Genre] | ||
homepage: String | ||
originalLanguage: String | ||
productionCompanies: [Company] | ||
releaseDate: String | ||
voteAverage: Float | ||
status: String | ||
reviews: [Review] | ||
recommendations: [Movie] | ||
keywords: [Keyword] | ||
social: Social | ||
featuredCast: [Cast] | ||
featuredCrew: [Crew] | ||
featuredVideo: Video | ||
belongsToCollection: BelowsToCollection | ||
tagline: String | ||
runtime: String | ||
budget: String | ||
revenue: String | ||
} | ||
`; | ||
|
||
module.exports = MovieModel; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.