readme
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s

This commit is contained in:
2025-06-21 14:22:34 +02:00
parent 1054820ce7
commit 82f4f5a07d
2 changed files with 229 additions and 81 deletions

View File

@@ -584,31 +584,11 @@ export default function AdminPage() {
</div>
)}
<button
onClick={() => {
if (isDocker) {
handleExportTarball();
} else {
// Custom popup for local server message
const dockerSupportPopup = document.createElement('div');
dockerSupportPopup.innerHTML = ' Exporting from local server isn\'t supported, please pull from the server\'s Filesystem';
dockerSupportPopup.style.position = 'fixed';
dockerSupportPopup.style.top = '50%';
dockerSupportPopup.style.left = '50%';
dockerSupportPopup.style.transform = 'translate(-50%, -50%)';
dockerSupportPopup.style.backgroundColor = 'white';
dockerSupportPopup.style.padding = '20px';
dockerSupportPopup.style.borderRadius = '5px';
dockerSupportPopup.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.2)';
dockerSupportPopup.style.zIndex = '1000';
document.body.appendChild(dockerSupportPopup);
setTimeout(() => {
document.body.removeChild(dockerSupportPopup);
}, 3000);
}
}}
onClick={handleExportTarball}
className="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700"
title="Export Docker Posts"
>
Export Docker Posts
Export Posts
</button>
</div>
</div>