initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,41 @@
/**
* @deprecated Use Vue refs or reactive state instead
*/
export function getElementHtml(id) {
return document.getElementById(id)?.innerHTML ?? ''
}
/**
* @deprecated Use Vue refs or reactive state instead
*/
export function setElementHtml(id, html) {
const el = document.getElementById(id)
if (el) el.innerHTML = html
}
/**
* @deprecated Use v-model instead
*/
export function getElementValue(id) {
return document.getElementById(id)?.value ?? ''
}
/**
* @deprecated Use v-model instead
*/
export function setElementValue(id, value) {
const el = document.getElementById(id)
if (el) el.value = value
}
/**
* @deprecated Use reactive state instead of DOM removal
*/
export function removeElementById(id) {
const el = document.getElementById(id)
if (el?.parentNode) {
el.parentNode.removeChild(el)
return true
}
return false
}