mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat: add daily traffic & device purchase chart to addons stats
Add DualAreaChart to addons tab showing daily traffic purchases vs device purchases with date-union merge. Add daily_devices field to AddonsStats type and i18n keys for all 4 locales.
This commit is contained in:
@@ -119,6 +119,11 @@ export interface DailyAddonItem {
|
||||
total_gb: number;
|
||||
}
|
||||
|
||||
export interface DailyDeviceItem {
|
||||
date: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface AddonsStats {
|
||||
total_purchases: number;
|
||||
total_gb_purchased: number;
|
||||
@@ -127,6 +132,7 @@ export interface AddonsStats {
|
||||
device_revenue_kopeks: number;
|
||||
by_package: AddonByPackageItem[];
|
||||
daily: DailyAddonItem[];
|
||||
daily_devices: DailyDeviceItem[];
|
||||
}
|
||||
|
||||
// ============ Deposits ============
|
||||
|
||||
Reference in New Issue
Block a user