added chart plugin in khanegi superadmin
This commit is contained in:
@@ -142,5 +142,14 @@
|
|||||||
"type": "switch",
|
"type": "switch",
|
||||||
"can_edit": 0,
|
"can_edit": 0,
|
||||||
"is_active": 1
|
"is_active": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "has_charts",
|
||||||
|
"value": "false",
|
||||||
|
"title_fa": "نمودارها",
|
||||||
|
"description": "روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.",
|
||||||
|
"type": "switch",
|
||||||
|
"can_edit": 0,
|
||||||
|
"is_active": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -214,8 +214,10 @@ const SUPERADMIN_OWNED_KEYS = new Set([
|
|||||||
'enable_automation',
|
'enable_automation',
|
||||||
'enable_conditional_order',
|
'enable_conditional_order',
|
||||||
'enable_customer_level_profit',
|
'enable_customer_level_profit',
|
||||||
|
'enable_gold_credit',
|
||||||
'enable_product_funds',
|
'enable_product_funds',
|
||||||
'group_sms',
|
'group_sms',
|
||||||
|
'has_charts',
|
||||||
'has_landing',
|
'has_landing',
|
||||||
'has_page_earn_money',
|
'has_page_earn_money',
|
||||||
'has_page_gift_card',
|
'has_page_gift_card',
|
||||||
@@ -242,6 +244,13 @@ const SUPERADMIN_OWNED_META = {
|
|||||||
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
|
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
},
|
},
|
||||||
|
has_charts: {
|
||||||
|
value: 'false',
|
||||||
|
title_fa: 'نمودارها',
|
||||||
|
description:
|
||||||
|
'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.',
|
||||||
|
type: 'switch',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const [key, meta] of Object.entries(SUPERADMIN_OWNED_META)) {
|
for (const [key, meta] of Object.entries(SUPERADMIN_OWNED_META)) {
|
||||||
|
|||||||
@@ -88,6 +88,11 @@ export const PLUGIN_CATALOG_SEED: Array<{
|
|||||||
titleFa: 'نمایش منوی مجوزها',
|
titleFa: 'نمایش منوی مجوزها',
|
||||||
description: 'منوی مجوزها در ادمین و اپ.',
|
description: 'منوی مجوزها در ادمین و اپ.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
settingKey: 'has_charts',
|
||||||
|
titleFa: 'نمودارها',
|
||||||
|
description: 'نمایش و فعالسازی نمودارها در اپلیکیشن.',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export function daysToPlanMonths(days: number): 0 | 1 | 3 | 6 | 12 {
|
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'],
|
[/نمایش چت|چت به کاربر/, 'show_to_users_chat'],
|
||||||
[/لندینگ/, 'has_landing'],
|
[/لندینگ/, 'has_landing'],
|
||||||
[/مجوز/, 'permision__enabled'],
|
[/مجوز/, 'permision__enabled'],
|
||||||
|
[/نمودار/, 'has_charts'],
|
||||||
];
|
];
|
||||||
for (const [re, key] of rules) {
|
for (const [re, key] of rules) {
|
||||||
if (re.test(n)) return key;
|
if (re.test(n)) return key;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export const DEPLOY_SETTING_CATALOG_KEYS = new Set<string>([
|
|||||||
"enable_gold_credit",
|
"enable_gold_credit",
|
||||||
"enable_product_funds",
|
"enable_product_funds",
|
||||||
"group_sms",
|
"group_sms",
|
||||||
|
"has_charts",
|
||||||
"has_landing",
|
"has_landing",
|
||||||
"has_page_earn_money",
|
"has_page_earn_money",
|
||||||
"has_page_gift_card",
|
"has_page_gift_card",
|
||||||
|
|||||||
Reference in New Issue
Block a user