Phase 1 (Foundation): - Project restructure (presenton-main → backend/ + frontend/) - Database schema (8 new models, Alembic config, seed script) - Auth (Azure AD SSO + dev bypass, JWT sessions, AuthMiddleware) - RBAC (access_service, rbac_middleware, admin routers) - Audit logging (fire-and-forget, AuditMiddleware, admin router) - i18n (react-i18next with 5 namespace files) Phase 2 (Admin Panel & Client Management): - Admin panel shell (sidebar layout, role guard, 12 pages) - Redux admin slice with 18 async thunks - User management (role changes, deactivation) - Client management (CRUD, brand config, team management) - Brand config editor (colors, fonts, logos, voice rules) - Master deck upload & parser (PPTX → HTML → React pipeline) - Audit log viewer with filters and CSV/JSON export Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
No EOL
1.2 KiB
TypeScript
32 lines
No EOL
1.2 KiB
TypeScript
import * as z from "zod";
|
|
// Note:
|
|
// If you want to use images and icons, you must use ImageSchema and IconSchema
|
|
// Images and icons are the only media types supported for PDF and PPTX exports
|
|
import { ImageSchema, IconSchema } from "@/app/presentation-templates/defaultSchemes";
|
|
|
|
|
|
// Schema definition
|
|
export const Schema = z.object({
|
|
// Notes:
|
|
// Schema fields
|
|
// Each field must have a default value (this is important for Layout Preview)
|
|
// Each field must have a meta description
|
|
// Each field must have a minimum and maximum length
|
|
// Each array field must have a minimum and maximum number of items
|
|
})
|
|
|
|
// Type inference
|
|
type SchemaType = z.infer<typeof Schema>;
|
|
|
|
|
|
// Component definition
|
|
const SlideComponent = ({ data }: { data: Partial<SchemaType> }) => {
|
|
// Notes:
|
|
// Must have consistent aspect ratio (16:9) and max-width of 1280px.
|
|
// Validate each data field before rendering using && operator or optional chaining.
|
|
// These layouts are exported as PDF and PPTX so they must be optimized for both formats.
|
|
// Content must properly fit in the container, specify min and max constraints in the schema.
|
|
// You can check out ExampleSlideLayout.tsx for more details.
|
|
};
|
|
|
|
export default SlideComponent; |