master #18
|
@ -207,8 +207,6 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
</summary>
|
</summary>
|
||||||
<ul class="ccp-execution-list list-group" style="list-style:none">
|
<ul class="ccp-execution-list list-group" style="list-style:none">
|
||||||
<li class="ccp-execution-item ccp-archived-execution-item list-group-item-secondary my-2 p-2" draggable="true">
|
<li class="ccp-execution-item ccp-archived-execution-item list-group-item-secondary my-2 p-2" draggable="true">
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
<span name="version" class="badge badge-primary"></span>
|
<span name="version" class="badge badge-primary"></span>
|
||||||
<span name="status" class="ml-1 badge"></span>
|
<span name="status" class="ml-1 badge"></span>
|
||||||
<div class="d-flex float-right" style="gap: 3px 5px;flex-wrap:wrap;">
|
<div class="d-flex float-right" style="gap: 3px 5px;flex-wrap:wrap;">
|
||||||
|
@ -231,12 +229,10 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
<span name="updated"></span>:
|
<span name="updated"></span>:
|
||||||
<span name="message" class="ml-1"></span>
|
<span name="message" class="ml-1"></span>
|
||||||
</p>
|
</p>
|
||||||
</summary>
|
|
||||||
<div class="d-flex flex-wrap" style="gap:3px; overflow:hidden">
|
<div class="d-flex flex-wrap" style="gap:3px; overflow:hidden">
|
||||||
<span style="text-overflow:ellipsis" class="badge badge-light text-info border border-info" name="infrastructure" alt="${this.getLabel("infrastructure_help")}" title="${this.getLabel("infrastructure_help")}"></span>
|
<span style="text-overflow:ellipsis" class="badge badge-light text-info border border-info" name="infrastructure" alt="${this.getLabel("infrastructure_help")}" title="${this.getLabel("infrastructure_help")}"></span>
|
||||||
<span class="badge" name="runtime" alt="${this.getLabel("runtime_help")}" title="${this.getLabel("runtime_help")}"></span>
|
<span class="badge" name="runtime" alt="${this.getLabel("runtime_help")}" title="${this.getLabel("runtime_help")}"></span>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
@ -1002,21 +998,6 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
|
|
||||||
},
|
},
|
||||||
recurse : [
|
recurse : [
|
||||||
{
|
|
||||||
target : "details",
|
|
||||||
apply : (e,d)=>{
|
|
||||||
e.alt = e.title = d.id
|
|
||||||
if(sessionStorage.getItem("arch_" + d.id) === "open") e.open = "open";
|
|
||||||
else e.removeAttribute("open");
|
|
||||||
},
|
|
||||||
on_toggle : ev=>{
|
|
||||||
if(ev.target.open){
|
|
||||||
sessionStorage.setItem("arch_" + ev.currentTarget.alt, 'open')
|
|
||||||
}else{
|
|
||||||
sessionStorage.removeItem("arch_" + ev.currentTarget.alt)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
target : "span[name=version]",
|
target : "span[name=version]",
|
||||||
apply : (e,d)=>{
|
apply : (e,d)=>{
|
||||||
|
@ -1090,21 +1071,6 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
const t3 = !t2 && infratype.match(/galaxy/i) ? "galaxy" : t
|
const t3 = !t2 && infratype.match(/galaxy/i) ? "galaxy" : t
|
||||||
e.classList.add(t3)
|
e.classList.add(t3)
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
target : "button[name=codegen]",
|
|
||||||
apply : (e,d)=>e.setAttribute("data-index", d.id),
|
|
||||||
on_click: (ev)=>{
|
|
||||||
const id = ev.target.getAttribute("data-index")
|
|
||||||
const langsel = ev.target.parentElement.querySelector("select[name=language-selector]")
|
|
||||||
const lang = langsel.value
|
|
||||||
const ext = langsel.selectedOptions[0].getAttribute("data-ext")
|
|
||||||
this.generateCode(id, lang, `${id}.${ext}`)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
target : "a[name=direct_link_execution]",
|
|
||||||
apply : (e,d)=>e.href = window.location.origin + window.location.pathname + "?execution=" + d.id
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue