admin-dashboard-working
This commit is contained in:
parent
65bf311498
commit
6515e2120a
|
@ -0,0 +1,8 @@
|
|||
NODE_PATH=./src
|
||||
SKIP_PREFLIGHT_CHECK=true
|
||||
REACT_APP_CLOUDINARY_UPLOAD_URL = https://api.cloudinary.com/v1_1/dimjm4ald/image/upload
|
||||
REACT_APP_SERVER_URL = http://localhost:8000/
|
||||
REACT_APP_WS_SERVER_URL = ws://localhost:8000/
|
||||
REACT_APP_CLOUDINARY_CATEGORY = hmtkg7s5
|
||||
REACT_APP_CLOUDINARY_FOOD = wdgvyas8
|
||||
REACT_APP_ENV = “dev”
|
|
@ -0,0 +1,10 @@
|
|||
All variables should be appended by REACT_APP_
|
||||
|
||||
NODE_PATH=./src
|
||||
SKIP_PREFLIGHT_CHECK=true
|
||||
REACT_APP_CLOUDINARY_UPLOAD_URL = <Cloudinary URL>
|
||||
REACT_APP_SERVER_URL = <Your SERVER URL>
|
||||
REACT_APP_WS_SERVER_URL = <SERVER URL with appending "ws" for local or "wss" for remote>
|
||||
REACT_APP_CLOUDINARY_CATEGORY = <Folder ID from Cloudinary>
|
||||
REACT_APP_CLOUDINARY_FOOD = <Folder ID from Cloudinary>
|
||||
REACT_APP_ENV = <Alias that is mentioned in package.json script>
|
|
@ -0,0 +1,8 @@
|
|||
NODE_PATH=./src
|
||||
SKIP_PREFLIGHT_CHECK=true
|
||||
REACT_APP_CLOUDINARY_UPLOAD_URL = https://api.cloudinary.com/v1_1/dimjm4ald/image/upload
|
||||
REACT_APP_SERVER_URL = https://prod-enatega-single-api.herokuapp.com/
|
||||
REACT_APP_WS_SERVER_URL = wss://prod-enatega-single-api.herokuapp.com/
|
||||
REACT_APP_CLOUDINARY_CATEGORY = hmtkg7s5
|
||||
REACT_APP_CLOUDINARY_FOOD = wdgvyas8
|
||||
REACT_APP_ENV = "prod"
|
|
@ -0,0 +1,8 @@
|
|||
NODE_PATH=./src
|
||||
SKIP_PREFLIGHT_CHECK=true
|
||||
REACT_APP_CLOUDINARY_UPLOAD_URL = https://api.cloudinary.com/v1_1/dimjm4ald/image/upload
|
||||
REACT_APP_SERVER_URL = https://staging-enatega-single-api.herokuapp.com/
|
||||
REACT_APP_WS_SERVER_URL = wss://staging-enatega-single-api.herokuapp.com/
|
||||
REACT_APP_CLOUDINARY_CATEGORY = hmtkg7s5
|
||||
REACT_APP_CLOUDINARY_FOOD = wdgvyas8
|
||||
REACT_APP_ENV = “staging”
|
|
@ -0,0 +1,5 @@
|
|||
src/assets/*
|
||||
public/*
|
||||
./node_modules
|
||||
./patches
|
||||
./history
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:react/recommended",
|
||||
"standard"
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"rules": {
|
||||
"space-before-function-paren": ["error", "never"],
|
||||
"react/prop-types": 0
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
/build
|
||||
/node_modules
|
||||
package-lock.json
|
||||
yarn.lock
|
|
@ -3,11 +3,11 @@ import { Route, Switch } from 'react-router-dom'
|
|||
// reactstrap components
|
||||
import { Container } from 'reactstrap'
|
||||
// core components
|
||||
import AdminNavbar from 'components/Navbars/AdminNavbar.jsx'
|
||||
import AdminFooter from 'components/Footers/AdminFooter.jsx'
|
||||
import Sidebar from 'components/Sidebar/Sidebar.jsx'
|
||||
import AdminNavbar from '../components/Navbars/AdminNavbar.jsx'
|
||||
import AdminFooter from '../components/Footers/AdminFooter.jsx'
|
||||
import Sidebar from '../components/Sidebar/Sidebar.jsx'
|
||||
|
||||
import routes from 'routes.js'
|
||||
import routes from './../routes.js'
|
||||
|
||||
const Admin = props => {
|
||||
var divRef = useRef(null)
|
||||
|
@ -49,7 +49,7 @@ const Admin = props => {
|
|||
routes={routes}
|
||||
logo={{
|
||||
innerLink: '/admin/dashboard',
|
||||
imgSrc: require('assets/img/brand/logo.png'),
|
||||
imgSrc: require('../assets/img/brand/logo.png'),
|
||||
imgAlt: '...'
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -4,10 +4,10 @@ import { Route, Switch } from 'react-router-dom'
|
|||
import { Container, Row } from 'reactstrap'
|
||||
|
||||
// core components
|
||||
import AuthNavbar from 'components/Navbars/AuthNavbar.jsx'
|
||||
import AuthFooter from 'components/Footers/AuthFooter.jsx'
|
||||
import AuthNavbar from '../components/Navbars/AuthNavbar.jsx'
|
||||
import AuthFooter from '../components/Footers/AuthFooter.jsx'
|
||||
|
||||
import routes from 'routes.js'
|
||||
import routes from '../routes.js'
|
||||
|
||||
function Auth(props) {
|
||||
useEffect(() => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable react/display-name */
|
||||
import React, { useState } from 'react'
|
||||
import { Container, Badge, Row, Card, Modal } from 'reactstrap'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import AddonComponent from '../components/Addon/Addon'
|
||||
import { addons, deleteAddon } from '../apollo/server'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
|
|
|
@ -8,7 +8,7 @@ import CustomLoader from '../components/Loader/CustomLoader'
|
|||
// reactstrap components
|
||||
import { Badge, Card, Container, Row, Modal } from 'reactstrap'
|
||||
// core components
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { categories, deleteCategory, getFoods } from '../apollo/server'
|
||||
import DataTable from 'react-data-table-component'
|
||||
import orderBy from 'lodash/orderBy'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { withTranslation } from 'react-i18next'
|
|||
import { Container } from 'reactstrap'
|
||||
import { Query } from 'react-apollo'
|
||||
import gql from 'graphql-tag'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { getConfiguration } from '../apollo/server'
|
||||
import OrderConfiguration from '../components/Configuration/Order/Order'
|
||||
import EmailConfiguration from '../components/Configuration/Email/Email'
|
||||
|
|
|
@ -8,7 +8,7 @@ import CouponComponent from '../components/Coupon/Coupon'
|
|||
import { Badge, Card, Container, Row, Modal } from 'reactstrap'
|
||||
|
||||
// core components
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
import DataTable from 'react-data-table-component'
|
||||
import orderBy from 'lodash/orderBy'
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
Col
|
||||
} from 'reactstrap'
|
||||
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { Query } from 'react-apollo'
|
||||
import {
|
||||
getDashboardTotal,
|
||||
|
|
|
@ -6,7 +6,7 @@ import { withTranslation } from 'react-i18next'
|
|||
// reactstrap components
|
||||
import { Badge, Card, Container, Row, Media, Modal } from 'reactstrap'
|
||||
// core components
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { getFoods, deleteFood } from '../apollo/server'
|
||||
import FoodComponent from '../components/Food/Food'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
|
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|||
import gql from 'graphql-tag'
|
||||
import { Mutation } from 'react-apollo'
|
||||
import { withTranslation } from 'react-i18next'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { sendNotificationUser } from '../apollo/server'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
import { validateFunc } from '../constraints/constraints'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable react/display-name */
|
||||
import React, { useState } from 'react'
|
||||
import { Badge, Container, Row, Card, Modal } from 'reactstrap'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import OptionComponent from '../components/Option/Option'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
import DataTable from 'react-data-table-component'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { withTranslation } from 'react-i18next'
|
|||
import { Container, Row, Card, Modal } from 'reactstrap'
|
||||
import OrderComponent from '../components/Order/Order'
|
||||
import OrdersData from '../components/Order/OrderData'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import { Query, compose, withApollo } from 'react-apollo'
|
||||
import gql from 'graphql-tag'
|
||||
import { getOrders } from '../apollo/server'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import React from 'react'
|
||||
import { withTranslation } from 'react-i18next'
|
||||
import { Container, Row, Card } from 'reactstrap'
|
||||
import Header from 'components/Headers/Header.jsx'
|
||||
import Header from '../components/Headers/Header.jsx'
|
||||
import CustomLoader from '../components/Loader/CustomLoader'
|
||||
import { Query, compose, withApollo } from 'react-apollo'
|
||||
import gql from 'graphql-tag'
|
||||
|
|
Loading…
Reference in New Issue