mirror of
https://github.com/vndangkhoa/purestream.git
synced 2026-04-05 17:37:59 +07:00
Remove loading spinners and cleanup unused VNC files
This commit is contained in:
parent
5d1895e400
commit
6eab9df088
3 changed files with 8 additions and 57 deletions
|
|
@ -316,12 +316,13 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
||||||
onPlaying={() => setIsLoading(false)}
|
onPlaying={() => setIsLoading(false)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Loading Spinner Overlay */}
|
{/* Loading Overlay - Subtle pulsing logo */}
|
||||||
{isLoading && (
|
{isLoading && (
|
||||||
<div className="absolute inset-0 flex items-center justify-center bg-black/60 z-20">
|
<div className="absolute inset-0 flex items-center justify-center bg-black/40 z-20">
|
||||||
<div className="flex flex-col items-center gap-4">
|
<div className="w-16 h-16 bg-gradient-to-r from-cyan-400/80 to-pink-500/80 rounded-2xl flex items-center justify-center animate-pulse">
|
||||||
<div className="w-12 h-12 border-4 border-white/20 border-t-cyan-400 rounded-full animate-spin" />
|
<svg className="w-8 h-8 text-white" viewBox="0 0 24 24" fill="currentColor">
|
||||||
<span className="text-white/60 text-sm">Loading...</span>
|
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" />
|
||||||
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -29,15 +29,10 @@ export const Login: React.FC = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Loading state
|
// Loading state - brief, no spinner needed
|
||||||
if (isChecking) {
|
if (isChecking) {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-gray-950 via-black to-gray-950 flex items-center justify-center">
|
<div className="min-h-screen bg-gradient-to-br from-gray-950 via-black to-gray-950" />
|
||||||
<div className="flex flex-col items-center gap-4">
|
|
||||||
<div className="w-12 h-12 border-4 border-white/20 border-t-cyan-400 rounded-full animate-spin" />
|
|
||||||
<span className="text-white/60 text-sm">Checking session...</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
[supervisord]
|
|
||||||
nodaemon=true
|
|
||||||
logfile=/dev/stdout
|
|
||||||
logfile_maxbytes=0
|
|
||||||
loglevel=info
|
|
||||||
|
|
||||||
[program:xvnc]
|
|
||||||
command=/usr/bin/Xvnc :99 -geometry 1920x1080 -depth 24 -rfbport 5900 -SecurityTypes None -AlwaysShared
|
|
||||||
autorestart=true
|
|
||||||
priority=100
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
|
|
||||||
[program:openbox]
|
|
||||||
command=openbox
|
|
||||||
environment=DISPLAY=":99"
|
|
||||||
autorestart=true
|
|
||||||
priority=150
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
|
|
||||||
|
|
||||||
[program:novnc]
|
|
||||||
command=/opt/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 6080
|
|
||||||
autorestart=true
|
|
||||||
priority=300
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
|
|
||||||
[program:app]
|
|
||||||
command=python -m uvicorn main:app --host 0.0.0.0 --port 8002
|
|
||||||
directory=/app/backend
|
|
||||||
environment=DISPLAY=":99",PYTHONUNBUFFERED="1"
|
|
||||||
autorestart=true
|
|
||||||
priority=400
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
Loading…
Reference in a new issue