Spaces:
Sleeping
Sleeping
Commit ·
77accfa
1
Parent(s): 6f3f7da
Removed deploy button from alternative UI templates (glassui, code)
Browse files- code.html +1 -4
- glassui.html +3 -25
code.html
CHANGED
|
@@ -59,10 +59,7 @@
|
|
| 59 |
<span class="text-xs text-primary/60 font-medium uppercase tracking-wider">Enterprise Edition</span>
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
-
|
| 63 |
-
<span class="material-symbols-outlined mr-2 text-lg">rocket_launch</span>
|
| 64 |
-
<span class="truncate">Deploy</span>
|
| 65 |
-
</button>
|
| 66 |
</header>
|
| 67 |
<main class="flex-1 flex overflow-hidden">
|
| 68 |
<div class="flex-1 flex flex-col border-r border-border-dark min-w-[400px] overflow-y-auto custom-scrollbar p-8">
|
|
|
|
| 59 |
<span class="text-xs text-primary/60 font-medium uppercase tracking-wider">Enterprise Edition</span>
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
+
|
|
|
|
|
|
|
|
|
|
| 63 |
</header>
|
| 64 |
<main class="flex-1 flex overflow-hidden">
|
| 65 |
<div class="flex-1 flex flex-col border-r border-border-dark min-w-[400px] overflow-y-auto custom-scrollbar p-8">
|
glassui.html
CHANGED
|
@@ -147,11 +147,7 @@
|
|
| 147 |
</div>
|
| 148 |
</div>
|
| 149 |
</div>
|
| 150 |
-
|
| 151 |
-
<div class="absolute inset-0 bg-white/10 opacity-0 group-hover:opacity-100 transition-opacity"></div>
|
| 152 |
-
<span class="material-symbols-outlined lg:mr-2 text-lg relative z-10">rocket_launch</span>
|
| 153 |
-
<span class="hidden lg:inline truncate text-sm font-bold tracking-wide relative z-10">Deploy</span>
|
| 154 |
-
</button>
|
| 155 |
</div>
|
| 156 |
</header>
|
| 157 |
<main class="flex-1 flex flex-col lg:flex-row relative z-10">
|
|
@@ -297,7 +293,7 @@
|
|
| 297 |
const fileInput = document.getElementById('fileInput');
|
| 298 |
const startBtn = document.getElementById('startBtn');
|
| 299 |
const jsonOutput = document.getElementById('jsonOutput');
|
| 300 |
-
|
| 301 |
const copyBtn = document.getElementById('copyBtn');
|
| 302 |
const copyIcon = document.getElementById('copyIcon');
|
| 303 |
const downloadBtn = document.getElementById('downloadBtn');
|
|
@@ -378,25 +374,7 @@
|
|
| 378 |
dropZone.innerHTML = defaultDropZoneContent;
|
| 379 |
initDropZone();
|
| 380 |
}
|
| 381 |
-
|
| 382 |
-
if (!isCatalogGenerated) {
|
| 383 |
-
alert("Please generate a catalog first before deploying.");
|
| 384 |
-
return;
|
| 385 |
-
}
|
| 386 |
-
const originalContent = deployBtn.innerHTML;
|
| 387 |
-
deployBtn.disabled = true;
|
| 388 |
-
deployBtn.innerHTML = `
|
| 389 |
-
<svg class="animate-spin h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
| 390 |
-
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
| 391 |
-
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
| 392 |
-
</svg>
|
| 393 |
-
`;
|
| 394 |
-
setTimeout(() => {
|
| 395 |
-
alert("Success: Catalog pushed to storefront!");
|
| 396 |
-
deployBtn.innerHTML = originalContent;
|
| 397 |
-
deployBtn.disabled = false;
|
| 398 |
-
}, 1500);
|
| 399 |
-
});
|
| 400 |
copyBtn.addEventListener('click', () => {
|
| 401 |
const textToCopy = jsonOutput.innerText;
|
| 402 |
navigator.clipboard.writeText(textToCopy).then(() => {
|
|
|
|
| 147 |
</div>
|
| 148 |
</div>
|
| 149 |
</div>
|
| 150 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
</div>
|
| 152 |
</header>
|
| 153 |
<main class="flex-1 flex flex-col lg:flex-row relative z-10">
|
|
|
|
| 293 |
const fileInput = document.getElementById('fileInput');
|
| 294 |
const startBtn = document.getElementById('startBtn');
|
| 295 |
const jsonOutput = document.getElementById('jsonOutput');
|
| 296 |
+
|
| 297 |
const copyBtn = document.getElementById('copyBtn');
|
| 298 |
const copyIcon = document.getElementById('copyIcon');
|
| 299 |
const downloadBtn = document.getElementById('downloadBtn');
|
|
|
|
| 374 |
dropZone.innerHTML = defaultDropZoneContent;
|
| 375 |
initDropZone();
|
| 376 |
}
|
| 377 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 378 |
copyBtn.addEventListener('click', () => {
|
| 379 |
const textToCopy = jsonOutput.innerText;
|
| 380 |
navigator.clipboard.writeText(textToCopy).then(() => {
|