Security hardening, multi-site portability, and a documentation and API-surface sweep

This commit is contained in:
2026-08-14 16:28:34 -04:00
parent 72f8da0e58
commit 265ca2eb01
76 changed files with 3684 additions and 811 deletions

View File

@@ -31,7 +31,7 @@ import { useRoute } from 'vue-router'
import { machinesApi } from '../../api'
import { getBadgeLogo } from '@/utils/siteSettings'
import { withBase } from '@/utils/basePath'
import JsBarcode from 'jsbarcode'
import { barcodeInto } from '@/utils/codes'
const route = useRoute()
const loading = ref(true)
@@ -75,12 +75,10 @@ onMounted(async () => {
function generateBarcode() {
if (!barcodeEl.value || !machine.value) return
try {
JsBarcode(barcodeEl.value, machine.value.assetnumber, {
format: 'CODE39',
displayValue: false,
width: 2,
height: 70,
margin: 0
// CODE39, not the CODE128 default: the badge readers predate the
// shop-floor scanners and only decode CODE39.
barcodeInto(barcodeEl.value, machine.value.assetnumber, {
format: 'CODE39', height: 70,
})
} catch (e) {
console.error('Barcode generation error:', e)