mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 02:25:01 +08:00
fixes
* fix comments * fix page history * fix aside width on smaller screens
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
import api from '@/lib/api-client';
|
||||
import { IPageHistory } from '@/features/page-history/types/page.types';
|
||||
import api from "@/lib/api-client";
|
||||
import { IPageHistory } from "@/features/page-history/types/page.types";
|
||||
|
||||
export async function getPageHistoryList(pageId: string): Promise<IPageHistory[]> {
|
||||
const req = await api.post<IPageHistory[]>('/pages/history', { pageId });
|
||||
return req.data as IPageHistory[];
|
||||
export async function getPageHistoryList(
|
||||
pageId: string,
|
||||
): Promise<IPageHistory[]> {
|
||||
const req = await api.post("/pages/history", {
|
||||
pageId,
|
||||
});
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function getPageHistoryById(id: string): Promise<IPageHistory> {
|
||||
const req = await api.post<IPageHistory>('/pages/history/details', { id });
|
||||
return req.data as IPageHistory;
|
||||
export async function getPageHistoryById(
|
||||
historyId: string,
|
||||
): Promise<IPageHistory> {
|
||||
const req = await api.post<IPageHistory>("/pages/history/info", {
|
||||
historyId,
|
||||
});
|
||||
return req.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user