feat(settings): add enamad_logo and group enamad under general brand

Expose enamad_logo in editable settings and place enamad keys in عمومی و برند.
This commit is contained in:
2026-08-24 19:39:07 +03:30
parent 67652f0cd8
commit 91ae4ed207
2 changed files with 9 additions and 4 deletions
@@ -20,7 +20,7 @@ export const EDITABLE_SETTING_GROUPS: SettingGroupDef[] = [
title: 'عمومی و برند',
icon: 'vuesax-linear:home-2',
match: (k) =>
/^(name_fa|name_en|bace_url|server_url|logo_|title_pwa|title_fav|open_register|auto_active_customer|store_status|key$)$/.test(
/^(name_fa|name_en|bace_url|server_url|logo_|title_pwa|title_fav|open_register|auto_active_customer|store_status|key$|enamad_url|enamad_logo)$/.test(
k
)
},
@@ -55,7 +55,7 @@ export const EDITABLE_SETTING_GROUPS: SettingGroupDef[] = [
id: 'content',
title: 'متن‌های اپ',
icon: 'vuesax-linear:document-text',
match: (k) => /^text_/.test(k) || k === 'enamad_url' || k === 'about_software'
match: (k) => /^text_/.test(k) || k === 'about_software'
},
{
id: 'referral',
@@ -186,7 +186,7 @@ export const SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
title: 'عمومی و برند',
icon: 'vuesax-linear:home-2',
match: (k) =>
/^(name_fa|name_en|app_url|admin_url|apk_download_link|bace_url|server_url|logo_|title_pwa|title_fav|metal_type|main_metal|unit$|open_register|auto_active_customer|store_status|key$|is_store|sms_panel|main_wallet_products)/.test(
/^(name_fa|name_en|app_url|admin_url|apk_download_link|bace_url|server_url|logo_|title_pwa|title_fav|metal_type|main_metal|unit$|open_register|auto_active_customer|store_status|key$|is_store|sms_panel|main_wallet_products|enamad_url|enamad_logo)/.test(
k
)
},
@@ -303,6 +303,7 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
text_about: 'longtext',
about_software: 'longtext',
enamad_url: 'text',
enamad_logo: 'text',
fee_service_charge_percentage: 'number',
fee_deduct_from_gold: 'switch',
require_zero_main_gold_before_other_buy: 'switch',
@@ -738,6 +739,8 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
'متن معرفی نرم‌افزار — HTML یا چند خط متن.',
enamad_url:
'لینک اعتماد اینماد (trustseal.enamad.ir).',
enamad_logo:
'آدرس تصویر لوگوی اینماد (مثلاً logo.aspx).',
referral_id:
'روشن: وارد کردن کد معرف در ثبت‌نام اجباری است. خاموش: کد معرف اختیاری است.',
gift_for_referrer:
@@ -1012,6 +1015,8 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
products_site_link_text: 'متن دکمه لینک خرید/فروش',
show_product_trade_status: 'نمایش خرید/فروش باز روی کارت محصول',
show_product_card_meta: 'نمایش دسته و تحویل و مقدار روی کارت محصول',
enamad_url: 'آدرس اینماد',
enamad_logo: 'لوگوی اینماد',
fee_single: 'اختلاف پایه خرید/فروش',
buy_fee: 'اضافه قیمت خرید',
sell_fee: 'کسر قیمت فروش',
@@ -1221,7 +1226,7 @@ export const SETTING_EDITABLE_KEYS = new Set([
'has_chat',
'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_account_number', 'deposit_sheba',
'deposit_method_card_to_card', 'deposit_method_gateway', 'deposit_method_identified', 'deposit_method_shetab',
'text_about', 'text_rule', 'about_software', 'enamad_url',
'text_about', 'text_rule', 'about_software', 'enamad_url', 'enamad_logo',
'zaarbox_price_key',
'price_channel_enabled', 'price_channel_messengers', 'price_channel_diff',
'price_channel_min_seconds', 'price_channel_footer_id', 'price_channel_footer_phone',