feat: update membership and network terminology to customer club language
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
@if (_membership.IsActive)
|
@if (_membership.IsActive)
|
||||||
{
|
{
|
||||||
<MudAlert Severity="Severity.Success" Variant="Variant.Outlined">
|
<MudAlert Severity="Severity.Success" Variant="Variant.Outlined">
|
||||||
<MudText>عضویت شما در باشگاه فعال است! از مزایای باشگاه مشتریان استفاده کنید.</MudText>
|
<MudText>عضویت شما در باشگاه مشتریان فعال است و هم اکنون میتوانید از مزایای باشگاه مشتریان استفاده کنید.</MudText>
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
|
|
||||||
@if (_membership.DaysRemaining.HasValue)
|
@if (_membership.DaysRemaining.HasValue)
|
||||||
@@ -88,16 +88,16 @@
|
|||||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.TrendingUp" Color="Color.Primary" Size="Size.Large" />
|
<MudIcon Icon="@Icons.Material.Filled.TrendingUp" Color="Color.Primary" Size="Size.Large" />
|
||||||
<MudStack Spacing="0">
|
<MudStack Spacing="0">
|
||||||
<MudText Typo="Typo.subtitle1">عضویت در شبکه بازاریابی</MudText>
|
<MudText Typo="Typo.subtitle1">عضویت در باشگاه مشتریان</MudText>
|
||||||
<MudText Typo="Typo.caption" Color="Color.Default">عضویت در شبکه بازاریابی و دریافت پورسانت</MudText>
|
<MudText Typo="Typo.caption" Color="Color.Default"> دریافت پاداش وفاداری</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
<MudDivider />
|
<MudDivider />
|
||||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.GroupAdd" Color="Color.Secondary" Size="Size.Large" />
|
<MudIcon Icon="@Icons.Material.Filled.GroupAdd" Color="Color.Secondary" Size="Size.Large" />
|
||||||
<MudStack Spacing="0">
|
<MudStack Spacing="0">
|
||||||
<MudText Typo="Typo.subtitle1">جذب زیرمجموعه</MudText>
|
<MudText Typo="Typo.subtitle1">معرفی مشتریان جدید</MudText>
|
||||||
<MudText Typo="Typo.caption" Color="Color.Default">امکان جذب زیرمجموعه و گسترش شبکه</MudText>
|
<MudText Typo="Typo.caption" Color="Color.Default">توسعه باشگاه مشتریان</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
||||||
<MudStack Spacing="3">
|
<MudStack Spacing="3">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.h5">آمار شبکه من</MudText>
|
<MudText Typo="Typo.h5">آمار باشگاه توسعه دهندگان</MudText>
|
||||||
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Profile.Index">بازگشت</MudButton>
|
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Profile.Index">بازگشت</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">کل اعضای شبکه</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">اعضای باشگاه توسعه دهندگان</MudText>
|
||||||
<MudText Typo="Typo.h4" Color="Color.Primary">@_statistics.TotalMembers</MudText>
|
<MudText Typo="Typo.h4" Color="Color.Primary">@_statistics.TotalMembers</MudText>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Groups" Color="Color.Primary" />
|
<MudIcon Icon="@Icons.Material.Filled.Groups" Color="Color.Primary" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">شاخه چپ</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">بخش (A)</MudText>
|
||||||
<MudText Typo="Typo.h4" Color="Color.Info">@_statistics.LeftLegCount</MudText>
|
<MudText Typo="Typo.h4" Color="Color.Info">@_statistics.LeftLegCount</MudText>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.ChevronLeft" Color="Color.Info" />
|
<MudIcon Icon="@Icons.Material.Filled.ChevronLeft" Color="Color.Info" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">شاخه راست</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">بخش (B)</MudText>
|
||||||
<MudText Typo="Typo.h4" Color="Color.Success">@_statistics.RightLegCount</MudText>
|
<MudText Typo="Typo.h4" Color="Color.Success">@_statistics.RightLegCount</MudText>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.ChevronRight" Color="Color.Success" />
|
<MudIcon Icon="@Icons.Material.Filled.ChevronRight" Color="Color.Success" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<MudItem xs="12" sm="6" md="3">
|
<MudItem xs="12" sm="6" md="3">
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">عمق درخت</MudText>
|
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">فاصله شعب</MudText>
|
||||||
<MudText Typo="Typo.h4" Color="Color.Secondary">@_statistics.TreeDepth</MudText>
|
<MudText Typo="Typo.h4" Color="Color.Secondary">@_statistics.TreeDepth</MudText>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.AccountTree" Color="Color.Secondary" />
|
<MudIcon Icon="@Icons.Material.Filled.AccountTree" Color="Color.Secondary" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -59,10 +59,10 @@
|
|||||||
|
|
||||||
<!-- تعادل شاخهها -->
|
<!-- تعادل شاخهها -->
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudText Typo="Typo.h6" Class="mb-3">تعادل شاخهها</MudText>
|
<MudText Typo="Typo.h6" Class="mb-3">آمار جمعی فعالیت</MudText>
|
||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.body1">شاخه چپ: <strong>@_statistics.LeftLegCount</strong> عضو</MudText>
|
<MudText Typo="Typo.body1">بخش (A): <strong>@_statistics.LeftLegCount</strong> عضو</MudText>
|
||||||
<MudProgressLinear Color="Color.Info"
|
<MudProgressLinear Color="Color.Info"
|
||||||
Value="@GetLeftPercentage()"
|
Value="@GetLeftPercentage()"
|
||||||
Size="Size.Medium"
|
Size="Size.Medium"
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
Style="width: 200px;" />
|
Style="width: 200px;" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.body1">شاخه راست: <strong>@_statistics.RightLegCount</strong> عضو</MudText>
|
<MudText Typo="Typo.body1">بخش (B): <strong>@_statistics.RightLegCount</strong> عضو</MudText>
|
||||||
<MudProgressLinear Color="Color.Success"
|
<MudProgressLinear Color="Color.Success"
|
||||||
Value="@GetRightPercentage()"
|
Value="@GetRightPercentage()"
|
||||||
Size="Size.Medium"
|
Size="Size.Medium"
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
@if (!string.IsNullOrEmpty(_statistics.WeakerLeg))
|
@if (!string.IsNullOrEmpty(_statistics.WeakerLeg))
|
||||||
{
|
{
|
||||||
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined">
|
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined">
|
||||||
شاخه ضعیفتر: <strong>@GetLegText(_statistics.WeakerLeg)</strong>
|
بخش کوچک تر: <strong>@GetLegText(_statistics.WeakerLeg)</strong>
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -88,12 +88,12 @@
|
|||||||
|
|
||||||
<!-- نمودار دایرهای -->
|
<!-- نمودار دایرهای -->
|
||||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||||
<MudText Typo="Typo.h6" Class="mb-3">توزیع اعضا</MudText>
|
<MudText Typo="Typo.h6" Class="mb-3">توزیع توسعه دهندگان</MudText>
|
||||||
<MudChart ChartType="ChartType.Donut"
|
<MudChart ChartType="ChartType.Donut"
|
||||||
Width="300px"
|
Width="300px"
|
||||||
Height="300px"
|
Height="300px"
|
||||||
InputData="@(new double[] { _statistics.LeftLegCount, _statistics.RightLegCount })"
|
InputData="@(new double[] { _statistics.LeftLegCount, _statistics.RightLegCount })"
|
||||||
InputLabels="@(new[] { "شاخه چپ", "شاخه راست" })"
|
InputLabels="@(new[] { "بخش (A)", "بخش (B)" })"
|
||||||
ChartOptions="@_chartOptions" />
|
ChartOptions="@_chartOptions" />
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
StartIcon="@Icons.Material.Filled.AccountTree"
|
StartIcon="@Icons.Material.Filled.AccountTree"
|
||||||
Href="@RouteConstants.Profile.Tree"
|
Href="@RouteConstants.Profile.Tree"
|
||||||
FullWidth="true">
|
FullWidth="true">
|
||||||
مشاهده درخت کامل
|
مشاهده کل توسعه دهندگان
|
||||||
</MudButton>
|
</MudButton>
|
||||||
<MudButton Variant="Variant.Outlined"
|
<MudButton Variant="Variant.Outlined"
|
||||||
Color="Color.Secondary"
|
Color="Color.Secondary"
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
else if (_hasError)
|
else if (_hasError)
|
||||||
{
|
{
|
||||||
<MudAlert Severity="Severity.Error" Variant="Variant.Filled">
|
<MudAlert Severity="Severity.Error" Variant="Variant.Filled">
|
||||||
خطا در دریافت آمار شبکه. لطفا دوباره تلاش کنید.
|
خطا در دریافت آمار توسعه دهندگان. لطفا دوباره تلاش کنید.
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="LoadStatisticsAsync">تلاش مجدد</MudButton>
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="LoadStatisticsAsync">تلاش مجدد</MudButton>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,15 +61,15 @@ public partial class NetworkStatisticsPage : ComponentBase
|
|||||||
|
|
||||||
private string GetLegText(string leg) => leg.ToLower() switch
|
private string GetLegText(string leg) => leg.ToLower() switch
|
||||||
{
|
{
|
||||||
"left" => "شاخه چپ",
|
"left" => "بخش (A)",
|
||||||
"right" => "شاخه راست",
|
"right" => "بخش (B)",
|
||||||
_ => leg
|
_ => leg
|
||||||
};
|
};
|
||||||
|
|
||||||
private string GetPositionText(string position) => position.ToLower() switch
|
private string GetPositionText(string position) => position.ToLower() switch
|
||||||
{
|
{
|
||||||
"left" => "چپ",
|
"left" => "(A)",
|
||||||
"right" => "راست",
|
"right" => "(B)",
|
||||||
_ => position
|
_ => position
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
برای فعالسازی لینک دعوت و دعوت دوستان خود به جمع مشتریان ویژه کارابازار، کافی است ابتدا <strong>پکیج پایه ۵۶ میلیونی</strong> را تهیه کنید و سپس در <strong>باشگاه مشتریان</strong> عضو شوید.
|
برای فعالسازی لینک دعوت و دعوت دوستان خود به جمع مشتریان ویژه کارابازار، کافی است ابتدا <strong>پکیج پایه ۵۶ میلیونی</strong> را تهیه کنید و سپس در <strong>باشگاه مشتریان</strong> عضو شوید.
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudText Typo="Typo.body2" Align="Align.Center" Class="mud-text-secondary">
|
<MudText Typo="Typo.body2" Align="Align.Center" Class="mud-text-secondary">
|
||||||
پس از تکمیل این مراحل، میتوانید از مزایای ویژه عضویت در شبکه فروش بهرهمند شده و با معرفی دوستان، کمیسیون دریافت کنید.
|
از مزایای ویژه عضویت در باشگاه مشتریان کارابازار سلامت بهرهمند شده و با فعالیت در زمینه توسعه فروشگاهها پاداش دریافت کنید.
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Primary"
|
Color="Color.Primary"
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
<MudCard Elevation="1" Class="rounded-lg profile-tile">
|
<MudCard Elevation="1" Class="rounded-lg profile-tile">
|
||||||
<MudCardContent Class="d-flex flex-column align-center pa-4">
|
<MudCardContent Class="d-flex flex-column align-center pa-4">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Payments" Size="Size.Large" Color="Color.Success" />
|
<MudIcon Icon="@Icons.Material.Filled.Payments" Size="Size.Large" Color="Color.Success" />
|
||||||
<MudText Typo="Typo.subtitle1" Class="mt-2">کمیسیون</MudText>
|
<MudText Typo="Typo.subtitle1" Class="mt-2">پاداش</MudText>
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">درآمد و تاریخچه</MudText>
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">درآمد و تاریخچه</MudText>
|
||||||
</MudCardContent>
|
</MudCardContent>
|
||||||
</MudCard>
|
</MudCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user