mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-26 16:18:50 +01:00
hide inert ui for now
This commit is contained in:
parent
39090451f0
commit
e8544be30a
@ -52,7 +52,6 @@ module.exports = {
|
|||||||
"@typescript-eslint/no-unused-vars": "warn",
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
|
||||||
// TS things turned off for now
|
// TS things turned off for now
|
||||||
// "@typescript-eslint/prefer-optional-chain": "off",
|
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
"@typescript-eslint/strict-boolean-expressions": "off",
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
||||||
"@typescript-eslint/no-floating-promises": "off",
|
"@typescript-eslint/no-floating-promises": "off",
|
||||||
|
@ -61,7 +61,6 @@ export default function BetaMode() {
|
|||||||
return (
|
return (
|
||||||
<label>
|
<label>
|
||||||
<input
|
<input
|
||||||
disabled={true}
|
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={branchToGetNext === "main"}
|
checked={branchToGetNext === "main"}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
@ -105,7 +105,7 @@ export default function ImprovementSettings() {
|
|||||||
setRequestOption("show_only_filtered_image", e.target.checked)
|
setRequestOption("show_only_filtered_image", e.target.checked)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{t("settings.correct")}
|
{t("settings.corrected")}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
@ -14,7 +14,7 @@ import PropertySettings from "./propertySettings";
|
|||||||
import WorkflowSettings from "./workflowSettings";
|
import WorkflowSettings from "./workflowSettings";
|
||||||
import GpuSettings from "./gpuSettings";
|
import GpuSettings from "./gpuSettings";
|
||||||
|
|
||||||
import BetaMode from "../../../molecules/betaMode";
|
// import BetaMode from "../../../molecules/betaMode";
|
||||||
|
|
||||||
function SettingsList() {
|
function SettingsList() {
|
||||||
return (
|
return (
|
||||||
@ -32,9 +32,9 @@ function SettingsList() {
|
|||||||
<GpuSettings />
|
<GpuSettings />
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li className={AdvancedSettingGrouping}>
|
{/* <li className={AdvancedSettingGrouping}>
|
||||||
<BetaMode />
|
<BetaMode />
|
||||||
</li>
|
</li> */}
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -30,12 +30,12 @@ export default function BasicCreation() {
|
|||||||
<p>{t("home.editor-title")}</p>
|
<p>{t("home.editor-title")}</p>
|
||||||
<textarea value={promptText} onChange={handlePromptChange}></textarea>
|
<textarea value={promptText} onChange={handlePromptChange}></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
<MakeButton></MakeButton>
|
||||||
|
|
||||||
<SeedImage></SeedImage>
|
<SeedImage></SeedImage>
|
||||||
|
|
||||||
<ActiveTags></ActiveTags>
|
<ActiveTags></ActiveTags>
|
||||||
|
|
||||||
<MakeButton></MakeButton>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,14 @@ export default function MakeButton() {
|
|||||||
const setRequestOption = useImageCreate((state) => state.setRequestOptions);
|
const setRequestOption = useImageCreate((state) => state.setRequestOptions);
|
||||||
|
|
||||||
const makeImages = () => {
|
const makeImages = () => {
|
||||||
|
|
||||||
|
// potentially update the seed
|
||||||
|
if (isRandomSeed) {
|
||||||
|
// update the seed for the next time we click the button
|
||||||
|
debugger;
|
||||||
|
setRequestOption("seed", useRandomSeed());
|
||||||
|
}
|
||||||
|
|
||||||
// the request that we have built
|
// the request that we have built
|
||||||
const req = builtRequest();
|
const req = builtRequest();
|
||||||
// the actual number of request we will make
|
// the actual number of request we will make
|
||||||
@ -57,6 +65,7 @@ export default function MakeButton() {
|
|||||||
// get the seed we want to use
|
// get the seed we want to use
|
||||||
let seed = req.seed;
|
let seed = req.seed;
|
||||||
if (index !== 0) {
|
if (index !== 0) {
|
||||||
|
debugger;
|
||||||
// we want to use a random seed for subsequent requests
|
// we want to use a random seed for subsequent requests
|
||||||
seed = useRandomSeed();
|
seed = useRandomSeed();
|
||||||
}
|
}
|
||||||
@ -70,11 +79,6 @@ export default function MakeButton() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// potentially update the seed
|
|
||||||
if (isRandomSeed) {
|
|
||||||
// update the seed for the next time we click the button
|
|
||||||
setRequestOption("seed", useRandomSeed());
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -82,7 +82,7 @@ export default function SeedImage(_props: any) {
|
|||||||
X
|
X
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<label>
|
{/* <label>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@ -91,7 +91,7 @@ export default function SeedImage(_props: any) {
|
|||||||
checked={isInPaintingMode}
|
checked={isInPaintingMode}
|
||||||
></input>
|
></input>
|
||||||
{t("in-paint.txt")}
|
{t("in-paint.txt")}
|
||||||
</label>
|
</label> */}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
HeaderDisplayMain, // @ts-expect-error
|
HeaderDisplayMain, // @ts-expect-error
|
||||||
} from "./headerDisplay.css.ts";
|
} from "./headerDisplay.css.ts";
|
||||||
|
|
||||||
import LanguageDropdown from "./languageDropdown";
|
// import LanguageDropdown from "./languageDropdown";
|
||||||
|
|
||||||
export default function HeaderDisplay() {
|
export default function HeaderDisplay() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -46,7 +46,7 @@ export default function HeaderDisplay() {
|
|||||||
</h1>
|
</h1>
|
||||||
<StatusDisplay className="status-display"></StatusDisplay>
|
<StatusDisplay className="status-display"></StatusDisplay>
|
||||||
|
|
||||||
<LanguageDropdown></LanguageDropdown>
|
{/* <LanguageDropdown></LanguageDropdown> */}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,7 @@ interface ImageQueueState {
|
|||||||
clearCachedIds: () => void;
|
clearCachedIds: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
// figure out why TS is complaining about this
|
|
||||||
// @ts-ignore
|
|
||||||
export const useImageQueue = create<ImageQueueState>((set, get) => ({
|
export const useImageQueue = create<ImageQueueState>((set, get) => ({
|
||||||
images: [],
|
images: [],
|
||||||
completedImageIds: [],
|
completedImageIds: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user