Move site search to use an endpoint (#17359)
* Move site search to use an endpoint * Update browser.js * Update search.js * Update lib/search/versions.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Fix URLs Co-authored-by: James M. Greene <JamesMGreene@github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import murmur from 'imurmurhash'
|
||||
import { getUserEventsId, sendEvent } from './events'
|
||||
// import h from './hyperscript'
|
||||
|
||||
const TREATMENT = 'TREATMENT'
|
||||
const CONTROL = 'CONTROL'
|
||||
@@ -19,23 +20,6 @@ export async function sendSuccess (test) {
|
||||
})
|
||||
}
|
||||
|
||||
const xmlns = 'http://www.w3.org/2000/svg'
|
||||
|
||||
export function h (tagName, attributes = {}, children = []) {
|
||||
const el = ['svg', 'path'].includes(tagName)
|
||||
? document.createElementNS(xmlns, tagName)
|
||||
: document.createElement(tagName)
|
||||
Object.entries(attributes).forEach(
|
||||
([key, value]) => el.setAttribute(key, value)
|
||||
)
|
||||
children.forEach(child =>
|
||||
typeof child === 'string'
|
||||
? el.append(document.createTextNode(child))
|
||||
: el.append(child)
|
||||
)
|
||||
return el
|
||||
}
|
||||
|
||||
export default function () {
|
||||
// const testName = '$test-name$'
|
||||
// const xbucket = bucket(testName)
|
||||
|
||||
Reference in New Issue
Block a user