forked from BLC/sgeUpdated
Add 'sge-frontend/' from commit '5fa787e054b25ac53edc7ff0275ea7960a709401'
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
This commit is contained in:
13
sge-frontend/src/configs/@axios.js
Normal file
13
sge-frontend/src/configs/@axios.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import axios from "axios";
|
||||
|
||||
export const baseURL = process.env.REACT_APP_API_BASE_URL;
|
||||
|
||||
const axiosConf = axios.create({
|
||||
baseURL,
|
||||
});
|
||||
|
||||
axiosConf.defaults.headers.common[
|
||||
"Authorization"
|
||||
] = `Bearer ${localStorage.getItem("accessToken")}`;
|
||||
|
||||
export default axiosConf;
|
||||
13
sge-frontend/src/configs/theme.js
Normal file
13
sge-frontend/src/configs/theme.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createTheme } from "@mui/material";
|
||||
import { blue, red } from "@mui/material/colors";
|
||||
|
||||
export default createTheme({
|
||||
palette: {
|
||||
primary: {
|
||||
main: blue[500],
|
||||
},
|
||||
secondary: {
|
||||
main: red[500],
|
||||
},
|
||||
},
|
||||
});
|
||||
31
sge-frontend/src/configs/themeConfig.js
Normal file
31
sge-frontend/src/configs/themeConfig.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// You can customize the template with the help of this file
|
||||
|
||||
//Template config options
|
||||
const themeConfig = {
|
||||
app: {
|
||||
appName: "Bgreen",
|
||||
},
|
||||
layout: {
|
||||
isRTL: false,
|
||||
skin: "light", // light, dark, bordered, semi-dark
|
||||
routerTransition: "fadeIn", // fadeIn, fadeInLeft, zoomIn, none or check this for more transition https://animate.style/
|
||||
type: "horizontal", // vertical, horizontal
|
||||
contentWidth: "full", // full, boxed
|
||||
menu: {
|
||||
isHidden: false,
|
||||
isCollapsed: false,
|
||||
},
|
||||
navbar: {
|
||||
// ? For horizontal menu, navbar type will work for navMenu type
|
||||
type: "floating", // static , sticky , floating, hidden
|
||||
backgroundColor: "white", // BS color options [primary, success, etc]
|
||||
},
|
||||
footer: {
|
||||
type: "static", // static, sticky, hidden
|
||||
},
|
||||
customizer: false,
|
||||
scrollTop: true, // Enable scroll to top button
|
||||
},
|
||||
};
|
||||
|
||||
export default themeConfig;
|
||||
Reference in New Issue
Block a user