mirror of
https://github.com/docmost/docmost.git
synced 2026-05-17 06:44:05 +08:00
f388540293
* fix maths node * render default html width * Add page export module * with support for html and markdown exports * Page export UI * Add PDF print too * remove unused import
27 lines
375 B
TypeScript
27 lines
375 B
TypeScript
import {
|
|
IsBoolean,
|
|
IsIn,
|
|
IsNotEmpty,
|
|
IsOptional,
|
|
IsString,
|
|
} from 'class-validator';
|
|
|
|
export enum ExportFormat {
|
|
HTML = 'html',
|
|
Markdown = 'markdown',
|
|
}
|
|
|
|
export class ExportPageDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
pageId: string;
|
|
|
|
@IsString()
|
|
@IsIn(['html', 'markdown'])
|
|
format: ExportFormat;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
includeFiles?: boolean;
|
|
}
|