Files
moreminimore-vibe/src/lib/utils.ts
Will Chen 5966dd7f4b Proxy server to inject shim (#178)
things to test:

- [x] allow real URL to open in new window
- [x] packaging in electron?
- [ ] does it work on windows?
- [x] make sure it works with older apps
- [x] what about cache / reuse? - maybe use a bigger range of ports??
2025-05-16 23:28:26 -07:00

208 lines
3.1 KiB
TypeScript

import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
/**
* Generates a cute app name.
*/
export function generateCuteAppName(): string {
const adjectives = [
"happy",
"gentle",
"brave",
"clever",
"swift",
"bright",
"calm",
"nimble",
"sleepy",
"fluffy",
"wild",
"tiny",
"bold",
"wise",
"merry",
"quick",
"busy",
"silent",
"cozy",
"jolly",
"playful",
"friendly",
"curious",
"peaceful",
"silly",
"dazzling",
"graceful",
"elegant",
"cosmic",
"whispering",
"dancing",
"sparkling",
"mystical",
"vibrant",
"radiant",
"dreamy",
"patient",
"energetic",
"vigilant",
"sincere",
"electric",
"stellar",
"lunar",
"serene",
"mighty",
"magical",
"neon",
"azure",
"crimson",
"emerald",
"golden",
"jade",
"crystal",
"snuggly",
"glowing",
"wandering",
"whistling",
"bubbling",
"floating",
"flying",
"hopping",
];
const animals = [
"fox",
"panda",
"rabbit",
"wolf",
"bear",
"owl",
"koala",
"beaver",
"ferret",
"squirrel",
"zebra",
"tiger",
"lynx",
"lemur",
"penguin",
"otter",
"hedgehog",
"deer",
"badger",
"raccoon",
"turtle",
"dolphin",
"eagle",
"falcon",
"parrot",
"capybara",
"axolotl",
"narwhal",
"wombat",
"meerkat",
"platypus",
"mongoose",
"chinchilla",
"quokka",
"alpaca",
"chameleon",
"ocelot",
"manatee",
"puffin",
"shiba",
"sloth",
"gecko",
"hummingbird",
"mantis",
"jellyfish",
"pangolin",
"okapi",
"binturong",
"tardigrade",
"beluga",
"kiwi",
"octopus",
"salamander",
"seahorse",
"kookaburra",
"gibbon",
"jackrabbit",
"lobster",
"iguana",
"tamarin",
"armadillo",
"starfish",
"walrus",
"phoenix",
"griffin",
"dragon",
"unicorn",
"kraken",
];
const verbs = [
"run",
"hop",
"dash",
"zoom",
"skip",
"jump",
"glow",
"play",
"chirp",
"buzz",
"flip",
"flit",
"soar",
"dive",
"swim",
"climb",
"sprint",
"wiggle",
"twirl",
"pounce",
"bop",
"spin",
"hum",
"roll",
"blink",
"skid",
"kick",
"drift",
"bloom",
"burst",
"slide",
"bounce",
"crawl",
"sniff",
"peek",
"scurry",
"nudge",
"snap",
"swoop",
"roam",
"trot",
"dart",
"yawn",
"snore",
"hug",
"nap",
"chase",
"rest",
"wag",
"bob",
"beam",
"cheer",
];
const randomAdjective =
adjectives[Math.floor(Math.random() * adjectives.length)];
const randomAnimal = animals[Math.floor(Math.random() * animals.length)];
const randomVerb = verbs[Math.floor(Math.random() * verbs.length)];
return `${randomAdjective}-${randomAnimal}-${randomVerb}`;
}