first commit

This commit is contained in:
2026-05-31 14:22:39 +03:30
commit 98af7d639b
54 changed files with 11545 additions and 0 deletions

25
core/caller/index.ts Normal file
View File

@@ -0,0 +1,25 @@
import axios from "axios";
const callAPISetting = axios.create({
baseURL: "http://localhost:8000/api/v1",
withCredentials: true,
});
callAPISetting.interceptors.request.use(
(res) => res,
(err) => Promise.reject(err),
);
callAPISetting.interceptors.response.use(
(res) => res,
async (err) => Promise.reject(err),
);
const callAPI = {
post: callAPISetting.post,
get: callAPISetting.get,
put: callAPISetting.put,
delete: callAPISetting.delete,
};
export default callAPI;

32
core/theme/index.ts Normal file
View File

@@ -0,0 +1,32 @@
import { createTheme } from "@mui/material/styles";
export const theme = createTheme({
direction: "rtl",
typography: {
fontFamily: "var(--font-vazir)",
},
palette: {
primary: {
main: "#2563eb", // یک آبی مدرن و زنده
},
background: {
default: "#f8fafc", // رنگ بدنه تر و تازه (بسیار روشن)
paper: "#ffffff",
},
},
shape: {
borderRadius: 16, // گوشه‌های گرد برای ظاهر مدرن‌تر
},
components: {
MuiButton: {
styleOverrides: {
root: {
textTransform: "none", // فونت غیر کپس‌لاک
padding: "10px 24px",
fontWeight: 600,
},
},
},
},
});
export default theme;

10
core/theme/rtlCache.ts Normal file
View File

@@ -0,0 +1,10 @@
import createCache from "@emotion/cache";
import { prefixer } from "stylis";
import rtlPlugin from "stylis-plugin-rtl";
const rtlCache = createCache({
key: "muirtl",
stylisPlugins: [prefixer, rtlPlugin],
});
export default rtlCache;