Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
32 lines
843 B
TypeScript
32 lines
843 B
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const LoadTimeSimulatorBlock: MintelBlock = {
|
|
slug: "loadTimeSimulator",
|
|
labels: {
|
|
singular: "Load Time Simulator",
|
|
plural: "Load Time Simulators",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "LoadTimeSimulator",
|
|
description:
|
|
"Interactive visual race simulating the loading experience of a slow legacy CMS vs a fast headless stack. Great for articles discussing load times, technical debt, or user frustration. Requires no props.",
|
|
usageExample: "'<LoadTimeSimulator />'",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "initialLoadTime",
|
|
type: "number",
|
|
defaultValue: 3.5,
|
|
admin: {
|
|
description:
|
|
"Tragen Sie einen numerischen Wert für initialLoadTime ein.",
|
|
},
|
|
},
|
|
],
|
|
};
|