first commit
@@ -0,0 +1,15 @@
|
||||
PUBLIC_URL=http://localhost:3000/
|
||||
PORT=3000
|
||||
REACT_APP_BASE_LAYOUT_CONFIG_KEY='metronic-react-demo1-8150'
|
||||
REACT_APP_API_URL=https://preview.keenthemes.com/metronic8/laravel/api
|
||||
REACT_APP_VERSION=v8.1.5
|
||||
REACT_APP_THEME_NAME=Metornic
|
||||
REACT_APP_THEME_DEMO=demo1
|
||||
REACT_APP_BOOTSTRAP_DOCS_LINK=https://getbootstrap.com/docs/5.0
|
||||
REACT_APP_SASS_PATH=src/_metronic/assets/sass/core/components
|
||||
REACT_APP_SASS_VARIABLES_PATH=src/_metronic/assets/sass/core/components/_variables.scss
|
||||
REACT_APP_PURCHASE_URL=https://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469
|
||||
REACT_APP_PREVIEW_URL=https://preview.keenthemes.com/metronic8/react/demo1/
|
||||
REACT_APP_PREVIEW_REACT_URL=https://preview.keenthemes.com/metronic8/react
|
||||
REACT_APP_PREVIEW_DOCS_URL=https://preview.keenthemes.com/metronic8/react/docs
|
||||
REACT_APP_THEME_API_URL=https://preview.keenthemes.com/theme-api/api
|
||||
@@ -0,0 +1,32 @@
|
||||
# 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*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
build
|
||||
coverage
|
||||
.vscode
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"printWidth": 100,
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"jsxBracketSameLine": false,
|
||||
"arrowParens": "always",
|
||||
"endOfLine": "auto",
|
||||
"jsxSingleQuote": true,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"useTabs": false,
|
||||
"htmlWhitespaceSensitivity": "css"
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
# 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:
|
||||
|
||||
### `yarn 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.
|
||||
|
||||
### `yarn 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.
|
||||
|
||||
### `yarn 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.
|
||||
|
||||
### `yarn 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/).
|
||||
@@ -0,0 +1,21 @@
|
||||
version: '3'
|
||||
services:
|
||||
metronic-dash:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3800:3000
|
||||
# - 3800:3011
|
||||
extra_hosts:
|
||||
- backend.wrenchboard.api.live:10.10.33.15
|
||||
- backend.wrenchboard.api.test:10.10.33.15
|
||||
# #- backend.wrenchboard.api.live:172.31.4.27
|
||||
# #- backend.wrenchboard.api.test:10.20.30.27
|
||||
- apigateway.wrenchboard.app.dev.fluxtra.net:10.20.30.19
|
||||
- apigateway.wrenchboard.app.lotus.fluxtra.net:172.31.4.19
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
volumes:
|
||||
src:
|
||||
@@ -0,0 +1,23 @@
|
||||
# pull official base image
|
||||
FROM node:18.12.1-alpine
|
||||
|
||||
# set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# add `/app/node_modules/.bin` to $PATH
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
|
||||
# install app dependencies
|
||||
COPY package.json ./
|
||||
#COPY package-lock.json ./
|
||||
RUN npm install --silent
|
||||
# RUN npm install react-scripts@3.4.1 -g --silent
|
||||
|
||||
# add app
|
||||
COPY . ./
|
||||
|
||||
# start app
|
||||
CMD ["npm","run", "start"]
|
||||
|
||||
# CMD ["yarn", "start"]
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"name": "demo1",
|
||||
"version": "8.1.5",
|
||||
"private": true,
|
||||
"homepage": "/metronic8/react/demo1",
|
||||
"dependencies": {
|
||||
"@formatjs/intl-pluralrules": "4.3.3",
|
||||
"@formatjs/intl-relativetimeformat": "10.0.1",
|
||||
"@fortawesome/fontawesome-free": "6.1.1",
|
||||
"@popperjs/core": "2.11.6",
|
||||
"animate.css": "4.1.1",
|
||||
"apexcharts": "3.35.0",
|
||||
"axios": "0.26.1",
|
||||
"bootstrap": "5.2.2",
|
||||
"bootstrap-icons": "^1.5.0",
|
||||
"chart.js": "3.7.1",
|
||||
"clsx": "1.1.1",
|
||||
"formik": "2.2.9",
|
||||
"line-awesome": "1.3.0",
|
||||
"nouislider": "15.5.1",
|
||||
"prism-react-renderer": "1.3.1",
|
||||
"prism-themes": "1.9.0",
|
||||
"prismjs": "1.28.0",
|
||||
"qs": "6.10.3",
|
||||
"react": "18.0.0",
|
||||
"react-dom": "18.0.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-inlinesvg": "3.0.0",
|
||||
"react-apexcharts": "1.4.0",
|
||||
"react-bootstrap": "2.5.0-beta.1",
|
||||
"react-copy-to-clipboard": "5.1.0",
|
||||
"react-intl": "5.25.0",
|
||||
"react-query": "3.38.0",
|
||||
"react-router-dom": "6.3.0",
|
||||
"react-table": "^7.7.0",
|
||||
"react-topbar-progress-indicator": "4.1.1",
|
||||
"socicon": "3.0.5",
|
||||
"sass": "1.50.1",
|
||||
"yup": "0.32.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "5.16.4",
|
||||
"@testing-library/react": "13.1.1",
|
||||
"@testing-library/user-event": "13.5.0",
|
||||
"@types/bootstrap": "5.1.10",
|
||||
"@types/chart.js": "2.9.37",
|
||||
"@types/jest": "27.4.1",
|
||||
"@types/node": "16.11.27",
|
||||
"@types/react": "18.0.6",
|
||||
"@types/react-dom": "18.0.2",
|
||||
"@types/react-table": "^7.7.9",
|
||||
"@types/prismjs": "1.26.0",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react-copy-to-clipboard": "5.0.2",
|
||||
"@types/sass-loader": "8.0.3",
|
||||
"css-loader": "6.7.1",
|
||||
"del": "6.0.0",
|
||||
"mini-css-extract-plugin": "2.6.1",
|
||||
"prettier": "2.6.2",
|
||||
"rtlcss-webpack-plugin": "4.0.7",
|
||||
"sass-loader": "13.0.2",
|
||||
"typescript": "4.6.3",
|
||||
"webpack": "5.74.0",
|
||||
"webpack-cli": "4.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "prettier --check .",
|
||||
"format": "prettier --write .",
|
||||
"rtl": "webpack --config=rtl.config.js"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"dist/*"
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Metronic React Demo 1" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700">
|
||||
<title>Metronic Theme | Keenthemes</title>
|
||||
<link rel="shortcut icon" href="%PUBLIC_URL%/media/logos/favicon.ico" />
|
||||
<link rel="stylesheet" id="layout-styles-anchor" href="%PUBLIC_URL%/splash-screen.css" />
|
||||
</head>
|
||||
|
||||
<body id="kt_body" class="page-loading splash-screen mat-typography">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<!--begin::Theme mode setup on page load-->
|
||||
<script>
|
||||
if (document.documentElement) {
|
||||
var defaultThemeMode = "system";
|
||||
|
||||
var themeMode = localStorage.getItem("kt_theme_mode_value");
|
||||
if (!themeMode) {
|
||||
if (defaultThemeMode === "system") {
|
||||
themeMode =
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||
} else {
|
||||
themeMode = defaultThemeMode;
|
||||
}
|
||||
}
|
||||
|
||||
document.documentElement.setAttribute("data-theme", themeMode);
|
||||
}
|
||||
</script>
|
||||
<!--end::Theme mode setup on page load-->
|
||||
|
||||
<div id="root"></div>
|
||||
<div id="splash-screen" class="splash-screen">
|
||||
<img src="%PUBLIC_URL%/media/logos/default-small.svg" alt="Metronic logo" />
|
||||
<span>Loading ...</span>
|
||||
</div>
|
||||
<div id="root-modals"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"short_name": "Metronic React App",
|
||||
"name": "Metronic React App demo1",
|
||||
"start_url": "."
|
||||
}
|
||||
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 280 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 215 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 278 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 68 KiB |