update
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -33,4 +33,6 @@ cypress/screenshots
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
ecosystem.config.js
|
ecosystem.config.js
|
||||||
|
|
||||||
public/config.json
|
public/config.json
|
||||||
|
|
||||||
|
.vscode/
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard"
|
|
||||||
NEXT_PUBLIC_API_VERSION = "2.5.0"
|
|
||||||
NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa"
|
|
||||||
NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"
|
|
||||||
|
|
||||||
NEXT_PUBLIC_PRIMARY_MAIN = "#084070"
|
|
||||||
NEXT_PUBLIC_SECONDARY_MAIN = "#FF4E00"
|
|
||||||
|
|
||||||
NEXT_PUBLIC_FACILITY_BANK = 33
|
|
||||||
NEXT_PUBLIC_FACILITY_PERSON = 10
|
|
||||||
|
|
||||||
NEXT_PUBLIC_BASE_URL = "https://loan-v2.witel.ir"
|
|
||||||
NEXT_PUBLIC_POWERED_BY_URL = "https://witel.ir"
|
|
||||||
|
|
||||||
#["NEXT_PUBLIC_HAS_WIDGET" , "NEXT_PUBLIC_HAS_NOTIFICATION"]
|
|
||||||
NEXT_PUBLIC_HAS_VALUE=["NEXT_PUBLIC_HAS_NOTIFICATION"]
|
|
||||||
|
|
||||||
NODE_ENV = "development"
|
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
import NoSsrHandler from "@/core/components/NoSsrHandler";
|
import NoSsrHandler from "@/core/components/NoSsrHandler";
|
||||||
import {createEmotionCacheRtl} from "@/core/utils/createEmotionCache";
|
import { createEmotionCacheRtl } from "@/core/utils/createEmotionCache";
|
||||||
import themeRtl from "@/core/utils/theme-rtl";
|
import themeRtl from "@/core/utils/theme-rtl";
|
||||||
import {CacheProvider} from "@emotion/react";
|
import { CacheProvider } from "@emotion/react";
|
||||||
import {GlobalStyles} from "@mui/material";
|
import { GlobalStyles } from "@mui/material";
|
||||||
import CssBaseline from "@mui/material/CssBaseline";
|
import CssBaseline from "@mui/material/CssBaseline";
|
||||||
import {ThemeProvider} from "@mui/material/styles";
|
import { ThemeProvider } from "@mui/material/styles";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
|
||||||
const clientSideEmotionCacheRtl = createEmotionCacheRtl();
|
const clientSideEmotionCacheRtl = createEmotionCacheRtl();
|
||||||
|
|
||||||
const MuiLayout = ({children, isBot}) => {
|
const MuiLayout = ({ children, isBot }) => {
|
||||||
const emotionCache = clientSideEmotionCacheRtl;
|
const emotionCache = clientSideEmotionCacheRtl;
|
||||||
const theme = themeRtl;
|
const theme = themeRtl;
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ const MuiLayout = ({children, isBot}) => {
|
|||||||
<NoSsrHandler isBot={isBot}>
|
<NoSsrHandler isBot={isBot}>
|
||||||
<CacheProvider value={emotionCache}>
|
<CacheProvider value={emotionCache}>
|
||||||
<Head>
|
<Head>
|
||||||
<meta name="viewport" content="initial-scale=1, width=device-width"/>
|
<meta name="viewport" content="initial-scale=1, width=device-width" />
|
||||||
</Head>
|
</Head>
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<GlobalStyles
|
<GlobalStyles
|
||||||
@@ -33,8 +33,7 @@ const MuiLayout = ({children, isBot}) => {
|
|||||||
borderRadius: "3px",
|
borderRadius: "3px",
|
||||||
},
|
},
|
||||||
"*:not(.MuiTableContainer-root)": {
|
"*:not(.MuiTableContainer-root)": {
|
||||||
scrollbarWidth: "thin",
|
scrollbarWidth: "none",
|
||||||
scrollbarColor: "transparent transparent",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"*": {
|
"*": {
|
||||||
@@ -50,12 +49,12 @@ const MuiLayout = ({children, isBot}) => {
|
|||||||
height: "4px",
|
height: "4px",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
" input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button " :{
|
" input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button ": {
|
||||||
"-webkit-appearance":"none",
|
"-webkit-appearance": "none",
|
||||||
margin: 0
|
margin: 0
|
||||||
},
|
},
|
||||||
" input[type='number']" :{
|
" input[type='number']": {
|
||||||
"-moz-appearance":"textfield",
|
"-moz-appearance": "textfield",
|
||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
width: "100vw",
|
width: "100vw",
|
||||||
@@ -68,7 +67,7 @@ const MuiLayout = ({children, isBot}) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<CssBaseline/>
|
<CssBaseline />
|
||||||
{children}
|
{children}
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</CacheProvider>
|
</CacheProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user