Initialize project and add Netify API integration with TDD workflow
This commit is contained in:
1 parent
8a077cf692
commit
da8fb57bfb
43 files changed
+9230
-115
No files matched your search
@@ -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');
|
||||
Reference in new issue
Block a user