feat: catalog has_landing and landing_* for SuperAdmin

Expose the website landing flag and content keys in the deploy setting template.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 17:01:54 +03:30
co-authored by Cursor
parent 09218ee1e2
commit ccf7e90922
3 changed files with 29 additions and 0 deletions
@@ -125,6 +125,15 @@
"description": "", "description": "",
"type": "" "type": ""
}, },
{
"key": "has_landing",
"value": "false",
"title_fa": "لندینگ وبسایت",
"can_edit": 0,
"is_active": 1,
"description": "روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.",
"type": "switch"
},
{ {
"key": "enable_gold_credit", "key": "enable_gold_credit",
"value": "false", "value": "false",
@@ -216,6 +216,7 @@ const SUPERADMIN_OWNED_KEYS = new Set([
'enable_customer_level_profit', 'enable_customer_level_profit',
'enable_product_funds', 'enable_product_funds',
'group_sms', 'group_sms',
'has_landing',
'has_page_earn_money', 'has_page_earn_money',
'has_page_gift_card', 'has_page_gift_card',
'has_page_notification', 'has_page_notification',
@@ -234,6 +235,13 @@ const SUPERADMIN_OWNED_META = {
'روشن: منوی اتوماسیون در پنل ادمین و اجرای موتور فعال است. خاموش: منو مخفی است و API/کران اجرا نمی‌شود. فقط از سوپرادمین قابل تغییر است.', 'روشن: منوی اتوماسیون در پنل ادمین و اجرای موتور فعال است. خاموش: منو مخفی است و API/کران اجرا نمی‌شود. فقط از سوپرادمین قابل تغییر است.',
type: 'switch', type: 'switch',
}, },
has_landing: {
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)) {
@@ -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_landing",
"has_page_earn_money", "has_page_earn_money",
"has_page_gift_card", "has_page_gift_card",
"has_page_notification", "has_page_notification",
@@ -80,6 +81,17 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
"invite_link_text", "invite_link_text",
"is_store", "is_store",
"jibit_verification", "jibit_verification",
"landing_buttom_cta",
"landing_calculator",
"landing_faq",
"landing_feature",
"landing_footer",
"landing_header",
"landing_hero",
"landing_live_price",
"landing_site",
"landing_steps",
"landing_trust",
"logo_login", "logo_login",
"logo_register", "logo_register",
"main_metal", "main_metal",