Compare commits

..

10 Commits

Author SHA1 Message Date
Philipinho a750744f1e wrap search results in items array for API consistency 2026-01-29 22:10:05 +00:00
Philipinho cb10cf155f support beforeCursor/prevCursor 2026-01-29 20:53:18 +00:00
Philipinho 9fc5f36bc2 Merge branch 'main' into feat/cursor-pagination 2026-01-29 19:06:33 +00:00
Philipinho 974089c9f6 Merge branch 'main' into feat/cursor-pagination 2026-01-25 00:18:13 +00:00
Philipinho 20aa40a9fd feat(client): migrate pagination from offset to cursor-based 2026-01-23 21:58:07 +00:00
Philipinho a40b90d0d9 support hasPrevPage boolean 2026-01-23 20:11:28 +00:00
Philipinho 8cdfba7281 sync 2026-01-23 19:02:39 +00:00
Philipinho 5739a0e260 feat(db): migrate paginated endpoints to cursor-based pagination 2026-01-23 19:01:54 +00:00
Philipinho 9ec0f46eb6 support custom order modifier
* refactor returned object
2026-01-23 18:38:31 +00:00
Philipinho 8282403ee8 add cursor pagination function 2026-01-23 17:39:58 +00:00
7 changed files with 13 additions and 23 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "client",
"private": true,
"version": "0.25.0-beta.1",
"version": "0.24.1",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "server",
"version": "0.25.0-beta.1",
"version": "0.24.1",
"description": "",
"author": "",
"private": true,
@@ -37,8 +37,7 @@ async function bootstrap() {
const logger = new Logger('CollabServer');
const port = process.env.COLLAB_PORT || 3001;
const host = process.env.HOST || '0.0.0.0';
await app.listen(port, host, () => {
await app.listen(port, '0.0.0.0', () => {
logger.log(`Listening on http://127.0.0.1:${port}`);
});
}
+1 -2
View File
@@ -104,8 +104,7 @@ async function bootstrap() {
});
const port = process.env.PORT || 3000;
const host = process.env.HOST || '0.0.0.0';
await app.listen(port, host, () => {
await app.listen(port, '0.0.0.0', () => {
logger.log(
`Listening on http://127.0.0.1:${port} / ${process.env.APP_URL}`,
);
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "docmost",
"homepage": "https://docmost.com",
"version": "0.25.0-beta.1",
"version": "0.24.1",
"private": true,
"scripts": {
"build": "nx run-many -t build",
@@ -197,15 +197,11 @@ const replace = (
});
const marks = Array.from(marksSet);
// Delete the old text
tr.delete(from, to);
// Only insert new text if replaceTerm is not empty (allows for deletion when replaceTerm is empty)
if (replaceTerm) {
tr.insert(from, state.schema.text(replaceTerm, marks));
}
// Delete the old text and insert new text with preserved marks
tr.delete(from, to);
tr.insert(from, state.schema.text(replaceTerm, marks));
dispatch(tr);
}
};
@@ -232,14 +228,10 @@ const replaceAll = (
});
const marks = Array.from(marksSet);
// Delete the old text
tr.delete(from, to);
// Only insert new text if replaceTerm is not empty (allows for deletion when replaceTerm is empty)
if (replaceTerm) {
tr.insert(from, tr.doc.type.schema.text(replaceTerm, marks));
}
// Delete and insert with preserved marks
tr.delete(from, to);
tr.insert(from, tr.doc.type.schema.text(replaceTerm, marks));
}
dispatch(tr);