Revert "fix recipe editor?"

This reverts commit 16dfaf1d0d.
This commit is contained in:
Nicolò Balzarotti 2023-01-06 10:54:06 +01:00
parent 16dfaf1d0d
commit 5991765c60
3 changed files with 18 additions and 18 deletions

26
dist/server.js vendored
View File

@ -206,7 +206,7 @@ function edit_phase(phaseid) {
<label class="label">Phase Description</label> <label class="label">Phase Description</label>
<div class="control"> <div class="control">
<textarea class="textarea" placeholder="Phase Description" <textarea class="textarea" placeholder="Phase Description"
oninput="update_field('description', this.value)">{{description}}</textarea> oninput="update_field('text', this.value)">{{text}}</textarea>
</div> </div>
</div> </div>
@ -214,22 +214,22 @@ function edit_phase(phaseid) {
<label class="label">On Load</label> <label class="label">On Load</label>
<div class="control"> <div class="control">
<textarea <textarea
oninput="update_field('on_load', this.value)" oninput="update_field('onload', this.value)"
class="textarea" placeholder="#t">{{on_load}}</textarea> class="textarea" placeholder="#t">{{onload}}</textarea>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label">Next Condition</label> <label class="label">Next Condition</label>
<div class="control"> <div class="control">
<textarea oninput="update_field('exit_condition', this.value)" <textarea oninput="update_field('nextcond', this.value)"
class="textarea" placeholder="#t">{{exit_condition}}</textarea> class="textarea" placeholder="#t">{{nextcond}}</textarea>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label">On Exit</label> <label class="label">On Exit</label>
<div class="control"> <div class="control">
<textarea oninput="update_field('on_exit', this.value)" <textarea oninput="update_field('onexit', this.value)"
class="textarea" placeholder="#t">{{on_exit}}</textarea> class="textarea" placeholder="#t">{{onexit}}</textarea>
</div> </div>
</div> </div>
@ -294,9 +294,9 @@ Controllers:<br/>
<br><br> <br><br>
<div class="content"><h4>{{name}}</h4></div> <div class="content"><h4>{{name}}</h4></div>
{{text}}<br> {{text}}<br>
On Load: {{on_load}}<br> On Load: {{onload}}<br>
Exit When: {{exit_condition}}<br> Exit When: {{nextcond}}<br>
On Exit: {{on_exit}}<br> On Exit: {{onexit}}<br>
{{/phases}} {{/phases}}
{{/selected_recipe}} {{/selected_recipe}}
</div> </div>
@ -337,11 +337,11 @@ function current_recipe(data) {
{{current_phase.text}} {{current_phase.text}}
<br/> <br/>
<br/> <br/>
Next Cond: {{current_phase.exit_condition}} Next Cond: {{current_phase.nextcond}}
<br/> <br/>
On Load: {{current_phase.on_load}} On Load: {{current_phase.onload}}
<br/> <br/>
On Exit: {{current_phase.on_exit}} On Exit: {{current_phase.onexit}}
</div> </div>
<footer class="card-footer"> <footer class="card-footer">
<!-- <a class="card-footer-item is-primary">Pause</a> --> <!-- <a class="card-footer-item is-primary">Pause</a> -->

View File

@ -8,7 +8,7 @@
"phases": [ "phases": [
{ {
"name": "Hold", "name": "Hold",
"description": "Keep 23°C", "description": "Keep 23\u00b0C",
"exit_condition": "(> (time-in-this-phase) (hours 10))", "exit_condition": "(> (time-in-this-phase) (hours 10))",
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))", "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))",
"on_exit": "#t" "on_exit": "#t"
@ -24,8 +24,8 @@
"phases": [ "phases": [
{ {
"name": "Hold", "name": "Hold",
"description": "Keep 35°C", "description": "Keep 35\u00b0C",
"exit_condition": "(> (time-in-this-phase) (hours 1.5))", "exit_condition": "(> (time-in-this-phase) (hours 17))",
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))", "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))",
"on_exit": "#t" "on_exit": "#t"
} }
@ -33,7 +33,7 @@
}, },
{ {
"name": "Yogurt", "name": "Yogurt",
"description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che è pronto.", "description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che \u00e8 pronto.",
"controllers": [ "controllers": [
"(make-duty-controller \"heater\" 0.20 120)" "(make-duty-controller \"heater\" 0.20 120)"
], ],

View File

@ -26,7 +26,7 @@
<label class="label">Description</label> <label class="label">Description</label>
<div class="control"> <div class="control">
<textarea class="textarea" placeholder="Recipe Description"> <textarea class="textarea" placeholder="Recipe Description">
{{recipe.description}} {{recipe.description}}
</textarea> </textarea>
</div> </div>
</div> </div>