mirror of
https://github.com/kodxana/madiator-docker-runpod.git
synced 2024-12-04 23:40:13 +01:00
Compare commits
No commits in common. "63a67b2eb6b197a907101e3bed4df0564a38a6a0" and "ae6b5014ff6ccdd2dedd7a2d2e74b90d355bcbde" have entirely different histories.
63a67b2eb6
...
ae6b5014ff
2 changed files with 31 additions and 37 deletions
|
@ -2403,7 +2403,6 @@
|
|||
{% for app_key, app_info in apps.items() %}
|
||||
<div class="app">
|
||||
<h2>{{ app_info.name }}</h2>
|
||||
{% if app_status[app_key]['installed'] %}
|
||||
<div class="button-group">
|
||||
<button onclick="startApp('{{ app_key }}')" id="start-{{ app_key }}" class="start-button" {% if app_status[app_key]['status'] == 'running' %}disabled{% endif %}>
|
||||
<i class="fas fa-play"></i> Start
|
||||
|
@ -2421,39 +2420,17 @@
|
|||
<i class="fas fa-times-circle"></i> Force Kill
|
||||
</button>
|
||||
</div>
|
||||
{% if app_key == 'bcomfy' %}
|
||||
{% if app_key == 'bcomfy' and app_status[app_key]['installed'] %}
|
||||
<button onclick="fixCustomNodes('{{ app_key }}')" id="fix-custom-nodes-{{ app_key }}" class="fix-custom-nodes-button">
|
||||
<i class="fas fa-wrench"></i> Fix Custom Nodes
|
||||
</button>
|
||||
{% endif %}
|
||||
<div class="status">Status: {{ app_status[app_key]['status'] }}</div>
|
||||
{% else %}
|
||||
<div class="install-container">
|
||||
<button onclick="installApp('{{ app_key }}')" id="install-{{ app_key }}" class="install-button">
|
||||
<i class="fas fa-download"></i> Install
|
||||
</button>
|
||||
<div id="install-progress-{{ app_key }}" class="install-progress" style="display: none;">
|
||||
<div class="progress-container">
|
||||
<div class="progress-label">Download Progress:</div>
|
||||
<div class="progress-bar">
|
||||
<div class="progress-bar-fill download-progress" style="width: 0%">0%</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="progress-container">
|
||||
<div class="progress-label">Unpack Progress:</div>
|
||||
<div class="progress-bar">
|
||||
<div class="progress-bar-fill unpack-progress" style="width: 0%">0%</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="download-info">
|
||||
<span class="download-speed"></span>
|
||||
<span class="download-eta"></span>
|
||||
</div>
|
||||
<div class="install-stage"></div>
|
||||
</div>
|
||||
<div id="install-logs-{{ app_key }}" class="install-logs" style="display: none;"></div>
|
||||
</div>
|
||||
{% if not app_status[app_key]['installed'] %}
|
||||
<button onclick="installApp('{{ app_key }}')" id="install-{{ app_key }}" class="install-button">
|
||||
<i class="fas fa-download"></i> Install
|
||||
</button>
|
||||
{% endif %}
|
||||
<div class="status">Status: {{ app_status[app_key]['status'] }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
@ -3498,7 +3475,7 @@
|
|||
//loadHFToken(); // lutzapps - added HF_TOKEN Support
|
||||
} else if (tabName === 'settings-tab') {
|
||||
loadSshDetails();
|
||||
// Remove updateFileBrowserStatus() from here
|
||||
updateFileBrowserStatus();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3604,26 +3581,43 @@
|
|||
const response = await fetch(`/${action}_filebrowser`);
|
||||
const result = await response.json();
|
||||
if (result.status === 'started' || result.status === 'stopped') {
|
||||
// Remove updateFileBrowserStatus() from here
|
||||
updateFileBrowserStatus();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error controlling File Browser:', error);
|
||||
}
|
||||
}
|
||||
|
||||
function updateFileBrowserStatus() {
|
||||
fetch('/filebrowser_status')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const statusElement = document.getElementById('filebrowser-status');
|
||||
if (statusElement) {
|
||||
statusElement.textContent = data.status;
|
||||
}
|
||||
const startButton = document.getElementById('start-filebrowser');
|
||||
const stopButton = document.getElementById('stop-filebrowser');
|
||||
if (startButton && stopButton) {
|
||||
startButton.disabled = (data.status === 'running');
|
||||
stopButton.disabled = (data.status === 'stopped');
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Error updating File Browser status:', error));
|
||||
}
|
||||
|
||||
// Reduce the frequency of status updates
|
||||
// Remove this interval
|
||||
// setInterval(updateFileBrowserStatus, 30000); // Check every 30 seconds instead of 5 seconds
|
||||
setInterval(updateFileBrowserStatus, 30000); // Check every 30 seconds instead of 5 seconds
|
||||
|
||||
// Update the DOMContentLoaded event listener
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
loadSshDetails();
|
||||
updateFileBrowserStatus();
|
||||
// ... (other initialization code)
|
||||
});
|
||||
// Update the Settings tab click handler
|
||||
// Call this function when the Settings tab is opened
|
||||
document.querySelector('.navbar-tabs a[onclick="openTab(event, \'settings-tab\')"]').addEventListener('click', function() {
|
||||
loadSshDetails();
|
||||
// Remove updateFileBrowserStatus() from here
|
||||
updateFileBrowserStatus();
|
||||
});
|
||||
|
||||
async function installApp(appKey) {
|
||||
|
|
|
@ -34,7 +34,7 @@ app_configs = {
|
|||
'repo_url': 'https://github.com/comfyanonymous/ComfyUI.git',
|
||||
'branch_name': '', # empty branch_name means default = 'master'
|
||||
'commit': '', # or commit hash (NYI)
|
||||
'clone_recursive': False,
|
||||
'recursive': False,
|
||||
'refresh': False,
|
||||
'custom_nodes': [ # following custom_nodes will be git cloned and installed with "pip install -r requirements.txt" (in Testing)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue