prompts can be added to prompt composer.

This commit is contained in:
Jordan
2024-02-28 08:36:40 -08:00
parent b0c70f6d17
commit d9c1282d99
19 changed files with 283 additions and 59 deletions

View File

@ -1,4 +1,4 @@
import { randomUUID } from "crypto";
import { v4 as randomUUID } from "uuid";
import { Op } from "./operator";
import { createSlice } from '@reduxjs/toolkit'

View File

@ -1,4 +1,4 @@
import { randomUUID } from "crypto";
import { v4 as randomUUID } from "uuid";
import { Op } from "./operator";
import {
Library as LibraryType,

View File

@ -1,4 +1,4 @@
import { randomUUID } from "crypto";
import { v4 as randomUUID } from "uuid";
import { Op } from "./operator";
import { atom, computed } from "nanostores";
@ -8,6 +8,7 @@ type IdAble = {
id: Id,
}
// only vibes and styles will have a name.
export enum Category {
subject = "subject",
style = "style",
@ -15,6 +16,10 @@ export enum Category {
medium = "medium",
}
export function categoryHasName(cat : Category) {
return (cat === Category.style || cat === Category.vibes)
}
const N_CATEGORIES = Object.keys(Category).length;
export function catI(c: Category | string): number {