albatroz
albatroz
Explore posts from servers
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
Thanks
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
understood
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
do nextjs has websocket ?
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
so the platform's webhook will call the api of nextjs, and not sure after that
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
ohh
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
yes
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
hey, could you help me understand the flow?
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 4/25/2024 in #questions
Communication with server and client <nextjs>
@nyx (Rustular DevRel)
24 replies
TTCTheo's Typesafe Cult
Created by albatroz on 6/14/2023 in #questions
React-hook-form dynamic input
It should be [{subname: “test 1”},{subname:””}]
15 replies
TTCTheo's Typesafe Cult
Created by albatroz on 6/14/2023 in #questions
React-hook-form dynamic input
The array from useFieldsArray should not have undefined init
15 replies
TTCTheo's Typesafe Cult
Created by albatroz on 6/14/2023 in #questions
React-hook-form dynamic input
The input name is ‘subtasks.{task.id}.subtaskName’
15 replies
TTCTheo's Typesafe Cult
Created by albatroz on 6/14/2023 in #questions
React-hook-form dynamic input
There is a subtasks array obj inside tasks array obj
15 replies
TTCTheo's Typesafe Cult
Created by albatroz on 6/14/2023 in #questions
React-hook-form dynamic input
Pages/Home/index.tsx @tcaputi
15 replies
TTCTheo's Typesafe Cult
Created by albatroz on 5/31/2023 in #questions
Can i send a file from trcp router?
const workbook = XLSX.utils.book_new();

for (const tableName in data) {
if (Array.isArray(data[tableName])) {
const sheetName = tableName;
const sheetData = data[tableName];

if (sheetData && sheetData.length > 0) {
const worksheet = XLSX.utils.json_to_sheet(sheetData);

const headers = Object.keys(sheetData[0]);
XLSX.utils.sheet_add_aoa(worksheet, [headers], { origin: "A1" });

for (let i = 0; i < sheetData.length; i++) {
const createdAt = sheetData[i].createdAt;
if (createdAt) {
sheetData[i].createdAt = new Date(createdAt).toLocaleString();
}
}

XLSX.utils.sheet_add_json(worksheet, sheetData, { skipHeader: true, origin: "A2" });

XLSX.utils.book_append_sheet(workbook, worksheet, sheetName);
}
}
}

const excelFilePath = "output.xlsx";
XLSX.writeFile(workbook, excelFilePath);
const workbook = XLSX.utils.book_new();

for (const tableName in data) {
if (Array.isArray(data[tableName])) {
const sheetName = tableName;
const sheetData = data[tableName];

if (sheetData && sheetData.length > 0) {
const worksheet = XLSX.utils.json_to_sheet(sheetData);

const headers = Object.keys(sheetData[0]);
XLSX.utils.sheet_add_aoa(worksheet, [headers], { origin: "A1" });

for (let i = 0; i < sheetData.length; i++) {
const createdAt = sheetData[i].createdAt;
if (createdAt) {
sheetData[i].createdAt = new Date(createdAt).toLocaleString();
}
}

XLSX.utils.sheet_add_json(worksheet, sheetData, { skipHeader: true, origin: "A2" });

XLSX.utils.book_append_sheet(workbook, worksheet, sheetName);
}
}
}

const excelFilePath = "output.xlsx";
XLSX.writeFile(workbook, excelFilePath);
2 replies
TTCTheo's Typesafe Cult
Created by T on 5/26/2023 in #questions
What user info do I store in my database???
use clerk's webhook to call a your api, which will add all the details into your db.
4 replies
TTCTheo's Typesafe Cult
Created by j3llyb3ans on 5/26/2023 in #questions
Figma/SVG vs D3 vs other libraries for programmatically generating music/chord charts
D3 for reactJs is not well documented, i wanted to use choropleth map, but ended up using react-simple-map
3 replies