Deleted dev profile

This commit is contained in:
2026-01-11 07:24:34 +03:00
parent 260e24f28a
commit 4f3afcd5cd

View File

@@ -164,6 +164,24 @@ function applyTranslations(container = document) {
// Telegram Init // Telegram Init
const tg = window.Telegram?.WebApp; const tg = window.Telegram?.WebApp;
function showAccessDenied() {
document.body.innerHTML = '';
const div = document.createElement('div');
div.style.cssText = 'display:flex; flex-direction:column; align-items:center; justify-content:center; height:100vh; padding:24px; text-align:center; background:var(--md-sys-color-background); color:var(--md-sys-color-on-background); font-family:var(--font-brand);';
div.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="var(--md-sys-color-error)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-bottom:24px;"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="m9 12 2 2 4-4"/></svg>
<h1 style="font-size:24px; font-weight:600; margin-bottom:16px;">Access Restricted</h1>
<p style="font-size:16px; opacity:0.7; max-width:320px; margin-bottom:32px; line-height:1.5;">
This application is designed to be used exclusively via Telegram.
</p>
<a href="https://t.me/" style="background:var(--md-sys-color-primary); color:var(--md-sys-color-on-primary); padding:12px 24px; border-radius:100px; text-decoration:none; font-weight:500;">
Open Telegram
</a>
`;
document.body.appendChild(div);
}
function initApp() { function initApp() {
// Enhanced OS Detection // Enhanced OS Detection
const ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
@@ -195,9 +213,10 @@ function initApp() {
tg.onEvent('themeChanged', applyTheme); tg.onEvent('themeChanged', applyTheme);
} }
// Dev Mock // Check Auth
if (!currentState.user) { if (!currentState.user) {
currentState.user = { id: 583602906, first_name: 'Dev', username: 'developer', photo_url: null }; showAccessDenied();
return;
} }
// Avatar Setup // Avatar Setup