added chart plugin in khanegi superadmin

This commit is contained in:
2026-10-21 11:13:24 +03:30
parent 11887bc5ed
commit 47d210bd7d
4 changed files with 25 additions and 0 deletions
+6
View File
@@ -88,6 +88,11 @@ export const PLUGIN_CATALOG_SEED: Array<{
titleFa: 'نمایش منوی مجوزها',
description: 'منوی مجوزها در ادمین و اپ.',
},
{
settingKey: 'has_charts',
titleFa: 'نمودارها',
description: 'نمایش و فعال‌سازی نمودارها در اپلیکیشن.',
},
];
export function daysToPlanMonths(days: number): 0 | 1 | 3 | 6 | 12 {
@@ -127,6 +132,7 @@ export function inferSettingKeyFromName(name: string): string | null {
[/نمایش چت|چت به کاربر/, 'show_to_users_chat'],
[/لندینگ/, 'has_landing'],
[/مجوز/, 'permision__enabled'],
[/نمودار/, 'has_charts'],
];
for (const [re, key] of rules) {
if (re.test(n)) return key;
@@ -11,6 +11,7 @@ export const DEPLOY_SETTING_CATALOG_KEYS = new Set<string>([
"enable_gold_credit",
"enable_product_funds",
"group_sms",
"has_charts",
"has_landing",
"has_page_earn_money",
"has_page_gift_card",