-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rachid Snoussi
committed
May 20, 2020
0 parents
commit e9d3c76
Showing
38 changed files
with
1,362 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Node and React | ||
node_modules/ | ||
dist/ | ||
node/ | ||
coverage/ | ||
build/ | ||
out/ | ||
**/yarn.lock | ||
**/stats.json | ||
package-lock.json | ||
|
||
# Eclipse, Netbeans, vsCode and IntelliJ files | ||
/.* | ||
!.github | ||
!.gitignore | ||
/nbproject | ||
/*.ipr | ||
/*.iws | ||
.idea | ||
**/*.iml | ||
.classpath | ||
.project | ||
.settings | ||
**/junit.xml | ||
.vscode/ | ||
|
||
# Mac | ||
**/.DS_Store | ||
|
||
# Maven | ||
log/ | ||
target/ | ||
|
||
# Other | ||
*.log* | ||
tmp/ | ||
bin/ | ||
local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
find . -type d -name 'node_modules' -prune -exec rm -rf {} \; | ||
find . -type d -name 'node' -prune -exec rm -rf {} \; | ||
find . -type d -name 'build' -prune -exec rm -rf {} \; | ||
find . -type f -name 'package-lock.json' -prune -exec rm -rf {} \; | ||
find . -type f -name 'tsconfig.json' -prune -exec rm -rf {} \; | ||
find . -type f -name '*.log' -prune -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# QLB React App | ||
|
||
Frontend application for the Quick Loan Bank demo, | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app), and beautified with [Patternfly](https://www.patternfly.org/v4/) | ||
|
||
## Quick start | ||
|
||
In the project directory, you can run: | ||
|
||
```bash | ||
npm install && npm run start | ||
``` | ||
|
||
## Development Scripts | ||
|
||
Runs the app in the development mode.<br /> | ||
|
||
```bash | ||
# Install development/build dependencies | ||
npm install | ||
|
||
# Start the development server | ||
npm run start | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
|
||
## Production Scripts | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
The build is minified and the filenames include the hashes.<br /> | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
Your app is now ready to be deployed! | ||
|
||
For environments using `Node`, the easiest way to handle deployment would be to install `serve` and let it handle the rest: | ||
|
||
```bash | ||
npm install -g serve | ||
``` | ||
|
||
The following command will serve your static site on the port `5000` (default). | ||
|
||
```bash | ||
serve -s build | ||
``` | ||
|
||
The port can be adjusted using the `-l` or `--listen` flags " | ||
|
||
```bash | ||
serve -s build -l 4000 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "qlb-react-app", | ||
"version": "0.1.0", | ||
"description": "", | ||
"dependencies": { | ||
"@patternfly/react-core": "^3.153.13", | ||
"@patternfly/react-icons": "^3.15.16", | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/react": "^9.5.0", | ||
"@testing-library/user-event": "^7.2.1", | ||
"@types/react-router-dom": "^5.1.5", | ||
"axios": "^0.19.2", | ||
"react": "^16.13.1", | ||
"react-axe": "^3.4.1", | ||
"react-dom": "^16.13.1", | ||
"react-router-dom": "^5.1.2", | ||
"react-router-last-location": "^2.0.1", | ||
"react-scripts": "3.4.1" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": "react-app" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^16.9.34", | ||
"@types/react-dom": "^16.9.7", | ||
"source-map-loader": "^0.2.4", | ||
"ts-loader": "^7.0.2", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Pre-Approval App</title> | ||
<meta | ||
id="appName" | ||
name="qlb-pre-approval-app" | ||
content="App created using create-react-app + Patternfly Seed" | ||
/> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="theme-color" content="#000000" /> | ||
|
||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
style="height: 100%;" | ||
class="pf-m-redhat-font" | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
|
||
<base href="/" /> | ||
</head> | ||
<script> | ||
window.PREAPPROVAL_SERVICE_ENDPOINT = __PREAPPROVAL_SERVICE_ENDPOINT__; | ||
</script> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"value": "please choose", | ||
"label": "Please Choose", | ||
"disabled": true | ||
}, | ||
{ | ||
"value": 5, | ||
"label": "5 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 7, | ||
"label": "7 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 10, | ||
"label": "10 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 12, | ||
"label": "12 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 15, | ||
"label": "15 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 20, | ||
"label": "20 years", | ||
"disabled": false | ||
}, | ||
{ | ||
"value": 25, | ||
"label": "25 years", | ||
"disabled": false | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import '@patternfly/react-core/dist/styles/base.css'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { AppLayout } from './AppLayout'; | ||
import '../css/App.css'; | ||
|
||
const App: React.FunctionComponent = () => ( | ||
<Router> | ||
<AppLayout/> | ||
</Router> | ||
); | ||
|
||
export { App }; |
Oops, something went wrong.