@sigmaott/base-next 1.4.19 → 1.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locales/en.yaml
CHANGED
|
@@ -488,6 +488,7 @@ fast_channel:
|
|
|
488
488
|
no_input: No Input
|
|
489
489
|
select_vod: Select VOD
|
|
490
490
|
forensic:
|
|
491
|
+
enter_the_wm_in_format_e_g_0x64: Enter the WM (in hexadecimal format, e.g. 0x64)
|
|
491
492
|
enter_the_wm_in_hexadecimal_format_e_g_0x64: WM value exceeds maximum length allowed by bit length.
|
|
492
493
|
type_is_required: Type is required
|
|
493
494
|
wm_is_required: wm is required
|
package/locales/vi.yaml
CHANGED
|
@@ -491,6 +491,7 @@ fast_channel:
|
|
|
491
491
|
no_input: Không có đầu vào
|
|
492
492
|
select_vod: Chọn VOD
|
|
493
493
|
forensic:
|
|
494
|
+
enter_the_wm_in_format_e_g_0x64: 'Nhập WM (theo định dạng thập lục phân, ví dụ: 0x64)'
|
|
494
495
|
enter_the_wm_in_hexadecimal_format_e_g_0x64: Giá trị WM vượt quá độ dài tối đa cho phép theo độ dài bit.
|
|
495
496
|
type_is_required: Loại là bắt buộc
|
|
496
497
|
wm_is_required: wm là bắt buộc
|
package/package.json
CHANGED
|
@@ -40,6 +40,9 @@ const [wmValue, wmAttrs] = useElField<string>('channelConfig.forensicWatermarkCo
|
|
|
40
40
|
const hexLimit = Math.ceil(bitLength / 4)
|
|
41
41
|
|
|
42
42
|
const regex = new RegExp(`^0x[a-fA-F0-9]{1,${hexLimit}}$`)
|
|
43
|
+
if (!value || value === '') {
|
|
44
|
+
callback(new Error(t('forensic.enter_the_wm_in_format_e_g_0x64')))
|
|
45
|
+
}
|
|
43
46
|
if (!regex.test(value))
|
|
44
47
|
callback(new Error(t('forensic.enter_the_wm_in_hexadecimal_format_e_g_0x64')))
|
|
45
48
|
else
|
|
@@ -200,6 +200,8 @@ function handleChangeServer(_id: string) {
|
|
|
200
200
|
|
|
201
201
|
if (channelConfigValue.value?.pte?.path)
|
|
202
202
|
channelConfigValue.value.pte.path = undefined
|
|
203
|
+
if (channelConfigValue.value?.forensicWatermarkConfig?.infoModel?.path)
|
|
204
|
+
channelConfigValue.value.forensicWatermarkConfig.infoModel.path = undefined
|
|
203
205
|
}
|
|
204
206
|
|
|
205
207
|
function handleChangePrimaryServer(_id: string) {
|