chore(ui): clean up unused files/packages

This commit is contained in:
psychedelicious
2023-05-15 22:48:06 +10:00
parent d2c9140e69
commit 513eb11616
61 changed files with 61 additions and 2297 deletions

View File

@@ -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!
*/

View File

@@ -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
);