test
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
<!-- Search results will appear here -->
|
<!-- Search results will appear here -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tg-placeholder tg-placeholder--secondary tg-hidden" id="noResults" style="display: none;">
|
<div class="tg-placeholder tg-placeholder--secondary tg-hidden" id="noResults">
|
||||||
<div class="tg-placeholder__icon">🔍</div>
|
<div class="tg-placeholder__icon">🔍</div>
|
||||||
<div class="tg-placeholder__title">Ничего не найдено</div>
|
<div class="tg-placeholder__title">Ничего не найдено</div>
|
||||||
<div class="tg-placeholder__description">Попробуйте изменить поисковый запрос</div>
|
<div class="tg-placeholder__description">Попробуйте изменить поисковый запрос</div>
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ interface ConvertResponse {
|
|||||||
class QuixoticApp {
|
class QuixoticApp {
|
||||||
private tg?: TelegramWebApp;
|
private tg?: TelegramWebApp;
|
||||||
private searchInput!: HTMLInputElement;
|
private searchInput!: HTMLInputElement;
|
||||||
private searchBtn!: HTMLButtonElement;
|
|
||||||
private loading!: HTMLElement;
|
private loading!: HTMLElement;
|
||||||
private results!: HTMLElement;
|
private results!: HTMLElement;
|
||||||
private noResults!: HTMLElement;
|
private noResults!: HTMLElement;
|
||||||
@@ -67,7 +66,6 @@ class QuixoticApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.searchInput = document.getElementById('searchInput') as HTMLInputElement;
|
this.searchInput = document.getElementById('searchInput') as HTMLInputElement;
|
||||||
this.searchBtn = document.getElementById('searchBtn') as HTMLButtonElement;
|
|
||||||
this.loading = document.getElementById('loading') as HTMLElement;
|
this.loading = document.getElementById('loading') as HTMLElement;
|
||||||
this.results = document.getElementById('results') as HTMLElement;
|
this.results = document.getElementById('results') as HTMLElement;
|
||||||
this.noResults = document.getElementById('noResults') as HTMLElement;
|
this.noResults = document.getElementById('noResults') as HTMLElement;
|
||||||
@@ -184,7 +182,6 @@ class QuixoticApp {
|
|||||||
private hideLoading(): void {
|
private hideLoading(): void {
|
||||||
this.loading.classList.add('tg-hidden');
|
this.loading.classList.add('tg-hidden');
|
||||||
this.loading.classList.remove('tg-spinner--visible');
|
this.loading.classList.remove('tg-spinner--visible');
|
||||||
this.searchBtn.disabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private displayResults(videos: VideoResult[]): void {
|
private displayResults(videos: VideoResult[]): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user