Skip to content

Commit

Permalink
Upgrade reagent to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Nov 5, 2016
1 parent 6d97e02 commit 85b49c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.3.1 (2016-11-05)

* Fixed `<asciinema-player>` element loading under Chrome
* Upgraded Reagent (and thus React) dependency

## 2.3.0 (2016-10-02)

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.293"]
[org.clojure/core.async "0.2.374"]
[reagent "0.5.1"]
[devcards "0.2.0-3"]
[reagent "0.6.0"]
[devcards "0.2.2" :exclusions [cljsjs/react]]
[org.clojure/test.check "0.8.2"]
[org.clojure/core.match "0.3.0-alpha4"]
[prismatic/schema "1.1.3"]
Expand Down
10 changes: 5 additions & 5 deletions src/asciinema/player/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,24 @@
(def logo-raw-svg "<defs> <mask id=\"small-triangle-mask\"> <rect width=\"100%\" height=\"100%\" fill=\"white\"/> <polygon points=\"508.01270189221935 433.01270189221935, 208.0127018922194 259.8076211353316, 208.01270189221927 606.217782649107\" fill=\"black\"></polygon> </mask> </defs> <polygon points=\"808.0127018922194 433.01270189221935, 58.01270189221947 -1.1368683772161603e-13, 58.01270189221913 866.0254037844386\" mask=\"url(#small-triangle-mask)\" fill=\"white\"></polygon> <polyline points=\"481.2177826491071 333.0127018922194, 134.80762113533166 533.0127018922194\" stroke=\"white\" stroke-width=\"90\"></polyline>")

(defn logo-play-icon []
[:svg {:version "1.1" :xmlns "http://www.w3.org/2000/svg" :view-box "0 0 866.0254037844387 866.0254037844387" :class-name "icon" :dangerouslySetInnerHTML {:__html logo-raw-svg}}])
[:svg {:version "1.1" :view-box "0 0 866.0254037844387 866.0254037844387" :class-name "icon" :dangerouslySetInnerHTML {:__html logo-raw-svg}}])

(defn play-icon []
[:svg {:version "1.1" :xmlns "http://www.w3.org/2000/svg" :view-box "0 0 12 12" :class-name "icon"}
[:svg {:version "1.1" :view-box "0 0 12 12" :class-name "icon"}
[:path {:d "M1,0 L11,6 L1,12 Z"}]])

(defn pause-icon []
[:svg {:version "1.1" :xmlns "http://www.w3.org/2000/svg" :view-box "0 0 12 12" :class-name "icon"}
[:svg {:version "1.1" :view-box "0 0 12 12" :class-name "icon"}
[:path {:d "M1,0 L4,0 L4,12 L1,12 Z"}]
[:path {:d "M8,0 L11,0 L11,12 L8,12 Z"}]])

(defn expand-icon []
[:svg {:version "1.1" :xmlns "http://www.w3.org/2000/svg" :view-box "0 0 12 12" :class-name "icon"}
[:svg {:version "1.1" :view-box "0 0 12 12" :class-name "icon"}
[:path {:d "M12,0 L7,0 L9,2 L7,4 L8,5 L10,3 L12,5 Z"}]
[:path {:d "M0,12 L0,7 L2,9 L4,7 L5,8 L3,10 L5,12 Z"}]])

(defn shrink-icon []
[:svg {:version "1.1" :xmlns "http://www.w3.org/2000/svg" :view-box "0 0 12 12" :class-name "icon"}
[:svg {:version "1.1" :view-box "0 0 12 12" :class-name "icon"}
[:path {:d "M7,5 L7,0 L9,2 L11,0 L12,1 L10,3 L12,5 Z"}]
[:path {:d "M5,7 L0,7 L2,9 L0,11 L1,12 L3,10 L5,12 Z"}]])

Expand Down

0 comments on commit 85b49c6

Please sign in to comment.