feat: update environment configurations and add gold price management module with related components and services

This commit is contained in:
2026-05-23 19:57:28 +03:30
parent 6ad1a73c16
commit 7f07bf53c2
14 changed files with 507 additions and 89 deletions
@@ -1,17 +1,27 @@
import { PosInfoStore } from '@/domains/pos/store';
import { AppCardComponent } from '@/shared/components';
import { UikitFlatpickrJalaliComponent } from '@/uikit';
import { Component, inject } from '@angular/core';
import { Component, computed, inject } from '@angular/core';
import { Router } from '@angular/router';
import { Message } from 'primeng/message';
import { PosConfigGoldPriceFormComponent } from '../components/goldPrice/form.component';
import { PosConfigPrintFormComponent } from '../components/print/form.component';
@Component({
selector: 'pos-config-page',
templateUrl: './root.component.html',
imports: [PosConfigPrintFormComponent, AppCardComponent, Message, UikitFlatpickrJalaliComponent],
imports: [
PosConfigPrintFormComponent,
AppCardComponent,
Message,
PosConfigGoldPriceFormComponent,
],
})
export class PosConfigPageComponent {
private readonly router = inject(Router);
private readonly posInfoStore = inject(PosInfoStore);
readonly info = computed(() => this.posInfoStore.entity());
returnToMainPage() {
this.router.navigateByUrl('/');
}