diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f565a6..9870ca6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## Changed - [Issue 24] - `reagent.core/render` is deprecated. Now we use `reagent.dom/render` instead. +### Fixed +- [Issue 23] - Now the DELETEME-demo-* functions definitions will get generated for all profiles. + ## [0.4.3] - 2020-07-01 ### Changed - Use newer versions of dependencies @@ -166,4 +169,5 @@ This version unifies it to `rf`. [0.1.4]: https://github.com/magnetcoop/hydrogen.duct-template/v0.1.4 [0.1.3]: https://github.com/magnetcoop/hydrogen.cljs.duct-template/v0.1.3 +[Issue 23]: https://github.com/magnetcoop/hydrogen.duct-template/issues/23 [Issue 24]: https://github.com/magnetcoop/hydrogen.duct-template/issues/24 diff --git a/resources/core/cljs/home.cljs b/resources/core/cljs/home.cljs index daf5045..ddd9c57 100644 --- a/resources/core/cljs/home.cljs +++ b/resources/core/cljs/home.cljs @@ -5,9 +5,9 @@ {{=<< >>=}} (ns <>.client.home (:require [re-frame.core :as rf]<<#hydrogen-session?>> - [<>.client.session :as session] + [<>.client.session :as session]<> [<>.client.tooltip :as tooltip] - [<>.client.tooltip.loading-popup :as loading-popup] + [<>.client.tooltip.loading-popup :as loading-popup]<<#hydrogen-session?>> [<>.client.user :as user]<> [<>.client.view :as view])) @@ -15,24 +15,24 @@ ::go-to-home (fn [_ _] {:dispatch [::view/set-active-view :home] - :redirect "/#/home"}))<<#hydrogen-session?>> + :redirect "/#/home"})) ;; This section contains code solely for demo purposes. ;; Go ahead and delete it. (rf/reg-event-fx ::DELETEME-demo-request (fn [_ _] - {:dispatch [::loading-popup/set-loading "Faking loading. I'll disappear after 5 seconds..."] - ;; This http-xhrio should be there instead of the dispatch-later in real situation. - ; http-xhrio {...} - :dispatch-later [{:ms 5000 - :dispatch [::loading-popup/stop-loading]}]})) + {:dispatch [::loading-popup/set-loading "Faking loading. I'll disappear after 5 seconds..."] + ;; This http-xhrio should be there instead of the dispatch-later in real situation. + ; http-xhrio {...} + :dispatch-later [{:ms 5000 + :dispatch [::loading-popup/stop-loading]}]})) (defn- DELETEME-demo-tooltip-component [] - [:div - "Hello! I'm a demo tooltip. " - [:a.u-clickable - {:on-click #(rf/dispatch [::tooltip/destroy-by-id "generic-popup"])} "x"]]) + [:div + "Hello! I'm a demo tooltip. " + [:a.u-clickable + {:on-click #(rf/dispatch [::tooltip/destroy-by-id "generic-popup"])} "x"]]) (defn- DELETEME-demo-tooltip [] [:button.btn @@ -44,7 +44,7 @@ (defn- DELETEME-demo-loading [] [:button.btn {:on-click #(rf/dispatch [::DELETEME-demo-request])} "Pretend you are requesting something from the Internet"]) -;; end of obsolete demo code +;; end of obsolete demo code<<#hydrogen-session?>> (defn- user-details [] (let [user-data (rf/subscribe [::user/user-data])]