fix: slide 3 noire, watermark PPTX, quota génération slides
- canvas-board.tsx: préfère data.html (iframe) sur data.spec (ancien renderer) → corrige slide 3 noire en mode HTML viewer - pptx/route.ts: ajoute watermark 'memento-note.com' sur chaque slide via buildPptx (PPTX téléchargé depuis le canvas) - run-for-note/route.ts: checkEntitlementOrThrow avant création agent - slides.tool.ts: incrementUsageAsync après canvas créé avec succès Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -43,6 +43,12 @@ async function buildPptx(spec: any): Promise<Buffer> {
|
||||
|
||||
for (const slide of (spec.slides ?? [])) {
|
||||
const s = pptx.addSlide()
|
||||
// PLG watermark — bottom-right corner of LAYOUT_WIDE (13.33"×7.5")
|
||||
s.addText('memento-note.com', {
|
||||
x: 10.0, y: 7.1, w: 3.0, h: 0.25,
|
||||
fontSize: 7, fontFace: 'Arial', color: 'B8B0A8',
|
||||
align: 'right', italic: true,
|
||||
})
|
||||
|
||||
switch (slide.type) {
|
||||
case 'title': {
|
||||
|
||||
Reference in New Issue
Block a user