clean up stage 1
This commit is contained in:
@@ -6,7 +6,7 @@ import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
|
||||
@Component({
|
||||
selector: 'app-back-button',
|
||||
template: `
|
||||
@if (!isnovo) {
|
||||
@if (!isMarketplaceNovo) {
|
||||
<button class="dexar-back-btn" (click)="goBack()" [attr.aria-label]="i18n.t('itemDetail.back')">
|
||||
<svg width="37" height="24" viewBox="0 0 37 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.73 11.46c-.97-.52-.97-1.4 0-1.92L20.39 1.21c1.48-.79 3.89-.19 3.89.95v3.74h6.94c1.28 0 2.31.59 2.31 1.31v6.56c0 .73-1.03 1.31-2.31 1.31h-6.94v3.74c0 1.15-2.42 1.74-3.89.96L4.73 11.46Z"
|
||||
@@ -65,8 +65,8 @@ export class BackButtonComponent {
|
||||
private readonly uiRuntime = inject(UiRuntimeFacade);
|
||||
i18n = inject(TranslateService);
|
||||
|
||||
get isnovo(): boolean {
|
||||
return this.uiRuntime.isNovo();
|
||||
get isMarketplaceNovo(): boolean {
|
||||
return this.uiRuntime.isMarketplaceVariant('novo');
|
||||
}
|
||||
|
||||
constructor(private location: Location) {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!-- novo VERSION - Modern Clean Footer -->
|
||||
@if (isnovo) {
|
||||
@if (isMarketplaceNovo) {
|
||||
|
||||
<footer class="novo-footer">
|
||||
<div class="novo-footer-container">
|
||||
@@ -49,7 +49,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
} @else if (islavero) {
|
||||
} @else if (isMarketplaceLavero) {
|
||||
<!-- LAVERO VERSION -->
|
||||
<footer class="lavero-footer">
|
||||
<div class="lavero-footer-container">
|
||||
|
||||
@@ -18,18 +18,18 @@ export class FooterComponent {
|
||||
currentYear = new Date().getFullYear();
|
||||
|
||||
get brandName(): string {
|
||||
return this.uiRuntime.brandName();
|
||||
return this.uiRuntime.marketplaceName();
|
||||
}
|
||||
|
||||
get contactEmail(): string {
|
||||
return this.uiRuntime.contactEmail();
|
||||
}
|
||||
|
||||
get isnovo(): boolean {
|
||||
return this.uiRuntime.isNovo();
|
||||
get isMarketplaceNovo(): boolean {
|
||||
return this.uiRuntime.isMarketplaceVariant('novo');
|
||||
}
|
||||
|
||||
get islavero(): boolean {
|
||||
return this.uiRuntime.isLavero();
|
||||
get isMarketplaceLavero(): boolean {
|
||||
return this.uiRuntime.isMarketplaceVariant('lavero');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!-- novo VERSION - Modern Minimalist Header -->
|
||||
@if (isnovo) {
|
||||
@if (isMarketplaceNovo) {
|
||||
<header class="novo-header">
|
||||
<div class="novo-header-container">
|
||||
<div class="novo-left">
|
||||
|
||||
@@ -32,15 +32,15 @@ export class HeaderComponent {
|
||||
}
|
||||
|
||||
get brandName(): string {
|
||||
return this.uiRuntime.brandFullName();
|
||||
return this.uiRuntime.marketplaceDisplayName();
|
||||
}
|
||||
|
||||
get logo(): string {
|
||||
return this.uiRuntime.logoUrl();
|
||||
}
|
||||
|
||||
get isnovo(): boolean {
|
||||
return this.uiRuntime.isNovo();
|
||||
get isMarketplaceNovo(): boolean {
|
||||
return this.uiRuntime.isMarketplaceVariant('novo');
|
||||
}
|
||||
|
||||
get homeUrl(): string {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="carousel-container" [class.novo-theme]="isnovo">
|
||||
<div class="carousel-container" [class.novo-theme]="isMarketplaceNovo">
|
||||
@if (loading()) {
|
||||
<div class="carousel-loading">
|
||||
<div class="spinner"></div>
|
||||
|
||||
@@ -102,7 +102,7 @@ export class ItemsCarouselComponent implements OnInit {
|
||||
readonly getBadgeClass = getBadgeClass;
|
||||
|
||||
private langService = inject(LanguageService);
|
||||
get isnovo(): boolean { return this.uiRuntime.isNovo(); }
|
||||
get isMarketplaceNovo(): boolean { return this.uiRuntime.isMarketplaceVariant('novo'); }
|
||||
itemName(product: Item): string { return getTranslatedField(product, 'name', this.langService.currentLanguage()); }
|
||||
|
||||
addToCart(event: Event, item: Item): void {
|
||||
|
||||
@@ -20,7 +20,7 @@ export class LogoComponent {
|
||||
constructor(private readonly uiRuntime: UiRuntimeFacade) {}
|
||||
|
||||
get brandName(): string {
|
||||
return this.uiRuntime.brandName();
|
||||
return this.uiRuntime.marketplaceName();
|
||||
}
|
||||
|
||||
get logoPath(): string {
|
||||
|
||||
Reference in New Issue
Block a user