- Fix repair bugs
- Minor html/js bugs from new template - Other minor issues
This commit is contained in:
@@ -388,7 +388,7 @@ class ConfigManager {
|
||||
</label>
|
||||
<input type="number" class="input input-bordered webdav-field"
|
||||
name="debrid[${index}].workers" id="debrid[${index}].workers"
|
||||
placeholder="50" value="50">
|
||||
placeholder="50">
|
||||
<div class="label">
|
||||
<span class="label-text-alt">Number of concurrent workers</span>
|
||||
</div>
|
||||
@@ -1201,9 +1201,4 @@ class ConfigManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.configManager = new ConfigManager();
|
||||
});
|
||||
}
|
||||
@@ -556,9 +556,4 @@ class TorrentDashboard {
|
||||
};
|
||||
return text ? text.replace(/[&<>"']/g, (m) => map[m]) : '';
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize dashboard when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.dashboard = new TorrentDashboard();
|
||||
});
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// Download page functionality
|
||||
class DownloadManager {
|
||||
constructor() {
|
||||
this.downloadFolder = '{{ .DownloadFolder }}' || '';
|
||||
constructor(downloadFolder) {
|
||||
this.downloadFolder = downloadFolder;
|
||||
this.refs = {
|
||||
downloadForm: document.getElementById('downloadForm'),
|
||||
magnetURI: document.getElementById('magnetURI'),
|
||||
@@ -242,9 +242,4 @@ class DownloadManager {
|
||||
window.decypharrUtils.createToast('Please drop .torrent files only', 'warning');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize download manager when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.downloadManager = new DownloadManager();
|
||||
});
|
||||
}
|
||||
@@ -130,11 +130,6 @@ class RepairManager {
|
||||
const arr = this.refs.arrSelect.value;
|
||||
const mediaIdsValue = this.refs.mediaIds.value.trim();
|
||||
|
||||
if (!arr) {
|
||||
window.decypharrUtils.createToast('Please select an Arr instance', 'warning');
|
||||
return;
|
||||
}
|
||||
|
||||
const mediaIds = mediaIdsValue ?
|
||||
mediaIdsValue.split(',').map(id => id.trim()).filter(Boolean) :
|
||||
[];
|
||||
@@ -1105,15 +1100,4 @@ const RepairUtils = {
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize repair manager when DOM is ready
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.repairManager = new RepairManager();
|
||||
window.RepairUtils = RepairUtils;
|
||||
});
|
||||
|
||||
// Export for ES6 modules if needed
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = { RepairManager, RepairUtils };
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user