Initialize Vyryi front-end project with React, Vite, and TypeScript. Add essential files including configuration, environment variables, and basic structure. Implement authentication, routing, and API interaction for a Telegram Mini App UI. Include README and styling for a cohesive user experience.

This commit is contained in:
Redsandy
2026-08-12 11:27:07 +03:00
commit 59d4a691d6
30 changed files with 3933 additions and 0 deletions

33
src/types.ts Normal file
View File

@@ -0,0 +1,33 @@
export type User = {
id: number
telegram_id: number | null
username: string | null
first_name: string | null
balance: string
agreement_accepted: boolean
agreement_accepted_at: string | null
created_at: string
}
export type Deposit = {
id: number
amount: string
created_at: string
}
export type Wallet = {
balance: string
deposits: Deposit[]
}
export type GameStub = {
slug: string
title: string
description: string
status: string
}
export type TokenResponse = {
access_token: string
token_type: string
}