Merge branch 'development' of github.com:invoke-ai/InvokeAI into development

This commit is contained in:
Lincoln Stein 2022-10-06 18:31:25 -04:00
commit 1f25f52af9
11 changed files with 503 additions and 17 deletions

2
frontend/.gitignore vendored
View File

@ -23,5 +23,3 @@ dist-ssr
*.njsproj
*.sln
*.sw?
dist/*

Binary file not shown.

BIN
frontend/dist/assets/Inter.b9a8e5e2.ttf vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

File diff suppressed because one or more lines are too long

483
frontend/dist/assets/index.a0198006.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
frontend/dist/assets/logo.13003d72.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="/assets/favicon.0d253ced.ico" />
<script type="module" crossorigin src="/assets/index.a8cf9285.js"></script>
<script type="module" crossorigin src="/assets/index.a0198006.js"></script>
<link rel="stylesheet" href="/assets/index.60ca0ee5.css">
</head>

View File

@ -1,23 +1,29 @@
import React from 'react';
import { RootState, useAppDispatch, useAppSelector } from '../../../../app/store';
import {
RootState,
useAppDispatch,
useAppSelector,
} from '../../../../app/store';
import IAINumberInput from '../../../../common/components/IAINumberInput';
import { setThreshold } from '../../optionsSlice';
export default function Threshold() {
const dispatch = useAppDispatch();
const threshold = useAppSelector((state: RootState) => state.options.threshold);
const threshold = useAppSelector(
(state: RootState) => state.options.threshold
);
const handleChangeThreshold = (v: number) => dispatch(setThreshold(v));
return (
<IAINumberInput
label='Threshold'
min={0}
max={1000}
step={0.1}
onChange={handleChangeThreshold}
value={threshold}
isInteger={false}
label="Threshold"
min={0}
max={1000}
step={0.1}
onChange={handleChangeThreshold}
value={threshold}
isInteger={false}
/>
);
}

View File

@ -1,8 +1,7 @@
import React from 'react';
import { MdAddAPhoto } from 'react-icons/md';
import { generateImage } from '../../../app/socketio/actions';
import { useAppDispatch } from '../../../app/store';
import IAIIconButton from '../../../common/components/IAIIconButton';
import IAIButton from '../../../common/components/IAIButton';
import useCheckParameters from '../../../common/hooks/useCheckParameters';
export default function InvokeButton() {
@ -14,9 +13,8 @@ export default function InvokeButton() {
};
return (
<IAIIconButton
icon={<MdAddAPhoto />}
tooltip="Invoke"
<IAIButton
label="Invoke"
aria-label="Invoke"
type="submit"
isDisabled={!isReady}