feat: update branding and localization for various components and configurations
Production CI / validate-and-build (push) Failing after 1m15s
Production CI / validate-and-build (push) Failing after 1m15s
This commit is contained in:
@@ -7,11 +7,11 @@ export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
icon: 'pi pi-fw pi-home',
|
||||
routerLink: ['/'],
|
||||
},
|
||||
{
|
||||
label: 'مشتری',
|
||||
icon: 'pi pi-fw pi-id-card',
|
||||
routerLink: ['/super_admin/consumers'],
|
||||
},
|
||||
// {
|
||||
// label: 'مشتری',
|
||||
// icon: 'pi pi-fw pi-id-card',
|
||||
// routerLink: ['/super_admin/consumers'],
|
||||
// },
|
||||
|
||||
{
|
||||
label: 'شریک تجاری',
|
||||
@@ -40,11 +40,11 @@ export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
// icon: 'pi pi-fw pi-barcode',
|
||||
// routerLink: [stockKeepingUnitsNamedRoutes.stockKeepingUnits.meta.pagePath!()],
|
||||
// },
|
||||
{
|
||||
label: 'لایسنس',
|
||||
icon: 'pi pi-fw pi-key',
|
||||
routerLink: ['/super_admin/licenses'],
|
||||
},
|
||||
// {
|
||||
// label: 'لایسنس',
|
||||
// icon: 'pi pi-fw pi-key',
|
||||
// routerLink: ['/super_admin/licenses'],
|
||||
// },
|
||||
{
|
||||
label: 'برند دستگاه',
|
||||
icon: 'pi pi-fw pi-receipt',
|
||||
|
||||
+2
-3
@@ -3,13 +3,12 @@
|
||||
[(visible)]="visible"
|
||||
[modal]="true"
|
||||
[style]="{ width: '500px' }"
|
||||
[closable]="true"
|
||||
>
|
||||
[closable]="true">
|
||||
<form [formGroup]="form" (submit)="submit()" class="flex flex-col gap-4">
|
||||
<field-code [control]="form.controls.code" />
|
||||
<field-name [control]="form.controls.name" />
|
||||
<field-vat [control]="form.controls.VAT" />
|
||||
<field-sku-type [control]="form.controls.type" />
|
||||
<!-- <field-sku-type [control]="form.controls.type" /> -->
|
||||
|
||||
<app-form-footer-actions [submitLabel]="'ذخیره'" [loading]="submitLoading()" (onCancel)="close()" />
|
||||
</form>
|
||||
|
||||
+3
-4
@@ -9,16 +9,15 @@
|
||||
[fullHeight]="fullHeight"
|
||||
[showAdd]="true"
|
||||
[showEdit]="true"
|
||||
[showAll]="showAllBtn"
|
||||
[allItemsPageRoute]="allItemsPageRoute()"
|
||||
(onEdit)="onEditClick($event)"
|
||||
(onAdd)="openAddForm()"
|
||||
(onRefresh)="refresh()"
|
||||
/>
|
||||
(onRefresh)="refresh()" />
|
||||
|
||||
<stock-keeping-unit-form
|
||||
[(visible)]="visibleForm"
|
||||
[initialValues]="selectedItemForEdit() || undefined"
|
||||
[guildId]="guildId"
|
||||
[editMode]="editMode()"
|
||||
(onSubmit)="refresh()"
|
||||
/>
|
||||
(onSubmit)="refresh()" />
|
||||
|
||||
+2
-1
@@ -19,13 +19,14 @@ import { StockKeepingUnitFormComponent } from './form.component';
|
||||
export class GuildStockKeepingUnitsListComponent extends AbstractList<IStockKeepingUnitResponse> {
|
||||
@Input() guildId!: string;
|
||||
@Input() fullHeight?: boolean;
|
||||
@Input() showAllBtn?: boolean;
|
||||
@Input() header: IColumn[] = skuListConfig.columns;
|
||||
|
||||
listConfig = skuListConfig;
|
||||
service = inject(StockKeepingUnitsService);
|
||||
|
||||
allItemsPageRoute = computed(() =>
|
||||
stockKeepingUnitsNamedRoutes.stockKeepingUnits.meta.pagePath!(this.guildId),
|
||||
stockKeepingUnitsNamedRoutes.stockKeepingUnits.meta.pagePath!(this.guildId)
|
||||
);
|
||||
|
||||
override setColumns(): void {
|
||||
|
||||
@@ -8,11 +8,11 @@ export const stockKeepingUnitsNamedRoutes: NamedRoutes<TStockKeepingUnitsRouteNa
|
||||
path: 'stock-keeping-units',
|
||||
loadComponent: () =>
|
||||
import('../../views/stockKeepingUnits/list.component').then(
|
||||
(m) => m.GuildStockKeepingUnitsComponent,
|
||||
(m) => m.GuildStockKeepingUnitsComponent
|
||||
),
|
||||
meta: {
|
||||
title: 'شناسه کالاها',
|
||||
pagePath: () => '/super_admin/guilds/:guildId/stock-keeping-units',
|
||||
pagePath: (guildId: string) => `/super_admin/guilds/${guildId}/stock-keeping-units`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<admin-guild-goods-list [guildId]="guildId()" [showAllBtn]="true" class="w-full" />
|
||||
</div>
|
||||
<div class="flex max-h-125">
|
||||
<admin-guild-stock-keeping-units-list [guildId]="guildId()" class="w-full" />
|
||||
<admin-guild-stock-keeping-units-list [guildId]="guildId()" [showAllBtn]="true" class="w-full" />
|
||||
</div>
|
||||
|
||||
<admin-guild-form
|
||||
|
||||
+2
-3
@@ -7,12 +7,11 @@
|
||||
(onHide)="close()">
|
||||
<form [formGroup]="form" (submit)="submit()" class="flex flex-col gap-4">
|
||||
<app-input label="تعداد شارژ" [control]="form.controls.quantity" type="number" />
|
||||
<!-- <uikit-datepicker
|
||||
<app-datepicker
|
||||
label="انقضای فروش"
|
||||
[control]="form.controls.activated_expires_at"
|
||||
name="activated_expires_at"
|
||||
[minDate]="minDate"
|
||||
/> -->
|
||||
[min]="minDate" />
|
||||
<app-form-footer-actions [submitLabel]="'ذخیره'" [loading]="submitLoading()" (onCancel)="close()" />
|
||||
</form>
|
||||
</shared-dialog>
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ import { InputComponent } from '@/shared/components';
|
||||
import { FormFooterActionsComponent } from '@/shared/components/formFooterActions/form-footer-actions.component';
|
||||
// import { UikitFlatpickrJalaliComponent } from '@/uikit';
|
||||
import { SharedDialogComponent } from '@/shared/components/dialog/dialog.component';
|
||||
import { DatepickerComponent } from '@/uikit';
|
||||
import { nowJalali } from '@/utils';
|
||||
import { Component, inject, Input } from '@angular/core';
|
||||
import { ReactiveFormsModule, Validators } from '@angular/forms';
|
||||
@@ -17,7 +18,7 @@ import { AdminPartnerChargeLicenseTransactionsService } from '../services/charge
|
||||
ReactiveFormsModule,
|
||||
InputComponent,
|
||||
FormFooterActionsComponent,
|
||||
// UikitFlatpickrJalaliComponent,
|
||||
DatepickerComponent,
|
||||
],
|
||||
})
|
||||
export class PartnerChargeLicenseFormDialogComponent extends AbstractFormDialog<
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
(onAdd)="openAddForm()"
|
||||
(onDetails)="toSinglePage($event)"
|
||||
(onEdit)="onEditClick($event)"
|
||||
(onRefresh)="refresh()"
|
||||
>
|
||||
(onRefresh)="refresh()">
|
||||
<ng-template #name let-item>
|
||||
<div class="flex items-center gap-2">
|
||||
<p-avatar
|
||||
@@ -22,8 +21,7 @@
|
||||
[title]="item.name"
|
||||
[label]="item.logo_url ? '' : item.name.slice(0, 2)"
|
||||
shape="square"
|
||||
size="large"
|
||||
></p-avatar>
|
||||
size="large"></p-avatar>
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</ng-template>
|
||||
@@ -51,5 +49,4 @@
|
||||
[editMode]="editMode()"
|
||||
[partnerId]="selectedItemForEdit()?.id"
|
||||
[initialValues]="selectedItemForEdit() || undefined"
|
||||
(onSubmit)="refresh()"
|
||||
/>
|
||||
(onSubmit)="refresh()" />
|
||||
|
||||
Reference in New Issue
Block a user