From ccf7e9092240cdf6fe8fdfd0120a8cc9d123f183 Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 5 Sep 2026 17:01:54 +0330 Subject: [PATCH] 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 --- prisma/setting-templates-from-deploy.json | 9 +++++++++ scripts/sync-superadmin-setting-template.mjs | 8 ++++++++ src/program-settings/deploy-setting-catalog-keys.ts | 12 ++++++++++++ 3 files changed, 29 insertions(+) diff --git a/prisma/setting-templates-from-deploy.json b/prisma/setting-templates-from-deploy.json index b2d7ad7..81c40a0 100644 --- a/prisma/setting-templates-from-deploy.json +++ b/prisma/setting-templates-from-deploy.json @@ -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", diff --git a/scripts/sync-superadmin-setting-template.mjs b/scripts/sync-superadmin-setting-template.mjs index 4e474d3..182ca0b 100644 --- a/scripts/sync-superadmin-setting-template.mjs +++ b/scripts/sync-superadmin-setting-template.mjs @@ -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)) { diff --git a/src/program-settings/deploy-setting-catalog-keys.ts b/src/program-settings/deploy-setting-catalog-keys.ts index de8033e..ffa222c 100644 --- a/src/program-settings/deploy-setting-catalog-keys.ts +++ b/src/program-settings/deploy-setting-catalog-keys.ts @@ -11,6 +11,7 @@ export const DEPLOY_SETTING_CATALOG_KEYS = new Set([ "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([ "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",