This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Parser | |
(def card-schema | |
{:id [(v/number) (v/pos)] | |
:assignees [(v/optional (v/vector))] | |
:text [(v/string) (v/min-length 1 "The description may not be empty")]}) | |
(defn validate-card [card] | |
(assoc card :errors (second (v/validate card card-schema)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jannis@columba om]$ git diff | |
diff --git a/project.clj b/project.clj | |
index e0b854f..3b39ce7 100644 | |
--- a/project.clj | |
+++ b/project.clj | |
@@ -19,7 +19,7 @@ | |
[devcards "0.2.0-8" :scope "provided"] | |
] | |
- :plugins [[lein-cljsbuild "1.1.0"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught #error {:message "No queries exist for component path (#object[Pv \"function Pv(){React.Component.apply(this,arguments);this.state=null!=this.la?this.la():{};return this}\"])", :data {:type :om.next/no-queries}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Function to resolve keys passed to an Om Next transaction to their corresponding | |
;; queries in the component that triggered the transaction. Ugly as hell. ;) | |
;; | |
;; (defui Foo | |
;; static om/IQuery | |
;; (query [this] | |
;; [:app/foo | |
;; {:app/bar (om/get-query Bar)} | |
;; ({:app/baz (om/get-query Baz)} {:param "Value"})]) | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Data | |
[{:name "r/ui", | |
:children [{:name "r/ui/green-button"} {:name "r/ui/red-button"}], | |
:kind "requirement", | |
:title "UI Requirements", | |
:description "A somewhat long description spread across multiple lines.\n", | |
:parent nil} | |
{:name "r/ui/green-button", | |
:children [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns om-tutorial.core | |
(:require [goog.dom :as gdom] | |
[om.next :as om :refer-macros [defui]] | |
[om.dom :as dom])) | |
(enable-console-print!) | |
;;;; Initial (denormalized) data | |
(def initial-state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns om-tutorial.core | |
(:require [goog.dom :as gdom] | |
[om.next :as om :refer-macros [defui]] | |
[om.dom :as dom])) | |
(enable-console-print!) | |
;;;; Initial (denormalized) data | |
(def initial-state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn uml-extension [converter] | |
[{:type "lang" | |
:regex #"@startuml\s+(.*?)\s+@enduml" | |
:replace (fn [s match] | |
(println "S >>" s) | |
(println "M >>" match) | |
s)}]) | |
(def converter | |
(js/Showdown.converter. {:extensions [uml-extension]})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught #error {:message "No queries exist for component path (#object[Mx \"function Mx(){React.Component.apply(this,arguments);this.state=null!=this.ga?this.ga():{};return this}\"] #object[Xv \"function Xv(){React.Component.apply(this,arguments);this.state=null!=this.ga?this.ga():{};return this}\"])", :data {:type :om.next/no-queries}} | |
us.j @ app.js:606 | |
us.h @ app.js:605 | |
ft @ app.js:633 | |
h.Mf @ app.js:622 | |
hp @ app.js:481 | |
b @ app.js:591 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught #error {:message "No queries exist for component path (#object[$web$app$App$$ \"function $web$app$App$$(){React.Component.apply(this,arguments);this.state=null!=this.$initLocalState$?this.$initLocalState$():{};return this}\"] #object[$web$components$requirements$Requirement$$ \"function $web$components$requirements$Requirement$$(){React.Component.apply(this,arguments);this.state=null!=this.$initLocalState$?this.$initLocalState$():{};return this}\"])", :data {:type :om.next/no-queries}} | |
$om$next$full_query$$.$cljs$core$IFn$_invoke$arity$2$ @ app.js:2308 | |
$om$next$full_query$$.$cljs$core$IFn$_invoke$arity$1$ @ app.js:2305$om$next$default_ui__GT_props$$ @ app.js:2444 | |
$JSCompiler_prototypeAlias$$.$om$next$protocols$IReconciler$reconcile_BANG_$arity$1$ @ app.js:2391 | |
$om$next$protocols$reconcile_BANG_$$ @ app.js:1798$f$$359$$ @ app.js:2230 |
OlderNewer