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

View File

@ -8,7 +8,7 @@
"phases": [
{
"name": "Hold",
"description": "Keep 23°C",
"description": "Keep 23\u00b0C",
"exit_condition": "(> (time-in-this-phase) (hours 10))",
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))",
"on_exit": "#t"
@ -24,8 +24,8 @@
"phases": [
{
"name": "Hold",
"description": "Keep 35°C",
"exit_condition": "(> (time-in-this-phase) (hours 1.5))",
"description": "Keep 35\u00b0C",
"exit_condition": "(> (time-in-this-phase) (hours 17))",
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))",
"on_exit": "#t"
}
@ -33,7 +33,7 @@
},
{
"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": [
"(make-duty-controller \"heater\" 0.20 120)"
],