hide inert ui for now

This commit is contained in:
caranicas 2022-09-20 09:49:50 -04:00
parent 39090451f0
commit e8544be30a
9 changed files with 19 additions and 18 deletions

View File

@ -52,7 +52,6 @@ module.exports = {
"@typescript-eslint/no-unused-vars": "warn",
// TS things turned off for now
// "@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-floating-promises": "off",

View File

@ -61,7 +61,6 @@ export default function BetaMode() {
return (
<label>
<input
disabled={true}
type="checkbox"
checked={branchToGetNext === "main"}
onChange={(e) => {

View File

@ -105,7 +105,7 @@ export default function ImprovementSettings() {
setRequestOption("show_only_filtered_image", e.target.checked)
}
/>
{t("settings.correct")}
{t("settings.corrected")}
</label>
</div>
</>

View File

@ -14,7 +14,7 @@ import PropertySettings from "./propertySettings";
import WorkflowSettings from "./workflowSettings";
import GpuSettings from "./gpuSettings";
import BetaMode from "../../../molecules/betaMode";
// import BetaMode from "../../../molecules/betaMode";
function SettingsList() {
return (
@ -32,9 +32,9 @@ function SettingsList() {
<GpuSettings />
</li>
<li className={AdvancedSettingGrouping}>
{/* <li className={AdvancedSettingGrouping}>
<BetaMode />
</li>
</li> */}
</ul>
);
}

View File

@ -30,12 +30,12 @@ export default function BasicCreation() {
<p>{t("home.editor-title")}</p>
<textarea value={promptText} onChange={handlePromptChange}></textarea>
</div>
<MakeButton></MakeButton>
<SeedImage></SeedImage>
<ActiveTags></ActiveTags>
<MakeButton></MakeButton>
</div>
);
}

View File

@ -24,6 +24,14 @@ export default function MakeButton() {
const setRequestOption = useImageCreate((state) => state.setRequestOptions);
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
const req = builtRequest();
// the actual number of request we will make
@ -57,6 +65,7 @@ export default function MakeButton() {
// get the seed we want to use
let seed = req.seed;
if (index !== 0) {
debugger;
// we want to use a random seed for subsequent requests
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 (

View File

@ -82,7 +82,7 @@ export default function SeedImage(_props: any) {
X
</button>
</div>
<label>
{/* <label>
<input
type="checkbox"
onChange={(e) => {
@ -91,7 +91,7 @@ export default function SeedImage(_props: any) {
checked={isInPaintingMode}
></input>
{t("in-paint.txt")}
</label>
</label> */}
</>
)}
</div>

View File

@ -11,7 +11,7 @@ import {
HeaderDisplayMain, // @ts-expect-error
} from "./headerDisplay.css.ts";
import LanguageDropdown from "./languageDropdown";
// import LanguageDropdown from "./languageDropdown";
export default function HeaderDisplay() {
const { t } = useTranslation();
@ -46,7 +46,7 @@ export default function HeaderDisplay() {
</h1>
<StatusDisplay className="status-display"></StatusDisplay>
<LanguageDropdown></LanguageDropdown>
{/* <LanguageDropdown></LanguageDropdown> */}
</div>
);
}

View File

@ -14,8 +14,7 @@ interface ImageQueueState {
clearCachedIds: () => void;
}
// figure out why TS is complaining about this
// @ts-ignore
export const useImageQueue = create<ImageQueueState>((set, get) => ({
images: [],
completedImageIds: [],