Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix: update babel config to resolve regeneratorRuntime issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2000 committed Jun 4, 2020
1 parent 9e7890a commit 344e3cd
Show file tree
Hide file tree
Showing 13 changed files with 1,709 additions and 1,045 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/coder2000.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/client/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"camel2DashComponentName": false
},
"icons"
]
],
["@babel/plugin-transform-runtime", {
"regenerator": true
}]
]
}
2 changes: 2 additions & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
Expand Down Expand Up @@ -40,6 +41,7 @@
},
"dependencies": {
"@apollo/react-hooks": "^3.1.5",
"@babel/runtime": "^7.10.2",
"@material-ui/core": "^4.10.0",
"@material-ui/icons": "^4.9.1",
"apollo-boost": "^0.4.9",
Expand Down
16 changes: 3 additions & 13 deletions packages/client/src/components/podcast/PodcastCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ export function PodcastCard(props: PodcastProps) {
const [anchorElement, setAnchorElement] = useState<null | HTMLElement>(null);
const [visible, setVisible] = useState(true);
const [expanded, setExpanded] = useState(false);
const [deletePodcast] = useMutation<
{ deleteOnePodcast: DeleteResponse },
{ input: DeleteOneInput }
>(DELETE_PODCAST);
const [deletePodcast] = useMutation<{ deleteOnePodcast: DeleteResponse }, { input: DeleteOneInput }>(DELETE_PODCAST);
const classes = useStyles();

const handleCardMenuOpen = (event: React.MouseEvent<HTMLButtonElement>) => {
Expand Down Expand Up @@ -109,17 +106,10 @@ export function PodcastCard(props: PodcastProps) {
<CardContent>
<Grid container>
<Grid item xs={2}>
<img
src={podcast.image}
height="150"
width="150"
alt="podcast logo"
/>
<img src={podcast.image} height="150" width="150" alt="podcast logo" />
</Grid>
<Grid item xs={10}>
<Typography variant="body2">
{podcast.description}
</Typography>
<Typography variant="body2">{podcast.description}</Typography>
</Grid>
</Grid>
</CardContent>
Expand Down
6 changes: 2 additions & 4 deletions packages/client/src/components/podcast/PodcastList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useQuery } from '@apollo/react-hooks';
import { gql } from 'apollo-boost';
import { Typography } from '@material-ui/core';
import { PageInfo, Podcast } from '../../interfaces';
import PodcastCard from './PodcastCard';
import { PodcastCard } from './PodcastCard';

interface PodcastEdge {
node: Podcast;
Expand Down Expand Up @@ -61,9 +61,7 @@ export function PodcastList() {
) : (
<>
{data ? (
data.podcasts.edges.map((edge) => (
<PodcastCard podcast={edge.node} />
))
data.podcasts.edges.map((edge) => <PodcastCard podcast={edge.node} key={`podcast-${edge.node.id}`} />)
) : (
<>
<Typography variant="h5">No Podcasts</Typography>
Expand Down
2 changes: 1 addition & 1 deletion packages/server/.graphqlconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Speakrr GraphQL Schema",
"schemaPath": "./schema.gql",
"schemaPath": "./schema.graphql",
"extensions": {
"endpoints": {
"Default GraphQL Endpoint": {
Expand Down
24 changes: 12 additions & 12 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@
"migration:run": "ts-node -r tsconfig-paths/register node_modules/.bin/typeorm migration:run"
},
"dependencies": {
"@nestjs-query/core": "^0.11.6",
"@nestjs-query/query-graphql": "^0.11.6",
"@nestjs-query/query-typeorm": "^0.11.6",
"@nestjs/common": "7.0.13",
"@nestjs-query/core": "^0.11.7",
"@nestjs-query/query-graphql": "^0.11.7",
"@nestjs-query/query-typeorm": "^0.11.7",
"@nestjs/common": "7.1.1",
"@nestjs/config": "^0.5.0",
"@nestjs/core": "7.0.13",
"@nestjs/graphql": "7.3.9",
"@nestjs/platform-express": "^7.1.0",
"@nestjs/core": "7.1.1",
"@nestjs/graphql": "7.4.0",
"@nestjs/platform-express": "^7.1.1",
"@nestjs/schedule": "^0.4.0",
"@nestjs/serve-static": "^2.1.1",
"@nestjs/typeorm": "7.0.0",
"apollo-server-express": "^2.13.1",
"@nestjs/typeorm": "7.1.0",
"apollo-server-express": "^2.14.1",
"class-transformer": "^0.2.3",
"class-validator": "^0.12.2",
"dataloader": "^2.0.0",
"dotenv": "^8.2.0",
"graphql": "^14.0.0",
"graphql-relay": "^0.6.0",
"graphql-tools": "^6.0.1",
"graphql-tools": "^6.0.3",
"nestjs-pino": "^1.2.0",
"pg": "^8.2.1",
"reflect-metadata": "^0.1.13",
Expand All @@ -59,7 +59,7 @@
"devDependencies": {
"@nestjs/cli": "^7.2.0",
"@nestjs/schematics": "^7.0.0",
"@nestjs/testing": "^7.1.0",
"@nestjs/testing": "^7.1.1",
"@types/cron": "^1.7.2",
"@types/express": "^4.17.6",
"@types/jest": "25.2.3",
Expand All @@ -70,7 +70,7 @@
"pino-pretty": "^4.0.0",
"supertest": "^4.0.2",
"ts-jest": "26.0.0",
"ts-node": "^8.10.1",
"ts-node": "^8.10.2",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.9.3"
},
Expand Down
Loading

0 comments on commit 344e3cd

Please sign in to comment.