Merge pull request #323 from BEDOLAGA-DEV/dev

Dev
This commit is contained in:
Egor
2026-03-18 18:24:50 +03:00
committed by GitHub
8 changed files with 19 additions and 1 deletions

View File

@@ -19,7 +19,7 @@
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
<script src="https://telegram.org/js/telegram-web-app.js"></script> <script src="https://telegram.org/js/telegram-web-app.js" async></script>
<style> <style>
body { body {
background-color: #0a0f1a; background-color: #0a0f1a;

View File

@@ -57,8 +57,10 @@ export function DonutChart({
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: SALES_STATS.TOOLTIP.FONT_SIZE, fontSize: SALES_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
/> />
</PieChart> </PieChart>
</ResponsiveContainer> </ResponsiveContainer>

View File

@@ -114,8 +114,10 @@ export function DualAreaChart({
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: SALES_STATS.TOOLTIP.FONT_SIZE, fontSize: SALES_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined, name: string | undefined) => { formatter={(value: number | undefined, name: string | undefined) => {
const displayValue = value ?? 0; const displayValue = value ?? 0;
if (name === 'series1') return [displayValue, series1Label]; if (name === 'series1') return [displayValue, series1Label];

View File

@@ -128,8 +128,10 @@ export function MultiSeriesAreaChart({
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: SALES_STATS.TOOLTIP.FONT_SIZE, fontSize: SALES_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined, name: string | undefined) => [ formatter={(value: number | undefined, name: string | undefined) => [
valueFormatter ? valueFormatter(value ?? 0) : (value ?? 0), valueFormatter ? valueFormatter(value ?? 0) : (value ?? 0),
name || valueLabel || '', name || valueLabel || '',

View File

@@ -96,8 +96,10 @@ export function SimpleAreaChart({
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: SALES_STATS.TOOLTIP.FONT_SIZE, fontSize: SALES_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined) => [value ?? 0, valueLabel || '']} formatter={(value: number | undefined) => [value ?? 0, valueLabel || '']}
/> />
<Area <Area

View File

@@ -77,8 +77,10 @@ export function SimpleBarChart({
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: SALES_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: SALES_STATS.TOOLTIP.FONT_SIZE, fontSize: SALES_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined) => [ formatter={(value: number | undefined) => [
valueFormatter ? valueFormatter(value ?? 0) : (value ?? 0), valueFormatter ? valueFormatter(value ?? 0) : (value ?? 0),
]} ]}

View File

@@ -111,8 +111,10 @@ export function DailyChart({ data, chartId, title, earningsLabel, countLabel }:
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: PARTNER_STATS.TOOLTIP.BORDER_RADIUS, borderRadius: PARTNER_STATS.TOOLTIP.BORDER_RADIUS,
fontSize: PARTNER_STATS.TOOLTIP.FONT_SIZE, fontSize: PARTNER_STATS.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined, name: string | undefined) => { formatter={(value: number | undefined, name: string | undefined) => {
const displayValue = value ?? 0; const displayValue = value ?? 0;
if (name === 'earnings_display') { if (name === 'earnings_display') {

View File

@@ -477,8 +477,10 @@ export default function AdminLandingStats() {
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS, borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE, fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
/> />
<Area <Area
yAxisId="left" yAxisId="left"
@@ -539,8 +541,10 @@ export default function AdminLandingStats() {
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS, borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE, fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
labelStyle={{ color: colors.label }} labelStyle={{ color: colors.label }}
itemStyle={{ color: colors.label }}
formatter={(value: number | undefined) => { formatter={(value: number | undefined) => {
return [value ?? 0, t('admin.landings.stats.purchases')]; return [value ?? 0, t('admin.landings.stats.purchases')];
}} }}
@@ -617,7 +621,9 @@ export default function AdminLandingStats() {
border: `1px solid ${colors.tooltipBorder}`, border: `1px solid ${colors.tooltipBorder}`,
borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS, borderRadius: CHART_COMMON.TOOLTIP.BORDER_RADIUS,
fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE, fontSize: CHART_COMMON.TOOLTIP.FONT_SIZE,
color: colors.label,
}} }}
itemStyle={{ color: colors.label }}
/> />
</PieChart> </PieChart>
</ResponsiveContainer> </ResponsiveContainer>