@sigmaott/base-next 1.4.11 → 1.4.13

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmaott/base-next",
3
3
  "type": "module",
4
- "version": "1.4.11",
4
+ "version": "1.4.13",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -19,6 +19,38 @@ function handleChangeGlobalPte() {
19
19
  }
20
20
 
21
21
  const [GPUTagTemplate, ReuseGPUTagTemplate] = createReusableTemplate()
22
+ const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
23
+ const [enablePteValue, enablePteAttrs] = useElField<boolean>('channelConfig.pte.enable', [
24
+ {
25
+ validator: (rule, value, callback) => {
26
+ if (value && encoderIdValue.value === -1)
27
+ callback(new Error($t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
28
+ callback()
29
+ },
30
+ trigger: ['blur', 'change'],
31
+ },
32
+ ])
33
+
34
+ const [enableForensicValue, enableForensicAttrs] = useElField<boolean>('channelConfig.forensicWatermarkConfig.enable', [
35
+ {
36
+ validator: (rule, value, callback) => {
37
+ if (value && encoderIdValue.value === -1)
38
+ callback(new Error($t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
39
+ callback()
40
+ },
41
+ trigger: ['blur', 'change'],
42
+ },
43
+ ])
44
+ const [enableCensorshipValue, enableCensorshipAttrs] = useElField<boolean>('channelConfig.censorship.enable', [
45
+ {
46
+ validator: (rule, value, callback) => {
47
+ if (value && encoderIdValue.value === -1)
48
+ callback(new Error($t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
49
+ callback()
50
+ },
51
+ trigger: ['blur', 'change'],
52
+ },
53
+ ])
22
54
  </script>
23
55
 
24
56
  <template>
@@ -26,22 +58,16 @@ const [GPUTagTemplate, ReuseGPUTagTemplate] = createReusableTemplate()
26
58
  <GPUTagTemplate v-slot="{ title }">
27
59
  <div>
28
60
  {{ title }}
29
- <el-tooltip
30
- class="box-item"
31
- effect="dark"
32
- :content="$t('GPU.requires_gpu_to_enable_this_feature')"
33
- placement="top"
34
- >
61
+ <el-tooltip class="box-item" effect="dark" :content="$t('GPU.requires_gpu_to_enable_this_feature')"
62
+ placement="top">
35
63
  <el-tag type="success" class="mx-2">
36
64
  GPU Only Feature
37
65
  </el-tag>
38
66
  </el-tooltip>
39
67
  </div>
40
68
  </GPUTagTemplate>
41
- <el-collapse
42
- v-model="activeNames"
43
- class="[&_.el-collapse-item\_\_content]:pb-16px [&_.el-collapse-item\_\_header]:(text-16px) ![&_.el-collapse-item\_\_header]:font-600"
44
- >
69
+ <el-collapse v-model="activeNames"
70
+ class="[&_.el-collapse-item\_\_content]:pb-16px [&_.el-collapse-item\_\_header]:(text-16px) ![&_.el-collapse-item\_\_header]:font-600">
45
71
  <el-collapse-item title="Ads detect" name="scte" class="custom-collapse-header">
46
72
  <template #title>
47
73
  <div class="flex flex-col items-start leading-4">
@@ -55,22 +81,35 @@ const [GPUTagTemplate, ReuseGPUTagTemplate] = createReusableTemplate()
55
81
  </el-collapse-item>
56
82
  <el-collapse-item name="censorship" class="custom-collapse-header">
57
83
  <template #title>
58
- <div class="flex flex-col items-start leading-4">
59
- <ReuseGPUTagTemplate :title="$t('base_library.censorship')" />
60
- <el-text class="break_work line-clamp-2 text-helper text-start">
61
- ({{ $t('base_library.detects_splash_screens_or_logos_to_trigger_automatic_blurring_for_compliance') }})
62
- </el-text>
84
+ <div>
85
+ <div class="flex flex-col items-start leading-4">
86
+ <ReuseGPUTagTemplate :title="$t('base_library.censorship')" />
87
+ <div>
88
+ <el-text class="break_work line-clamp-2 text-helper text-start">
89
+ ({{ $t('base_library.detects_splash_screens_or_logos_to_trigger_automatic_blurring_for_compliance')
90
+ }})
91
+ </el-text>
92
+ </div>
93
+ </div>
94
+ <el-form-item v-bind="enableCensorshipAttrs" />
63
95
  </div>
64
96
  </template>
65
97
  <LazySSChannelConfigCensorship />
66
98
  </el-collapse-item>
67
99
  <el-collapse-item title="Model PTE config" name="pte" class="custom-collapse-header">
68
100
  <template #title>
69
- <div class="flex flex-col items-start leading-4">
70
- <ReuseGPUTagTemplate title="Model PTE config" />
71
- <el-text class="break_work line-clamp-2 text-helper text-start">
72
- ({{ $t('base_libray.recommends_a_set_of_predefined_configuration_values_based_on_ai-driven_assessments_to_balance_video_quality_and_encoding_efficiency_ensuring_high_image_quality_while_maintaining_optimal_performance') }})
73
- </el-text>
101
+ <div class="pb-3">
102
+ <div class="flex flex-col items-start leading-4">
103
+ <ReuseGPUTagTemplate title="Model PTE config" />
104
+ <div>
105
+ <el-text class="break_work line-clamp-2 text-helper text-start">
106
+ ({{
107
+ $t('base_libray.recommends_a_set_of_predefined_configuration_values_based_on_ai-driven_assessments_to_balance_video_quality_and_encoding_efficiency_ensuring_high_image_quality_while_maintaining_optimal_performance')
108
+ }})
109
+ </el-text>
110
+ </div>
111
+ </div>
112
+ <el-form-item v-bind="enablePteAttrs" />
74
113
  </div>
75
114
  </template>
76
115
  <LazySSChannelConfigPte @change-global-pte="handleChangeGlobalPte" />
@@ -78,11 +117,16 @@ const [GPUTagTemplate, ReuseGPUTagTemplate] = createReusableTemplate()
78
117
 
79
118
  <el-collapse-item name="Forensic" class="custom-collapse-header">
80
119
  <template #title>
81
- <div class="flex flex-col items-start leading-4">
82
- <ReuseGPUTagTemplate title="Forensic Watermark" />
83
- <el-text class="break_work line-clamp-2 text-helper text-start">
84
- (DASH-IF Forensic A/B Watermarking An interoperable watermarking integration schema)
85
- </el-text>
120
+ <div>
121
+ <div class="flex flex-col items-start leading-4">
122
+ <ReuseGPUTagTemplate title="Forensic Watermark" />
123
+ <div>
124
+ <el-text class="break_work line-clamp-2 text-helper text-start">
125
+ (DASH-IF Forensic A/B Watermarking An interoperable watermarking integration schema)
126
+ </el-text>
127
+ </div>
128
+ </div>
129
+ <el-form-item v-bind="enableForensicAttrs" />
86
130
  </div>
87
131
  </template>
88
132
  <LazySSChannelConfigForensicWatermark />
@@ -95,6 +139,7 @@ const [GPUTagTemplate, ReuseGPUTagTemplate] = createReusableTemplate()
95
139
  .break_work {
96
140
  word-break: break-word !important;
97
141
  }
142
+
98
143
  .custom-collapse-header {
99
144
  --el-collapse-header-height: 70px;
100
145
  }
@@ -20,14 +20,14 @@ const { t } = useI18n()
20
20
  const [censorshipValue, censorshipAttrs] = useElField<boolean>('channelConfig.censorship')
21
21
  const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
22
22
  const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.censorship.enable', [
23
- {
24
- validator: (rule, value, callback) => {
25
- if (value && encoderIdValue.value === -1)
26
- callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
27
- callback()
28
- },
29
- trigger: ['blur', 'change'],
30
- },
23
+ // {
24
+ // validator: (rule, value, callback) => {
25
+ // if (value && encoderIdValue.value === -1)
26
+ // callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
27
+ // callback()
28
+ // },
29
+ // trigger: ['blur', 'change'],
30
+ // },
31
31
  ])
32
32
  const [machineConfigValue] = useElField<boolean>('channelConfig.machineConfig')
33
33
  const [modelValue, modelAttrs] = useElField<number>('channelConfig.censorship.model', [
@@ -225,7 +225,7 @@ const currentRowId = ref()
225
225
 
226
226
  <template>
227
227
  <div class="grid grid-cols-[2fr_2fr_12fr] gap-2">
228
- <el-form-item v-bind="enableAttrs" class="w-130px">
228
+ <el-form-item class="w-130px">
229
229
  <template #label>
230
230
  <SSInformationLabel :label="$t('SSConfig.form.label.enable')" :info="schemaObjCensorshipInfo.enable" />
231
231
  </template>
@@ -5,14 +5,14 @@ const { t } = useI18n()
5
5
 
6
6
  const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
7
7
  const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.forensicWatermarkConfig.enable', [
8
- {
9
- validator: (rule, value, callback) => {
10
- if (value && encoderIdValue.value === -1)
11
- callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
12
- callback()
13
- },
14
- trigger: ['blur', 'change'],
15
- },
8
+ // {
9
+ // validator: (rule, value, callback) => {
10
+ // if (value && encoderIdValue.value === -1)
11
+ // callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
12
+ // callback()
13
+ // },
14
+ // trigger: ['blur', 'change'],
15
+ // },
16
16
  ])
17
17
  const [typeValue, typeAttrs] = useElField<string>('channelConfig.forensicWatermarkConfig.type', {
18
18
  required: true,
@@ -50,7 +50,7 @@ onMounted(() => {
50
50
 
51
51
  <template>
52
52
  <div class="flex flex-wrap gap-48px">
53
- <el-form-item v-bind="enableAttrs" class="w-130px">
53
+ <el-form-item class="w-130px">
54
54
  <template #label>
55
55
  <SSInformationLabel :label="$t('SSConfig.form.label.enable')" :info="schemaObj.enable" />
56
56
  </template>
@@ -36,14 +36,14 @@ const [inputsValue] = useElField<boolean>('inputs')
36
36
  const [machineConfigValue] = useElField<boolean>('channelConfig.machineConfig')
37
37
  const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
38
38
  const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.pte.enable', [
39
- {
40
- validator: (rule, value, callback) => {
41
- if (value && encoderIdValue.value === -1)
42
- callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
43
- callback()
44
- },
45
- trigger: ['blur', 'change'],
46
- },
39
+ // {
40
+ // validator: (rule, value, callback) => {
41
+ // if (value && encoderIdValue.value === -1)
42
+ // callback(new Error(t('SSConfig.this_feature_is_only_supported_when_using_nvenc_please_switch_to_nvenc_or_disable_the_feature_to_continue')))
43
+ // callback()
44
+ // },
45
+ // trigger: ['blur', 'change'],
46
+ // },
47
47
  ])
48
48
  const [modelValue, modelAttrs] = useElField<string>('channelConfig.pte.path', [
49
49
  {
@@ -203,7 +203,7 @@ function handleChange(_newValue: boolean) {
203
203
  <VueJsonPretty :data="machineConfigValue" />
204
204
  </DevOnly>
205
205
  <div class="grid grid-cols-[2fr_2fr_12fr] gap-2">
206
- <el-form-item v-bind="enableAttrs">
206
+ <el-form-item class="w-130px">
207
207
  <template #label>
208
208
  <SSInformationLabel :label="$t('SSConfig.form.label.enable')" :info="schemaObjAdsInfo.enable" />
209
209
  </template>