Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions docs/public/editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,22 +182,6 @@
transform: translateX(14px);
}

/* Copy feedback toast */
.copy-feedback {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 50;
opacity: 0;
transform: translateY(8px);
transition: opacity 200ms ease, transform 200ms ease;
pointer-events: none;
}
.copy-feedback.show {
opacity: 1;
transform: translateY(0);
}

/* Responsive */
@media (max-width: 767px) {
.panels-container { flex-direction: column !important; }
Expand Down Expand Up @@ -249,14 +233,6 @@
Compile
</button>

<button class="btn btn-sm" id="copyBtn" disabled title="Copy YAML to clipboard">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="flex-shrink-0">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"/>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"/>
</svg>
Copy
</button>

<button class="btn-octicon" id="themeToggle" title="Toggle theme" aria-label="Toggle dark mode">
<!-- Sun icon (shown in dark mode) -->
<svg class="icon-sun octicon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" style="display:none">
Expand Down Expand Up @@ -338,9 +314,6 @@
</div>
</div>
</div>

<!-- Copy feedback toast -->
<div class="copy-feedback color-bg-emphasis color-fg-on-emphasis border rounded-2 px-3 py-2 f6 box-shadow-large" id="copyFeedback">Copied to clipboard!</div>
</div>

<script type="module">
Expand Down Expand Up @@ -378,7 +351,6 @@
const outputPlaceholder = $('outputPlaceholder');
const outputContainer = $('outputContainer');
const compileBtn = $('compileBtn');
const copyBtn = $('copyBtn');
const statusBadge = $('statusBadge');
const statusText = $('statusText');
const statusDot = $('statusDot');
Expand Down Expand Up @@ -558,7 +530,6 @@
outputPlaceholder.style.display = 'flex';
outputPlaceholder.textContent = 'Compiled YAML will appear here';
currentYaml = '';
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The currentYaml variable is no longer used after removing the Copy button functionality. This variable was only read by the removed copy event handler. Consider removing the currentYaml variable declaration (line 378) and all its assignments (lines 532 and 553) to avoid maintaining unused state.

Copilot uses AI. Check for mistakes.
copyBtn.disabled = true;
return;
}

Expand All @@ -583,7 +554,6 @@
outputPre.textContent = result.yaml;
outputPre.style.display = 'block';
outputPlaceholder.style.display = 'none';
copyBtn.disabled = false;

if (result.warnings && result.warnings.length > 0) {
warningText.textContent = result.warnings.join('\n');
Expand All @@ -602,30 +572,6 @@

compileBtn.addEventListener('click', doCompile);

// ---------------------------------------------------------------
// Copy YAML
// ---------------------------------------------------------------
copyBtn.addEventListener('click', async () => {
if (!currentYaml) return;
try {
await navigator.clipboard.writeText(currentYaml);
const feedback = $('copyFeedback');
feedback.classList.add('show');
setTimeout(() => feedback.classList.remove('show'), 2000);
} catch (err) {
// Fallback
const ta = document.createElement('textarea');
ta.value = currentYaml;
document.body.appendChild(ta);
ta.select();
document.execCommand('copy');
document.body.removeChild(ta);
const feedback = $('copyFeedback');
feedback.classList.add('show');
setTimeout(() => feedback.classList.remove('show'), 2000);
}
});

// ---------------------------------------------------------------
// Banner close
// ---------------------------------------------------------------
Expand Down