mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
7200cbf58e
* fix: whole editor not clickable * fix: recent pages calculation * chore: update older pages calculation logic in recent pages list * fix: archived pages computed function * chore: add type for older pages
64 lines
1.3 KiB
TypeScript
64 lines
1.3 KiB
TypeScript
// types
|
|
import { IIssue, IIssueLabel, IWorkspaceLite, IProjectLite } from "types";
|
|
|
|
export interface IPage {
|
|
access: number;
|
|
archived_at: string | null;
|
|
blocks: IPageBlock[];
|
|
color: string;
|
|
created_at: Date;
|
|
created_by: string;
|
|
description: string;
|
|
description_html: string;
|
|
description_stripped: string | null;
|
|
id: string;
|
|
is_favorite: boolean;
|
|
is_locked: boolean;
|
|
label_details: IIssueLabel[];
|
|
labels: string[];
|
|
name: string;
|
|
owned_by: string;
|
|
project: string;
|
|
project_detail: IProjectLite;
|
|
updated_at: Date;
|
|
updated_by: string;
|
|
workspace: string;
|
|
workspace_detail: IWorkspaceLite;
|
|
}
|
|
|
|
export interface IRecentPages {
|
|
today: IPage[];
|
|
yesterday: IPage[];
|
|
this_week: IPage[];
|
|
older: IPage[];
|
|
[key: string]: IPage[];
|
|
}
|
|
|
|
export interface RecentPagesResponse {
|
|
[key: string]: IPage[];
|
|
}
|
|
|
|
export interface IPageBlock {
|
|
completed_at: Date | null;
|
|
created_at: Date;
|
|
created_by: string;
|
|
description: any;
|
|
description_html: any;
|
|
description_stripped: any;
|
|
id: string;
|
|
issue: string | null;
|
|
issue_detail: IIssue | null;
|
|
name: string;
|
|
page: string;
|
|
project: string;
|
|
project_detail: IProjectLite;
|
|
sort_order: number;
|
|
sync: boolean;
|
|
updated_at: Date;
|
|
updated_by: string;
|
|
workspace: string;
|
|
workspace_detail: IWorkspaceLite;
|
|
}
|
|
|
|
export type TPageViewProps = "list" | "detailed" | "masonry";
|