3fc7bf2b97
Build backend images / build content-svc (push) Failing after 3m39s
Build backend images / build file-svc (push) Failing after 52s
Build backend images / build gateway (push) Failing after 58s
Build backend images / build identity-svc (push) Failing after 1m21s
Build backend images / build notification-svc (push) Failing after 1m0s
Build backend images / build render-svc (push) Failing after 58s
Build backend images / build studio-svc (push) Failing after 55s
AI SEO content generator - content-svc: per-tenant OpenAI config (ai_settings) + /v1/ai endpoints (settings GET/PUT, seo-post) with SEO-expert prompt → structured article - admin UI to configure token/base-url/model and generate + save as blog - configurable base URL for restricted networks Full data-driven admin panel - generic /api/admin/resource proxy + reusable AdminResource component - categories/tags/fonts/blogs (CRUD), users (list + ban), plans/slides - AI content section; nav + i18n i18n localization sweep - localized 116 user-facing + studio/editor components to next-intl (fa+en) under the auto.* namespace; merge tooling in scripts/merge-i18n.js Branding + assets - Monoline F logo (LogoMark + favicon) - offline SVG placeholder generator (/api/placeholder), dropped picsum.photos Fixes - JWT issuer mismatch on content/studio (flatrender → flatrender-identity) - missing role claim → [Authorize(Roles="Admin")] now works (RBAC) - Secure cookies broke HTTP sessions → gated behind AUTH_COOKIE_SECURE - Radix RTL via DirectionProvider (right-aligned menus in fa) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import { useTranslations } from "next-intl";
|
|
import { useState } from "react";
|
|
|
|
import { PropertySelect } from "@/components/studio/properties/PropertyControls";
|
|
import { SidebarPanelShell } from "@/components/studio/sidebar/SidebarPanelShell";
|
|
import { Button } from "@/components/ui/button";
|
|
import { FONT_FAMILY_OPTIONS } from "@/lib/studio-layer-props";
|
|
import { useStudioStore } from "@/lib/studio-store";
|
|
|
|
export function FontSidebarContent() {
|
|
const t = useTranslations("auto.componentsStudioSidebarFontSidebarContent");
|
|
const applyFontFamilyToAllTextLayers = useStudioStore(
|
|
(state) => state.applyFontFamilyToAllTextLayers
|
|
);
|
|
const [fontFamily, setFontFamily] = useState<string>(
|
|
FONT_FAMILY_OPTIONS[0].value
|
|
);
|
|
|
|
const footer = (
|
|
<Button
|
|
type="button"
|
|
variant="outline"
|
|
className="w-full border-gray-200 bg-white text-gray-700 hover:bg-gray-50 hover:text-gray-900"
|
|
onClick={() => applyFontFamilyToAllTextLayers(fontFamily)}
|
|
>
|
|
{t("applyToAll")}
|
|
</Button>
|
|
);
|
|
|
|
return (
|
|
<SidebarPanelShell title={t("title")} footer={footer}>
|
|
<PropertySelect
|
|
label={t("fontFamily")}
|
|
value={fontFamily}
|
|
options={FONT_FAMILY_OPTIONS.map((item) => ({
|
|
label: item.label,
|
|
value: item.value,
|
|
}))}
|
|
onChange={setFontFamily}
|
|
/>
|
|
</SidebarPanelShell>
|
|
);
|
|
}
|