feat(ui): refine input states, add tokenized params & ripple effects
- Refactored Url Cleaner Exception 'Keep params' into a tokenized input array (pills/badges) - Standardized UI contrast: ensured proper label highlighting in light/dark themes - Expanded v-ripple interaction effect to buttons across all remaining tools, header, and modals - Moved base .detail-tag styles into global CSS variables - Web worker generation for QR codes (WIP)
This commit is contained in:
22
src/workers/qrcode.worker.js
Normal file
22
src/workers/qrcode.worker.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import QRCode from 'qrcode'
|
||||
|
||||
self.onmessage = async (e) => {
|
||||
const { id, text, ecc } = e.data
|
||||
|
||||
if (!text) {
|
||||
self.postMessage({ id, svgContent: '' })
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
const svgContent = await QRCode.toString(text, {
|
||||
type: 'svg',
|
||||
errorCorrectionLevel: ecc,
|
||||
margin: 1,
|
||||
})
|
||||
|
||||
self.postMessage({ id, svgContent })
|
||||
} catch (err) {
|
||||
self.postMessage({ id, error: err.message })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user