From f4c1a1687c2c18f2d77d918f82002a382858b8b7 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Mon, 5 Aug 2024 13:37:19 +0330 Subject: [PATCH 1/3] add directory assets --- {public => src/assets}/images/headerLogo.png | Bin {public => src/assets}/images/locationMarker.png | Bin {public => src/assets}/images/rmsLogo.png | Bin .../Forms/LocationOnMap/MarkerLocation/index.jsx | 5 ++--- .../dashboard/headerWithLogo/HaederBottom/index.jsx | 3 ++- .../dashboard/headerWithLogo/HaederTop/index.jsx | 3 ++- 6 files changed, 6 insertions(+), 5 deletions(-) rename {public => src/assets}/images/headerLogo.png (100%) rename {public => src/assets}/images/locationMarker.png (100%) rename {public => src/assets}/images/rmsLogo.png (100%) diff --git a/public/images/headerLogo.png b/src/assets/images/headerLogo.png similarity index 100% rename from public/images/headerLogo.png rename to src/assets/images/headerLogo.png diff --git a/public/images/locationMarker.png b/src/assets/images/locationMarker.png similarity index 100% rename from public/images/locationMarker.png rename to src/assets/images/locationMarker.png diff --git a/public/images/rmsLogo.png b/src/assets/images/rmsLogo.png similarity index 100% rename from public/images/rmsLogo.png rename to src/assets/images/rmsLogo.png diff --git a/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx b/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx index 0219c9e..d673679 100644 --- a/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx +++ b/src/components/dashboard/inquiryPrivacyFencing/Forms/LocationOnMap/MarkerLocation/index.jsx @@ -1,10 +1,9 @@ import { useRef } from "react"; import { Marker, useMapEvents } from "react-leaflet"; - -const prefix = process.env.NODE_ENV === "production" ? "/v3" : ""; +import LocationMarker from "@/assets/images/locationMarker.png"; const locationMarker = L.icon({ - iconUrl: prefix + "/images/locationMarker.png", + iconUrl: LocationMarker.src, iconSize: [50, 50], iconAnchor: [25, 50], }); diff --git a/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx b/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx index 4f0b159..f23833c 100644 --- a/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx +++ b/src/components/layouts/dashboard/headerWithLogo/HaederBottom/index.jsx @@ -1,6 +1,7 @@ "use client"; import { Stack, Typography } from "@mui/material"; import Image from "next/image"; +import RmsLogo from "@/assets/images/rmsLogo.png"; const HeaderBottom = () => { return ( @@ -14,7 +15,7 @@ const HeaderBottom = () => { alignItems={"center"} direction={"row"} > - + theme.palette.primary2.contrastText }}> سامانه جامع راهداری diff --git a/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx b/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx index 6899881..2c0c3b6 100644 --- a/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx +++ b/src/components/layouts/dashboard/headerWithLogo/HaederTop/index.jsx @@ -1,10 +1,11 @@ import { Stack } from "@mui/material"; import Image from "next/image"; +import HeaderLogo from "@/assets/images/headerLogo.png"; const HeaderTop = () => { return ( - + ); }; From a32bcc0161808779b211051442e0e9cb5b641dd2 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Mon, 5 Aug 2024 13:51:10 +0330 Subject: [PATCH 2/3] add v3 basePath --- next.config.mjs | 7 +- public/fontiran.scss | 176 ---------------- src/app/template.js | 2 +- .../assets}/fonts/eot/IRANSansWeb(FaNum).eot | Bin .../fonts/eot/IRANSansWeb(FaNum)_Black.eot | Bin .../fonts/eot/IRANSansWeb(FaNum)_Bold.eot | Bin .../fonts/eot/IRANSansWeb(FaNum)_Light.eot | Bin .../fonts/eot/IRANSansWeb(FaNum)_Medium.eot | Bin .../eot/IRANSansWeb(FaNum)_UltraLight.eot | Bin .../assets}/fonts/eot/IRANSansWeb.eot | Bin .../assets}/fonts/eot/IRANSansWeb_Black.eot | Bin .../assets}/fonts/eot/IRANSansWeb_Bold.eot | Bin .../assets}/fonts/eot/IRANSansWeb_Light.eot | Bin .../assets}/fonts/eot/IRANSansWeb_Medium.eot | Bin .../fonts/eot/IRANSansWeb_UltraLight.eot | Bin .../assets}/fonts/eot/Parastoo-Bold.eot | Bin {public => src/assets}/fonts/eot/Parastoo.eot | Bin {public => src/assets}/fonts/ttf/BNazanin.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb(FaNum).ttf | Bin .../fonts/ttf/IRANSansWeb(FaNum)_Black.ttf | Bin .../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf | Bin .../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf | Bin .../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf | Bin .../ttf/IRANSansWeb(FaNum)_UltraLight.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb_Black.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb_Bold.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb_Light.ttf | Bin .../assets}/fonts/ttf/IRANSansWeb_Medium.ttf | Bin .../fonts/ttf/IRANSansWeb_UltraLight.ttf | Bin .../assets}/fonts/ttf/Parastoo-Bold.ttf | Bin {public => src/assets}/fonts/ttf/Parastoo.ttf | Bin .../fonts/woff/IRANSansWeb(FaNum).woff | Bin .../fonts/woff/IRANSansWeb(FaNum)_Black.woff | Bin .../fonts/woff/IRANSansWeb(FaNum)_Bold.woff | Bin .../fonts/woff/IRANSansWeb(FaNum)_Light.woff | Bin .../fonts/woff/IRANSansWeb(FaNum)_Medium.woff | Bin .../woff/IRANSansWeb(FaNum)_UltraLight.woff | Bin .../assets}/fonts/woff/IRANSansWeb.woff | Bin .../assets}/fonts/woff/IRANSansWeb_Black.woff | Bin .../assets}/fonts/woff/IRANSansWeb_Bold.woff | Bin .../assets}/fonts/woff/IRANSansWeb_Light.woff | Bin .../fonts/woff/IRANSansWeb_Medium.woff | Bin .../fonts/woff/IRANSansWeb_UltraLight.woff | Bin .../assets}/fonts/woff/Parastoo-Bold.woff | Bin .../assets}/fonts/woff/Parastoo.woff | Bin .../fonts/woff2/IRANSansWeb(FaNum).woff2 | Bin .../woff2/IRANSansWeb(FaNum)_Black.woff2 | Bin .../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 | Bin .../woff2/IRANSansWeb(FaNum)_Light.woff2 | Bin .../woff2/IRANSansWeb(FaNum)_Medium.woff2 | Bin .../woff2/IRANSansWeb(FaNum)_UltraLight.woff2 | Bin .../assets}/fonts/woff2/IRANSansWeb.woff2 | Bin .../fonts/woff2/IRANSansWeb_Black.woff2 | Bin .../fonts/woff2/IRANSansWeb_Bold.woff2 | Bin .../fonts/woff2/IRANSansWeb_Light.woff2 | Bin .../fonts/woff2/IRANSansWeb_Medium.woff2 | Bin .../fonts/woff2/IRANSansWeb_UltraLight.woff2 | Bin src/assets/scss/fontiran.scss | 190 ++++++++++++++++++ {public => src/assets/scss}/global.scss | 0 src/core/utils/pageMenu.js | 13 +- 61 files changed, 198 insertions(+), 190 deletions(-) delete mode 100644 public/fontiran.scss rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum).eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum)_Black.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum)_Bold.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum)_Light.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum)_Medium.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb_Black.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb_Bold.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb_Light.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb_Medium.eot (100%) rename {public => src/assets}/fonts/eot/IRANSansWeb_UltraLight.eot (100%) rename {public => src/assets}/fonts/eot/Parastoo-Bold.eot (100%) rename {public => src/assets}/fonts/eot/Parastoo.eot (100%) rename {public => src/assets}/fonts/ttf/BNazanin.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum).ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum)_Black.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum)_Light.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb_Black.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb_Bold.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb_Light.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb_Medium.ttf (100%) rename {public => src/assets}/fonts/ttf/IRANSansWeb_UltraLight.ttf (100%) rename {public => src/assets}/fonts/ttf/Parastoo-Bold.ttf (100%) rename {public => src/assets}/fonts/ttf/Parastoo.ttf (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum).woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum)_Black.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum)_Bold.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum)_Light.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum)_Medium.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb_Black.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb_Bold.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb_Light.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb_Medium.woff (100%) rename {public => src/assets}/fonts/woff/IRANSansWeb_UltraLight.woff (100%) rename {public => src/assets}/fonts/woff/Parastoo-Bold.woff (100%) rename {public => src/assets}/fonts/woff/Parastoo.woff (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum).woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum)_Black.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum)_Light.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb_Black.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb_Bold.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb_Light.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb_Medium.woff2 (100%) rename {public => src/assets}/fonts/woff2/IRANSansWeb_UltraLight.woff2 (100%) create mode 100644 src/assets/scss/fontiran.scss rename {public => src/assets/scss}/global.scss (100%) diff --git a/next.config.mjs b/next.config.mjs index 72cfa4a..29212c9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,11 +1,6 @@ -const isProd = process.env.NODE_ENV === 'production' - /** @type {import('next').NextConfig} */ const nextConfig = { - assetPrefix: isProd ? '/v3' : undefined, - images: { - path: isProd ? '/v3/_next/image' : undefined, - } + basePath: '/v3', }; export default nextConfig; diff --git a/public/fontiran.scss b/public/fontiran.scss deleted file mode 100644 index 5ee0036..0000000 --- a/public/fontiran.scss +++ /dev/null @@ -1,176 +0,0 @@ -/** -* -* Name: IRAN Sans-Serif Font -* Version: 5.0 -* Author: Moslem Ebrahimi (moslemebrahimi.com) -* Created on: Dec 25, 2012 -* Updated on: Sep 01, 2017 -* Website: http://fontiran.com -* Copyright: Commercial/Proprietary Software --------------------------------------------------------------------------------------- -فونت های ایران سن سریف یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید --------------------------------------------------------------------------------------- -IRAN Sans-serif fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com --------------------------------------------------------------------------------------- -This set of fonts are used in this project under the license: (.....) --------------------------------------------------------------------------------------- -* -**/ -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: 900; - src: url('./fonts/eot/IRANSansWeb(FaNum)_Black.eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum)_Black.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum)_Black.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum)_Black.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum)_Black.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: bold; - src: url('./fonts/eot/IRANSansWeb(FaNum)_Bold.eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: 500; - src: url('./fonts/eot/IRANSansWeb(FaNum)_Medium.eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: 300; - src: url('./fonts/eot/IRANSansWeb(FaNum)_Light.eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: 200; - src: url('./fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSansFaNum; - font-style: normal; - font-weight: normal; - src: url('./fonts/eot/IRANSansWeb(FaNum).eot'); - src: url('./fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb(FaNum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: 900; - src: url('./fonts/eot/IRANSansWeb_Black.eot'); - src: url('./fonts/eot/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb_Black.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb_Black.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb_Black.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: bold; - src: url('./fonts/eot/IRANSansWeb_Bold.eot'); - src: url('./fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: 500; - src: url('./fonts/eot/IRANSansWeb_Medium.eot'); - src: url('./fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: 300; - src: url('./fonts/eot/IRANSansWeb_Light.eot'); - src: url('./fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb_Light.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: 200; - src: url('./fonts/eot/IRANSansWeb_UltraLight.eot'); - src: url('./fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype'); -} - -@font-face { - font-family: IRANSans; - font-style: normal; - font-weight: normal; - src: url('./fonts/eot/IRANSansWeb.eot'); - src: url('./fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ - url('./fonts/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/IRANSansWeb.ttf') format('truetype'); -} - -@font-face { - font-family: Parastoo; - font-style: normal; - font-weight: normal; - src: url('./fonts/eot/Parastoo.eot'); - src: url('./fonts/eot/Parastoo.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff/Parastoo.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/Parastoo.ttf') format('truetype'); -} - -@font-face { - font-family: Parastoo; - font-style: normal; - font-weight: bold; - src: url('./fonts/eot/Parastoo-Bold.eot'); - src: url('./fonts/eot/Parastoo-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ - url('./fonts/woff/Parastoo-Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ - url('./fonts/ttf/Parastoo-Bold.ttf') format('truetype'); -} - -@font-face { - font-family: Bnazanin; - font-style: normal; - font-weight: normal; - src: url('./fonts/ttf/BNazanin.ttf') format('truetype'); -} diff --git a/src/app/template.js b/src/app/template.js index dc647c5..359f234 100644 --- a/src/app/template.js +++ b/src/app/template.js @@ -2,7 +2,7 @@ import cacheProviderRtl from "@/core/utils/cacheRtl"; import { CssBaseline, GlobalStyles, ThemeProvider } from "@mui/material"; import theme from "@/core/utils/theme"; import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter"; -import "^/global.scss"; +import "@/assets/scss/global.scss"; import { ToastContainer } from "react-toastify"; const Template = ({ children }) => { diff --git a/public/fonts/eot/IRANSansWeb(FaNum).eot b/src/assets/fonts/eot/IRANSansWeb(FaNum).eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum).eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum).eot diff --git a/public/fonts/eot/IRANSansWeb(FaNum)_Black.eot b/src/assets/fonts/eot/IRANSansWeb(FaNum)_Black.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum)_Black.eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum)_Black.eot diff --git a/public/fonts/eot/IRANSansWeb(FaNum)_Bold.eot b/src/assets/fonts/eot/IRANSansWeb(FaNum)_Bold.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum)_Bold.eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum)_Bold.eot diff --git a/public/fonts/eot/IRANSansWeb(FaNum)_Light.eot b/src/assets/fonts/eot/IRANSansWeb(FaNum)_Light.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum)_Light.eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum)_Light.eot diff --git a/public/fonts/eot/IRANSansWeb(FaNum)_Medium.eot b/src/assets/fonts/eot/IRANSansWeb(FaNum)_Medium.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum)_Medium.eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum)_Medium.eot diff --git a/public/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot b/src/assets/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot rename to src/assets/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot diff --git a/public/fonts/eot/IRANSansWeb.eot b/src/assets/fonts/eot/IRANSansWeb.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb.eot rename to src/assets/fonts/eot/IRANSansWeb.eot diff --git a/public/fonts/eot/IRANSansWeb_Black.eot b/src/assets/fonts/eot/IRANSansWeb_Black.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb_Black.eot rename to src/assets/fonts/eot/IRANSansWeb_Black.eot diff --git a/public/fonts/eot/IRANSansWeb_Bold.eot b/src/assets/fonts/eot/IRANSansWeb_Bold.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb_Bold.eot rename to src/assets/fonts/eot/IRANSansWeb_Bold.eot diff --git a/public/fonts/eot/IRANSansWeb_Light.eot b/src/assets/fonts/eot/IRANSansWeb_Light.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb_Light.eot rename to src/assets/fonts/eot/IRANSansWeb_Light.eot diff --git a/public/fonts/eot/IRANSansWeb_Medium.eot b/src/assets/fonts/eot/IRANSansWeb_Medium.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb_Medium.eot rename to src/assets/fonts/eot/IRANSansWeb_Medium.eot diff --git a/public/fonts/eot/IRANSansWeb_UltraLight.eot b/src/assets/fonts/eot/IRANSansWeb_UltraLight.eot similarity index 100% rename from public/fonts/eot/IRANSansWeb_UltraLight.eot rename to src/assets/fonts/eot/IRANSansWeb_UltraLight.eot diff --git a/public/fonts/eot/Parastoo-Bold.eot b/src/assets/fonts/eot/Parastoo-Bold.eot similarity index 100% rename from public/fonts/eot/Parastoo-Bold.eot rename to src/assets/fonts/eot/Parastoo-Bold.eot diff --git a/public/fonts/eot/Parastoo.eot b/src/assets/fonts/eot/Parastoo.eot similarity index 100% rename from public/fonts/eot/Parastoo.eot rename to src/assets/fonts/eot/Parastoo.eot diff --git a/public/fonts/ttf/BNazanin.ttf b/src/assets/fonts/ttf/BNazanin.ttf similarity index 100% rename from public/fonts/ttf/BNazanin.ttf rename to src/assets/fonts/ttf/BNazanin.ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum).ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum).ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum).ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum).ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum)_Black.ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum)_Black.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum)_Black.ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum)_Black.ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum)_Light.ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum)_Light.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum)_Light.ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum)_Light.ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf diff --git a/public/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf b/src/assets/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf rename to src/assets/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf diff --git a/public/fonts/ttf/IRANSansWeb.ttf b/src/assets/fonts/ttf/IRANSansWeb.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb.ttf rename to src/assets/fonts/ttf/IRANSansWeb.ttf diff --git a/public/fonts/ttf/IRANSansWeb_Black.ttf b/src/assets/fonts/ttf/IRANSansWeb_Black.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb_Black.ttf rename to src/assets/fonts/ttf/IRANSansWeb_Black.ttf diff --git a/public/fonts/ttf/IRANSansWeb_Bold.ttf b/src/assets/fonts/ttf/IRANSansWeb_Bold.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb_Bold.ttf rename to src/assets/fonts/ttf/IRANSansWeb_Bold.ttf diff --git a/public/fonts/ttf/IRANSansWeb_Light.ttf b/src/assets/fonts/ttf/IRANSansWeb_Light.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb_Light.ttf rename to src/assets/fonts/ttf/IRANSansWeb_Light.ttf diff --git a/public/fonts/ttf/IRANSansWeb_Medium.ttf b/src/assets/fonts/ttf/IRANSansWeb_Medium.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb_Medium.ttf rename to src/assets/fonts/ttf/IRANSansWeb_Medium.ttf diff --git a/public/fonts/ttf/IRANSansWeb_UltraLight.ttf b/src/assets/fonts/ttf/IRANSansWeb_UltraLight.ttf similarity index 100% rename from public/fonts/ttf/IRANSansWeb_UltraLight.ttf rename to src/assets/fonts/ttf/IRANSansWeb_UltraLight.ttf diff --git a/public/fonts/ttf/Parastoo-Bold.ttf b/src/assets/fonts/ttf/Parastoo-Bold.ttf similarity index 100% rename from public/fonts/ttf/Parastoo-Bold.ttf rename to src/assets/fonts/ttf/Parastoo-Bold.ttf diff --git a/public/fonts/ttf/Parastoo.ttf b/src/assets/fonts/ttf/Parastoo.ttf similarity index 100% rename from public/fonts/ttf/Parastoo.ttf rename to src/assets/fonts/ttf/Parastoo.ttf diff --git a/public/fonts/woff/IRANSansWeb(FaNum).woff b/src/assets/fonts/woff/IRANSansWeb(FaNum).woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum).woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum).woff diff --git a/public/fonts/woff/IRANSansWeb(FaNum)_Black.woff b/src/assets/fonts/woff/IRANSansWeb(FaNum)_Black.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum)_Black.woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum)_Black.woff diff --git a/public/fonts/woff/IRANSansWeb(FaNum)_Bold.woff b/src/assets/fonts/woff/IRANSansWeb(FaNum)_Bold.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum)_Bold.woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum)_Bold.woff diff --git a/public/fonts/woff/IRANSansWeb(FaNum)_Light.woff b/src/assets/fonts/woff/IRANSansWeb(FaNum)_Light.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum)_Light.woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum)_Light.woff diff --git a/public/fonts/woff/IRANSansWeb(FaNum)_Medium.woff b/src/assets/fonts/woff/IRANSansWeb(FaNum)_Medium.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum)_Medium.woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum)_Medium.woff diff --git a/public/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff b/src/assets/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff rename to src/assets/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff diff --git a/public/fonts/woff/IRANSansWeb.woff b/src/assets/fonts/woff/IRANSansWeb.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb.woff rename to src/assets/fonts/woff/IRANSansWeb.woff diff --git a/public/fonts/woff/IRANSansWeb_Black.woff b/src/assets/fonts/woff/IRANSansWeb_Black.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb_Black.woff rename to src/assets/fonts/woff/IRANSansWeb_Black.woff diff --git a/public/fonts/woff/IRANSansWeb_Bold.woff b/src/assets/fonts/woff/IRANSansWeb_Bold.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb_Bold.woff rename to src/assets/fonts/woff/IRANSansWeb_Bold.woff diff --git a/public/fonts/woff/IRANSansWeb_Light.woff b/src/assets/fonts/woff/IRANSansWeb_Light.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb_Light.woff rename to src/assets/fonts/woff/IRANSansWeb_Light.woff diff --git a/public/fonts/woff/IRANSansWeb_Medium.woff b/src/assets/fonts/woff/IRANSansWeb_Medium.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb_Medium.woff rename to src/assets/fonts/woff/IRANSansWeb_Medium.woff diff --git a/public/fonts/woff/IRANSansWeb_UltraLight.woff b/src/assets/fonts/woff/IRANSansWeb_UltraLight.woff similarity index 100% rename from public/fonts/woff/IRANSansWeb_UltraLight.woff rename to src/assets/fonts/woff/IRANSansWeb_UltraLight.woff diff --git a/public/fonts/woff/Parastoo-Bold.woff b/src/assets/fonts/woff/Parastoo-Bold.woff similarity index 100% rename from public/fonts/woff/Parastoo-Bold.woff rename to src/assets/fonts/woff/Parastoo-Bold.woff diff --git a/public/fonts/woff/Parastoo.woff b/src/assets/fonts/woff/Parastoo.woff similarity index 100% rename from public/fonts/woff/Parastoo.woff rename to src/assets/fonts/woff/Parastoo.woff diff --git a/public/fonts/woff2/IRANSansWeb(FaNum).woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum).woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum).woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum).woff2 diff --git a/public/fonts/woff2/IRANSansWeb(FaNum)_Black.woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum)_Black.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum)_Black.woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum)_Black.woff2 diff --git a/public/fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2 diff --git a/public/fonts/woff2/IRANSansWeb(FaNum)_Light.woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum)_Light.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum)_Light.woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum)_Light.woff2 diff --git a/public/fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2 diff --git a/public/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2 b/src/assets/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2 rename to src/assets/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2 diff --git a/public/fonts/woff2/IRANSansWeb.woff2 b/src/assets/fonts/woff2/IRANSansWeb.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb.woff2 rename to src/assets/fonts/woff2/IRANSansWeb.woff2 diff --git a/public/fonts/woff2/IRANSansWeb_Black.woff2 b/src/assets/fonts/woff2/IRANSansWeb_Black.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb_Black.woff2 rename to src/assets/fonts/woff2/IRANSansWeb_Black.woff2 diff --git a/public/fonts/woff2/IRANSansWeb_Bold.woff2 b/src/assets/fonts/woff2/IRANSansWeb_Bold.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb_Bold.woff2 rename to src/assets/fonts/woff2/IRANSansWeb_Bold.woff2 diff --git a/public/fonts/woff2/IRANSansWeb_Light.woff2 b/src/assets/fonts/woff2/IRANSansWeb_Light.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb_Light.woff2 rename to src/assets/fonts/woff2/IRANSansWeb_Light.woff2 diff --git a/public/fonts/woff2/IRANSansWeb_Medium.woff2 b/src/assets/fonts/woff2/IRANSansWeb_Medium.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb_Medium.woff2 rename to src/assets/fonts/woff2/IRANSansWeb_Medium.woff2 diff --git a/public/fonts/woff2/IRANSansWeb_UltraLight.woff2 b/src/assets/fonts/woff2/IRANSansWeb_UltraLight.woff2 similarity index 100% rename from public/fonts/woff2/IRANSansWeb_UltraLight.woff2 rename to src/assets/fonts/woff2/IRANSansWeb_UltraLight.woff2 diff --git a/src/assets/scss/fontiran.scss b/src/assets/scss/fontiran.scss new file mode 100644 index 0000000..cb4e644 --- /dev/null +++ b/src/assets/scss/fontiran.scss @@ -0,0 +1,190 @@ +/** +* +* Name: IRAN Sans-Serif Font +* Version: 5.0 +* Author: Moslem Ebrahimi (moslemebrahimi.com) +* Created on: Dec 25, 2012 +* Updated on: Sep 01, 2017 +* Website: http://fontiran.com +* Copyright: Commercial/Proprietary Software +-------------------------------------------------------------------------------------- +فونت های ایران سن سریف یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید +-------------------------------------------------------------------------------------- +IRAN Sans-serif fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com +-------------------------------------------------------------------------------------- +This set of fonts are used in this project under the license: (.....) +-------------------------------------------------------------------------------------- +* +**/ +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: 900; + src: url("../fonts/eot/IRANSansWeb(FaNum)_Black.eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum)_Black.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Black.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum)_Black.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum)_Black.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: bold; + src: url("../fonts/eot/IRANSansWeb(FaNum)_Bold.eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: 500; + src: url("../fonts/eot/IRANSansWeb(FaNum)_Medium.eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: 300; + src: url("../fonts/eot/IRANSansWeb(FaNum)_Light.eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum)_Light.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum)_Light.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: 200; + src: url("../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSansFaNum; + font-style: normal; + font-weight: normal; + src: url("../fonts/eot/IRANSansWeb(FaNum).eot"); + src: + url("../fonts/eot/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb(FaNum).woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb(FaNum).woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb(FaNum).ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: 900; + src: url("../fonts/eot/IRANSansWeb_Black.eot"); + src: + url("../fonts/eot/IRANSansWeb_Black.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb_Black.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb_Black.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb_Black.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: bold; + src: url("../fonts/eot/IRANSansWeb_Bold.eot"); + src: + url("../fonts/eot/IRANSansWeb_Bold.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb_Bold.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb_Bold.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb_Bold.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: 500; + src: url("../fonts/eot/IRANSansWeb_Medium.eot"); + src: + url("../fonts/eot/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb_Medium.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb_Medium.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb_Medium.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: 300; + src: url("../fonts/eot/IRANSansWeb_Light.eot"); + src: + url("../fonts/eot/IRANSansWeb_Light.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb_Light.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb_Light.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb_Light.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: 200; + src: url("../fonts/eot/IRANSansWeb_UltraLight.eot"); + src: + url("../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb_UltraLight.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb_UltraLight.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb_UltraLight.ttf") format("truetype"); +} + +@font-face { + font-family: IRANSans; + font-style: normal; + font-weight: normal; + src: url("../fonts/eot/IRANSansWeb.eot"); + src: + url("../fonts/eot/IRANSansWeb.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff2/IRANSansWeb.woff2") format("woff2"), + /* FF39+,Chrome36+, Opera24+*/ url("../fonts/woff/IRANSansWeb.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/IRANSansWeb.ttf") format("truetype"); +} + +@font-face { + font-family: Parastoo; + font-style: normal; + font-weight: normal; + src: url("../fonts/eot/Parastoo.eot"); + src: + url("../fonts/eot/Parastoo.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff/Parastoo.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/Parastoo.ttf") format("truetype"); +} + +@font-face { + font-family: Parastoo; + font-style: normal; + font-weight: bold; + src: url("../fonts/eot/Parastoo-Bold.eot"); + src: + url("../fonts/eot/Parastoo-Bold.eot?#iefix") format("embedded-opentype"), + /* IE6-8 */ url("../fonts/woff/Parastoo-Bold.woff") format("woff"), + /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url("../fonts/ttf/Parastoo-Bold.ttf") format("truetype"); +} + +@font-face { + font-family: Bnazanin; + font-style: normal; + font-weight: normal; + src: url("../fonts/ttf/BNazanin.ttf") format("truetype"); +} diff --git a/public/global.scss b/src/assets/scss/global.scss similarity index 100% rename from public/global.scss rename to src/assets/scss/global.scss diff --git a/src/core/utils/pageMenu.js b/src/core/utils/pageMenu.js index d47d020..75f7828 100644 --- a/src/core/utils/pageMenu.js +++ b/src/core/utils/pageMenu.js @@ -1,12 +1,11 @@ import { Security } from "@mui/icons-material"; -const prefix = process.env.NODE_ENV === "production" ? "/v3" : ""; export const pageMenu = [ { id: "dashboard", label: "پیشخوان", type: "page", - route: prefix + "/dashboard", + route: "/dashboard", icon: , permissions: ["all"], }, @@ -160,7 +159,7 @@ export const pageMenu = [ id: "roadPatrolManagmentSupervisorCartable", label: "کارتابل", type: "page", - route: process.env.NEXT_PUBLIC_API_URL + "/road_patrols/supervisor/cartable", + route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/supervisor/cartable", permissions: [ "show-road-patrol-supervise-cartable", "show-road-patrol-supervise-cartable-province", @@ -228,21 +227,21 @@ export const pageMenu = [ id: "inquiryPrivacyManagmentFencing", label: "احداث و بهره برداری دیوارکشی و مستحدثات", type: "page", - route: prefix + "/dashboard/inquiry_privacy/fencing", + route: "/dashboard/inquiry_privacy/fencing", permissions: ["all"], }, { id: "inquiryPrivacyManagmentRoad", label: "احداث راه دسترسی اختصاصی", type: "page", - route: prefix + "/dashboard/inquiry_privacy/road", + route: "/dashboard/inquiry_privacy/road", permissions: ["all"], }, { id: "inquiryPrivacyManagmentInfrastructure", label: "احداث و بهره برداری تاسیسات زیربنایی", type: "page", - route: prefix + "/dashboard/inquiry_privacy/infrastructure", + route: "/dashboard/inquiry_privacy/infrastructure", permissions: ["all"], }, ], @@ -265,7 +264,7 @@ export const pageMenu = [ id: "safetyAndPrivacyManagmentOparationCreate", label: "ثبت فعالیت", type: "page", - route: process.env.NEXT_PUBLIC_API_URL + "/safety_and_privacy/operator/first_step", + route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/operator/first_step", permissions: ["add-safety-and-privacy"], }, { From c96468bcbea179ffb05646dd5022aeb3d52dfcb4 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Mon, 5 Aug 2024 13:52:05 +0330 Subject: [PATCH 3/3] change version --- .env.local.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.local.example b/.env.local.example index 3758765..fdc36d7 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,3 +1,3 @@ -NEXT_PUBLIC_VERSION="0.4.3" +NEXT_PUBLIC_VERSION="0.5.0" NEXT_PUBLIC_API_URL="https://rms.witel.ir" NEXT_PUBLIC_MAPTILE_ENDPOINT="https://rmsmap.rmto.ir/141map" \ No newline at end of file