config cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
// Root.jsx
|
// Root.jsx
|
||||||
import { toast } from 'react-toastify';
|
import { toast } from 'react-toastify';
|
||||||
import { API_URL } from '../config';
|
|
||||||
import { Player } from './AudioPlayer.jsx';
|
import { Player } from './AudioPlayer.jsx';
|
||||||
import Memes from './Memes.jsx';
|
import Memes from './Memes.jsx';
|
||||||
import { JoyUIRootIsland } from './Components.jsx';
|
import { JoyUIRootIsland } from './Components.jsx';
|
||||||
@@ -13,7 +12,6 @@ import 'primereact/resources/primereact.min.css';
|
|||||||
|
|
||||||
export default function Root({child}) {
|
export default function Root({child}) {
|
||||||
window.toast = toast;
|
window.toast = toast;
|
||||||
window.API_URL = API_URL;
|
|
||||||
const theme = document.documentElement.getAttribute("data-theme")
|
const theme = document.documentElement.getAttribute("data-theme")
|
||||||
usePrimeReactThemeSwitcher(theme);
|
usePrimeReactThemeSwitcher(theme);
|
||||||
// console.log(opts.children);
|
// console.log(opts.children);
|
||||||
|
@@ -14,7 +14,7 @@ import Checkbox from "@mui/joy/Checkbox";
|
|||||||
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
||||||
import jQuery from "jquery";
|
import jQuery from "jquery";
|
||||||
import { AutoComplete } from 'primereact/autocomplete';
|
import { AutoComplete } from 'primereact/autocomplete';
|
||||||
import { api as API_URL } from '../config';
|
import { API_URL } from '../config';
|
||||||
|
|
||||||
window.$ = window.jQuery = jQuery;
|
window.$ = window.jQuery = jQuery;
|
||||||
const theme = document.documentElement.getAttribute("data-theme")
|
const theme = document.documentElement.getAttribute("data-theme")
|
||||||
|
@@ -8,8 +8,7 @@ export const metaData = {
|
|||||||
"codey.lol",
|
"codey.lol",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const api = "https://api.codey.lol";
|
export const API_URL = "https://api.codey.lol";
|
||||||
export const API_URL = api;
|
|
||||||
export const socialLinks = {
|
export const socialLinks = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user