master #4

Merged
m.lettere merged 3 commits from master into ccp-features 2023-06-07 17:37:49 +02:00
2 changed files with 8 additions and 4 deletions

View File

@ -80,7 +80,9 @@ class CCPExecutionForm extends HTMLElement{
<button id="execute_method_button" class="btn btn-info" style="width:inherit">Execute</button> <button id="execute_method_button" class="btn btn-info" style="width:inherit">Execute</button>
</div> </div>
<div class="col-6"> <div class="col-6">
<div class="d-flex" style="gap: 3px;"> <div class="">
<label>Generate code for:</label>
<div class="d-flex">
<select name="language-selector" class="form-control" style="padding:2px"> <select name="language-selector" class="form-control" style="padding:2px">
<option value="text/python" data-ext="py" title="Generate plain Python3">Python 3</option> <option value="text/python" data-ext="py" title="Generate plain Python3">Python 3</option>
<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>
@ -88,12 +90,13 @@ class CCPExecutionForm extends HTMLElement{
</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">
<path d="M320 814 80 574l242-242 43 43-199 199 197 197-43 43Zm318 2-43-43 199-199-197-197 43-43 240 240-242 242Z"/> <path d="M320 814 80 574l242-242 43 43-199 199 197 197-43 43Zm318 2-43-43 199-199-197-197 43-43 240 240-242 242Z"></path>
</svg> </svg>
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</div>
</form> </form>
</div> </div>
</template> </template>

View File

@ -114,8 +114,9 @@ class CCPExecutionHistory extends HTMLElement {
<ul> <ul>
<li></li> <li></li>
</ul> </ul>
<div class="d-flex float-right" style="gap: 3px;"> <div class="d-flex justify-content-end" style="gap: 3px;">
<select name="language-selector" class="form-control" style="height:inherit;padding:2px"> <label>Generate code for:</label>
<select name="language-selector" class="form-control" style="max-width:10rem;height:inherit;padding:2px">
<option value="text/python" data-ext="py" title="Generate plain Python3">Python 3</option> <option value="text/python" data-ext="py" title="Generate plain Python3">Python 3</option>
<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>