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:
@@ -125,6 +125,15 @@
|
||||
"description": "",
|
||||
"type": ""
|
||||
},
|
||||
{
|
||||
"key": "has_landing",
|
||||
"value": "false",
|
||||
"title_fa": "لندینگ وبسایت",
|
||||
"can_edit": 0,
|
||||
"is_active": 1,
|
||||
"description": "روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.",
|
||||
"type": "switch"
|
||||
},
|
||||
{
|
||||
"key": "enable_gold_credit",
|
||||
"value": "false",
|
||||
|
||||
@@ -216,6 +216,7 @@ const SUPERADMIN_OWNED_KEYS = new Set([
|
||||
'enable_customer_level_profit',
|
||||
'enable_product_funds',
|
||||
'group_sms',
|
||||
'has_landing',
|
||||
'has_page_earn_money',
|
||||
'has_page_gift_card',
|
||||
'has_page_notification',
|
||||
@@ -234,6 +235,13 @@ const SUPERADMIN_OWNED_META = {
|
||||
'روشن: منوی اتوماسیون در پنل ادمین و اجرای موتور فعال است. خاموش: منو مخفی است و API/کران اجرا نمیشود. فقط از سوپرادمین قابل تغییر است.',
|
||||
type: 'switch',
|
||||
},
|
||||
has_landing: {
|
||||
value: 'false',
|
||||
title_fa: 'لندینگ وبسایت',
|
||||
description:
|
||||
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
|
||||
type: 'switch',
|
||||
},
|
||||
};
|
||||
|
||||
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_product_funds",
|
||||
"group_sms",
|
||||
"has_landing",
|
||||
"has_page_earn_money",
|
||||
"has_page_gift_card",
|
||||
"has_page_notification",
|
||||
@@ -80,6 +81,17 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"invite_link_text",
|
||||
"is_store",
|
||||
"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_register",
|
||||
"main_metal",
|
||||
|
||||
Reference in New Issue
Block a user