This commit is contained in:
Maze Winther 2026-01-21 14:57:40 +01:00
parent f3c91d5cb4
commit 9aeea153c7
5 changed files with 9 additions and 4 deletions

View File

@ -1632,7 +1632,7 @@ platform.ts
export function getPlatformAlternateKey(): string
export function isAppleDevice(): boolean
string-utils.ts
strings.ts
export function capitalizeFirstLetter({ string }: { string: string })
export function uppercase({ string }: { string: string })

View File

@ -4,6 +4,11 @@
Privacy-first video editor, with a focus on simplicity and ease of use.
## Lib vs Utils
- `lib/` - domain logic (specific to this app)
- `utils/` - small helper utils (generic, could be copy-pasted into any other app)
## Core Editor System
The editor uses a **singleton EditorCore** that manages all editor state through specialized managers.

View File

@ -19,7 +19,7 @@ import {
} from "./property-item";
import { ColorPicker } from "@/components/ui/color-picker";
import { cn } from "@/utils/ui";
import { capitalizeFirstLetter, uppercase } from "@/utils/string-utils";
import { capitalizeFirstLetter, uppercase } from "@/utils/strings";
import { clamp } from "@/utils/math";
import { Grid2x2 } from "lucide-react";
import {
@ -390,7 +390,7 @@ export function TextProperties({
className={cn(
"text-foreground",
element.backgroundColor === "transparent" &&
"text-primary",
"text-primary",
)}
/>
</Button>

View File

@ -3,7 +3,7 @@ import { RiDiscordFill, RiTwitterXLine } from "react-icons/ri";
import { FaGithub } from "react-icons/fa6";
import Image from "next/image";
import { DEFAULT_LOGO_URL, SOCIAL_LINKS } from "@/constants/site-constants";
import { capitalizeFirstLetter } from "@/utils/string-utils";
import { capitalizeFirstLetter } from "@/utils/strings";
type Category = "resources" | "company";