Found 4 direct Blob() constructor calls across 3 JavaScript files: - 2 for CSV export (text/csv) - 2 for JSON config export (application/json) All calls follow consistent pattern with array-wrapped content and explicit MIME type specification.
2.2 KiB
2.2 KiB
Blob Constructor Search Results (bf-5kns)
Summary
Found 4 occurrences of direct Blob() constructor calls across 3 files.
Locations
1. /home/coding/spaxel/dashboard/static/js/fleet.js - Line 457
Context: CSV export functionality
const blob = new Blob([csvContent], { type: 'text/csv' });
- Purpose: Creates a blob for CSV file download containing fleet data
- Type:
text/csv - Function:
downloadCSV()
2. /home/coding/spaxel/dashboard/js/fleet-page.js - Line 1034
Context: Configuration export functionality
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
- Purpose: Creates a blob for JSON configuration file download
- Type:
application/json - Function:
exportConfig()
3. /home/coding/spaxel/dashboard/js/fleet-page.js - Line 1369
Context: CSV export functionality
const blob = new Blob([csvContent], { type: 'text/csv' });
- Purpose: Creates a blob for CSV file download containing filtered fleet data
- Type:
text/csv - Function:
downloadCSV()
4. /home/coding/spaxel/dashboard/js/fleet.js - Line 1997
Context: Configuration export functionality
var blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
- Purpose: Creates a blob for JSON configuration file download
- Type:
application/json - Function:
exportConfig()
Patterns Observed
All Blob constructor calls follow the same pattern:
- Array-wrapped content:
[data]- always wrapped in an array - MIME type specified: All calls include explicit
{ type: '...' }option - Two content types:
text/csvfor fleet data exportsapplication/jsonfor configuration exports
Acceptance Criteria Met
- ✅ All 'new Blob()' calls identified (4 total)
- ✅ Each location documented with file path and line number
- ✅ Code context captured for each site
Files Analyzed
JavaScript files:
/home/coding/spaxel/dashboard/static/js/fleet.js/home/coding/spaxel/dashboard/js/fleet-page.js/home/coding/spaxel/dashboard/js/fleet.js
No TypeScript files with Blob constructors were found in the codebase.