feat(security,ui): self-host React deps, Tailwind, fonts; strict CSP; local QR; better selection state
Replace CDN React/ReactDOM/Babel with local libs; remove Babel and inline scripts Build Tailwind locally, add safelist; switch to assets/tailwind.css Self-host Font Awesome and Inter (CSS + woff2); remove external font CDNs Implement strict CSP (no unsafe-inline/eval; scripts/styles/fonts from self) Extract inline handlers; move PWA scripts to external files Add local QR code generation (qrcode lib) and remove api.qrserver.com Improve SessionTypeSelector visual selection (highlighted background and ring) Keep PWA working with service worker and offline assets Refs: CSP hardening, offline-first, no external dependencies
This commit is contained in:
14
node_modules/yargs/yargs.js
generated
vendored
Normal file
14
node_modules/yargs/yargs.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
// an async function fails early in Node.js versions prior to 8.
|
||||
async function requiresNode8OrGreater () {}
|
||||
requiresNode8OrGreater()
|
||||
|
||||
const { Yargs, rebase } = require('./build/lib/yargs')
|
||||
const Parser = require('yargs-parser')
|
||||
|
||||
exports = module.exports = Yargs
|
||||
exports.rebase = rebase
|
||||
|
||||
// allow consumers to directly use the version of yargs-parser used by yargs
|
||||
exports.Parser = Parser
|
||||
Reference in New Issue
Block a user