initial commit (frontend)

This commit is contained in:
2026-09-20 15:08:32 +03:00
commit 04cc53e66d
84 changed files with 36264 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
export {};
declare global {
interface Window {
Telegram?: {
WebApp: {
initData: string;
initDataUnsafe: {
user?: {
id: number;
language_code: string;
};
};
ready: () => void;
expand: () => void;
close: () => void;
disableVerticalSwipes: () => void;
MainButton: {
setText: (text: string) => void;
show: () => void;
hide: () => void;
onClick: (callback: () => void) => void;
};
BackButton: {
show: () => void;
hide: () => void;
onClick: (callback: () => void) => void;
};
HapticFeedback: {
impactOccurred: (style: 'light' | 'medium' | 'heavy' | 'rigid' | 'soft') => void;
};
};
};
}
}