Allow runtime request headers through API preflight and keep the storefront shell hidden while admin QR authentication gates backoffice.
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
@if (checkingServer()) {
|
|
<div class="server-check-overlay">
|
|
<div class="spinner-large"></div>
|
|
<p>{{ 'app.connecting' | translate }}</p>
|
|
</div>
|
|
} @else if (!serverAvailable()) {
|
|
<div class="server-error-overlay">
|
|
<div class="error-icon">⚠️</div>
|
|
<h2>{{ 'app.serverUnavailable' | translate }}</h2>
|
|
<p>{{ 'app.serverError' | translate }}</p>
|
|
<button class="retry-btn" (click)="retryConnection()">{{ 'app.retryConnection' | translate }}</button>
|
|
</div>
|
|
} @else if (isAdminHost && !isAdminRoute()) {
|
|
<app-telegram-login mode="admin" />
|
|
} @else if (isAdminRoute()) {
|
|
<router-outlet></router-outlet>
|
|
<app-telegram-login mode="admin" />
|
|
} @else {
|
|
<a class="skip-link" href="#main-content">{{ 'app.skipToContent' | translate }}</a>
|
|
<app-header></app-header>
|
|
<main id="main-content" class="main-content" tabindex="-1">
|
|
@if (!isHomePage()) {
|
|
<app-back-button />
|
|
}
|
|
<router-outlet></router-outlet>
|
|
</main>
|
|
<app-floating-notifications />
|
|
@defer (on viewport) {
|
|
<app-footer></app-footer>
|
|
} @placeholder {
|
|
<div class="footer-placeholder" aria-hidden="true"></div>
|
|
}
|
|
<!-- <app-telegram-login /> -->
|
|
<app-telegram-login mode="admin" />
|
|
}
|