Port small widgets to React (#6830)

This commit is contained in:
Elian Doran
2025-08-30 12:51:31 +03:00
committed by GitHub
57 changed files with 1275 additions and 1383 deletions

View File

@@ -12,7 +12,7 @@ import ValidationError from "../../errors/validation_error.js";
import blobService from "../../services/blob.js";
import type { Request } from "express";
import type BBranch from "../../becca/entities/bbranch.js";
import type { AttributeRow, DeleteNotesPreview, MetadataResponse } from "@triliumnext/commons";
import type { AttributeRow, CreateChildrenResponse, DeleteNotesPreview, MetadataResponse } from "@triliumnext/commons";
/**
* @swagger
@@ -123,7 +123,7 @@ function createNote(req: Request) {
return {
note,
branch
};
} satisfies CreateChildrenResponse;
}
function updateNoteData(req: Request) {

View File

@@ -18,7 +18,7 @@ function getSchema() {
for (const tableName of tableNames) {
tables.push({
name: tableName,
columns: sql.getRows(`PRAGMA table_info(${tableName})`)
columns: sql.getRows<{ name: string; type: string; }>(`PRAGMA table_info(${tableName})`)
});
}