Massive feature update: Solo session recovery, immediate result saving, image proxy, player reconnection (Live), and UI/UX refinements

This commit is contained in:
2026-04-16 17:53:12 +02:00
parent 247cca0803
commit 4b6e43ba65
8 changed files with 625 additions and 436 deletions
+9 -2
View File
@@ -9,7 +9,6 @@ async function baserowFetch(endpoint, options = {}) {
Authorization: `Token ${baserowToken}`,
...(options.headers || {}),
};
// Only set Content-Type for requests with body
if (options.body) {
headers['Content-Type'] = 'application/json';
}
@@ -42,6 +41,14 @@ async function listRows(tableId, filters = {}) {
return all;
}
async function createRow(tableId, row) {
console.log(`[baserow] Create row in table ${tableId}`);
return baserowFetch(`/database/rows/table/${tableId}/?user_field_names=true`, {
method: 'POST',
body: JSON.stringify(row),
});
}
async function batchCreateRows(tableId, rows) {
if (!rows.length) return;
console.log(`[baserow] Batch create ${rows.length} rows in table ${tableId}`);
@@ -54,4 +61,4 @@ async function batchCreateRows(tableId, rows) {
}
}
module.exports = { listRows, batchCreateRows };
module.exports = { listRows, createRow, batchCreateRows };