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

Function initGuide

frontend/public/assistant.js:149–160  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

147 * @param {*} root
148 */
149 const initGuide = (root) => {
150 root.insertAdjacentHTML('beforeend', guideHtml)
151 const button = root.querySelector('.sqlbot-assistant-button')
152 const close_icon = root.querySelector('.sqlbot-assistant-close')
153 const close_func = () => {
154 root.removeChild(root.querySelector('.sqlbot-assistant-tips'))
155 root.removeChild(root.querySelector('.sqlbot-assistant-mask'))
156 localStorage.setItem('sqlbot_assistant_mask_tip', true)
157 }
158 button.onclick = close_func
159 close_icon.onclick = close_func
160 }
161 const initChat = (root, data) => {
162 // 添加对话icon
163 root.insertAdjacentHTML('beforeend', chatButtonHtml(data))

Callers 1

initsqlbot_assistantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected