feat(admin): group SMS charge settings and edit referral bonus
Keep sms_charge_* in advanced settings and show referral_bonus_amount in normal settings. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -277,6 +277,12 @@ export const SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
|
|||||||
icon: 'vuesax-linear:cpu',
|
icon: 'vuesax-linear:cpu',
|
||||||
match: (k) => /^(wss_enabled|sse_path|profit_gold_api_enabled)$/.test(k)
|
match: (k) => /^(wss_enabled|sse_path|profit_gold_api_enabled)$/.test(k)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'sms_charge',
|
||||||
|
title: 'شارژ سامانه پیامک',
|
||||||
|
icon: 'vuesax-linear:sms',
|
||||||
|
match: (k) => k.startsWith('sms_charge_')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'misc',
|
id: 'misc',
|
||||||
title: 'سایر',
|
title: 'سایر',
|
||||||
|
|||||||
@@ -441,6 +441,10 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
|
|||||||
deposit_card_number: 'text',
|
deposit_card_number: 'text',
|
||||||
deposit_account_number: 'text',
|
deposit_account_number: 'text',
|
||||||
deposit_sheba: 'text',
|
deposit_sheba: 'text',
|
||||||
|
sms_charge_card_number: 'text',
|
||||||
|
sms_charge_sheba: 'text',
|
||||||
|
sms_charge_account_holder: 'text',
|
||||||
|
sms_charge_note: 'longtext',
|
||||||
deposit_method_card_to_card: 'switch',
|
deposit_method_card_to_card: 'switch',
|
||||||
deposit_method_gateway: 'switch',
|
deposit_method_gateway: 'switch',
|
||||||
deposit_method_identified: 'switch',
|
deposit_method_identified: 'switch',
|
||||||
@@ -883,6 +887,14 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
|
|||||||
'شماره حساب بانکی واریز — در مودال راهنمای شارژ کنار کارت و شبا نمایش داده میشود. در متنها با ٪حساب یا %حساب جایگزین میشود.',
|
'شماره حساب بانکی واریز — در مودال راهنمای شارژ کنار کارت و شبا نمایش داده میشود. در متنها با ٪حساب یا %حساب جایگزین میشود.',
|
||||||
deposit_sheba:
|
deposit_sheba:
|
||||||
'شماره شبا واریز — در متنها با ٪شبا یا %شبا جایگزین میشود.',
|
'شماره شبا واریز — در متنها با ٪شبا یا %شبا جایگزین میشود.',
|
||||||
|
sms_charge_card_number:
|
||||||
|
'شماره کارت برای واریز شارژ سامانه پیامکی (مودال اعتبار پیامک در هدر ادمین).',
|
||||||
|
sms_charge_sheba:
|
||||||
|
'شماره شبا برای واریز شارژ سامانه پیامکی.',
|
||||||
|
sms_charge_account_holder:
|
||||||
|
'نام صاحب حساب واریز شارژ سامانه پیامکی.',
|
||||||
|
sms_charge_note:
|
||||||
|
'متن راهنمای مودال شارژ اعتبار پیامک در پنل ادمین.',
|
||||||
deposit_method_card_to_card:
|
deposit_method_card_to_card:
|
||||||
'روشن (پیشفرض): روش کارت به کارت در صفحه واریز اپ نمایش داده میشود. خاموش: این روش از لیست روشهای واریز حذف میشود.',
|
'روشن (پیشفرض): روش کارت به کارت در صفحه واریز اپ نمایش داده میشود. خاموش: این روش از لیست روشهای واریز حذف میشود.',
|
||||||
deposit_method_gateway:
|
deposit_method_gateway:
|
||||||
@@ -1100,6 +1112,7 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
|
|||||||
min_first_buy: 'حداقل اولین خرید',
|
min_first_buy: 'حداقل اولین خرید',
|
||||||
minimum_sell: 'حداقل مبلغ فروش (ریال)',
|
minimum_sell: 'حداقل مبلغ فروش (ریال)',
|
||||||
referral_id: 'کد معرف اجباری',
|
referral_id: 'کد معرف اجباری',
|
||||||
|
referral_bonus_amount: 'مقدار پاداش معرف',
|
||||||
referral_gift_on_first_order: 'پاداش معرف پس از اولین سفارش',
|
referral_gift_on_first_order: 'پاداش معرف پس از اولین سفارش',
|
||||||
referral_gift_buy_from_montzar: 'خرید پاداش معرفی از همکار',
|
referral_gift_buy_from_montzar: 'خرید پاداش معرفی از همکار',
|
||||||
open_register: 'ثبتنام باز',
|
open_register: 'ثبتنام باز',
|
||||||
@@ -1182,6 +1195,10 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
|
|||||||
deposit_card_number: 'شماره کارت واریز',
|
deposit_card_number: 'شماره کارت واریز',
|
||||||
deposit_account_number: 'شماره حساب واریز',
|
deposit_account_number: 'شماره حساب واریز',
|
||||||
deposit_sheba: 'شبا واریز',
|
deposit_sheba: 'شبا واریز',
|
||||||
|
sms_charge_card_number: 'شماره کارت شارژ پیامک',
|
||||||
|
sms_charge_sheba: 'شماره شبا شارژ پیامک',
|
||||||
|
sms_charge_account_holder: 'نام صاحب حساب شارژ پیامک',
|
||||||
|
sms_charge_note: 'متن راهنمای شارژ پیامک',
|
||||||
deposit_method_card_to_card: 'فعالسازی کارت به کارت',
|
deposit_method_card_to_card: 'فعالسازی کارت به کارت',
|
||||||
deposit_method_gateway: 'فعالسازی درگاه پرداخت',
|
deposit_method_gateway: 'فعالسازی درگاه پرداخت',
|
||||||
deposit_method_identified: 'فعالسازی شناسه واریز',
|
deposit_method_identified: 'فعالسازی شناسه واریز',
|
||||||
@@ -1227,7 +1244,6 @@ export const SETTING_LOCKED_KEYS = new Set([
|
|||||||
'external_payment_webhook_url',
|
'external_payment_webhook_url',
|
||||||
'wallet_payment_provider',
|
'wallet_payment_provider',
|
||||||
'fee_deduct_from_gold',
|
'fee_deduct_from_gold',
|
||||||
'referral_bonus_amount',
|
|
||||||
'group_sms',
|
'group_sms',
|
||||||
'customer_special_pricing',
|
'customer_special_pricing',
|
||||||
'enable_gold_credit',
|
'enable_gold_credit',
|
||||||
@@ -1243,6 +1259,7 @@ export const SETTING_LOCKED_KEYS = new Set([
|
|||||||
'has_page_earn_money',
|
'has_page_earn_money',
|
||||||
'is_store',
|
'is_store',
|
||||||
'sms_panel',
|
'sms_panel',
|
||||||
|
'sms_charge_card_number', 'sms_charge_sheba', 'sms_charge_account_holder', 'sms_charge_note',
|
||||||
'logo_login', 'logo_register', 'title_pwa', 'title_fav',
|
'logo_login', 'logo_register', 'title_pwa', 'title_fav',
|
||||||
'main_wallet_products', 'metal_type', 'main_metal',
|
'main_wallet_products', 'metal_type', 'main_metal',
|
||||||
'montify_name',
|
'montify_name',
|
||||||
@@ -1291,7 +1308,7 @@ export const SETTING_EDITABLE_KEYS = new Set([
|
|||||||
'montzar_password', 'montzar_product_id',
|
'montzar_password', 'montzar_product_id',
|
||||||
'montzar_account_zarin', 'montzar_account_tahesab', 'montzar_account_pargar',
|
'montzar_account_zarin', 'montzar_account_tahesab', 'montzar_account_pargar',
|
||||||
'open_register',
|
'open_register',
|
||||||
'referral_id', 'referral_limit', 'referral_gift_on_first_order', 'referral_gift_buy_from_montzar',
|
'referral_id', 'referral_limit', 'referral_gift_on_first_order', 'referral_gift_buy_from_montzar', 'referral_bonus_amount',
|
||||||
'register_jibit_verify', 'register_referral_bonus_message', 'register_referral_sms_to_referrer',
|
'register_jibit_verify', 'register_referral_bonus_message', 'register_referral_sms_to_referrer',
|
||||||
'sell_fee', 'show_last_price', 'show_home_price_when_closed', 'show_gold_ounce_price', 'show_product_details',
|
'sell_fee', 'show_last_price', 'show_home_price_when_closed', 'show_gold_ounce_price', 'show_product_details',
|
||||||
'show_product_trade_status', 'show_product_card_meta',
|
'show_product_trade_status', 'show_product_card_meta',
|
||||||
|
|||||||
Reference in New Issue
Block a user