mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 01:48:21 +02:00
cleaned and built
This commit is contained in:
parent
30563ee04c
commit
4dfa3d8372
@ -1,9 +0,0 @@
|
|||||||
import { style } from "@vanilla-extract/css";
|
|
||||||
|
|
||||||
import { vars } from "../../../styles/theme/index.css";
|
|
||||||
|
|
||||||
import { BrandedButton } from "../../../styles/shared.css";
|
|
||||||
|
|
||||||
export const ClearQueueButton = style([BrandedButton, {
|
|
||||||
fontSize: vars.fonts.sizes.Headline,
|
|
||||||
}]);
|
|
@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { doStopImage } from "../../../api";
|
import { doStopImage } from "../../../api";
|
||||||
|
|
||||||
// import { BrandedButton } from "../../../styles/shared.css";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
buttonStyle
|
buttonStyle
|
||||||
@ -22,6 +21,5 @@ export default function StopButton() {
|
|||||||
type: "cancel",
|
type: "cancel",
|
||||||
size: "large",
|
size: "large",
|
||||||
}
|
}
|
||||||
|
|
||||||
)} onClick={() => void stopMake()}>Stop</button>;
|
)} onClick={() => void stopMake()}>Stop</button>;
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,14 @@ import {
|
|||||||
ImageInputDisplay,
|
ImageInputDisplay,
|
||||||
InputLabel,
|
InputLabel,
|
||||||
ImageInput,
|
ImageInput,
|
||||||
ImageInputButton,
|
|
||||||
ImageFixer,
|
ImageFixer,
|
||||||
XButton,
|
XButton,
|
||||||
} from "./seedImage.css";
|
} from "./seedImage.css";
|
||||||
|
|
||||||
|
import {
|
||||||
|
buttonStyle
|
||||||
|
} from "../../../../_recipes/button.css";
|
||||||
|
|
||||||
import { useImageCreate } from "../../../../../stores/imageCreateStore";
|
import { useImageCreate } from "../../../../../stores/imageCreateStore";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@ -69,7 +73,7 @@ export default function SeedImage(_props: any) {
|
|||||||
type="file"
|
type="file"
|
||||||
onChange={_handleFileSelect}
|
onChange={_handleFileSelect}
|
||||||
/>
|
/>
|
||||||
<button className={ImageInputButton} onClick={_startFileSelect}>
|
<button className={buttonStyle()} onClick={_startFileSelect}>
|
||||||
{t("home.initial-img-btn")}
|
{t("home.initial-img-btn")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,8 +2,6 @@ import { style } from "@vanilla-extract/css";
|
|||||||
|
|
||||||
import { vars } from "../../../../../styles/theme/index.css";
|
import { vars } from "../../../../../styles/theme/index.css";
|
||||||
|
|
||||||
import { BrandedButton } from "../../../../../styles/shared.css";
|
|
||||||
|
|
||||||
export const ImageInputDisplay = style({
|
export const ImageInputDisplay = style({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
});
|
});
|
||||||
@ -17,7 +15,6 @@ export const ImageInput = style({
|
|||||||
display: "none",
|
display: "none",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ImageInputButton = style([BrandedButton]);
|
|
||||||
|
|
||||||
// this is needed to fix an issue with the image input text
|
// this is needed to fix an issue with the image input text
|
||||||
// when that is a drag an drop we can remove this
|
// when that is a drag an drop we can remove this
|
||||||
|
@ -7,7 +7,6 @@ import {
|
|||||||
completedImagesMain,
|
completedImagesMain,
|
||||||
completedImagesList,
|
completedImagesList,
|
||||||
imageContain,
|
imageContain,
|
||||||
RemoveButton,
|
|
||||||
} from "./completedImages.css";
|
} from "./completedImages.css";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -12,9 +12,10 @@ import {
|
|||||||
imageDisplayContent,
|
imageDisplayContent,
|
||||||
} from './imageDisplay.css';
|
} from './imageDisplay.css';
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BrandedButton
|
buttonStyle
|
||||||
} from '../../../../../styles/shared.css'
|
} from "../../../../_recipes/button.css";
|
||||||
|
|
||||||
export default function ImageDisplay({ info, data }: CompletedImagesType) {
|
export default function ImageDisplay({ info, data }: CompletedImagesType) {
|
||||||
|
|
||||||
@ -74,8 +75,14 @@ export default function ImageDisplay({ info, data }: CompletedImagesType) {
|
|||||||
<div>
|
<div>
|
||||||
<p> {info?.prompt}</p>
|
<p> {info?.prompt}</p>
|
||||||
<div>
|
<div>
|
||||||
<button className={BrandedButton} onClick={_handleSave}>Save</button>
|
<button className={buttonStyle(
|
||||||
<button className={BrandedButton} onClick={_handleUseAsInput}>Use as Input</button>
|
|
||||||
|
)} onClick={_handleSave}>Save</button>
|
||||||
|
<button className={buttonStyle(
|
||||||
|
{
|
||||||
|
type: "secondary"
|
||||||
|
}
|
||||||
|
)} onClick={_handleUseAsInput}>Use as Input</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<GeneratedImage imageData={data} metadata={info}></GeneratedImage>
|
<GeneratedImage imageData={data} metadata={info}></GeneratedImage>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { style, globalStyle } from "@vanilla-extract/css";
|
import { style, globalStyle } from "@vanilla-extract/css";
|
||||||
|
|
||||||
import { BrandedButton } from "../../../styles/shared.css";
|
|
||||||
|
|
||||||
import { vars } from "../../../styles/theme/index.css";
|
import { vars } from "../../../styles/theme/index.css";
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ import { style, globalStyle } from "@vanilla-extract/css";
|
|||||||
|
|
||||||
import { vars } from "../../../../styles/theme/index.css";
|
import { vars } from "../../../../styles/theme/index.css";
|
||||||
|
|
||||||
import { BrandedButton } from "../../../../styles/shared.css";
|
|
||||||
|
|
||||||
import { QueueStatus } from "../../../../stores/requestQueueStore";
|
import { QueueStatus } from "../../../../stores/requestQueueStore";
|
||||||
|
|
||||||
@ -51,30 +50,4 @@ export const QueueButtons = style({
|
|||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// TODO these should be a button recipe?
|
|
||||||
// export const CompleteButtton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
||||||
|
|
||||||
// export const PauseButton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
||||||
|
|
||||||
// export const ResumeButton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
||||||
|
|
||||||
// export const CancelButton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
||||||
|
|
||||||
// export const RetryButton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
||||||
|
|
||||||
// export const SendToTopButton = style([BrandedButton, {
|
|
||||||
|
|
||||||
// }]);
|
|
@ -56,26 +56,3 @@ globalStyle(`${MenuButton}> h4`, {
|
|||||||
color: "#e7ba71",
|
color: "#e7ba71",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export const BrandedButton = style({
|
|
||||||
backgroundColor: vars.colors.brand,
|
|
||||||
fontSize: vars.fonts.sizes.Subheadline,
|
|
||||||
fontWeight: "bold",
|
|
||||||
color: vars.colors.text.normal,
|
|
||||||
padding: vars.spacing.small,
|
|
||||||
border: "0",
|
|
||||||
borderRadius: vars.trim.smallBorderRadius,
|
|
||||||
|
|
||||||
":hover": {
|
|
||||||
backgroundColor: vars.colors.brandHover,
|
|
||||||
},
|
|
||||||
|
|
||||||
":active": {
|
|
||||||
backgroundColor: vars.colors.brandActive,
|
|
||||||
},
|
|
||||||
|
|
||||||
":disabled": {
|
|
||||||
backgroundColor: vars.colors.brandDimmed,
|
|
||||||
color: vars.colors.text.dimmed,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
2
ui/frontend/dist/index.css
vendored
2
ui/frontend/dist/index.css
vendored
File diff suppressed because one or more lines are too long
44
ui/frontend/dist/index.js
vendored
44
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