This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new e9d47d6  Remove an unused clipboard copying script
e9d47d6 is described below

commit e9d47d683e5cd3c58674082a960829912261ce8a
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Dec 10 15:44:41 2025 +0000

    Remove an unused clipboard copying script
---
 atr/render.py | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/atr/render.py b/atr/render.py
index 635b8b4..f1fab17 100644
--- a/atr/render.py
+++ b/atr/render.py
@@ -71,29 +71,6 @@ def body_tabs(
     return htm.div[tabs.collect(), tab_content]
 
 
-def copy_javascript() -> str:
-    # TODO: We need to ensure that all JS files are standalone
-    # We have far too many embedded snippets
-    return """
-        document.querySelectorAll(".copy-var-btn").forEach(btn => {
-            btn.addEventListener("click", () => {
-                const variable = btn.dataset.variable;
-                navigator.clipboard.writeText(variable).then(() => {
-                    const originalText = btn.textContent;
-                    btn.textContent = "Copied!";
-                    btn.classList.remove("btn-outline-secondary");
-                    btn.classList.add("btn-success");
-                    setTimeout(() => {
-                        btn.textContent = originalText;
-                        btn.classList.remove("btn-success");
-                        btn.classList.add("btn-outline-secondary");
-                    }, 1500);
-                });
-            });
-        });
-    """
-
-
 def _variables_tab(
     tab_id_prefix: str,
     template_variables: list[tuple[str, str]],


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to