mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
feat: favorites (#2103)
* feat: favorites and templates(ee) * rename migrations * fix sidebar * cleanup tabs * fix * turn off templates * cleanup * uuid validation
This commit is contained in:
@@ -77,7 +77,7 @@ export async function getAllSidebarPages(
|
||||
const pageParams: (string | undefined)[] = [];
|
||||
|
||||
do {
|
||||
const req = await api.post("/pages/sidebar-pages", { ...params, cursor });
|
||||
const req = await api.post("/pages/sidebar-pages", { ...params, cursor, limit: 100 });
|
||||
|
||||
const data: IPagination<IPage> = req.data;
|
||||
pages.push(data);
|
||||
@@ -100,9 +100,16 @@ export async function getPageBreadcrumbs(
|
||||
}
|
||||
|
||||
export async function getRecentChanges(
|
||||
spaceId?: string,
|
||||
params?: QueryParams & { spaceId?: string },
|
||||
): Promise<IPagination<IPage>> {
|
||||
const req = await api.post("/pages/recent", { spaceId });
|
||||
const req = await api.post("/pages/recent", params);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function getCreatedByPages(
|
||||
params?: QueryParams & { userId?: string; spaceId?: string },
|
||||
): Promise<IPagination<IPage>> {
|
||||
const req = await api.post("/pages/created-by-user", params);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user