feat: website settings menu gated by has_landing

Add تنظیمات وبسایت before پیکربندی with landing_* subsections, and show unit addon on numeric setting fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 17:01:51 +03:30
co-authored by Cursor
parent dec36cc31e
commit e0b89223ac
11 changed files with 325 additions and 21 deletions
@@ -97,6 +97,7 @@
:value="priceValue"
:disabled="disabled"
class="w-full"
:addon-after="unitLabel || undefined"
:formatter="(v: string) => `${v}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser="(v: string) => sanitizeNumericString(v, { allowDecimal: false })"
@update:value="onPriceChange"
@@ -109,6 +110,7 @@
inputmode="numeric"
allow-clear
class="w-full"
:addon-after="unitLabel || undefined"
@update:value="onPlainNumberChange"
@blur="emit('blur')"
/>
@@ -144,6 +146,7 @@ import TemplateTextField from './TemplateTextField.vue'
import ZaarboxPriceKeyField from './ZaarboxPriceKeyField.vue'
import { hasTemplateField } from './templateFields'
import {
getSettingUnitLabel,
normalizeTimeValue,
parseSelectOptions,
resolveSettingFieldType,
@@ -182,6 +185,8 @@ const fieldType = computed<SettingFieldType>(() =>
})
)
const unitLabel = computed(() => getSettingUnitLabel(props.settingKey, fieldType.value))
const isZaarboxPriceKey = computed(() => props.settingKey === 'zaarbox_price_key')
const isMontzarProductId = computed(() => props.settingKey === 'montzar_product_id')
const isMainWalletProducts = computed(() => props.settingKey === 'main_wallet_products')