Skip to content

Commit

Permalink
feat(graphql): adds image upload
Browse files Browse the repository at this point in the history
Adds the ability to upload an image
with the `uploadImage` mutation query

re #102
  • Loading branch information
anguspiv committed Apr 25, 2022
1 parent 916dee2 commit d4bdbd2
Show file tree
Hide file tree
Showing 42 changed files with 1,975 additions and 111 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ next.config.wizardcopy.js
sentry.client.config.js
sentry.server.config.js
CHANGELOG.md
types/nexus-typegen
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
"rules": {
"import/no-cycle": "off"
}
},
{
"files": [
"schema/types/**/*.ts"
],
"rules": {
"import/prefer-default-export": "off"
}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ build-storybook.log

# Sentry
.sentryclirc

types/nexus-typegen
3 changes: 2 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ module.exports = {
'@pages': path.resolve(__dirname, '../pages'),
'@db': path.resolve(__dirname, '../src/db'),
'@graphql': path.resolve(__dirname, '../src/graphql'),
'@schema': path.resolve(__dirname, '../src/schema'),
'@schema': path.resolve(__dirname, '../schema'),
'@utils': path.resolve(__dirname, '../src/utils'),
'@errors': path.resolve(__dirname, '../src/errors'),
},
},
};
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
'^@utils(.*)$': '<rootDir>/src/utils$1',
'^@pages(.*)$': '<rootDir>/pages$1',
'^@schema(.*)$': '<rootDir>/schema$1',
'^@errors(.*)$': '<rootDir>/src/errors$1',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/.next/', '<rootDir>/cypress/'],
Expand Down

0 comments on commit d4bdbd2

Please sign in to comment.