fix(plugins): seed all SuperAdmin khanegi setting keys into the store catalog
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,6 +78,16 @@ export const PLUGIN_CATALOG_SEED: Array<{
|
||||
titleFa: 'نمایش چت به کاربران',
|
||||
description: 'نمایش چت پشتیبانی در اپ مشتری.',
|
||||
},
|
||||
{
|
||||
settingKey: 'has_landing',
|
||||
titleFa: 'لندینگ وبسایت',
|
||||
description: 'صفحهٔ لندینگ نسخهٔ خانگی.',
|
||||
},
|
||||
{
|
||||
settingKey: 'permision__enabled',
|
||||
titleFa: 'نمایش منوی مجوزها',
|
||||
description: 'منوی مجوزها در ادمین و اپ.',
|
||||
},
|
||||
];
|
||||
|
||||
export function daysToPlanMonths(days: number): 1 | 3 | 6 | 12 {
|
||||
@@ -105,6 +115,8 @@ export function inferSettingKeyFromName(name: string): string | null {
|
||||
[/قلک/, 'enable_product_funds'],
|
||||
[/هشدار قیمت/, 'has_page_price_trigger'],
|
||||
[/نمایش چت|چت به کاربر/, 'show_to_users_chat'],
|
||||
[/لندینگ/, 'has_landing'],
|
||||
[/مجوز/, 'permision__enabled'],
|
||||
];
|
||||
for (const [re, key] of rules) {
|
||||
if (re.test(n)) return key;
|
||||
|
||||
Reference in New Issue
Block a user