Skip to content

Commit 9d6caa8

Browse files
authored
Merge branch 'develop' into develop
2 parents 36ce2a3 + 28ed616 commit 9d6caa8

25 files changed

+411
-192
lines changed

package-lock.json

+41-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"server:switch": "rimraf ./node_modules/better-sqlite3 && npm install",
2929
"electron:start": "cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron ./electron-main.ts --inspect=5858 .",
3030
"electron:start-no-dir": "cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_ENV=dev electron --inspect=5858 .",
31-
"electron:start-nix": "electron-rebuild --version 33.3.1 && cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev nix-shell -p electron_33 --run \"electron ./electron-main.ts --inspect=5858 .\"",
31+
"electron:start-nix": "electron-rebuild --version 33.3.1 && cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev nix-shell -p electron_34 --run \"electron ./electron-main.ts --inspect=5858 .\"",
3232
"electron:start-nix-no-dir": "electron-rebuild --version 33.3.1 && cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_ENV=dev nix-shell -p electron_33 --run \"electron ./electron-main.ts --inspect=5858 .\"",
3333
"electron:start-prod": "npm run build:prepare-dist && cross-env TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron ./dist/electron-main.js --inspect=5858 .",
3434
"electron:start-prod-no-dir": "npm run build:prepare-dist && cross-env TRILIUM_ENV=dev electron --inspect=5858 .",
@@ -70,10 +70,6 @@
7070
"@mermaid-js/layout-elk": "0.1.7",
7171
"@mind-elixir/node-menu": "1.0.4",
7272
"@triliumnext/express-partial-content": "1.0.1",
73-
"@types/js-yaml": "4.0.9",
74-
"@types/leaflet": "1.9.16",
75-
"@types/react-dom": "18.3.5",
76-
"@types/swagger-ui-express": "4.1.8",
7773
"archiver": "7.0.1",
7874
"async-mutex": "0.5.0",
7975
"autocomplete.js": "0.38.1",
@@ -188,19 +184,23 @@
188184
"@types/html": "1.0.4",
189185
"@types/ini": "4.1.1",
190186
"@types/jquery": "3.5.32",
187+
"@types/js-yaml": "4.0.9",
191188
"@types/jsdom": "21.1.7",
189+
"@types/leaflet": "1.9.16",
192190
"@types/leaflet-gpx": "1.3.7",
193191
"@types/mime-types": "2.1.4",
194192
"@types/multer": "1.4.12",
195193
"@types/node": "22.13.5",
196194
"@types/react": "18.3.18",
195+
"@types/react-dom": "18.3.5",
197196
"@types/safe-compare": "1.1.2",
198197
"@types/sanitize-html": "2.13.0",
199198
"@types/sax": "1.2.7",
200199
"@types/serve-favicon": "2.5.7",
201200
"@types/session-file-store": "1.2.5",
202201
"@types/source-map-support": "0.5.10",
203202
"@types/stream-throttle": "0.1.4",
203+
"@types/swagger-ui-express": "4.1.8",
204204
"@types/tmp": "0.2.6",
205205
"@types/turndown": "5.0.5",
206206
"@types/ws": "8.5.14",
@@ -218,7 +218,7 @@
218218
"mini-css-extract-plugin": "2.9.2",
219219
"nodemon": "3.1.9",
220220
"postcss-loader": "8.1.1",
221-
"prettier": "3.5.1",
221+
"prettier": "3.5.2",
222222
"rcedit": "4.0.1",
223223
"rimraf": "6.0.1",
224224
"sass": "1.85.0",

src/becca/entities/rows.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// TODO: Booleans should probably be numbers instead (as SQLite does not have booleans.);
2+
// TODO: check against schema.sql which properties really are "optional"
23

34
export interface AttachmentRow {
45
attachmentId?: string;
@@ -12,6 +13,8 @@ export interface AttachmentRow {
1213
dateModified?: string;
1314
utcDateModified?: string;
1415
utcDateScheduledForErasureSince?: string;
16+
isDeleted?: boolean;
17+
deleteId?: string;
1518
contentLength?: number;
1619
content?: Buffer | string;
1720
}

src/public/app/components/app_context.ts

+6
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ type EventMappings = {
288288
showHighlightsListWidget: {
289289
noteId: string;
290290
};
291+
showSearchError: {
292+
error: string;
293+
};
294+
searchRefreshed: { ntxId?: string | null };
291295
hoistedNoteChanged: {
292296
noteId: string;
293297
ntxId: string | null;
@@ -365,6 +369,8 @@ class AppContext extends Component {
365369
layout?: Layout;
366370
noteTreeWidget?: NoteTreeWidget;
367371

372+
lastSearchString?: string;
373+
368374
constructor(isMainWindow: boolean) {
369375
super();
370376

src/public/app/entities/fattachment.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ export interface FAttachmentRow {
1919
class FAttachment {
2020
private froca: Froca;
2121
attachmentId!: string;
22-
private ownerId!: string;
22+
ownerId!: string;
2323
role!: string;
2424
mime!: string;
2525
title!: string;
2626
isProtected!: boolean; // TODO: Is this used?
2727
private dateModified!: string;
2828
utcDateModified!: string;
29-
private utcDateScheduledForErasureSince!: string;
29+
utcDateScheduledForErasureSince!: string;
3030
/**
3131
* optionally added to the entity
3232
*/
33-
private contentLength!: number;
33+
contentLength!: number;
3434

3535
constructor(froca: Froca, row: FAttachmentRow) {
3636
/** @type {Froca} */

0 commit comments

Comments
 (0)