mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02:00
clean build
This commit is contained in:
parent
50e929eb0c
commit
5ed6bba412
@ -139,16 +139,7 @@ export const doMakeImage = async (reqBody: ImageRequest) => {
|
|||||||
|
|
||||||
export const doStopImage = async () => {
|
export const doStopImage = async () => {
|
||||||
|
|
||||||
console.log("stopping image");
|
|
||||||
const response = await fetch(`${API_URL}/image/stop`);
|
const response = await fetch(`${API_URL}/image/stop`);
|
||||||
console.log("stopping image response", response);
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
console.log("stopping image data", data);
|
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
// try {
|
|
||||||
// let res = await fetch('/image/stop')
|
|
||||||
// } catch (e) {
|
|
||||||
// console.log(e)
|
|
||||||
// }
|
|
||||||
};
|
};
|
@ -93,7 +93,7 @@ export default function MakeButton() {
|
|||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
updateQueueStatus(id, QueueStatus.error);
|
updateQueueStatus(id, QueueStatus.error);
|
||||||
console.log("Error HACKING JSON: ", e)
|
console.warn("Error HACKING JSON: ", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,14 +142,13 @@ export default function MakeButton() {
|
|||||||
// TODO this should be the the new out instead of the try catch
|
// TODO this should be the the new out instead of the try catch
|
||||||
// wait for the path to come back instead of the data
|
// wait for the path to come back instead of the data
|
||||||
setStatus(FetchingStates.SUCCEEDED);
|
setStatus(FetchingStates.SUCCEEDED);
|
||||||
console.log(update);
|
|
||||||
}
|
}
|
||||||
else if (status === 'failed') {
|
else if (status === 'failed') {
|
||||||
console.warn('failed');
|
console.warn('failed');
|
||||||
console.log(update);
|
console.warn(update);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("UNKNOWN ?", update);
|
console.warn("UNKNOWN ?", update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
@ -49,8 +49,6 @@ function ModifierGrouping({ title, category, tags }: ModifierGroupingProps) {
|
|||||||
setIsExpanded(!isExpanded);
|
setIsExpanded(!isExpanded);
|
||||||
};
|
};
|
||||||
|
|
||||||
// console.log("ModifierGrouping", tags);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={ImageModifierGrouping}>
|
<div className={ImageModifierGrouping}>
|
||||||
<button type="button" className={MenuButton} onClick={_toggleExpand}>
|
<button type="button" className={MenuButton} onClick={_toggleExpand}>
|
||||||
@ -88,7 +86,6 @@ export default function ImageModifers() {
|
|||||||
<ul className={ImagerModifierGroups}>
|
<ul className={ImagerModifierGroups}>
|
||||||
{allModifiers.map((item, index) => {
|
{allModifiers.map((item, index) => {
|
||||||
|
|
||||||
// console.log('mod item ', item);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li key={item.category}>
|
<li key={item.category}>
|
||||||
|
@ -30,9 +30,6 @@ export default function CreationPanel() {
|
|||||||
const showQueue = useCreateUI((state) => state.showQueue);
|
const showQueue = useCreateUI((state) => state.showQueue);
|
||||||
const hasQueue = useRequestQueue((state) => state.hasAnyQueue());
|
const hasQueue = useRequestQueue((state) => state.hasAnyQueue());
|
||||||
|
|
||||||
// console.log('hasQueue', hasQueue);
|
|
||||||
console.log('showQueue', showQueue);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={CreationPaneMain}>
|
<div className={CreationPaneMain}>
|
||||||
|
@ -22,12 +22,10 @@ export default function QueueDisplay() {
|
|||||||
const removeErrored = useRequestQueue((state) => state.removeErrored);
|
const removeErrored = useRequestQueue((state) => state.removeErrored);
|
||||||
|
|
||||||
const clearCompleted = () => {
|
const clearCompleted = () => {
|
||||||
console.log('clear completed');
|
|
||||||
removeCompleted();
|
removeCompleted();
|
||||||
}
|
}
|
||||||
|
|
||||||
const clearErrored = () => {
|
const clearErrored = () => {
|
||||||
console.log('clear errored');
|
|
||||||
removeErrored();
|
removeErrored();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
ui/frontend/dist/index.js
vendored
4
ui/frontend/dist/index.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user