diff --git a/.eslintrc.json b/.eslintrc.json index bab62ad2..4284c946 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,7 @@ { - "extends": [ - "next/core-web-vitals", - "plugin:tailwindcss/recommended" - ], + "extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended"], "rules": { "react/no-unescaped-entities": "off", "react-hooks/rules-of-hooks": "off" - } } diff --git a/app/api/avatar/route.tsx b/app/api/avatar/route.tsx deleted file mode 100644 index 3c4fdee8..00000000 --- a/app/api/avatar/route.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { ImageResponse } from "next/og"; -import { NextRequest, NextResponse } from "next/server"; -import { getSettings } from "@/db/services/setting"; - -export const runtime = "nodejs"; - -const AVATAR_COLORS = [ - "#4f46e5", - "#7c3aed", - "#e11d48", - "#ea580c", - "#d97706", - "#059669", - "#0891b2", - "#52525b", -]; - -export async function GET(request: NextRequest) { - const settings = await getSettings(); - if (settings?.avatarMode && settings.avatarMode !== "internal") { - return new NextResponse(null, { status: 404 }); - } - - const { searchParams } = new URL(request.url); - const initials = (searchParams.get("initials") ?? "?") - .slice(0, 2) - .toUpperCase(); - const color = searchParams.get("color") ?? AVATAR_COLORS[0]; - - return new ImageResponse( -
- Go back and configure storages in the "Connect a storage" step first. + Go back and configure storages in the "Connect an external storage" step first.
} /> diff --git a/src/features/onboarding/onboarding-state.ts b/src/features/onboarding/onboarding-state.ts index d0b3e8ab..62ea272e 100644 --- a/src/features/onboarding/onboarding-state.ts +++ b/src/features/onboarding/onboarding-state.ts @@ -107,14 +107,16 @@ export async function resolveOnboardingState(): PromiseAvatar
-- Optional — choose where backups and files are stored. + Optional — link an S3-compatible bucket or other external storage to keep your backups safe and off-instance.
diff --git a/src/features/settings/dicebear-style-picker.tsx b/src/features/settings/dicebear-style-picker.tsx index c9b85eb4..78d7ec88 100644 --- a/src/features/settings/dicebear-style-picker.tsx +++ b/src/features/settings/dicebear-style-picker.tsx @@ -10,9 +10,10 @@ type Props = { value: string; onChange: (style: string) => void; disabled?: boolean; + maxHeight?: string; }; -export const DicebearStylePicker = ({ value, onChange, disabled }: Props) => { +export const DicebearStylePicker = ({ value, onChange, disabled, maxHeight = "max-h-96" }: Props) => { const dicebearState = useDiceBearStyles(); return ( @@ -43,7 +44,7 @@ export const DicebearStylePicker = ({ value, onChange, disabled }: Props) => { )} {dicebearState.status === "success" && ( -