Skip to content

Commit

Permalink
add default tag name in create-list; alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 13, 2020
1 parent 75cc97a commit a190962
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 40 deletions.
79 changes: 51 additions & 28 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -12116,35 +12116,58 @@
|r $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574355453374) (:text |expanded-app) (:id |aP191P854T)
|create-list $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007042676) (:id |nWVaCh-llR)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007042676) (:text |defn) (:id |JMRD7jbh2o)
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791865913) (:text |defn$) (:id |JMRD7jbh2o)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007042676) (:text |create-list) (:id |cK7sTuegQL)
|r $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |nFQWt-kHRd)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |tag) (:id |XlXONYy1Pt)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |props) (:id |--57qCwdd3)
|r $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |children) (:id |JuOffzUh-h)
|v $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |hzGlBzpJKo)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |{}) (:id |I8ISrtx2LK)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |C4RZAb42eG)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |:name) (:id |yuvzaIQhki)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |tag) (:id |fUndIedx80)
|r $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |0RodPp5M7H)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |:phlox-node) (:id |5bAofPfNGNP)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |:element) (:id |HUnW0ILqhw2)
|v $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |3eZu-GTUdAD)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |:props) (:id |IaYMsnfJWe2)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |props) (:id |wlXxheQJBHR)
|x $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |zctEq5gKsX8)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |:children) (:id |IOvPbWHeMTj)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007781057) (:id |9wvjDnTRDD)
:data $ {}
|D $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007781651) (:text |remove-nil-values) (:id |TQdMFv0vA-)
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |children) (:id |ql26dryAvM4)
|r $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791867561)
:data $ {}
|T $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |nFQWt-kHRd)
:data $ {}
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |props) (:id |--57qCwdd3)
|r $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |children) (:id |JuOffzUh-h)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791882067)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791885716) (:text |create-list) (:id |kKz9HDREZN)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791887385) (:text |:container) (:id |Ud8W55oeXX)
|r $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791890269) (:text |props) (:id |-eCcHGNYwo)
|v $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791891398) (:text |children) (:id |UM6qOLDEPS)
:id |7UCJQdLF_
:id |0-eYngXYIv
|v $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791867561)
:data $ {}
|T $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1574007045967) (:id |nFQWt-kHRd)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |tag) (:id |XlXONYy1Pt)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |props) (:id |--57qCwdd3)
|r $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1574007045967) (:text |children) (:id |JuOffzUh-h)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |{}) (:id |fr-n6ZcLBp)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |:name) (:id |fplM9MsMRp)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |tag) (:id |csK_Dw7frC)
:id |d2OOBpKyxU
|r $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |:phlox-node) (:id |b9wI1dMLMK)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |:element) (:id |BTycWq4t2h)
:id |PEfvmxgYk9
|v $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |:props) (:id |UfZ1xz8ftd)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |props) (:id |qBbS-tcahS)
:id |Emtj3oDaJx
|x $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |:children) (:id |O82XjySbnv)
|j $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1586791870252)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |remove-nil-values) (:id |RKL4Hu1qD6)
|j $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1586791870252) (:text |children) (:id |rg_FKqY9ZNs)
:id |AYC0Wsbeey
:id |DrxjdjSjX_
:id |XDq0U9Qld5
:id |lXCEoU8Dr
|graphics $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1581848614669)
:data $ {}
|T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1581848614669) (:text |defn) (:id |iXxESr_cR)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "jiyinyiyong",
"license": "MIT",
"devDependencies": {
"shadow-cljs": "^2.8.94"
"shadow-cljs": "^2.8.95"
},
"dependencies": {
"fontfaceobserver": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion release.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:version "0.2.1-a2"
{:version "0.2.1-a3"
:group-id "quamolit"
:artifact-id "phlox"
:skip-tag true
Expand Down
6 changes: 4 additions & 2 deletions src/phlox/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
(dev-check props lilac-container)
(create-element :container props children))

(defn create-list [tag props children]
{:name tag, :phlox-node :element, :props props, :children (remove-nil-values children)})
(defn create-list
([props children] (create-list :container props children))
([tag props children]
{:name tag, :phlox-node :element, :props props, :children (remove-nil-values children)}))

(def lilac-arc
(record+
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a190962

Please sign in to comment.