midv
This commit is contained in:
BIN
public/opengraph-image.png
Normal file
BIN
public/opengraph-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -1,13 +1,12 @@
|
|||||||
// Root.jsx
|
// Root.jsx
|
||||||
import { React, useContext, useState, useEffect } from 'react';
|
|
||||||
import { toast } from 'react-toastify';
|
import { toast } from 'react-toastify';
|
||||||
|
import { API_URL } from '../config';
|
||||||
|
import { Player } from './AudioPlayer.jsx';
|
||||||
|
import { JoyUIRootIsland } from './Components.jsx';
|
||||||
|
import { PrimeReactProvider } from "primereact/api";
|
||||||
import Alert from '@mui/joy/Alert';
|
import Alert from '@mui/joy/Alert';
|
||||||
import WarningIcon from '@mui/icons-material/Warning';
|
import WarningIcon from '@mui/icons-material/Warning';
|
||||||
import {JoyUIRootIsland} from './Components.jsx';
|
|
||||||
import CustomToastContainer from '../components/ToastProvider.jsx';
|
import CustomToastContainer from '../components/ToastProvider.jsx';
|
||||||
import { PrimeReactProvider } from "primereact/api";
|
|
||||||
import { API_URL } from "../config";
|
|
||||||
import { Player } from "./AudioPlayer.jsx";
|
|
||||||
import LyricSearch from './LyricSearch.jsx';
|
import LyricSearch from './LyricSearch.jsx';
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ export function LyricSearchInputField(opts = {}) {
|
|||||||
$('#spinner').removeClass("hidden");
|
$('#spinner').removeClass("hidden");
|
||||||
$(box).addClass("hidden");
|
$(box).addClass("hidden");
|
||||||
//setTimeout(() => { $("#spinner").addClass("hidden"); alert('Not yet implemented.')}, 1000);
|
//setTimeout(() => { $("#spinner").addClass("hidden"); alert('Not yet implemented.')}, 1000);
|
||||||
search_toast = toast.info("Searching...");
|
search_toast = toast.info("Searching...", {style: { color: '#000000', backgroundColor: 'rgba(217, 242, 255, 0.8)'}});
|
||||||
start_time = new Date().getTime()
|
start_time = new Date().getTime()
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: API_URL+'/lyric/search',
|
url: API_URL+'/lyric/search',
|
||||||
@ -183,14 +183,6 @@ export function LyricSearchInputField(opts = {}) {
|
|||||||
return setSuggestions(json);
|
return setSuggestions(json);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Fetch data from your API using the event.query (user's input)
|
|
||||||
// axios.get(`your-api-endpoint?query=${event.query}`)
|
|
||||||
// .then(response => {
|
|
||||||
// setSuggestions(response.data); // Update suggestions state with the fetched data
|
|
||||||
// })
|
|
||||||
// .catch(error => {
|
|
||||||
// console.error('Error fetching suggestions:', error);
|
|
||||||
// });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -237,7 +229,7 @@ export const UICheckbox = forwardRef(function UICheckbox(opts = {}, ref) {
|
|||||||
let valid_exclusions = true;
|
let valid_exclusions = true;
|
||||||
useImperativeHandle(ref, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
setChecked: (val) => setChecked(val),
|
setChecked: (val) => setChecked(val),
|
||||||
checked, // (optional) expose value for reading too
|
checked,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const verifyExclusions = (e) => {
|
const verifyExclusions = (e) => {
|
||||||
@ -253,7 +245,6 @@ export const UICheckbox = forwardRef(function UICheckbox(opts = {}, ref) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
Reference in New Issue
Block a user