mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-13 21:36:43 +02:00
remove logs
This commit is contained in:
parent
d027352d79
commit
21057759de
@ -34,7 +34,6 @@ export const getSaveDirectory = async () => {
|
|||||||
export const KEY_CONFIG = "config";
|
export const KEY_CONFIG = "config";
|
||||||
export const getConfig = async () => {
|
export const getConfig = async () => {
|
||||||
const response = await fetch(`${API_URL}/app_config`);
|
const response = await fetch(`${API_URL}/app_config`);
|
||||||
console.log("getConfig response", response);
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
@ -31,7 +31,6 @@ export default function DrawImage({
|
|||||||
const [canvasHeight, setCanvasHeight] = useState(512);
|
const [canvasHeight, setCanvasHeight] = useState(512);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(imageData);
|
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
setCanvasWidth(img.width);
|
setCanvasWidth(img.width);
|
||||||
@ -61,7 +60,6 @@ export default function DrawImage({
|
|||||||
const _handleMouseDown = (
|
const _handleMouseDown = (
|
||||||
e: React.MouseEvent<HTMLCanvasElement, MouseEvent>
|
e: React.MouseEvent<HTMLCanvasElement, MouseEvent>
|
||||||
) => {
|
) => {
|
||||||
console.log("mouse down", e);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
nativeEvent: { offsetX, offsetY },
|
nativeEvent: { offsetX, offsetY },
|
||||||
|
@ -1172,12 +1172,9 @@ function showInitImagePreview() {
|
|||||||
let file = initImageSelector.files[0]
|
let file = initImageSelector.files[0]
|
||||||
|
|
||||||
reader.addEventListener('load', function() {
|
reader.addEventListener('load', function() {
|
||||||
// console.log(file.name, reader.result)
|
|
||||||
initImagePreview.src = reader.result
|
initImagePreview.src = reader.result
|
||||||
initImagePreviewContainer.style.display = 'block'
|
initImagePreviewContainer.style.display = 'block'
|
||||||
promptStrengthContainer.style.display = 'block'
|
promptStrengthContainer.style.display = 'block'
|
||||||
|
|
||||||
// maskSetting.style.display = 'block'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (file) {
|
if (file) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user