Skip to content

Commit

Permalink
feat (template): new sequence template
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Sep 12, 2023
1 parent 57c74a3 commit f0194cd
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 2 deletions.
21 changes: 21 additions & 0 deletions src/adonisjs/public/templates/simple/case/sequence-dynamic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Scene 1 (detailed) #

**Scene 1**

Write here.

* Next -> Flow.Next

# Final (detailed,end)

Write here.

* Next Case -> Case.Next

# Answer (note, division) #

**You answered:** ^Previous.input1^

___ Template ___

* template: simple/case/sequence
33 changes: 33 additions & 0 deletions src/adonisjs/public/templates/simple/case/sequence-static.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
___ Flow ___

* Sequential:
* _sequential_

___ Data ___

* theme: simple(blue)
* namespaces:
* evidence: http://purl.org/versum/evidence/
* templates:
* categories:
* detailed:
* Description: simple/knot/seq_description
* Question: simple/knot/seq_question
* Question Certainty: simple/knot/seq_question_certainty
* Quiz: simple/knot/quiz
* Quiz Short: simple/knot/quiz_short
* Visit Day: simple/knot/visit_day
* input:
* Description: simple/knot/seq_description
* Question: simple/knot/seq_question
* Question Certainty: simple/knot/seq_question_certainty
* Quiz: simple/knot/quiz
* Quiz Short: simple/knot/quiz_short
* Visit Day: simple/knot/visit_day
* quiz:
* Description: simple/knot/seq_description
* Question: simple/knot/seq_question
* Question Certainty: simple/knot/seq_question_certainty
* Quiz: simple/knot/quiz
* Quiz Short: simple/knot/quiz_short
* Visit Day: simple/knot/visit_day
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/adonisjs/public/templates/simple/knot/seq_description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Scene _knot_number_ (detailed) #

**Scene X**

{{description
Write here.
}}

* Next -> Flow.Next
11 changes: 11 additions & 0 deletions src/adonisjs/public/templates/simple/knot/seq_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Question _knot_number_ (input) #

**Question X**

{{question
> Write here the **question**.
? answer
* type: text
}}

* Next -> Flow.Next
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Question _knot_number_ (input) #

> Write here the **lead-in**.
? answer
* type: text

> How certain are you of your diagnosis?
? confidence
* type: slider
* min: 0
* max: 100
* value: 50
* index: true

* Next -> Flow.Next
27 changes: 25 additions & 2 deletions src/adonisjs/public/templates/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"icon": "plain/case/plain.png",
"scope": "case",
"environment": "jacinto"},
"Sequence":
{"questId": "sequence",
"description": "Basic sequence of events.",
"path": "simple/case/sequence",
"icon": "simple/case/sequence.png",
"scope": "case",
"environment": "jacinto"},
"Lab 1":
{"questId": "labs",
"description": "Lab 1.",
Expand All @@ -25,7 +32,7 @@
"path": "labs/lab_3",
"icon": "labs/labs.png",
"scope": "case",
"environment": "jacinto"},
"environment": "development"},
"Zombie":
{"questId": "zombie",
"description": "Zombie Venom.",
Expand All @@ -38,7 +45,8 @@
"description": "Novo visual do Jacinto.",
"path": "jacinto/case/standard_eletro",
"icon": "jacinto/images/standard_eletro.png",
"scope": "case"},
"scope": "case",
"environment": "development"},
"Quiz da Emergência":
{"questId": "quiz-da-emergencia",
"description": "Um quiz com quatro alternativas.",
Expand Down Expand Up @@ -107,11 +115,26 @@
"path": "simple/knot/quiz",
"icon": "simple/knot/quiz.png",
"scope": "knot"},
"Description Sequence":
{"description": "Description block (sequence).",
"path": "simple/knot/seq_description",
"icon": "simple/images/description.png",
"scope": "knot"},
"Description":
{"description": "Description of a case or report.",
"path": "simple/knot/description",
"icon": "simple/images/description.png",
"scope": "knot"},
"Question Sequence":
{"description": "Question with a text input (sequence).",
"path": "simple/knot/seq_question",
"icon": "simple/images/description.png",
"scope": "knot"},
"Question with Certainty Sequence":
{"description": "Question with a text input and certainty (sequence).",
"path": "simple/knot/seq_question_certainty",
"icon": "simple/images/description.png",
"scope": "knot"},
"Input":
{"description": "Question with a text input.",
"path": "simple/knot/input",
Expand Down

0 comments on commit f0194cd

Please sign in to comment.