Skip to content

Commit

Permalink
Merge pull request #28 from reedoooo/styles/finalize
Browse files Browse the repository at this point in the history
This commit encompasses a series of significant updates and optimizat…
  • Loading branch information
reedoooo authored Mar 11, 2024
2 parents a03c4ed + daf92b3 commit 42d82a1
Show file tree
Hide file tree
Showing 511 changed files with 47,052 additions and 18,080 deletions.
15 changes: 15 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"development"
],
"hints": {
"compat-api/css": [
"default",
{
"ignore": [
"backdrop-filter"
]
}
]
}
}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{}
42 changes: 27 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,69 @@
"private": true,
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@emotion/react": "^11.11.1",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@fortawesome/fontawesome-free": "^6.4.0",
"@mui/icons-material": "^5.14.1",
"@hookform/resolvers": "^3.3.4",
"@mui/icons-material": "^5.14.5",
"@mui/joy": "^5.0.0-beta.16",
"@mui/material": "^5.14.20",
"@mui/styles": "^5.14.13",
"@mui/system": "^5.14.1",
"@mui/lab": "^5.0.0-alpha.162",
"@mui/material": "^5.15.6",
"@mui/styled-engine-sc": "^6.0.0-alpha.12",
"@mui/system": "^5.15.5",
"@mui/x-charts": "^6.18.4",
"@mui/x-data-grid": "^6.16.2",
"@mui/x-date-pickers": "^6.10.1",
"@nivo/line": "^0.83.0",
"@nivo/pie": "^0.84.0",
"@stripe/react-stripe-js": "^2.1.1",
"@stripe/stripe-js": "^1.54.2",
"auth0-js": "^9.22.1",
"axios": "^1.4.0",
"bootstrap": "^5.3.0",
"chart.js": "^4.4.0",
"chroma-js": "^2.4.2",
"date-fns": "^2.30.0",
"dayjs": "^1.11.9",
"image-downloader": "^4.3.0",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"material-ui-image": "^3.3.2",
"moment": "^2.29.4",
"react": "^17.0.2",
"react-bootstrap": "^2.8.0",
"react-chartjs-2": "^5.2.0",
"notistack": "^3.0.1",
"polished": "^4.3.1",
"react": "^17.0.0 || ^18.0.0",
"react-cookie": "^4.1.1",
"react-dom": "^17.0.2",
"react-device-detect": "^2.2.3",
"react-dom": "^17.0.0 || ^18.0.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.50.0",
"react-icons": "^4.10.1",
"react-if": "^4.1.5",
"react-material-ui-carousel": "^3.4.2",
"react-perfect-scrollbar": "^1.5.8",
"react-pro-sidebar": "^1.1.0-alpha.1",
"react-redux": "^8.1.1",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^6.17.0",
"react-scale-text": "^1.2.2",
"react-scripts": "5.0.1",
"react-scroll-parallax": "^3.4.5",
"react-slick": "^0.29.0",
"react-spinners": "^0.13.8",
"react-spring": "^9.7.3",
"react-stripe-checkout": "^2.6.3",
"react-swipeable-views": "^0.14.0",
"react-table": "^7.8.0",
"react-transition-group": "^4.4.5",
"react-virtualized": "^9.22.5",
"sass": "^1.69.7",
"shortid": "^2.2.16",
"slick-carousel": "^1.8.1",
"socket.io-client": "^4.7.2",
"stripe": "^12.14.0",
"styled-components": "^6.0.5",
"swiper": "^11.0.5",
"styled-components": "^6.1.8",
"swiper": "^11.0.6",
"three": "^0.156.1",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"zod": "^3.22.4"
},
"scripts": {
"start": "react-scripts start",
Expand Down
5 changes: 5 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
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="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>

<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
92 changes: 86 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,94 @@
// App.js
import React from 'react';
import React, { useEffect } from 'react';
import './assets/css/index.css';
import Main from './Main';
import WithPageProvider from './context/WithPageProvider';
import {
FormProvider,
ModalProvider,
PopoverProvider,
UserProvider,
useMode,
CollectionProvider,
CardProvider,
DeckProvider,
CartProvider,
CardImagesProvider,
ChartProvider,
StatisticsProvider,
SidebarProvider,
AppContextProvider,
useAuthContext,
usePageContext,
ErrorBoundary,
ConfiguratorProvider,
VisibilityProvider,
} from './context';
import { ThemeProvider } from 'styled-components';
import { SnackbarProvider, useSnackbar } from 'notistack';
import { useNavigate } from 'react-router-dom';
import { CssBaseline, GlobalStyles } from '@mui/material';
import { ParallaxProvider } from 'react-scroll-parallax';
import { useLoading } from './context/hooks/useLoading';

// Call the higher-order component function outside the component function
// to avoid remounting on every render
const WrappedMain = WithPageProvider(Main);
// ==============================|| APP ||============================== //

const App = () => {
return <WrappedMain />;
const { theme } = useMode();
const navigate = useNavigate();
const { resetLogoutTimer, logout, authUser, userId, isLoggedIn } =
useAuthContext();
const { returnDisplay } = usePageContext();
const { isLoading, isPageLoading, error } = useLoading();

// useEffect(() => {
// if (!isLoggedIn && !isPageLoading) navigate('/login');
// }, [isLoggedIn, navigate, isPageLoading]);
if (isPageLoading || error) {
return returnDisplay();
}
return (
<ErrorBoundary>
<ThemeProvider theme={theme}>
<CssBaseline />
<GlobalStyles />
<ParallaxProvider>
<ConfiguratorProvider>
<VisibilityProvider>
<FormProvider>
<UserProvider>
<ModalProvider>
<SnackbarProvider>
<PopoverProvider>
<CollectionProvider>
<CardProvider>
<DeckProvider>
<CartProvider>
<CardImagesProvider>
<ChartProvider>
<StatisticsProvider>
<SidebarProvider>
<AppContextProvider>
<Main />
</AppContextProvider>
</SidebarProvider>
</StatisticsProvider>
</ChartProvider>
</CardImagesProvider>
</CartProvider>
</DeckProvider>
</CardProvider>
</CollectionProvider>
</PopoverProvider>
</SnackbarProvider>
</ModalProvider>
</UserProvider>
</FormProvider>
</VisibilityProvider>
</ConfiguratorProvider>
</ParallaxProvider>
</ThemeProvider>
</ErrorBoundary>
);
};

export default App;
Loading

0 comments on commit 42d82a1

Please sign in to comment.