Atualização automática: 2026-05-18 17:10:08

This commit is contained in:
Hermes
2026-05-18 17:10:08 +00:00
parent 8ac0979c67
commit 700c47277d
4 changed files with 155 additions and 34 deletions
+10 -8
View File
@@ -418,20 +418,22 @@ document.addEventListener('DOMContentLoaded', function() {
// Funções para gerenciar sites clonados
function openCloneFolder(directory) {
// Tentar abrir a pasta no explorador do Windows
fetch('/api/open-folder', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ path: directory })
}).then(response => {
if (!response.ok) {
alert('Não foi possível abrir a pasta automaticamente.\nLocalização: ' + directory);
}
}).catch(error => {
alert('Não foi possível abrir a pasta automaticamente.\nLocalização: ' + directory);
});
}).then(response => response.json())
.then(data => {
if (data.success && data.url) {
window.open(data.url, '_blank');
} else {
alert('Não foi possível abrir a pasta.\nLocalização: ' + directory);
}
}).catch(error => {
alert('Não foi possível abrir a pasta.\nLocalização: ' + directory);
});
}
function openClonedSite(directory) {