@sigmaott/base-library-next 2.2.6 → 2.2.7
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/.npmrc +3 -0
- package/locales/en.yaml +289 -289
- package/locales/vi.yaml +294 -294
- package/nuxt.config.ts +18 -18
- package/package.json +32 -33
- package/public/routes.json +33 -33
- package/src/api/axios.ts +3 -3
- package/src/api/index.ts +86 -86
- package/src/api-client-library/.openapi-generator/FILES +20 -20
- package/src/api-client-library/.openapi-generator-ignore +23 -23
- package/src/api-client-library/api/health-api.ts +119 -119
- package/src/api-client-library/api/presets-api.ts +599 -599
- package/src/api-client-library/api/profiles-api.ts +676 -676
- package/src/api-client-library/api.ts +20 -20
- package/src/api-client-library/base.ts +72 -72
- package/src/api-client-library/common.ts +150 -150
- package/src/api-client-library/configuration.ts +101 -101
- package/src/api-client-library/git_push.sh +57 -57
- package/src/api-client-library/index.ts +18 -18
- package/src/api-client-library/models/create-preset-dto.ts +223 -223
- package/src/api-client-library/models/create-profile-dto.ts +45 -45
- package/src/api-client-library/models/health-controller-get-health200-response-info-value.ts +32 -32
- package/src/api-client-library/models/health-controller-get-health200-response.ts +51 -51
- package/src/api-client-library/models/health-controller-get-health503-response.ts +51 -51
- package/src/api-client-library/models/index.ts +7 -7
- package/src/api-client-library/models/update-preset-dto.ts +223 -223
- package/src/api-client-library/models/update-profile-dto.ts +45 -45
- package/src/components/MediaSelection.vue +40 -40
- package/src/components/PresetModify.vue +154 -154
- package/src/components/PresetTable.vue +114 -114
- package/src/components/ProfileAllList.vue +137 -137
- package/src/components/ProfileFormModal.vue +79 -79
- package/src/components/ProfileModify.vue +152 -152
- package/src/components/ProfileTable.vue +68 -68
- package/src/components/WatermarkDraggableItem.vue +88 -88
- package/src/components/channel/ConfigWatermarkItem.vue +239 -239
- package/src/components/channel/WatermarkPreview.vue +19 -19
- package/src/components/common/Vue3DraggableResizable/Container.vue +71 -71
- package/src/components/common/Vue3DraggableResizable/index.vue +1327 -1327
- package/src/components/common/Vue3DraggableResizable/utils/dom.js +63 -63
- package/src/components/common/Vue3DraggableResizable/utils/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/dom.js +63 -63
- package/src/components/common/VueDraggableResizable/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/index.vue +958 -958
- package/src/components/preset/ConfigItem.vue +956 -956
- package/src/components/profile/ConfigItem.vue +765 -765
- package/src/components/profile/TableColumns.vue +137 -137
- package/src/components/shared/AudioInfoViewer.vue +101 -101
- package/src/components/shared/MediaInfoViewer.vue +249 -249
- package/src/components/shared/MediaInfoViewerSmall.vue +111 -105
- package/src/components/shared/PopoverProfile.vue +17 -17
- package/src/components/shared/VideoInfoViewer.vue +136 -136
- package/src/components/shared/fileSizeFilter.ts +26 -26
- package/src/composables/preset.ts +141 -141
- package/src/public/build-time.json +1 -1
- package/src/public/favicon.svg +15 -15
- package/src/public/logo.svg +9 -9
- package/src/public/routes.json +86 -86
- package/src/utils/common.ts +175 -175
- package/src/utils/config.ts +19 -19
- package/src/utils/preset.ts +353 -353
- package/src/utils/profile.ts +30 -30
- package/tsconfig.json +3 -3
package/src/utils/profile.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { normalizePreset, serializePreset } from './preset'
|
|
2
|
-
|
|
3
|
-
export function normalizeProfile(data) {
|
|
4
|
-
const normalizedData = klona(data)
|
|
5
|
-
const presets = (data && data.presets) || []
|
|
6
|
-
for (let i = presets.length - 1; i >= 0; i--) {
|
|
7
|
-
const tmp = normalizePreset(presets[i])
|
|
8
|
-
if (!(normalizedData[tmp.type] || Array.isArray(normalizedData[tmp.type])))
|
|
9
|
-
normalizedData[tmp.type] = []
|
|
10
|
-
|
|
11
|
-
normalizedData[tmp.type].push(tmp)
|
|
12
|
-
normalizedData.presets[i] = tmp
|
|
13
|
-
}
|
|
14
|
-
return normalizedData
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function serializeProfile(data) {
|
|
18
|
-
const profile = klona(data)
|
|
19
|
-
const presetTypes = ['video', 'audio', 'data']
|
|
20
|
-
const parsedPresets = []
|
|
21
|
-
presetTypes.forEach((type) => {
|
|
22
|
-
const presets = (profile && profile[type]) || []
|
|
23
|
-
presets.forEach((preset) => {
|
|
24
|
-
const parsedPreset = serializePreset(preset)
|
|
25
|
-
parsedPresets.push(parsedPreset)
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
profile.presets = parsedPresets
|
|
29
|
-
return profile
|
|
30
|
-
}
|
|
1
|
+
import { normalizePreset, serializePreset } from './preset'
|
|
2
|
+
|
|
3
|
+
export function normalizeProfile(data) {
|
|
4
|
+
const normalizedData = klona(data)
|
|
5
|
+
const presets = (data && data.presets) || []
|
|
6
|
+
for (let i = presets.length - 1; i >= 0; i--) {
|
|
7
|
+
const tmp = normalizePreset(presets[i])
|
|
8
|
+
if (!(normalizedData[tmp.type] || Array.isArray(normalizedData[tmp.type])))
|
|
9
|
+
normalizedData[tmp.type] = []
|
|
10
|
+
|
|
11
|
+
normalizedData[tmp.type].push(tmp)
|
|
12
|
+
normalizedData.presets[i] = tmp
|
|
13
|
+
}
|
|
14
|
+
return normalizedData
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function serializeProfile(data) {
|
|
18
|
+
const profile = klona(data)
|
|
19
|
+
const presetTypes = ['video', 'audio', 'data']
|
|
20
|
+
const parsedPresets = []
|
|
21
|
+
presetTypes.forEach((type) => {
|
|
22
|
+
const presets = (profile && profile[type]) || []
|
|
23
|
+
presets.forEach((preset) => {
|
|
24
|
+
const parsedPreset = serializePreset(preset)
|
|
25
|
+
parsedPresets.push(parsedPreset)
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
profile.presets = parsedPresets
|
|
29
|
+
return profile
|
|
30
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./.nuxt/tsconfig.json"
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./.nuxt/tsconfig.json"
|
|
3
|
+
}
|