Skip to content

Commit f9d5ce6

Browse files
pre-commit-ci[bot]F-X64
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9b868da commit f9d5ce6

15 files changed

+5719
-5711
lines changed

__mocks__/fileMock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = 'test-file-stub';
1+
module.exports = 'test-file-stub';

__mocks__/styleMock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = {};
1+
module.exports = {};

package-lock.json

+5,640-5,640
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
11
{
2-
"name": "cloud-image-directory",
3-
"version": "0.0.1",
4-
"description": "A web portal for locating RHEL cloud images for public cloud providers.",
5-
"repository": "https://github.com/redhatcloudx/cloud-image-directory-frontend",
6-
"homepage": "",
7-
"license": "MIT",
8-
"private": true,
9-
"scripts": {
10-
"prebuild": "npm run clean",
11-
"dr:surge": "node dr-surge.js",
12-
"build": "webpack --config webpack.prod.js && npm run dr:surge",
13-
"start": "sirv dist --cors --single --host --port 8080",
14-
"start:dev": "webpack serve --color --progress --stats-error-details --config webpack.dev.js",
15-
"test": "jest --watch",
16-
"test:coverage": "jest --coverage",
17-
"eslint": "eslint --ext .tsx,.js ./src/",
18-
"lint": "npm run eslint",
19-
"format": "prettier --check --write ./src/**/*.{tsx,ts}",
20-
"type-check": "tsc --noEmit",
21-
"ci-checks": "npm run type-check && npm run lint && npm run test:coverage",
22-
"build:bundle-profile": "webpack --config webpack.prod.js --profile --json > stats.json",
23-
"bundle-profile:analyze": "npm run build:bundle-profile && webpack-bundle-analyzer ./stats.json",
24-
"clean": "rimraf dist"
2+
"dependencies": {
3+
"@patternfly/react-core": "^4.181.1",
4+
"@patternfly/react-icons": "^4.32.1",
5+
"@patternfly/react-table": "^4.93.1",
6+
"react": "^18.2.0",
7+
"react-dom": "^18.2.0",
8+
"react-router-dom-last-location": "^0.2.0",
9+
"regenerator-runtime": "^0.13.11",
10+
"sirv-cli": "^2.0.0"
2511
},
12+
"description": "A web portal for locating RHEL cloud images for public cloud providers.",
2613
"devDependencies": {
2714
"@babel/preset-typescript": "^7.21.0",
2815
"@testing-library/jest-dom": "^5.16.5",
@@ -77,14 +64,27 @@
7764
"webpack-dev-server": "^4.13.1",
7865
"webpack-merge": "^5.8.0"
7966
},
80-
"dependencies": {
81-
"@patternfly/react-core": "^4.181.1",
82-
"@patternfly/react-icons": "^4.32.1",
83-
"@patternfly/react-table": "^4.93.1",
84-
"react": "^18.2.0",
85-
"react-dom": "^18.2.0",
86-
"react-router-dom-last-location": "^0.2.0",
87-
"regenerator-runtime": "^0.13.11",
88-
"sirv-cli": "^2.0.0"
89-
}
67+
"homepage": "",
68+
"license": "MIT",
69+
"name": "cloud-image-directory",
70+
"private": true,
71+
"repository": "https://github.com/redhatcloudx/cloud-image-directory-frontend",
72+
"scripts": {
73+
"build": "webpack --config webpack.prod.js && npm run dr:surge",
74+
"build:bundle-profile": "webpack --config webpack.prod.js --profile --json > stats.json",
75+
"bundle-profile:analyze": "npm run build:bundle-profile && webpack-bundle-analyzer ./stats.json",
76+
"ci-checks": "npm run type-check && npm run lint && npm run test:coverage",
77+
"clean": "rimraf dist",
78+
"dr:surge": "node dr-surge.js",
79+
"eslint": "eslint --ext .tsx,.js ./src/",
80+
"format": "prettier --check --write ./src/**/*.{tsx,ts}",
81+
"lint": "npm run eslint",
82+
"prebuild": "npm run clean",
83+
"start": "sirv dist --cors --single --host --port 8080",
84+
"start:dev": "webpack serve --color --progress --stats-error-details --config webpack.dev.js",
85+
"test": "jest --watch",
86+
"test:coverage": "jest --coverage",
87+
"type-check": "tsc --noEmit"
88+
},
89+
"version": "0.0.1"
9090
}

src/app/Pages/Browser/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { AWS as AWSImageBrowser } from './AWS'
22
export { Azure as AzureImageBrowser } from './Azure'
3-
export { GCP as GCPImageBrowser } from './GCP'
3+
export { GCP as GCPImageBrowser } from './GCP'

src/app/app.css

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ a:link, a:visited,a:hover, a:active {
5656
background-color: #3e2323;
5757
transition: transform 300ms ease-in-out, background-color 300ms ease-in-out;
5858
}
59-

src/app/bgimages/cloud_download.svg

+1-1
Loading

src/app/components/Emoji.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const Emoji = ({ symbol }) => {
1212
)
1313
}
1414

15-
export default Emoji
15+
export default Emoji

src/app/components/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ const Footer = () => {
4747
)
4848
}
4949

50-
export default Footer
50+
export default Footer

src/app/components/ProviderCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ export default class ProviderCard extends React.Component<IProviderCardProps, IP
7070
</Card>
7171
)
7272
}
73-
}
73+
}

src/app/utils/environments.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ const NODE_ENV = process.env.NODE_ENV
44
export {
55
API_ROOT,
66
NODE_ENV,
7-
}
7+
}

src/declaration.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
declare module '*.scss' {
22
const content: Record<string, string>;
33
export default content;
4-
}
4+
}

test-idx.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"index": [
33
{
4-
"name": "RHEL",
54
"arch": "x86",
6-
"version": "9.0",
7-
"imageId": "someID",
85
"date": "2021-03-18T15:22:40.000Z",
9-
"filePath": "./testfiles/image1.json"
6+
"filePath": "./testfiles/image1.json",
7+
"imageId": "someID",
8+
"name": "RHEL",
9+
"version": "9.0"
1010
},
1111
{
12-
"name": "RHEL",
1312
"arch": "x86",
14-
"version": "9.0",
15-
"imageId": "someID",
1613
"date": "2021-03-18T15:22:40.000Z",
17-
"filePath": "./testfiles/image1.json"
14+
"filePath": "./testfiles/image1.json",
15+
"imageId": "someID",
16+
"name": "RHEL",
17+
"version": "9.0"
1818
}
1919
]
20-
}
20+
}

tools/queryAWSImages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ for version in "${MAJOR_VERSIONS[@]}"; do
1414
fi
1515
done
1616
done
17-
echo "$REPORT" | jq . | sed 's/\\n/\n/g; s/\\//g; s/"{/{/g; s/}"/}/g' > "./output.json"
17+
echo "$REPORT" | jq . | sed 's/\\n/\n/g; s/\\//g; s/"{/{/g; s/}"/}/g' > "./output.json"

tsconfig.json

+27-18
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"allowSyntheticDefaultImports": true,
35
"baseUrl": ".",
4-
"rootDir": ".",
5-
"outDir": "dist",
6-
"module": "esnext",
7-
"target": "es5",
8-
"lib": ["es6", "dom"],
9-
"sourceMap": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"importHelpers": true,
109
"jsx": "react-jsx",
10+
"lib": [
11+
"es6",
12+
"dom"
13+
],
14+
"module": "esnext",
1115
"moduleResolution": "node",
12-
"forceConsistentCasingInFileNames": true,
16+
"noImplicitAny": false,
1317
"noImplicitReturns": true,
1418
"noImplicitThis": true,
15-
"noImplicitAny": false,
16-
"allowJs": true,
17-
"esModuleInterop": true,
18-
"allowSyntheticDefaultImports": true,
19-
"strict": true,
19+
"outDir": "dist",
2020
"paths": {
21-
"@app/*": ["src/app/*"],
22-
"@assets/*": ["node_modules/@patternfly/react-core/dist/styles/assets/*"]
21+
"@app/*": [
22+
"src/app/*"
23+
],
24+
"@assets/*": [
25+
"node_modules/@patternfly/react-core/dist/styles/assets/*"
26+
]
2327
},
24-
"importHelpers": true,
25-
"skipLibCheck": true
28+
"rootDir": ".",
29+
"skipLibCheck": true,
30+
"sourceMap": true,
31+
"strict": true,
32+
"target": "es5"
2633
},
34+
"exclude": [
35+
"node_modules"
36+
],
2737
"include": [
2838
"**/*.ts",
2939
"**/*.tsx",
3040
"**/*.jsx",
3141
"**/*.js"
32-
],
33-
"exclude": ["node_modules"]
42+
]
3443
}

0 commit comments

Comments
 (0)