Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Production
build

# Dependencies
node_modules
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 2018,
"requireConfigFile": false,
"sourceType": "module",
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"plugins": ["import"],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"no-empty-function": "warn",
"no-unused-vars": 1
},
"env": {
"browser": true,
"node": true,
"es6": true
}
}
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Production
build

# Dependencies
node_modules

# This gets modified via `npm install`
package-lock.json
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"trailingComma": "none",
"arrowParens": "avoid",
"endOfLine": "auto",
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"overrides": [
{
"files": "*.json",
"options": {
"singleQuote": false
}
}
]
}
94 changes: 45 additions & 49 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,46 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug Request-Generator (Launch Docker)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/home/node/app/request-generator/*": "${webRoot}/*",
},
"runtimeArgs": [
"--remote-debugging-port=9222"
]
},
{
"type": "chrome",
"request": "attach",
"name": "Debug Request-Generator (Attach Docker)",
"port": 9222,
"urlFilter": "http://localhost:3000/*",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/home/node/app/request-generator/*": "${webRoot}/*",
}
},
{
"type": "chrome",
"request": "launch",
"name": "Debug Request-Generator (Launch Local)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"runtimeArgs": [
"--remote-debugging-port=9222"
]
},
{
"type": "chrome",
"request": "attach",
"port": 9222,
"name": "Debug Request-Generator (Attach Local)",
"urlFilter": "http://localhost:3000/*",
"webRoot": "${workspaceFolder}",
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug Request-Generator (Launch Docker)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/home/node/app/request-generator/*": "${webRoot}/*"
},
"runtimeArgs": ["--remote-debugging-port=9222"]
},
{
"type": "chrome",
"request": "attach",
"name": "Debug Request-Generator (Attach Docker)",
"port": 9222,
"urlFilter": "http://localhost:3000/*",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/home/node/app/request-generator/*": "${webRoot}/*"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Debug Request-Generator (Launch Local)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"runtimeArgs": ["--remote-debugging-port=9222"]
},
{
"type": "chrome",
"request": "attach",
"port": 9222,
"name": "Debug Request-Generator (Attach Local)",
"urlFilter": "http://localhost:3000/*",
"webRoot": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This subproject provides a small web application that is capable of generating r
This should open a browser window directed to the value set in `REACT_APP_URL`. The request-generator assumes the CRD server is running on the default value set for `REACT_APP_SERVER`. This can be changed in the properties file [.env](./.env). [The following section](./README.md#how-to-override-defaults) lists the default values for these environment variables.

## Versions
This application requires node v20.0 or greater.
This application requires node v14.


### How To Override Defaults
Expand Down
Loading