prompts can be added to prompt composer.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { randomUUID } from "crypto";
|
||||
import { v4 as randomUUID } from "uuid";
|
||||
import { Op } from "./operator";
|
||||
import { createSlice } from '@reduxjs/toolkit'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { randomUUID } from "crypto";
|
||||
import { v4 as randomUUID } from "uuid";
|
||||
import { Op } from "./operator";
|
||||
import {
|
||||
Library as LibraryType,
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user