Compare commits

..

No commits in common. "01acbcc47f8eed3082a96fee32ffaa527c3f4195" and "6213134a277b9aa991f65349741295eb60ec683e" have entirely different histories.

7 changed files with 9 additions and 19 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "twitch-vod-manager", "name": "twitch-vod-manager",
"version": "4.6.65", "version": "4.6.64",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "twitch-vod-manager", "name": "twitch-vod-manager",
"version": "4.6.65", "version": "4.6.64",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.0", "axios": "^1.6.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "twitch-vod-manager", "name": "twitch-vod-manager",
"version": "4.6.65", "version": "4.6.64",
"description": "Twitch VOD Manager - Download Twitch VODs easily", "description": "Twitch VOD Manager - Download Twitch VODs easily",
"main": "dist/main.js", "main": "dist/main.js",
"author": "xRangerDE", "author": "xRangerDE",

View File

@ -372,7 +372,7 @@
</div> </div>
<div class="progress-container" id="cutProgress"> <div class="progress-container" id="cutProgress">
<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-label="Cut progress" id="cutProgressGauge"> <div class="progress-bar">
<div class="progress-bar-fill" id="cutProgressBar"></div> <div class="progress-bar-fill" id="cutProgressBar"></div>
</div> </div>
<div class="progress-text" id="cutProgressText">0%</div> <div class="progress-text" id="cutProgressText">0%</div>
@ -404,7 +404,7 @@
</div> </div>
<div class="progress-container" id="mergeProgress"> <div class="progress-container" id="mergeProgress">
<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-label="Merge progress" id="mergeProgressGauge"> <div class="progress-bar">
<div class="progress-bar-fill" id="mergeProgressBar"></div> <div class="progress-bar-fill" id="mergeProgressBar"></div>
</div> </div>
<div class="progress-text" id="mergeProgressText">0%</div> <div class="progress-text" id="mergeProgressText">0%</div>

View File

@ -357,9 +357,7 @@ const UI_TEXT_DE = {
liveNowTooltip: 'Aktuell live auf Twitch', liveNowTooltip: 'Aktuell live auf Twitch',
modalCloseAria: 'Dialog schliessen', modalCloseAria: 'Dialog schliessen',
sidebarEmpty: 'Noch keine Streamer. Fuege oben rechts einen hinzu.', sidebarEmpty: 'Noch keine Streamer. Fuege oben rechts einen hinzu.',
removeAria: 'Entfernen', removeAria: 'Entfernen'
cutProgressAria: 'Schnitt-Fortschritt',
mergeProgressAria: 'Merge-Fortschritt'
}, },
vods: { vods: {
noneTitle: 'Keine VODs', noneTitle: 'Keine VODs',

View File

@ -357,9 +357,7 @@ const UI_TEXT_EN = {
liveNowTooltip: 'Currently live on Twitch', liveNowTooltip: 'Currently live on Twitch',
modalCloseAria: 'Close dialog', modalCloseAria: 'Close dialog',
sidebarEmpty: 'No streamers yet. Add one via the input at the top right.', sidebarEmpty: 'No streamers yet. Add one via the input at the top right.',
removeAria: 'Remove', removeAria: 'Remove'
cutProgressAria: 'Cut progress',
mergeProgressAria: 'Merge progress'
}, },
vods: { vods: {
noneTitle: 'No VODs', noneTitle: 'No VODs',

View File

@ -253,8 +253,6 @@ function applyLanguageToStaticUI(): void {
// Localize the modal close-button aria-label. The buttons share a // Localize the modal close-button aria-label. The buttons share a
// .modal-close-localizable class so one call updates all five. // .modal-close-localizable class so one call updates all five.
setAriaLabelAll('.modal-close-localizable', UI_TEXT.streamers.modalCloseAria); setAriaLabelAll('.modal-close-localizable', UI_TEXT.streamers.modalCloseAria);
document.getElementById('cutProgressGauge')?.setAttribute('aria-label', UI_TEXT.streamers.cutProgressAria);
document.getElementById('mergeProgressGauge')?.setAttribute('aria-label', UI_TEXT.streamers.mergeProgressAria);
setText('backupCardTitle', UI_TEXT.static.backupCardTitle); setText('backupCardTitle', UI_TEXT.static.backupCardTitle);
setText('backupCardIntro', UI_TEXT.static.backupCardIntro); setText('backupCardIntro', UI_TEXT.static.backupCardIntro);
setText('btnExportConfig', UI_TEXT.static.exportConfig); setText('btnExportConfig', UI_TEXT.static.exportConfig);

View File

@ -168,17 +168,13 @@ async function init(): Promise<void> {
}); });
window.api.onCutProgress((percent: number) => { window.api.onCutProgress((percent: number) => {
const rounded = Math.round(percent);
byId('cutProgressBar').style.width = percent + '%'; byId('cutProgressBar').style.width = percent + '%';
byId('cutProgressText').textContent = rounded + '%'; byId('cutProgressText').textContent = Math.round(percent) + '%';
byId('cutProgressGauge').setAttribute('aria-valuenow', String(rounded));
}); });
window.api.onMergeProgress((percent: number) => { window.api.onMergeProgress((percent: number) => {
const rounded = Math.round(percent);
byId('mergeProgressBar').style.width = percent + '%'; byId('mergeProgressBar').style.width = percent + '%';
byId('mergeProgressText').textContent = rounded + '%'; byId('mergeProgressText').textContent = Math.round(percent) + '%';
byId('mergeProgressGauge').setAttribute('aria-valuenow', String(rounded));
}); });
// Update stats bar — paused while the window is hidden so we don't // Update stats bar — paused while the window is hidden so we don't