MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / getConnectionExportInfo

Function getConnectionExportInfo

devtools/modules/exportManager.js:19–34  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

17}
18
19function getConnectionExportInfo(connection) {
20 return {
21 id: connection.id,
22 originalId: connection.originalId || null,
23 savedId: connection.savedId || null,
24 url: connection.url,
25 frameUrl: connection.frameUrl || null,
26 isIframe: Boolean(connection.isIframe),
27 source: connection.source || 'unknown',
28 requestType: getRequestType(connection.source),
29 status: connection.status,
30 createdAt: formatTimestampForExport(connection.createdAt),
31 importedAt: connection.importedAt ? formatTimestampForExport(connection.importedAt) : null,
32 messageCount: connection.messages?.length || 0
33 };
34}
35
36function escapeCSV(value) {
37 if (value === null || value === undefined) {

Callers 4

exportCurrentToCSVFunction · 0.70
exportAllToCSVFunction · 0.70

Calls 2

getRequestTypeFunction · 0.90
formatTimestampForExportFunction · 0.90

Tested by

no test coverage detected