diff --git a/Dockerfile b/Dockerfile index 197ab9c2..3b62b209 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,7 @@ FROM node:22-alpine3.20 AS builder # Install build dependencies -RUN apk add --no-cache \ - python3 \ - py3-pip \ - py3-setuptools \ - make \ - g++ \ - gcc +RUN apk add --no-cache bash git python3 py3-pip py3-setuptools make g++ gcc # Set working directory WORKDIR /app diff --git a/src/components/ImageMethodDialog.vue b/src/components/ImageMethodDialog.vue index 9545e9e8..cd3dfb22 100644 --- a/src/components/ImageMethodDialog.vue +++ b/src/components/ImageMethodDialog.vue @@ -17,24 +17,32 @@ -
+
Camera preview not started.
- Note: This mobile browser may not support direct camera access, or the app is treating it as a native app.
- Tip: Try using a desktop browser, or check if your browser supports camera access for web apps.
- Developer: The platform detection logic may be skipping camera preview for mobile browsers.
- Action: Review platformCapabilities.isMobile and ensure web browsers on mobile are not treated as native apps. + Note: This mobile browser may not support direct camera + access, or the app is treating it as a native app.
+ Tip: Try using a desktop browser, or check if your browser + supports camera access for web apps.
+ Developer: The platform detection logic may be skipping + camera preview for mobile browsers.
+ Action: Review platformCapabilities.isMobile and + ensure web browsers on mobile are not treated as native apps.
- Tip: Your browser supports camera APIs, but the preview did not start. Try refreshing the page or checking browser permissions. + Tip: Your browser supports camera APIs, but the preview did + not start. Try refreshing the page or checking browser permissions.
Error: {{ error || cameraStateMessage }}
- Status: {{ cameraStateMessage || 'Unknown reason.' }} + Status: {{ cameraStateMessage || "Unknown reason." }}
@@ -60,27 +68,48 @@

Camera State: {{ cameraState }}

-

State Message: {{ cameraStateMessage || 'None' }}

-

Error: {{ error || 'None' }}

-

Preview Active: {{ showCameraPreview ? 'Yes' : 'No' }}

-

Stream Active: {{ !!cameraStream ? 'Yes' : 'No' }}

+

+ State Message: + {{ cameraStateMessage || "None" }} +

+

Error: {{ error || "None" }}

+

+ Preview Active: + {{ showCameraPreview ? "Yes" : "No" }} +

+

+ Stream Active: + {{ !!cameraStream ? "Yes" : "No" }} +

Browser: {{ userAgent }}

-

HTTPS: {{ isSecureContext ? 'Yes' : 'No' }}

-

MediaDevices: {{ hasMediaDevices ? 'Yes' : 'No' }}

-

GetUserMedia: {{ hasGetUserMedia ? 'Yes' : 'No' }}

-

Platform: {{ platformCapabilities.isMobile ? 'Mobile' : 'Desktop' }}

+

+ HTTPS: + {{ isSecureContext ? "Yes" : "No" }} +

+

+ MediaDevices: + {{ hasMediaDevices ? "Yes" : "No" }} +

+

+ GetUserMedia: + {{ hasGetUserMedia ? "Yes" : "No" }} +

+

+ Platform: + {{ platformCapabilities.isMobile ? "Mobile" : "Desktop" }} +