-
Notifications
You must be signed in to change notification settings - Fork 1
Hackathon 2025 - Cumulative changes #1496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
13d0609
a0e77fa
a1ab339
e4eed8a
bd595b8
a1a0751
ae5bf93
7c1ff9a
756b781
694899b
f5be300
f993bcc
3d0cd09
92229ad
4033bf0
08ea8f7
36baa14
1bf3e94
bbff7a4
ce0ea1b
a38ac86
e588999
9dbb149
6d5a8b8
28a2fbd
7f27566
dc37284
4014f0a
2b0df85
e06e2e4
b866bc1
fa4b59b
3a53e2a
7e95d45
8570e80
85757c1
856f04c
e1af8f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ | |
|
|
||
| # generated sources | ||
| /src/generated | ||
| /src/index.css | ||
| /src/infra.css | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,16 +3,9 @@ | |
| "version": "0.1.0", | ||
| "private": true, | ||
| "scripts": { | ||
| "clean": "npm-run-all clean:*", | ||
| "clean:tailwind": "rm -f src/index.css", | ||
| "start": "npm-run-all clean -p start:*", | ||
| "start:tailwind": "NODE_ENV=development postcss ./src/app.tw.css -o ./src/index.css -w", | ||
| "start:cra": "wait-on src/index.css && PORT=3001 HTTPS=true NODE_OPTIONS=--openssl-legacy-provider EXTEND_ESLINT=true react-scripts start", | ||
| "build": "npm-run-all build:tailwind build:cra", | ||
| "build:tailwind": "NODE_ENV=production postcss ./src/app.tw.css -o ./src/index.css", | ||
| "build:cra": "NODE_OPTIONS=--openssl-legacy-provider EXTEND_ESLINT=true react-scripts build", | ||
| "test": "react-scripts test", | ||
| "eject": "react-scripts eject", | ||
| "start": "PORT=3001 HTTPS=true NODE_OPTIONS=--openssl-legacy-provider EXTEND_ESLINT=true vite", | ||
| "build": "NODE_OPTIONS=--openssl-legacy-provider EXTEND_ESLINT=true vite build", | ||
| "test": "echo 'Someone should write some tests'", | ||
| "lint-check": "npm-run-all lint-check:*", | ||
| "lint-check:non-src": "prettier --check '**/*.{md,css,json}'", | ||
| "lint-check:src": "eslint --ext .js,.jsx,.ts,.tsx ./", | ||
|
|
@@ -22,49 +15,46 @@ | |
| "gen:src": "./scripts/generate-client.sh" | ||
| }, | ||
| "dependencies": { | ||
| "@patternfly/patternfly": "^4.224.2", | ||
| "@patternfly/react-core": "^4.276.8", | ||
| "@patternfly/react-icons": "^4.93.6", | ||
| "@patternfly/patternfly": "^6.1.0", | ||
| "@patternfly/react-core": "^6.0.0", | ||
| "@patternfly/react-icons": "^6.0.0", | ||
| "@tanstack/react-query": "^5.66.9", | ||
| "axios": "^0.21.4", | ||
| "eslint": "^7.11.0", | ||
| "formik": "^2.4.2", | ||
| "history": "^5.0.1", | ||
| "lodash": "^4.17.21", | ||
| "moment": "^2.29.4", | ||
| "namor": "^2.0.3", | ||
| "prop-types": "^15.8.1", | ||
| "react": "^17.0.1", | ||
| "react-dom": "^17.0.1", | ||
| "react-feather": "^2.0.9", | ||
| "random-words": "^2.0.1", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "react-markdown": "^8.0.0", | ||
| "react-router-dom": "^6.14.1", | ||
| "react-spinners": "^0.13.8", | ||
| "use-clipboard-copy": "^0.2.0", | ||
| "react-responsive": "^10.0.0", | ||
| "react-router-dom": "^6.29.0", | ||
| "yup": "^1.3.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@stackrox/tailwind-config": "^0.2.0", | ||
| "@testing-library/jest-dom": "^5.17.0", | ||
| "@testing-library/react": "^12.1.1", | ||
| "@testing-library/user-event": "^13.2.1", | ||
| "@types/jest": "^27.0.2", | ||
| "@types/lodash": "^4.14.195", | ||
| "@types/node": "^20.5.4", | ||
| "@types/react": "^17.0.20", | ||
| "@types/react-dom": "^17.0.9", | ||
| "@types/node": "^22.13.4", | ||
| "@types/react": "^18.3.12", | ||
| "@types/react-dom": "^18.3.1", | ||
| "@vitejs/plugin-react": "^4.3.4", | ||
| "autoprefixer": "^10.4.14", | ||
| "eslint-config-airbnb-typescript": "^12.0.0", | ||
| "eslint-config-prettier": "^7.2.0", | ||
| "eslint-config-react-app": "^7.0.1", | ||
| "eslint-plugin-eslint-comments": "^3.2.0", | ||
| "eslint-plugin-prettier": "^3.4.1", | ||
| "http-proxy-middleware": "^2.0.6", | ||
| "npm-run-all": "^4.1.5", | ||
| "postcss": "^8.4.31", | ||
| "postcss-cli": "^10.1.0", | ||
| "prettier": "^2.2.1", | ||
| "react-scripts": "^4.0.1", | ||
| "tailwindcss": "^2.2.9", | ||
| "typescript": "~5.1.6", | ||
| "wait-on": "^7.0.1" | ||
| "vite": "^6.1.0", | ||
| "vite-tsconfig-paths": "^4.3.2" | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,3 @@ | |
|
|
||
| # include generated sources | ||
| !/generated | ||
|
|
||
| # exclude tailwind generated styles | ||
| /index.css | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { FlavorServiceApi, V1Flavor } from 'generated/client'; | ||
| import { QueryClient } from '@tanstack/react-query'; | ||
| import configuration from './configuration'; | ||
|
|
||
| const flavorService = new FlavorServiceApi(configuration); | ||
|
|
||
| export function flavorInfoQueryOptions(flavorId: string) { | ||
| return { | ||
| queryKey: ['flavorInfo', flavorId], | ||
| queryFn: () => flavorService.info(flavorId), | ||
| staleTime: 60 * 60 * 1000, // One hour - this info almost never changes | ||
| }; | ||
| } | ||
|
|
||
| export function prefetchFlavors(queryClient: QueryClient, flavors: V1Flavor[]) { | ||
| flavors.forEach(async ({ ID }) => { | ||
| await queryClient.prefetchQuery(flavorInfoQueryOptions(ID ?? '')); | ||
| }); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add
eslintexplicitly after droppingreact-scripts.