(feature): react app version upgrade
This commit is contained in:
parent
cb4615b14d
commit
e603ff41a1
23
src/ClientApp/.gitignore
vendored
Normal file
23
src/ClientApp/.gitignore
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/node_modules
|
||||||
|
/.pnp
|
||||||
|
.pnp.js
|
||||||
|
|
||||||
|
# testing
|
||||||
|
/coverage
|
||||||
|
|
||||||
|
# production
|
||||||
|
/build
|
||||||
|
|
||||||
|
# misc
|
||||||
|
.DS_Store
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
22
src/ClientApp/.vscode/launch.json
vendored
22
src/ClientApp/.vscode/launch.json
vendored
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
// 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": "pwa-chrome",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Launch Chrome against localhost",
|
|
||||||
"url": "http://localhost:3000",
|
|
||||||
"webRoot": "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "pwa-msedge",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Launch Edge against localhost",
|
|
||||||
"url": "http://localhost:3000",
|
|
||||||
"webRoot": "${workspaceFolder}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -38,8 +38,6 @@
|
|||||||
</Content>
|
</Content>
|
||||||
<None Include="Dockerfile" />
|
<None Include="Dockerfile" />
|
||||||
<Content Include=".env" />
|
<Content Include=".env" />
|
||||||
<Content Include=".eslintrc.json" />
|
|
||||||
<Content Include="package-lock.json" />
|
|
||||||
<Content Include="src\components\FeatherIcons\icons.json" />
|
<Content Include="src\components\FeatherIcons\icons.json" />
|
||||||
<Content Include="src\components\Loader\scss\animations\ball-beat.scss" />
|
<Content Include="src\components\Loader\scss\animations\ball-beat.scss" />
|
||||||
<Content Include="src\components\Loader\scss\animations\ball-clip-rotate-multiple.scss" />
|
<Content Include="src\components\Loader\scss\animations\ball-clip-rotate-multiple.scss" />
|
||||||
@ -101,7 +99,6 @@
|
|||||||
<Content Include="src\pages\Shop\Checkout\scss\style.module.scss" />
|
<Content Include="src\pages\Shop\Checkout\scss\style.module.scss" />
|
||||||
<Content Include="src\pages\Signin\scss\style.scss" />
|
<Content Include="src\pages\Signin\scss\style.scss" />
|
||||||
<Content Include="src\pages\Signup\scss\style.scss" />
|
<Content Include="src\pages\Signup\scss\style.scss" />
|
||||||
<Content Include="tsconfig.json" />
|
|
||||||
<Content Include="package.json" />
|
<Content Include="package.json" />
|
||||||
<Content Include="README.md" />
|
<Content Include="README.md" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@ -7,6 +7,7 @@ EXPOSE 3000
|
|||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
COPY ["ClientApp/", "/app"]
|
COPY ["ClientApp/", "/app"]
|
||||||
|
RUN npm i --package-lock-only
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,46 @@
|
|||||||
# ClientApp
|
# Getting Started with Create React App
|
||||||
|
|
||||||
|
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||||
|
|
||||||
|
## Available Scripts
|
||||||
|
|
||||||
|
In the project directory, you can run:
|
||||||
|
|
||||||
|
### `npm start`
|
||||||
|
|
||||||
|
Runs the app in the development mode.\
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||||
|
|
||||||
|
The page will reload if you make edits.\
|
||||||
|
You will also see any lint errors in the console.
|
||||||
|
|
||||||
|
### `npm test`
|
||||||
|
|
||||||
|
Launches the test runner in the interactive watch mode.\
|
||||||
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||||
|
|
||||||
|
### `npm run build`
|
||||||
|
|
||||||
|
Builds the app for production to the `build` folder.\
|
||||||
|
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.\
|
||||||
|
Your app is ready to be deployed!
|
||||||
|
|
||||||
|
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||||
|
|
||||||
|
### `npm run eject`
|
||||||
|
|
||||||
|
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
||||||
|
|
||||||
|
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||||
|
|
||||||
|
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||||
|
|
||||||
|
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||||
|
|
||||||
|
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||||
|
|||||||
18660
src/ClientApp/package-lock.json
generated
18660
src/ClientApp/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,61 +1,59 @@
|
|||||||
{
|
{
|
||||||
"name": "react-redux",
|
"name": "reactredux",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.3.4",
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.0",
|
||||||
"bootstrap": "5.1.3",
|
"@testing-library/jest-dom": "^5.16.5",
|
||||||
"classnames": "^2.3.1",
|
"@testing-library/react": "^13.4.0",
|
||||||
"dayjs": "^1.11.2",
|
"@testing-library/user-event": "^13.5.0",
|
||||||
"history": "5.3.0",
|
"@types/jest": "^27.5.2",
|
||||||
|
"@types/node": "^16.18.33",
|
||||||
|
"@types/react": "^18.2.7",
|
||||||
|
"@types/react-dom": "^18.2.4",
|
||||||
|
"axios": "^1.4.0",
|
||||||
|
"bootstrap": "^5.2.3",
|
||||||
|
"classnames": "^2.3.2",
|
||||||
|
"dayjs": "^1.11.7",
|
||||||
|
"history": "^5.3.0",
|
||||||
"merge": "^2.1.1",
|
"merge": "^2.1.1",
|
||||||
"react": "18.0.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "18.0.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-redux": "7.2.8",
|
"react-redux": "^8.0.5",
|
||||||
"react-router": "6.3.0",
|
"react-router": "^6.11.2",
|
||||||
"react-router-dom": "6.3.0",
|
"react-router-dom": "^6.11.2",
|
||||||
"reactstrap": "9.0.2",
|
"react-scripts": "5.0.1",
|
||||||
"redux": "4.1.2",
|
"reactstrap": "^9.1.10",
|
||||||
"redux-first-history": "^5.0.9",
|
"redux": "^4.2.1",
|
||||||
"redux-thunk": "2.4.1",
|
"redux-first-history": "^5.1.1",
|
||||||
"svgo": "2.8.0"
|
"redux-thunk": "^2.4.2",
|
||||||
},
|
"sass": "^1.62.1",
|
||||||
"devDependencies": {
|
"svgo": "^3.0.2",
|
||||||
"@types/history": "4.7.11",
|
"typescript": "^4.9.5",
|
||||||
"@types/jest": "27.4.1",
|
"web-vitals": "^2.1.4"
|
||||||
"@types/node": "17.0.24",
|
|
||||||
"@types/react": "18.0.5",
|
|
||||||
"@types/react-dom": "18.0.1",
|
|
||||||
"@types/react-redux": "7.1.24",
|
|
||||||
"@types/react-router": "5.1.18",
|
|
||||||
"@types/react-router-dom": "5.3.3",
|
|
||||||
"@typescript-eslint/parser": "^5.19.0",
|
|
||||||
"cross-env": "7.0.3",
|
|
||||||
"eslint": "^8.13.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
||||||
"nan": "^2.15.0",
|
|
||||||
"react-scripts": "^5.0.1",
|
|
||||||
"sass": "^1.50.0",
|
|
||||||
"typescript": "4.6.3"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "cross-env CI=true react-scripts test --env=jsdom",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject"
|
||||||
"lint": "eslint ./src/**/*.ts ./src/**/*.tsx"
|
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": [
|
||||||
|
"react-app",
|
||||||
|
"react-app/jest"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"browserslist": {
|
||||||
"url-parse": ">=1.5.0",
|
"production": [
|
||||||
"lodash": ">=4.17.21"
|
|
||||||
},
|
|
||||||
"browserslist": [
|
|
||||||
">0.2%",
|
">0.2%",
|
||||||
"not dead",
|
"not dead",
|
||||||
"not ie <= 11",
|
|
||||||
"not op_mini all"
|
"not op_mini all"
|
||||||
|
],
|
||||||
|
"development": [
|
||||||
|
"last 1 chrome version",
|
||||||
|
"last 1 firefox version",
|
||||||
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.8 KiB |
@ -1,16 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||||
<meta name="theme-color" content="#000000">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<base href="%PUBLIC_URL%/" />
|
<meta name="theme-color" content="#000000" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Web site created using create-react-app"
|
||||||
|
/>
|
||||||
|
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||||
<!--
|
<!--
|
||||||
manifest.json provides metadata used when your web app is added to the
|
manifest.json provides metadata used when your web app is installed on a
|
||||||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
|
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||||
-->
|
-->
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
|
|
||||||
<!--
|
<!--
|
||||||
Notice the use of %PUBLIC_URL% in the tags above.
|
Notice the use of %PUBLIC_URL% in the tags above.
|
||||||
It will be replaced with the URL of the `public` folder during the build.
|
It will be replaced with the URL of the `public` folder during the build.
|
||||||
@ -20,12 +24,10 @@
|
|||||||
work correctly both with client-side routing and a non-root public URL.
|
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`.
|
Learn how to configure a non-root public URL by running `npm run build`.
|
||||||
-->
|
-->
|
||||||
<title>react-redux-template</title>
|
<title>React App</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
You need to enable JavaScript to run this app.
|
|
||||||
</noscript>
|
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<!--
|
<!--
|
||||||
This HTML file is a template.
|
This HTML file is a template.
|
||||||
|
|||||||
BIN
src/ClientApp/public/logo192.png
Normal file
BIN
src/ClientApp/public/logo192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
BIN
src/ClientApp/public/logo512.png
Normal file
BIN
src/ClientApp/public/logo512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
@ -1,14 +1,24 @@
|
|||||||
{
|
{
|
||||||
"short_name": "react-redux-template",
|
"short_name": "React App",
|
||||||
"name": "react-redux-template",
|
"name": "Create React App Sample",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "favicon.ico",
|
"src": "favicon.ico",
|
||||||
"sizes": "64x64 32x32 24x24 16x16",
|
"sizes": "64x64 32x32 24x24 16x16",
|
||||||
"type": "image/x-icon"
|
"type": "image/x-icon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo192.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "192x192"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo512.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"start_url": "./index.html",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"theme_color": "#000000",
|
"theme_color": "#000000",
|
||||||
"background_color": "#ffffff"
|
"background_color": "#ffffff"
|
||||||
|
|||||||
3
src/ClientApp/public/robots.txt
Normal file
3
src/ClientApp/public/robots.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
@ -4,6 +4,7 @@ import { Route, Routes, useLocation } from 'react-router'
|
|||||||
|
|
||||||
// Redux
|
// Redux
|
||||||
import { useSelector, useDispatch } from 'react-redux'
|
import { useSelector, useDispatch } from 'react-redux'
|
||||||
|
import type {} from 'redux-thunk/extend-redux'
|
||||||
import { actionCreators as settingsActionCreators } from './store/reducers/Content'
|
import { actionCreators as settingsActionCreators } from './store/reducers/Content'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { useParams } from 'react-router-dom'
|
|||||||
|
|
||||||
// Redux
|
// Redux
|
||||||
import { useDispatch, useSelector } from 'react-redux'
|
import { useDispatch, useSelector } from 'react-redux'
|
||||||
|
|
||||||
import { ApplicationState } from '../../../store'
|
import { ApplicationState } from '../../../store'
|
||||||
import { actionCreators as shopItemActionCreators } from '../../../store/reducers/ShopItem'
|
import { actionCreators as shopItemActionCreators } from '../../../store/reducers/ShopItem'
|
||||||
|
|
||||||
|
|||||||
@ -3,4 +3,4 @@ WiredTiger 10.0.2: (December 21, 2021)
|
|||||||
WiredTiger version
|
WiredTiger version
|
||||||
major=10,minor=0,patch=2
|
major=10,minor=0,patch=2
|
||||||
file:WiredTiger.wt
|
file:WiredTiger.wt
|
||||||
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=,cache_resident=false,checksum=on,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=0),value_format=S,verbose=[],version=(major=1,minor=1),write_timestamp_usage=none,checkpoint=(WiredTigerCheckpoint.127995=(addr="018081e4886024688181e4d73f01df8281e4e69d0e29808080e3021fc0e3010fc0",order=127995,time=1685108131,size=81920,newest_start_durable_ts=0,oldest_start_ts=0,newest_txn=298,newest_stop_durable_ts=0,newest_stop_ts=-1,newest_stop_txn=-11,prepare=0,write_gen=384809,run_write_gen=384387)),checkpoint_backup_info=,checkpoint_lsn=(87,118016)
|
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=,cache_resident=false,checksum=on,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=0),value_format=S,verbose=[],version=(major=1,minor=1),write_timestamp_usage=none,checkpoint=(WiredTigerCheckpoint.128176=(addr="018381e4ba16d6a78481e491b9ee468581e4a61a442c808080e302cfc0e3010fc0",order=128176,time=1685120283,size=81920,newest_start_durable_ts=0,oldest_start_ts=0,newest_txn=12,newest_stop_durable_ts=0,newest_stop_ts=-1,newest_stop_txn=-11,prepare=0,write_gen=385381,run_write_gen=385369)),checkpoint_backup_info=,checkpoint_lsn=(95,7552)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user