MCPcopy Index your code
hub / github.com/dataease/SQLBot / getSQLBotAddr

Function getSQLBotAddr

frontend/src/utils/utils.ts:292–298  ·  view source on GitHub ↗
(portEnd?: boolean)

Source from the content-addressed store, hash-verified

290}
291
292export const getSQLBotAddr = (portEnd?: boolean) => {
293 const addr = location.origin + location.pathname
294 if (!portEnd || !addr.endsWith('/')) {
295 return addr
296 }
297 return addr.substring(0, addr.length - 1)
298}
299
300export const formatArg = (text: string) => {
301 if (!text) {

Callers 1

logoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected