MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getLabel

Function getLabel

packages/ui/src/views/chatmessage/ChatMessage.jsx:1255–1273  ·  view source on GitHub ↗
(URL, source)

Source from the content-addressed store, hash-verified

1253 }
1254
1255 const getLabel = (URL, source) => {
1256 if (URL && typeof URL === 'object') {
1257 if (URL.pathname && typeof URL.pathname === 'string') {
1258 if (URL.pathname.substring(0, 15) === '/') {
1259 return URL.host || ''
1260 } else {
1261 return `${URL.pathname.substring(0, 15)}...`
1262 }
1263 } else if (URL.host) {
1264 return URL.host
1265 }
1266 }
1267
1268 if (source && source.pageContent && typeof source.pageContent === 'string') {
1269 return `${source.pageContent.substring(0, 15)}...`
1270 }
1271
1272 return ''
1273 }
1274
1275 const getFileUploadAllowedTypes = () => {
1276 if (fullFileUpload) {

Callers 2

AgentReasoningCardFunction · 0.85
ChatMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected