Skip to content

Commit

Permalink
react 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Oct 26, 2020
1 parent 1c4a42b commit 0cf338f
Show file tree
Hide file tree
Showing 18 changed files with 6,412 additions and 9,060 deletions.
19 changes: 10 additions & 9 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
module.exports = {
webpack: function (config, env) {
config.module.rules.push({
test: /\.css$/,
test: /\.css$/i,
use: [
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [
require('tailwindcss'),
require('postcss-nested'),
require('autoprefixer')
],
},
},
postcssOptions: {
plugins: [
require('tailwindcss'),
require('postcss-nested'),
require('autoprefixer')
]
}
}
}
]
});

Expand Down
15,088 changes: 6,246 additions & 8,842 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,31 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.3",
"@testing-library/react": "^10.4.8",
"@testing-library/user-event": "^10.4.1",
"@types/jest": "^25.2.3",
"@types/node": "^13.13.15",
"@types/qs": "^6.9.4",
"@types/react": "^16.9.46",
"@testing-library/jest-dom": "^5.11.5",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.3",
"@types/qs": "^6.9.5",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"@types/react-router-dom": "^5.1.6",
"@types/react": "^16.9.46",
"coveralls": "^3.1.0",
"date-fns": "^2.15.0",
"date-fns": "^2.16.1",
"fetch-mock": "^9.10.7",
"jest-environment-jsdom-sixteen": "^1.0.3",
"node-fetch": "^2.6.0",
"postcss-loader": "^3.0.0",
"node-fetch": "^2.6.1",
"postcss-loader": "^4.0.4",
"qs": "^6.9.4",
"react": "^16.13.1",
"react-app-rewired": "^2.1.6",
"react-dom": "^16.13.1",
"react-dom": "^17.0.1",
"react-hook-form": "^5.7.2",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"tailwindcss": "^1.7.0",
"typescript": "~3.8.3"
"react-scripts": "4.0.0",
"react": "^17.0.1",
"tailwindcss": "^1.9.6",
"typescript": "^4.0.3",
"web-vitals": "^0.2.4"
},
"browserslist": {
"production": [
Expand All @@ -41,7 +42,10 @@
]
},
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"react-app/jest"
]
},
"jest": {
"coveragePathIgnorePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Error/BadRequest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HttpErrorWithInvalidParameters from './HttpErrorWithInvalidParameters';

class BadRequest extends HttpErrorWithInvalidParameters {
};
}

export default BadRequest;
2 changes: 1 addition & 1 deletion src/Model/Error/HttpError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class HttpError {
this.detail = detail;
this.instance = instance;
}
};
}

export default HttpError;
2 changes: 1 addition & 1 deletion src/Model/Error/HttpErrorWithInvalidParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class HttpErrorWithInvalidParameters extends HttpError {
super({ title, detail, instance });
this.invalidParameters = invalidParameters ?? [];
}
};
}

export default HttpErrorWithInvalidParameters;
2 changes: 1 addition & 1 deletion src/Model/Error/InternalServerError.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HttpError from './HttpError';

class InternalServerError extends HttpError {
};
}

export default InternalServerError;
2 changes: 1 addition & 1 deletion src/Model/Error/NetworkError.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HttpError from './HttpError';

class NetworkError extends HttpError {
};
}

export default NetworkError;
2 changes: 1 addition & 1 deletion src/Model/Error/NotFound.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HttpError from './HttpError';

class NotFound extends HttpError {
};
}

export default NotFound;
2 changes: 1 addition & 1 deletion src/Model/Error/UnprocessableEntity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HttpErrorWithInvalidParameters from './HttpErrorWithInvalidParameters';

class UnprocessableEntity extends HttpErrorWithInvalidParameters {
};
}

export default UnprocessableEntity;
2 changes: 1 addition & 1 deletion src/Model/Pet/PetFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ class PetFilters {
constructor({ name }: { name?: string }) {
this.name = name;
}
};
}

export default PetFilters;
2 changes: 1 addition & 1 deletion src/Model/Pet/PetList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ class PetList {
this._embedded = _embedded;
this._links = _links;
}
};
}

export default PetList;
2 changes: 1 addition & 1 deletion src/Model/Pet/PetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class PetRequest {
this.tag = tag;
this.vaccinations = vaccinations ?? [];
}
};
}

export default PetRequest;
2 changes: 1 addition & 1 deletion src/Model/Pet/PetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class PetResponse extends PetRequest {
this.updatedAt = updatedAt;
this._links = _links ?? {};
}
};
}

export default PetResponse;
2 changes: 1 addition & 1 deletion src/Model/Pet/Vaccination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ class Vaccination {
constructor({ name }: { name: string }) {
this.name = name;
}
};
}

export default Vaccination;

0 comments on commit 0cf338f

Please sign in to comment.