mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
chore(ui): clean up unused files/packages
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* DO NOT DELETE EVEN THOUGH IT IS NOT USED!
|
||||
*
|
||||
* Custom `request.ts` file for OpenAPI code generator.
|
||||
*
|
||||
* Patches the request logic in such a way that we can extract headers from requests.
|
||||
*
|
||||
* Copied from https://github.com/ferdikoomen/openapi-typescript-codegen/issues/829#issuecomment-1228224477
|
||||
*
|
||||
*
|
||||
* This file should be excluded in `tsconfig.json` and ignored by prettier/eslint!
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import { Graph, TextToImageInvocation } from '../api';
|
||||
|
||||
/**
|
||||
* Make a graph of however many images
|
||||
*/
|
||||
export const makeGraphOfXImages = (numberOfImages: string) =>
|
||||
Array.from(Array(numberOfImages))
|
||||
.map(
|
||||
(_val, i): TextToImageInvocation => ({
|
||||
id: i.toString(),
|
||||
type: 'txt2img',
|
||||
prompt: 'pizza',
|
||||
steps: 50,
|
||||
seed: 123,
|
||||
scheduler: 'ddim',
|
||||
})
|
||||
)
|
||||
.reduce(
|
||||
(acc, val: TextToImageInvocation) => {
|
||||
if (acc.nodes) acc.nodes[val.id] = val;
|
||||
return acc;
|
||||
},
|
||||
{ nodes: {} } as Graph
|
||||
);
|
||||
Reference in New Issue
Block a user