This commit is contained in:
Amirhossein Mahmoodi
2024-08-10 13:30:54 +03:30
parent c05c75c554
commit 3f6077624d
3 changed files with 15 additions and 32 deletions

4
.gitignore vendored
View File

@@ -33,4 +33,6 @@ cypress/screenshots
package-lock.json
ecosystem.config.js
public/config.json
public/config.json
.vscode/

View File

@@ -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"

View File

@@ -1,15 +1,15 @@
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 {CacheProvider} from "@emotion/react";
import {GlobalStyles} from "@mui/material";
import { CacheProvider } from "@emotion/react";
import { GlobalStyles } from "@mui/material";
import CssBaseline from "@mui/material/CssBaseline";
import {ThemeProvider} from "@mui/material/styles";
import { ThemeProvider } from "@mui/material/styles";
import Head from "next/head";
const clientSideEmotionCacheRtl = createEmotionCacheRtl();
const MuiLayout = ({children, isBot}) => {
const MuiLayout = ({ children, isBot }) => {
const emotionCache = clientSideEmotionCacheRtl;
const theme = themeRtl;
@@ -17,7 +17,7 @@ const MuiLayout = ({children, isBot}) => {
<NoSsrHandler isBot={isBot}>
<CacheProvider value={emotionCache}>
<Head>
<meta name="viewport" content="initial-scale=1, width=device-width"/>
<meta name="viewport" content="initial-scale=1, width=device-width" />
</Head>
<ThemeProvider theme={theme}>
<GlobalStyles
@@ -33,8 +33,7 @@ const MuiLayout = ({children, isBot}) => {
borderRadius: "3px",
},
"*:not(.MuiTableContainer-root)": {
scrollbarWidth: "thin",
scrollbarColor: "transparent transparent",
scrollbarWidth: "none",
},
"*": {
@@ -50,12 +49,12 @@ const MuiLayout = ({children, isBot}) => {
height: "4px",
},
},
" input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button " :{
"-webkit-appearance":"none",
" input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button ": {
"-webkit-appearance": "none",
margin: 0
},
" input[type='number']" :{
"-moz-appearance":"textfield",
" input[type='number']": {
"-moz-appearance": "textfield",
},
body: {
width: "100vw",
@@ -68,7 +67,7 @@ const MuiLayout = ({children, isBot}) => {
}}
/>
<CssBaseline/>
<CssBaseline />
{children}
</ThemeProvider>
</CacheProvider>