feat: add toolbar + notifications

This commit is contained in:
2025-04-30 15:34:21 +02:00
committed by Louis Heredero
parent 609b32d09a
commit fef6c727cb
8 changed files with 285 additions and 35 deletions

View File

@ -78,7 +78,7 @@ class MismatchCorrection {
export default class IntegrityManager {
IGNORE_KEYS = [
"type", "channels"
"type", "channels_details"
]
/**
@ -136,11 +136,17 @@ export default class IntegrityManager {
}
checkIntegrity() {
this.ignoreList = []
this.mismatches = []
for (const table of Object.values(this.editor.tables)) {
this.checkTableIntegrity(table)
}
if (this.mismatches.length === 0) {
return true
}
this.nextError()
return false
}
/**
@ -198,7 +204,7 @@ export default class IntegrityManager {
const channels = lower.match(/\d+\.\d+/)
if (channels) {
fields.channels = channels[0]
fields.channels_details = channels[0]
}
break
@ -297,8 +303,8 @@ export default class IntegrityManager {
if (fields.flags.visual_impaired) {
name += " AD"
}
if (fields.channels) {
name += " / " + fields.channels
if (fields.channels_details) {
name += " / " + fields.channels_details
}
break
case "subtitle":
@ -345,6 +351,14 @@ export default class IntegrityManager {
}
return input
}
improveAllNames() {
for (const table of Object.values(this.editor.tables)) {
for (const track of table.tracks) {
this.improveName(track)
}
}
}
/**
*