Spaces:
Sleeping
Sleeping
| <html lang="he" dir="rtl"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>转讞讝讜拽讛 - Telegram Analytics</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; | |
| background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | |
| min-height: 100vh; | |
| color: #e4e4e4; | |
| } | |
| .header { | |
| background: rgba(0, 0, 0, 0.3); | |
| padding: 15px 30px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .header h1 { | |
| font-size: 1.5rem; | |
| color: #ff6b6b; | |
| } | |
| .nav-links { | |
| display: flex; | |
| gap: 20px; | |
| } | |
| .nav-links a { | |
| color: #a0a0a0; | |
| text-decoration: none; | |
| padding: 8px 16px; | |
| border-radius: 6px; | |
| transition: all 0.3s ease; | |
| } | |
| .nav-links a:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: #fff; | |
| } | |
| .nav-links a.active { | |
| background: rgba(255, 107, 107, 0.2); | |
| color: #ff6b6b; | |
| } | |
| /* Password Modal */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.8); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .modal-overlay.hidden { | |
| display: none; | |
| } | |
| .modal { | |
| background: #1e2a3a; | |
| padding: 40px; | |
| border-radius: 12px; | |
| text-align: center; | |
| border: 1px solid rgba(255, 107, 107, 0.3); | |
| box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); | |
| } | |
| .modal h2 { | |
| margin-bottom: 20px; | |
| color: #ff6b6b; | |
| } | |
| .modal input { | |
| padding: 12px 20px; | |
| font-size: 1.2rem; | |
| border: 2px solid #3a4a5a; | |
| border-radius: 8px; | |
| background: #0d1520; | |
| color: #fff; | |
| text-align: center; | |
| letter-spacing: 4px; | |
| width: 200px; | |
| } | |
| .modal input:focus { | |
| outline: none; | |
| border-color: #ff6b6b; | |
| } | |
| .modal button { | |
| display: block; | |
| margin: 20px auto 0; | |
| padding: 12px 40px; | |
| font-size: 1rem; | |
| background: #ff6b6b; | |
| color: #fff; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: background 0.3s ease; | |
| } | |
| .modal button:hover { | |
| background: #ff5252; | |
| } | |
| .modal .error { | |
| color: #ff6b6b; | |
| margin-top: 15px; | |
| font-size: 0.9rem; | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| padding: 30px; | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| } | |
| .main-content.locked { | |
| filter: blur(10px); | |
| pointer-events: none; | |
| } | |
| .section { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 12px; | |
| padding: 25px; | |
| margin-bottom: 25px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .section h2 { | |
| color: #ff6b6b; | |
| margin-bottom: 15px; | |
| font-size: 1.3rem; | |
| } | |
| .section p { | |
| color: #a0a0a0; | |
| margin-bottom: 15px; | |
| line-height: 1.6; | |
| } | |
| /* Analysis Controls */ | |
| .controls { | |
| display: flex; | |
| gap: 20px; | |
| align-items: center; | |
| flex-wrap: wrap; | |
| } | |
| .control-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 5px; | |
| } | |
| .control-group label { | |
| font-size: 0.85rem; | |
| color: #a0a0a0; | |
| } | |
| .control-group input, .control-group select { | |
| padding: 10px 15px; | |
| border: 1px solid #3a4a5a; | |
| border-radius: 6px; | |
| background: #0d1520; | |
| color: #fff; | |
| font-size: 1rem; | |
| } | |
| .btn-primary { | |
| padding: 12px 30px; | |
| background: linear-gradient(135deg, #ff6b6b, #ff5252); | |
| color: #fff; | |
| border: none; | |
| border-radius: 8px; | |
| font-size: 1rem; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| margin-top: 20px; | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3); | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| /* Progress */ | |
| .progress-container { | |
| margin-top: 20px; | |
| display: none; | |
| } | |
| .progress-container.active { | |
| display: block; | |
| } | |
| .progress-bar { | |
| height: 8px; | |
| background: #1a2535; | |
| border-radius: 4px; | |
| overflow: hidden; | |
| margin-bottom: 10px; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #ff6b6b, #ff5252); | |
| width: 0%; | |
| transition: width 0.3s ease; | |
| } | |
| .progress-text { | |
| color: #a0a0a0; | |
| font-size: 0.9rem; | |
| } | |
| /* Results */ | |
| .results-container { | |
| display: none; | |
| } | |
| .results-container.active { | |
| display: block; | |
| } | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 25px; | |
| } | |
| .stat-card { | |
| background: rgba(0, 0, 0, 0.3); | |
| padding: 20px; | |
| border-radius: 10px; | |
| text-align: center; | |
| } | |
| .stat-card .value { | |
| font-size: 2rem; | |
| font-weight: bold; | |
| color: #ff6b6b; | |
| } | |
| .stat-card .label { | |
| color: #a0a0a0; | |
| font-size: 0.9rem; | |
| margin-top: 5px; | |
| } | |
| .stat-card .value.available { | |
| color: #66bb6a; | |
| } | |
| .stat-card .value.unavailable { | |
| color: #ff6b6b; | |
| } | |
| /* Clusters Section */ | |
| .clusters-section { | |
| margin-top: 30px; | |
| } | |
| .clusters-section h3 { | |
| color: #ff6b6b; | |
| margin-bottom: 15px; | |
| } | |
| .cluster-card { | |
| background: rgba(102, 187, 106, 0.1); | |
| border: 1px solid rgba(102, 187, 106, 0.3); | |
| border-radius: 10px; | |
| padding: 15px; | |
| margin-bottom: 15px; | |
| } | |
| .cluster-card h4 { | |
| color: #66bb6a; | |
| margin-bottom: 10px; | |
| } | |
| .cluster-users { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| .cluster-user { | |
| background: rgba(0, 0, 0, 0.3); | |
| padding: 8px 15px; | |
| border-radius: 20px; | |
| font-size: 0.9rem; | |
| } | |
| /* Pairs List */ | |
| .pairs-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| } | |
| .pair-card { | |
| background: rgba(0, 0, 0, 0.3); | |
| border-radius: 10px; | |
| padding: 20px; | |
| border-right: 4px solid; | |
| } | |
| .pair-card.high { | |
| border-color: #ff5252; | |
| } | |
| .pair-card.medium { | |
| border-color: #ffa726; | |
| } | |
| .pair-card.low { | |
| border-color: #66bb6a; | |
| } | |
| .pair-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| } | |
| .pair-users { | |
| display: flex; | |
| gap: 20px; | |
| align-items: center; | |
| } | |
| .user-info { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .user-name { | |
| font-weight: bold; | |
| color: #fff; | |
| } | |
| .user-stats { | |
| font-size: 0.85rem; | |
| color: #a0a0a0; | |
| } | |
| .vs-badge { | |
| background: #3a4a5a; | |
| padding: 5px 12px; | |
| border-radius: 15px; | |
| font-size: 0.8rem; | |
| color: #fff; | |
| } | |
| .similarity-badge { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| } | |
| .pair-card.high .similarity-badge { | |
| color: #ff5252; | |
| } | |
| .pair-card.medium .similarity-badge { | |
| color: #ffa726; | |
| } | |
| .pair-card.low .similarity-badge { | |
| color: #66bb6a; | |
| } | |
| .pair-details { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| .detail-tag { | |
| background: rgba(255, 107, 107, 0.1); | |
| color: #ff6b6b; | |
| padding: 5px 12px; | |
| border-radius: 15px; | |
| font-size: 0.85rem; | |
| } | |
| .no-duplicates { | |
| text-align: center; | |
| padding: 40px; | |
| color: #66bb6a; | |
| } | |
| .no-duplicates svg { | |
| width: 60px; | |
| height: 60px; | |
| margin-bottom: 15px; | |
| } | |
| /* Feature comparison table */ | |
| .comparison-toggle { | |
| background: none; | |
| border: 1px solid #3a4a5a; | |
| color: #a0a0a0; | |
| padding: 5px 15px; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 0.85rem; | |
| margin-top: 10px; | |
| } | |
| .comparison-toggle:hover { | |
| border-color: #ff6b6b; | |
| color: #ff6b6b; | |
| } | |
| .comparison-table { | |
| display: none; | |
| margin-top: 15px; | |
| width: 100%; | |
| font-size: 0.85rem; | |
| } | |
| .comparison-table.active { | |
| display: table; | |
| } | |
| .comparison-table th, .comparison-table td { | |
| padding: 8px 12px; | |
| text-align: right; | |
| border-bottom: 1px solid #2a3a4a; | |
| } | |
| .comparison-table th { | |
| color: #a0a0a0; | |
| font-weight: normal; | |
| } | |
| .comparison-table td { | |
| color: #fff; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .header { | |
| flex-direction: column; | |
| gap: 15px; | |
| } | |
| .nav-links { | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| } | |
| .controls { | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .pair-users { | |
| flex-direction: column; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Password Modal --> | |
| <div class="modal-overlay" id="password-modal"> | |
| <div class="modal"> | |
| <h2>讗讝讜专 诪讜讙谉</h2> | |
| <p style="color: #a0a0a0; margin-bottom: 20px;">讛讝谉 住讬住诪讛 讻讚讬 诇讛讬讻谞住 诇讗讝讜专 讛转讞讝讜拽讛</p> | |
| <input type="password" id="password-input" placeholder="******" maxlength="10" autofocus> | |
| <button onclick="checkPassword()">讻谞讬住讛</button> | |
| <p class="error hidden" id="password-error">住讬住诪讛 砖讙讜讬讛</p> | |
| </div> | |
| </div> | |
| <header class="header"> | |
| <h1>转讞讝讜拽讛</h1> | |
| <nav class="nav-links"> | |
| <a href="/">住讟讟讬住讟讬拽讜转</a> | |
| <a href="/chat">爪'讗讟</a> | |
| <a href="/ai-search">AI Search</a> | |
| <a href="/maintenance" class="active">转讞讝讜拽讛</a> | |
| </nav> | |
| </header> | |
| <main class="main-content locked" id="main-content"> | |
| <!-- Stylometry Analysis Section --> | |
| <section class="section"> | |
| <h2>讝讬讛讜讬 诪砖转诪砖讬诐 讻驻讜诇讬诐 (Advanced Stylometry + AI)</h2> | |
| <p> | |
| 诪注专讻转 诪转拽讚诪转 诇讝讬讛讜讬 讞砖讘讜谞讜转 讻驻讜诇讬诐 讛诪砖诇讘转: | |
| <strong>AI Embeddings</strong> (sentence-transformers), | |
| <strong>DBSCAN Clustering</strong> (scikit-learn), | |
| 讜谞讬转讜讞 诇砖讜谞讬 注讘专讬 诪转拽讚诐 (驻讜专诪诇讬讜转, 住诇谞讙, 专讗砖讬 转讬讘讜转, 讚驻讜住讬 讝诪谉). | |
| </p> | |
| <div class="controls"> | |
| <div class="control-group"> | |
| <label>诪讬谞讬诪讜诐 讛讜讚注讜转</label> | |
| <input type="number" id="min-messages" value="300" min="50" max="10000"> | |
| </div> | |
| <div class="control-group"> | |
| <label>转拽讜驻讛 (讬诪讬诐)</label> | |
| <input type="number" id="days" value="365" min="30" max="730"> | |
| </div> | |
| <div class="control-group"> | |
| <label>住祝 讚诪讬讜谉 (%)</label> | |
| <input type="number" id="threshold" value="85" min="50" max="99"> | |
| </div> | |
| </div> | |
| <button class="btn-primary" id="analyze-btn" onclick="startAnalysis()"> | |
| 讛转讞诇 谞讬转讜讞 | |
| </button> | |
| <!-- Progress --> | |
| <div class="progress-container" id="progress-container"> | |
| <div class="progress-bar"> | |
| <div class="progress-fill" id="progress-fill"></div> | |
| </div> | |
| <p class="progress-text" id="progress-text">诪转讞讬诇 谞讬转讜讞...</p> | |
| </div> | |
| </section> | |
| <!-- Results Section --> | |
| <section class="section results-container" id="results-container"> | |
| <h2>转讜爪讗讜转 讛谞讬转讜讞</h2> | |
| <div class="stats-grid" id="stats-grid"> | |
| <!-- Filled by JS --> | |
| </div> | |
| <div id="pairs-container"> | |
| <!-- Filled by JS --> | |
| </div> | |
| </section> | |
| </main> | |
| <script> | |
| </script> | |
| </body> | |
| </html> | |