Merge pull request 'master' (#11) from master into prod
Reviewed-on: #11
This commit is contained in:
commit
a51e2cd358
|
@ -111,6 +111,8 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
<option value="text/plain+r" data-ext="r" title="Generate plain R">R</option>
|
<option value="text/plain+r" data-ext="r" title="Generate plain R">R</option>
|
||||||
<option value="application/vnd.jupyter+python" data-ext="ipynb" title="Generate Jupyter notebook with Python 3 cells">Jupyter Python3</option>
|
<option value="application/vnd.jupyter+python" data-ext="ipynb" title="Generate Jupyter notebook with Python 3 cells">Jupyter Python3</option>
|
||||||
<option value="text/julia" data-ext="jl" title="Generate Julia 1.9.0 code (HTTP 1.10.0, JSON3 1.13.2)">Julia 1.9.0</option>
|
<option value="text/julia" data-ext="jl" title="Generate Julia 1.9.0 code (HTTP 1.10.0, JSON3 1.13.2)">Julia 1.9.0</option>
|
||||||
|
<option value="application/x-sh+curl" data-ext="sh" title="Generate Bash script (curl)">Bash (curl)</option>
|
||||||
|
<option value="application/x-sh+wget" data-ext="sh" title="Generate Bash script (wget)">Bash (wget)</option>
|
||||||
</select>
|
</select>
|
||||||
<button name="codegen" title="Generate code" class="btn btn-primary ccp-toolbar-button ccp-toolbar-button-small">
|
<button name="codegen" title="Generate code" class="btn btn-primary ccp-toolbar-button ccp-toolbar-button-small">
|
||||||
<svg viewBox="0 96 960 960">
|
<svg viewBox="0 96 960 960">
|
||||||
|
@ -120,9 +122,8 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>Direct link</label>
|
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<a name="direct_link_method" href="${window.location.href}">${window.location.href}</a>
|
<a name="direct_link_method" class="text-truncate" href="${window.location.href}">Direct link</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -430,7 +431,7 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
target: "a[name=direct_link_method]",
|
target: "a[name=direct_link_method]",
|
||||||
apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?method=" + d.id
|
apply : (e,d)=>e.href = window.location.origin + window.location.pathname + "?method=" + d.id
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,6 +127,8 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
<option value="text/plain+r" data-ext="r" title="Generate plain R">R</option>
|
<option value="text/plain+r" data-ext="r" title="Generate plain R">R</option>
|
||||||
<option value="application/vnd.jupyter+python" data-ext="ipynb" title="Generate Jupyter notebook with Python 3 cells">Jupyter Python3</option>
|
<option value="application/vnd.jupyter+python" data-ext="ipynb" title="Generate Jupyter notebook with Python 3 cells">Jupyter Python3</option>
|
||||||
<option value="text/julia" data-ext="jl" title="Generate Julia 1.9.0 code (HTTP 1.10.0, JSON3 1.13.2)">Julia 1.9.0</option>
|
<option value="text/julia" data-ext="jl" title="Generate Julia 1.9.0 code (HTTP 1.10.0, JSON3 1.13.2)">Julia 1.9.0</option>
|
||||||
|
<option value="application/x-sh+curl" data-ext="sh" title="Generate Bash script (curl)">Bash (curl)</option>
|
||||||
|
<option value="application/x-sh+wget" data-ext="sh" title="Generate Bash script (wget)">Bash (wget)</option>
|
||||||
</select>
|
</select>
|
||||||
<button data-index="0" name="codegen" title="Generate code" class="btn btn-primary ccp-toolbar-button ccp-toolbar-button-small">
|
<button data-index="0" name="codegen" title="Generate code" class="btn btn-primary ccp-toolbar-button ccp-toolbar-button-small">
|
||||||
<svg viewBox="0 96 960 960">
|
<svg viewBox="0 96 960 960">
|
||||||
|
@ -136,7 +138,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-items-middle" style="gap:5px">
|
<div class="d-flex align-items-middle" style="gap:5px">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<a name="direct_link_execution" href="${window.location.href}">${window.location.href}</a>
|
<a class="text-truncate" name="direct_link_execution" href="${window.location.href}">Direct link</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -667,7 +669,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
target : "a[name=direct_link_execution]",
|
target : "a[name=direct_link_execution]",
|
||||||
apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?execution=" + d.id
|
apply : (e,d)=>e.href = window.location.origin + window.location.pathname + "?execution=" + d.id
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
target : "div[name=logterminalcontainer]",
|
target : "div[name=logterminalcontainer]",
|
||||||
|
|
Loading…
Reference in New Issue