Commit 57b6efe1 authored by janithGamage's avatar janithGamage

fix: update

parent 08883c76
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="261.000000pt" height="261.000000pt" viewBox="0 0 261.000000 261.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,261.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M744 2173 c-32 -36 -82 -92 -110 -123 -28 -31 -70 -88 -93 -126 -23
-38 -57 -90 -76 -116 -35 -50 -67 -129 -110 -269 -35 -113 -80 -188 -131 -216
-21 -12 -45 -27 -51 -33 -18 -15 -16 -197 2 -285 14 -66 77 -215 90 -215 4 0
40 16 81 35 99 47 161 59 249 50 130 -15 153 -12 280 37 66 25 153 53 193 63
88 21 115 41 137 103 10 26 29 76 43 110 19 48 23 68 15 80 -5 10 -7 26 -2 37
4 11 8 55 8 97 l1 77 -62 52 c-34 28 -86 67 -115 87 l-53 35 -89 -6 c-48 -3
-105 -13 -126 -21 -70 -30 -62 -12 27 55 98 74 102 76 192 82 79 6 79 6 121
-29 23 -19 57 -39 74 -45 28 -10 37 -9 59 8 41 31 40 57 -5 84 -21 13 -54 38
-74 56 -49 44 -77 53 -172 53 -80 0 -146 -15 -242 -54 l-40 -16 35 27 c19 16
53 45 75 65 45 40 166 90 249 102 75 12 122 72 81 106 -11 9 -36 9 -118 -3
-125 -18 -236 -67 -346 -150 -41 -31 -77 -55 -79 -52 -6 5 -9 0 95 130 44 55
83 110 87 121 8 25 -12 74 -29 74 -7 0 -38 -30 -71 -67z m290 -698 c18 -14 47
-30 64 -36 23 -8 34 -20 43 -47 6 -20 20 -53 31 -73 l20 -35 -39 -40 c-21 -21
-46 -54 -55 -72 -18 -33 -19 -33 -70 -27 -33 4 -73 1 -105 -8 l-52 -14 -31 43
c-17 24 -44 53 -60 64 -34 24 -38 55 -18 122 15 49 55 83 121 103 29 9 63 22
77 30 34 19 36 19 74 -10z"/>
<path d="M2303 1693 c-36 -20 -94 -41 -139 -50 -67 -13 -89 -14 -160 -3 l-83
13 -123 -43 c-68 -23 -163 -54 -213 -67 -49 -14 -100 -34 -111 -45 -22 -19
-104 -211 -104 -241 0 -9 4 -18 10 -22 6 -4 6 -15 0 -31 -6 -14 -10 -58 -10
-99 l0 -73 53 -45 c28 -25 79 -63 111 -86 51 -35 67 -41 111 -41 65 0 149 15
187 34 68 34 8 -27 -96 -99 -53 -37 -65 -40 -140 -45 l-81 -5 -45 37 c-59 49
-96 57 -133 28 -37 -29 -34 -54 11 -82 20 -12 53 -37 73 -55 49 -44 77 -53
169 -53 80 0 179 24 252 61 56 28 56 23 2 -17 -27 -21 -65 -51 -84 -69 -35
-32 -174 -87 -251 -100 -48 -7 -89 -40 -89 -70 0 -40 27 -46 134 -30 137 20
256 76 370 172 39 32 56 40 56 26 0 -5 -39 -55 -86 -113 -47 -58 -89 -116 -95
-129 -12 -29 7 -84 27 -79 23 5 245 262 271 313 14 28 41 68 58 90 41 50 74
124 119 267 44 140 87 215 141 244 22 13 46 28 53 34 17 16 16 183 -4 278 -15
76 -66 204 -88 221 -7 5 -35 -5 -73 -26z m-507 -343 c14 -21 41 -51 60 -65 37
-29 42 -52 23 -119 -13 -48 -56 -91 -107 -106 -20 -6 -57 -20 -82 -31 l-46
-21 -54 36 c-30 20 -60 36 -66 36 -7 0 -18 17 -24 38 -7 20 -22 54 -33 75
l-21 37 21 15 c11 8 37 39 57 70 l37 55 77 1 c42 0 86 4 97 9 31 13 33 12 61
-30z"/>
</g>
</svg>
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
import { useEffect, useState } from 'react';
// project import
import Routes from 'routes';
import ThemeCustomization from 'themes';
import Loader from 'components/Loader';
import Locales from 'components/Locales';
import RTLLayout from 'components/RTLLayout';
import ScrollTop from 'components/ScrollTop';
import Snackbar from 'components/@extended/Snackbar';
import Notistack from 'components/third-party/Notistack';
import { dispatch } from 'store';
import { fetchMenu } from 'store/reducers/menu';
// auth-provider
import { JWTProvider as AuthProvider } from 'contexts/JWTContext';
// import { FirebaseProvider as AuthProvider } from 'contexts/FirebaseContext';
// import { AWSCognitoProvider as AuthProvider } from 'contexts/AWSCognitoContext';
// import { Auth0Provider as AuthProvider } from 'contexts/Auth0Context';
// ==============================|| APP - THEME, ROUTER, LOCAL ||============================== //
const App = () => {
const [loading, setLoading] = useState<boolean>(true);
useEffect(() => {
// fetch dashboard menu from API
dispatch(fetchMenu()).then(() => {
setLoading(false);
});
}, []);
if (loading) return <Loader />;
return (
<ThemeCustomization>
<RTLLayout>
<Locales>
<ScrollTop>
<AuthProvider>
<>
<Notistack>
<Routes />
<Snackbar />
</Notistack>
</>
</AuthProvider>
</ScrollTop>
</Locales>
</RTLLayout>
</ThemeCustomization>
);
};
export default App;
<svg width="40" height="40" viewBox="0 0 40 40" fill="white" xmlns="http://www.w3.org/2000/svg">
<circle cx="17.9412" cy="22.0589" r="17.9412" fill="#1890FF" />
<circle cx="18.235" cy="22.3526" r="12.6471" fill="white" />
<circle cx="18.0877" cy="21.9114" r="5.44118" fill="#1890FF" />
<path
d="M39.9663 3.78402C39.8869 3.54473 39.6788 3.37104 39.4292 3.33564L37.0103 2.99007L36.6648 0.571186C36.6291 0.321481 36.4554 0.113377 36.216 0.0336579C35.9767 -0.0460613 35.7129 0.0162928 35.5346 0.194717L30.9569 4.77241C30.7786 4.9508 30.7164 5.2146 30.7963 5.45383L31.4983 7.5601L17.5568 21.5018C17.3837 21.669 17.3143 21.9165 17.3752 22.1493C17.4362 22.3821 17.618 22.5639 17.8508 22.6249C18.0836 22.6858 18.3311 22.6164 18.4983 22.4433L32.4399 8.50187L34.5465 9.20407C34.7858 9.28382 35.0496 9.22152 35.2279 9.04314L39.8057 4.46545C39.9839 4.28707 40.0462 4.02326 39.9663 3.78402Z"
fill="#52C41A"
/>
</svg>
\ No newline at end of file
// material-ui
import { useTheme } from '@mui/material/styles';
import { Box } from '@mui/material';
// types
import { ThemeDirection, ThemeMode } from 'types/config';
// ==============================|| AUTH BLUR BACK SVG ||============================== //
const AuthBackground = () => {
const theme = useTheme();
return (
<Box
sx={{
position: 'absolute',
filter: 'blur(18px)',
zIndex: -1,
bottom: 0,
transform: theme.direction === ThemeDirection.RTL ? 'rotate(180deg)' : 'inherit'
}}
>
<svg width="100%" height="calc(100vh - 175px)" viewBox="0 0 405 809" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M-358.39 358.707L-293.914 294.23L-293.846 294.163H-172.545L-220.81 342.428L-233.272 354.889L-282.697 404.314L-276.575 410.453L0.316589 687.328L283.33 404.314L233.888 354.889L230.407 351.391L173.178 294.163H294.48L294.547 294.23L345.082 344.765L404.631 404.314L0.316589 808.629L-403.998 404.314L-358.39 358.707ZM0.316589 0L233.938 233.622H112.637L0.316589 121.301L-112.004 233.622H-233.305L0.316589 0Z"
fill={theme.palette.primary.light}
/>
<path
d="M-516.39 358.707L-451.914 294.23L-451.846 294.163H-330.545L-378.81 342.428L-391.272 354.889L-440.697 404.314L-434.575 410.453L-157.683 687.328L125.33 404.314L75.8879 354.889L72.4068 351.391L15.1785 294.163H136.48L136.547 294.23L187.082 344.765L246.631 404.314L-157.683 808.629L-561.998 404.314L-516.39 358.707ZM-157.683 0L75.9383 233.622H-45.3627L-157.683 121.301L-270.004 233.622H-391.305L-157.683 0Z"
fill={theme.palette.success.light}
opacity="0.6"
/>
<path
d="M-647.386 358.707L-582.91 294.23L-582.842 294.163H-461.541L-509.806 342.428L-522.268 354.889L-571.693 404.314L-565.571 410.453L-288.68 687.328L-5.66624 404.314L-55.1082 354.889L-58.5893 351.391L-115.818 294.163H5.48342L5.5507 294.23L56.0858 344.765L115.635 404.314L-288.68 808.629L-692.994 404.314L-647.386 358.707ZM-288.68 0L-55.0578 233.622H-176.359L-288.68 121.301L-401 233.622H-522.301L-288.68 0Z"
fill={theme.palette.error.lighter}
opacity={theme.palette.mode === ThemeMode.DARK ? '0.9' : '1'}
/>
</svg>
</Box>
);
};
export default AuthBackground;
// types
import { DefaultConfigProps, MenuOrientation, ThemeDirection, ThemeMode } from 'types/config';
// ==============================|| THEME CONSTANT ||============================== //
export const twitterColor = '#1DA1F2';
export const facebookColor = '#3b5998';
export const linkedInColor = '#0e76a8';
export const APP_DEFAULT_PATH = '/home/dashboard';
export const HORIZONTAL_MAX_ITEM = 6;
export const DRAWER_WIDTH = 260;
// ==============================|| THEME CONFIG ||============================== //
const config: DefaultConfigProps = {
fontFamily: `'Public Sans', sans-serif`,
i18n: 'en',
menuOrientation: MenuOrientation.VERTICAL,
miniDrawer: false,
container: true,
mode: ThemeMode.LIGHT,
presetColor: 'default',
themeDirection: ThemeDirection.LTR
};
export default config;
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
// third-party
import { Provider as ReduxProvider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
// scroll bar
import 'simplebar/dist/simplebar.css';
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
// apex-chart
import 'assets/third-party/apex-chart.css';
import 'assets/third-party/react-table.css';
// project import
import App from './App';
import { store, persister } from 'store';
import { ConfigProvider } from 'contexts/ConfigContext';
import reportWebVitals from './reportWebVitals';
const container = document.getElementById('root');
const root = createRoot(container!);
// ==============================|| MAIN - REACT DOM RENDER ||============================== //
root.render(
<ReduxProvider store={store}>
<PersistGate loading={null} persistor={persister}>
<ConfigProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</ConfigProvider>
</PersistGate>
</ReduxProvider>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
/// <reference types="react-scripts" />
import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment