main funcions fixes

This commit is contained in:
2025-09-29 22:06:11 +09:00
parent 40e016e128
commit c8c3274527
7995 changed files with 1517998 additions and 1057 deletions

View File

@@ -0,0 +1,698 @@
/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #1a1a1a;
color: #ffffff;
overflow: hidden;
}
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
}
/* Header */
.app-header {
background: #2d2d2d;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #333;
}
.logo h1 {
font-size: 20px;
color: #4CAF50;
}
.connection-status {
display: flex;
gap: 15px;
align-items: center;
}
.status {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: bold;
}
.status.connected {
background: #4CAF50;
color: white;
}
.status.disconnected {
background: #f44336;
color: white;
}
#session-info {
font-size: 12px;
color: #bbb;
}
/* Main Content */
.main-content {
display: flex;
flex: 1;
overflow: hidden;
}
/* Video Panel */
.video-panel {
flex: 2;
display: flex;
flex-direction: column;
background: #1e1e1e;
border-right: 1px solid #333;
}
.video-container {
position: relative;
flex: 1;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
#remoteVideo {
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
}
.video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.8);
pointer-events: none;
}
.video-overlay.hidden {
display: none;
}
.no-stream-message {
text-align: center;
color: #888;
}
.no-stream-message h3 {
margin-bottom: 10px;
color: #aaa;
}
/* Video Controls */
.video-controls {
background: #2d2d2d;
padding: 15px;
border-top: 1px solid #333;
}
.control-group {
margin-bottom: 15px;
}
.control-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #ccc;
}
.camera-buttons {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.camera-btn {
padding: 8px 16px;
border: 1px solid #555;
background: #3a3a3a;
color: #fff;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
font-size: 12px;
}
.camera-btn:hover {
background: #4a4a4a;
border-color: #777;
}
.camera-btn.active {
background: #4CAF50;
border-color: #4CAF50;
}
.camera-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Image Controls */
.image-controls {
background: #2a2a2a;
padding: 15px;
border-top: 1px solid #333;
}
.image-controls h4 {
margin-bottom: 15px;
color: #4CAF50;
font-size: 14px;
}
.slider-group {
margin-bottom: 12px;
}
.slider-group label {
display: block;
margin-bottom: 5px;
font-size: 12px;
color: #ccc;
}
.slider-group input[type="range"] {
width: 100%;
height: 4px;
background: #555;
outline: none;
border-radius: 2px;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 16px;
height: 16px;
background: #4CAF50;
border-radius: 50%;
cursor: pointer;
}
.checkbox-group {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 15px;
}
.checkbox-group label {
display: flex;
align-items: center;
font-size: 12px;
color: #ccc;
cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
margin-right: 8px;
}
/* Recording Controls */
.recording-controls {
background: #2a2a2a;
padding: 15px;
border-top: 1px solid #333;
}
.recording-controls h4 {
margin-bottom: 15px;
color: #ff5722;
font-size: 14px;
}
.recording-buttons {
display: flex;
gap: 8px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.btn-record {
background: #f44336;
border: none;
color: white;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
transition: background 0.2s;
}
.btn-record:hover:not(:disabled) {
background: #d32f2f;
}
.btn-stop {
background: #757575;
border: none;
color: white;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
}
.btn-stop:hover:not(:disabled) {
background: #616161;
}
.btn-play {
background: #2196F3;
border: none;
color: white;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
}
.btn-play:hover:not(:disabled) {
background: #1976D2;
}
.recording-info {
display: flex;
justify-content: space-between;
font-size: 11px;
color: #888;
}
/* Control Panel */
.control-panel {
flex: 1;
background: #252525;
display: flex;
flex-direction: column;
max-width: 350px;
}
.control-panel > div {
padding: 15px;
border-bottom: 1px solid #333;
}
/* Connection Panel */
.connection-panel h3 {
margin-bottom: 15px;
color: #4CAF50;
font-size: 14px;
}
.input-group {
margin-bottom: 10px;
}
.input-group label {
display: block;
margin-bottom: 5px;
font-size: 12px;
color: #ccc;
}
.input-group input {
width: 100%;
padding: 8px;
border: 1px solid #555;
background: #3a3a3a;
color: #fff;
border-radius: 4px;
font-size: 12px;
}
/* Buttons */
.btn-primary {
background: #4CAF50;
border: none;
color: white;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
margin-right: 8px;
margin-bottom: 5px;
}
.btn-primary:hover:not(:disabled) {
background: #45a049;
}
.btn-secondary {
background: #757575;
border: none;
color: white;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
margin-right: 8px;
margin-bottom: 5px;
}
.btn-secondary:hover:not(:disabled) {
background: #616161;
}
.btn-small {
padding: 6px 12px;
font-size: 11px;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Devices Panel */
.devices-panel h3,
.sessions-panel h3 {
margin-bottom: 15px;
color: #2196F3;
font-size: 14px;
}
.devices-list,
.sessions-list {
max-height: 200px;
overflow-y: auto;
}
.device-item,
.session-item {
background: #3a3a3a;
margin-bottom: 8px;
padding: 10px;
border-radius: 4px;
border-left: 3px solid #4CAF50;
}
.device-info {
font-size: 12px;
margin-bottom: 5px;
}
.device-info strong {
color: #4CAF50;
}
.device-capabilities {
font-size: 11px;
color: #888;
margin-bottom: 8px;
}
.device-actions {
display: flex;
gap: 5px;
}
.btn-device {
background: #2196F3;
border: none;
color: white;
padding: 4px 8px;
border-radius: 3px;
cursor: pointer;
font-size: 10px;
}
.btn-device:hover {
background: #1976D2;
}
.no-devices,
.no-sessions {
text-align: center;
color: #666;
font-size: 12px;
padding: 20px;
}
/* Logs Panel */
.logs-panel {
flex: 1;
display: flex;
flex-direction: column;
}
.logs-panel h3 {
margin-bottom: 15px;
color: #FF9800;
font-size: 14px;
}
.logs-container {
flex: 1;
background: #1a1a1a;
border: 1px solid #333;
border-radius: 4px;
padding: 8px;
font-family: 'Courier New', monospace;
font-size: 11px;
overflow-y: auto;
margin-bottom: 10px;
}
.log-entry {
margin-bottom: 2px;
padding: 2px 0;
}
.log-entry.info {
color: #2196F3;
}
.log-entry.success {
color: #4CAF50;
}
.log-entry.warning {
color: #FF9800;
}
.log-entry.error {
color: #f44336;
}
.log-timestamp {
color: #666;
margin-right: 8px;
}
/* Scrollbars */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #2a2a2a;
}
::-webkit-scrollbar-thumb {
background: #555;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #666;
}
/* Enhanced Button Styles */
.video-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 10px;
}
.btn-action {
padding: 8px 12px;
background: #2196F3;
border: none;
border-radius: 4px;
color: white;
cursor: pointer;
font-size: 12px;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 4px;
}
.btn-action:hover {
background: #1976D2;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}
.btn-action:active {
transform: translateY(0);
}
.btn-action:disabled {
background: #555;
cursor: not-allowed;
transform: none;
}
/* Connection Panel Enhancements */
.button-group {
display: flex;
gap: 8px;
margin-top: 10px;
}
.connection-info {
display: flex;
justify-content: space-between;
margin-top: 10px;
padding: 8px 12px;
background: #1e1e1e;
border-radius: 4px;
font-size: 12px;
border: 1px solid #333;
}
#connection-status-text {
color: #ccc;
}
#ping-indicator {
color: #4CAF50;
font-weight: bold;
}
/* Fullscreen Video Mode */
.video-container.fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 9999;
background: #000;
}
.video-container.fullscreen #remoteVideo {
width: 100%;
height: 100%;
object-fit: contain;
}
max-height: 180px;
overflow-y: auto;
background: #181818;
border: 1px solid #333;
padding: 8px;
font-size: 12px;
line-height: 1.4;
color: #eee;
border-radius: 4px;
margin-bottom: 8px;
/* Video Zoom */
.video-container.zoomed #remoteVideo {
transform: scale(1.5);
cursor: move;
}
/* Tooltip Styles */
.tooltip {
position: relative;
}
.tooltip::after {
content: attr(title);
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background: #333;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
z-index: 1000;
}
.tooltip:hover::after {
opacity: 1;
}
/* Status Indicators */
.status-indicator {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 6px;
}
.status-indicator.online {
background: #4CAF50;
animation: pulse 2s infinite;
}
.status-indicator.offline {
background: #f44336;
}
.status-indicator.connecting {
background: #FF9800;
animation: blink 1s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
/* Responsive */
@media (max-width: 1200px) {
.main-content {
flex-direction: column;
}
.control-panel {
max-width: none;
max-height: 300px;
flex-direction: row;
overflow-x: auto;
}
.control-panel > div {
min-width: 250px;
border-right: 1px solid #333;
border-bottom: none;
}
}