This commit is contained in:
syuilo 2025-11-07 13:56:41 +09:00
parent 39d6aecc57
commit b300b5b94a
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ export interface PageBody {
variables: Array<Record<string, any>>; variables: Array<Record<string, any>>;
script: string; script: string;
eyeCatchingImage?: MiDriveFile | null; eyeCatchingImage?: MiDriveFile | null;
font: string; font: 'serif' | 'sans-serif';
alignCenter: boolean; alignCenter: boolean;
hideTitleWhenPinned: boolean; hideTitleWhenPinned: boolean;
} }
@ -141,7 +141,7 @@ export class PageService {
eyeCatchingImageId: body.eyeCatchingImage === undefined ? undefined : (body.eyeCatchingImage?.id ?? null), eyeCatchingImageId: body.eyeCatchingImage === undefined ? undefined : (body.eyeCatchingImage?.id ?? null),
}); });
console.log("page.content", page.content); console.log('page.content', page.content);
if (body.content != null) { if (body.content != null) {
const beforeReferencedNotes = this.collectReferencedNotes(page.content); const beforeReferencedNotes = this.collectReferencedNotes(page.content);

View File

@ -47,7 +47,7 @@ export class MiPage {
@Column('varchar', { @Column('varchar', {
length: 32, length: 32,
}) })
public font: string; public font: 'serif' | 'sans-serif';
@Index() @Index()
@Column({ @Column({