feat(core): update session, security system and QR exchange

- Removed session creation and Lightning payment logic
- Refactored security system:
  * no more restrictions
  * all systems enabled on session creation
- Improved QR code exchange for mobile devices
This commit is contained in:
lockbitchat
2025-09-23 20:01:02 -04:00
parent 804b384271
commit 34094956b7
396 changed files with 126516 additions and 11881 deletions

34
node_modules/html5-qrcode/src/camera/permissions.ts generated vendored Normal file
View File

@@ -0,0 +1,34 @@
/**
* @fileoverview
* Libraries associated with Camera Permissions.
*
* @author mebjas <minhazav@gmail.com>
*/
/**
* Permission management around Camera in javascript.
*
* TODO(mebjas): Migrate camera specific code / logic to this class / library.
*/
export class CameraPermissions {
/**
* Returns {@code true} if the web page already has access to user camera
* permissions.
*/
public static async hasPermissions(): Promise<boolean> {
// TODO(mebjas): Use Permissions Query API, once support is widespread.
// https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query
let devices = await navigator.mediaDevices.enumerateDevices();
for (const device of devices) {
// Hacky way to check if camera permissions are granted. Device
// labels are only set in case user has granted permissions.
if(device.kind === "videoinput" && device.label) {
return true;
}
}
return false;
}
}