update dockerfile

This commit is contained in:
2026-10-07 17:32:50 +03:00
parent f86777e2cd
commit 2b4967dd8c
9 changed files with 90 additions and 44 deletions
+8 -2
View File
@@ -40,10 +40,16 @@
<span
class="cell"
[class.cell--open]="obtained(attraction)"
[attr.aria-label]="attraction.name + (obtained(attraction) ? ', получено' : ', не получен')"
[attr.aria-label]="
attraction.name + (obtained(attraction) ? ', получено' : ', не получен')
"
>
<img
[src]="obtained(attraction) && attraction.iconUrl ? attraction.iconUrl : '/assets/icons/cell-lock.svg'"
[src]="
obtained(attraction) && attraction.iconUrl
? attraction.iconUrl
: '/assets/icons/cell-lock.svg'
"
[alt]=""
/>
</span>
+14 -2
View File
@@ -3,8 +3,20 @@ import { MatProgressBar } from '@angular/material/progress-bar';
import { RouterLink } from '@angular/router';
import { Store } from '@ngrx/store';
import { areaOpenedCount, areaProgress, areaTotalCount, type Area, type Attraction } from '../../areas/area.models';
import { GorodarActions, selectAreas, selectAreasError, selectAreasStatus, selectCollectedIdSet } from '../../state';
import {
areaOpenedCount,
areaProgress,
areaTotalCount,
type Area,
type Attraction,
} from '../../areas/area.models';
import {
GorodarActions,
selectAreas,
selectAreasError,
selectAreasStatus,
selectCollectedIdSet,
} from '../../state';
@Component({
selector: 'app-cities-page',
+10 -4
View File
@@ -1,4 +1,12 @@
import { ChangeDetectionStrategy, Component, computed, effect, inject, input, signal } from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
computed,
effect,
inject,
input,
signal,
} from '@angular/core';
import { RouterLink } from '@angular/router';
import { Store } from '@ngrx/store';
@@ -116,8 +124,6 @@ export class CityPage {
const current = this.area();
const attraction = current ? findAttraction(current, id) : null;
const open = attraction ? isObtained(attraction, this.collectedIds()) : false;
return open
? ['/city', this.areaId(), id, 'icon']
: ['/city', this.areaId(), id];
return open ? ['/city', this.areaId(), id, 'icon'] : ['/city', this.areaId(), id];
}
}
@@ -4,7 +4,12 @@ import { Store } from '@ngrx/store';
import { findAttraction, isObtained } from '../../areas/area.models';
import { CollectSuccess } from '../../claim/collect-success/collect-success';
import { GorodarActions, selectAreaDetails, selectAreaDetailStatus, selectCollectedIdSet } from '../../state';
import {
GorodarActions,
selectAreaDetails,
selectAreaDetailStatus,
selectCollectedIdSet,
} from '../../state';
@Component({
selector: 'app-icon-preview-page',
+10 -5
View File
@@ -13,7 +13,12 @@ import { MatButton } from '@angular/material/button';
import { Router } from '@angular/router';
import { Store } from '@ngrx/store';
import { areaOpenedCount, areaTotalCount, isObtained, type AreaDetails } from '../../areas/area.models';
import {
areaOpenedCount,
areaTotalCount,
isObtained,
type AreaDetails,
} from '../../areas/area.models';
import { ClaimFlow } from '../../claim/claim-flow/claim-flow';
import { AudioGuide } from '../../shared/audio-guide/audio-guide';
import { Icon } from '../../shared/icon/icon';
@@ -54,7 +59,9 @@ export class MapItemPage {
protected readonly status = computed(() => this.attractionStatuses()[this.id()] ?? 'loading');
protected readonly error = computed(() => this.attractionErrors()[this.id()] ?? '');
protected readonly area = computed((): AreaDetails | null => this.details()[this.areaId()] ?? null);
protected readonly area = computed(
(): AreaDetails | null => this.details()[this.areaId()] ?? null,
);
protected readonly landmark = computed(() => this.attractions()[this.id()] ?? null);
protected readonly collectedIds = this.store.selectSignal(selectCollectedIdSet);
protected readonly photos = this.store.selectSignal(selectPhotos);
@@ -138,9 +145,7 @@ export class MapItemPage {
return;
}
this.store.dispatch(
GorodarActions.authSheetOpened({ intent: 'claim', landmarkId: this.id() }),
);
this.store.dispatch(GorodarActions.authSheetOpened({ intent: 'claim', landmarkId: this.id() }));
}
protected openPhoto(): void {