Merge branch 'main' into feat/rag-2

This commit is contained in:
twwu
2025-07-09 15:54:57 +08:00
197 changed files with 8147 additions and 992 deletions

View File

@ -124,3 +124,13 @@ export function getMarketplaceUrl(path: string, params?: Record<string, string |
}
return `${MARKETPLACE_URL_PREFIX}${path}?${searchParams.toString()}`
}
export const replaceSpaceWithUnderscreInVarNameInput = (input: HTMLInputElement) => {
const start = input.selectionStart
const end = input.selectionEnd
input.value = input.value.replaceAll(' ', '_')
if (start !== null && end !== null)
input.setSelectionRange(start, end)
}