Ab sofort ist der Login auf der Weboberfläche von git.fh-muenster.de bevorzugt über FH Muenster SSO möglich.

Commit 088f8177 authored by Bruno Burke's avatar Bruno Burke 😁

change common/..-tick, move spec-checks in devcards to last position

parent 7b390379
......@@ -31,15 +31,15 @@
(defn correct-tick []
(fn []
[:span.light-green-text "✔ "]))
[:span.has-text-info "✔ "]))
(defn neutral-tick []
(fn []
[:span.blue-text "◌ "]))
[:span.has-text-info "😐 "]))
(defn wrong-tick []
(fn []
[:span.red-text "✘ "]))
[:span.has-text-info "✘ "]))
(defn binary-input [{:keys [default-bits result on-change-fn bitcount]
:or {bitcount 8}}]
......
......@@ -23,18 +23,6 @@
(defcard "#Single Choice")
(defcard "## Spec")
(defn spec-check [exercise]
(fn [exercise]
[:div
(str "Explain: ")
[:code (explain-exercise exercise)]]))
(defcard-rg spec-check
[spec-check @exercise-data]
@exercise-data
{:inspect-data true})
(defcard "## No Result")
......@@ -77,3 +65,17 @@
(defcard-rg show-mc2
[mc-with-result]
)
(defcard "## Spec")
(defn spec-check [exercise]
(fn [exercise]
[:div
(str "Explain: ")
[:code (explain-exercise exercise)]]))
(defcard-rg spec-check
[spec-check @exercise-data]
@exercise-data
{:inspect-data true})
......@@ -78,6 +78,6 @@
[:div
[exercise/render-exercise @exercise-data
{;;{:points 3 :points-max 6 :correct true}
:answer (:code-template @exercise-data)
:answer (:code-template (:core @exercise-data))
:result {:failed 2 :passed 7 :points 2 :points-max 5}
:on-change #(reset! answer %)}]]))
......@@ -24,18 +24,6 @@
(defcard "#Single Choice")
(defcard "## Spec")
(defn spec-check [exercise]
(fn [exercise]
[:div
(str "Explain: ")
[:code (explain-exercise exercise)]]))
(defcard-rg spec-check
[spec-check @exercise-data]
@exercise-data
{:inspect-data true})
(defcard "## No Result")
......@@ -53,3 +41,15 @@
{:inspect-data true
:history true})
(defcard "## Spec")
(defn spec-check [exercise]
(fn [exercise]
[:div
(str "Explain: ")
[:code (explain-exercise exercise)]]))
(defcard-rg spec-check
[spec-check @exercise-data]
@exercise-data
{:inspect-data true})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment