更新文档

This commit is contained in:
Super Manito
2025-09-17 22:49:04 +08:00
parent bec019c08d
commit 6f9cb652fc
41 changed files with 243 additions and 44 deletions

View File

@@ -4,11 +4,11 @@ function loadOramaWebComponent() {
Object.assign(searchBox, getOramaSearchBoxConfig())
}
// custom button style and localization
// custom entrance button style
const searchButton = document.querySelector('orama-search-button')
if (searchButton) {
searchButton.textContent = '搜索'
const observer = new MutationObserver((mutations, obs) => {
const observer = new MutationObserver((_mutations, obs) => {
if (searchButton.shadowRoot) {
const button = searchButton.shadowRoot.querySelector('button')
if (button) {
@@ -44,4 +44,4 @@ svg {
// localization chat box component
localizationOramaSearchBox(searchBox)
})
}
}