Initialize project and add Netify API integration with TDD workflow

This commit is contained in:
Rafhan Mazaya Fathurrahman committed 2026-06-30 11:07:50 +07:00
1 parent 8a077cf692
commit da8fb57bfb
43 files changed
+9230 -115

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
const fs = require('fs');
const files = [
'src/app/network-infrastructure/page.tsx',
'src/app/dpi-analytics/page.tsx',
'src/app/intelligence/page.tsx'
];
files.forEach(f => {
let text = fs.readFileSync(f, 'utf8');
text = text.replace(/accessorKey:\s*"([^"]+)"/g, 'accessor: (row: any) => row.$1');
text = text.replace(/accessorKey:\s*\(/g, 'accessor: (');
fs.writeFileSync(f, text);
});
console.log('Fixed accessorKey');